@mablhq/mabl-cli 1.16.32 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/basicApiClient.js +9 -4
- package/api/featureSet.js +1 -4
- package/api/mablApiClient.js +16 -9
- package/browserLauncher/browserLauncherFactory.js +4 -4
- package/browserLauncher/elementHandle.js +2 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +8 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +11 -9
- package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +23 -29
- package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +28 -6
- package/browserLauncher/playwrightBrowserLauncher/playwrightHttpRequest.js +5 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +13 -9
- package/browserLauncher/runnerType.js +0 -1
- package/cli.js +12 -8
- package/commands/applications/applications_cmds/describe.js +4 -4
- package/commands/applications/applications_cmds/list.js +4 -4
- package/commands/auth/auth_cmds/activate-key.js +1 -1
- package/commands/branches/branches_cmds/create.js +4 -4
- package/commands/branches/branches_cmds/describe.js +3 -3
- package/commands/branches/branches_cmds/list.js +3 -3
- package/commands/branches/branches_cmds/merge.js +4 -4
- package/commands/commandUtil/codeInsights.js +4 -2
- package/commands/commandUtil/describe.js +1 -1
- package/commands/commandUtil/fileUtil.js +5 -1
- package/commands/commandUtil/util.js +2 -2
- package/commands/config/config_cmds/delete.js +1 -1
- package/commands/config/config_cmds/set.js +1 -1
- package/commands/constants.js +3 -1
- package/commands/credentials/credentials_cmds/list.js +4 -4
- package/commands/deploy/deploy_cmds/create.js +18 -13
- package/commands/deploy/deploy_cmds/describe.js +5 -5
- package/commands/deploy/deploy_cmds/executionResultPresenter.js +1 -1
- package/commands/deploy/deploy_cmds/list.js +4 -4
- package/commands/deploy/deploy_cmds/watch.js +2 -2
- package/commands/environments/environments_cmds/create.js +7 -7
- package/commands/environments/environments_cmds/delete.js +1 -1
- package/commands/environments/environments_cmds/describe.js +4 -4
- package/commands/environments/environments_cmds/list.js +4 -4
- package/commands/environments/environments_cmds/update.js +2 -2
- package/commands/environments/environments_cmds/urls_cmds/add.js +3 -3
- package/commands/environments/environments_cmds/urls_cmds/list.js +2 -2
- package/commands/flows/flows_cmds/export.js +5 -5
- package/commands/flows/flows_cmds/list.js +2 -2
- package/commands/link-agents/link-agents_cmds/delete.js +1 -1
- package/commands/plans/plans_cmds/describe.js +4 -4
- package/commands/plans/plans_cmds/list.js +2 -2
- package/commands/test-runs/test-runs_cmds/export.js +2 -2
- package/commands/tests/executionUtil.js +5 -5
- package/commands/tests/testsUtil.js +30 -18
- package/commands/tests/tests_cmds/create.js +3 -3
- package/commands/tests/tests_cmds/edit.js +3 -3
- package/commands/tests/tests_cmds/export.js +7 -7
- package/commands/tests/tests_cmds/import.js +35 -14
- package/commands/tests/tests_cmds/list.js +3 -3
- package/commands/tests/tests_cmds/run-alpha.js +3 -3
- package/commands/tests/tests_cmds/run-cloud.js +4 -4
- package/commands/tests/tests_cmds/run-legacy.js +8 -8
- package/commands/tests/tests_cmds/run.js +13 -8
- package/commands/tests/tests_cmds/trainer_cmds/trainerUtil.js +2 -2
- package/commands/tests/tests_cmds/trainer_cmds/update.js +1 -1
- package/commands/tests/tests_cmds/trainer_cmds/version.js +2 -2
- package/commands/workspaces/workspace_cmds/copy.js +2 -2
- package/commands/workspaces/workspace_cmds/describe.js +4 -4
- package/commands/workspaces/workspace_cmds/list.js +2 -2
- package/configGenerators/flowConfigGenerator.js +1 -1
- package/configGenerators/selIdeGenerator.js +6 -6
- package/core/messaging/actions/runnerActions.js +2 -2
- package/core/trainer/openUtils.js +2 -2
- package/core/trainer/trainingSessions.js +26 -26
- package/domUtil/index.js +1 -1
- package/domUtil/index.js.LICENSE.txt +5 -5
- package/env/env.js +5 -1
- package/execution/index.js +1 -1
- package/execution/index.js.LICENSE.txt +7 -5
- package/index.d.ts +0 -1
- package/mablApi/index.js +1 -1
- package/mablscript/AttributesConstants.js +2 -1
- package/mablscript/MablAction.js +1 -1
- package/mablscript/MablStep.js +26 -14
- package/mablscript/actions/AwaitPDFDownloadAction.js +2 -1
- package/mablscript/actions/ConditionAction.js +12 -4
- package/mablscript/actions/ExtractAction.js +16 -7
- package/mablscript/actions/FindAction.js +105 -80
- package/mablscript/actions/GenerateRandomStringAction.js +2 -1
- package/mablscript/actions/GetUrlAction.js +2 -2
- package/mablscript/actions/GetVariableValue.js +3 -3
- package/mablscript/actions/JavaScriptAction.js +16 -16
- package/mablscript/diffing/diffingUtil.js +146 -0
- package/mablscript/importer.js +26 -8
- package/mablscript/steps/AccessibilityCheck.js +9 -7
- package/mablscript/steps/AssertStep.js +60 -46
- package/mablscript/steps/AssertStepOld.js +41 -23
- package/mablscript/steps/AwaitTabStep.js +7 -6
- package/mablscript/steps/ClickAndHoldStep.js +6 -6
- package/mablscript/steps/ClickStep.js +6 -6
- package/mablscript/steps/CreateVariableStep.js +8 -8
- package/mablscript/steps/DoubleClickStep.js +7 -7
- package/mablscript/steps/DownloadStep.js +3 -2
- package/mablscript/steps/EchoStep.js +5 -3
- package/mablscript/steps/ElseIfConditionStep.js +5 -2
- package/mablscript/steps/EnterTextStep.js +13 -10
- package/mablscript/steps/EvaluateFlowStep.js +40 -0
- package/mablscript/steps/HoverStep.js +6 -6
- package/mablscript/steps/IfConditionStep.js +8 -7
- package/mablscript/steps/NavigateStep.js +1 -1
- package/mablscript/steps/ReleaseStep.js +7 -6
- package/mablscript/steps/RemoveCookieStep.js +2 -3
- package/mablscript/steps/SelectStep.js +5 -5
- package/mablscript/steps/SendHttpRequestStep.js +3 -3
- package/mablscript/steps/SendKeyStep.js +9 -9
- package/mablscript/steps/SetCookieStep.js +2 -4
- package/mablscript/steps/SetFilesStep.js +5 -5
- package/mablscript/steps/SetViewportStep.js +2 -2
- package/mablscript/steps/SwitchContextStep.js +12 -12
- package/mablscript/steps/VisitUrlStep.js +3 -2
- package/mablscript/steps/WaitStep.js +2 -5
- package/mablscript/steps/WaitUntilStep.js +3 -3
- package/{browserLauncher/puppeteerBrowserLauncher/internals.js → mablscript/types/EvaluateFlowStepDescriptor.js} +0 -0
- package/mablscript/types/GetCurrentLocationDescriptor.js +4 -3
- package/mablscript/types/OperatingSystemDescriptor.js +5 -1
- package/mablscript/types/VariableNamespace.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/mablscriptFind/index.js.LICENSE.txt +5 -5
- package/observers/mockObserver.js +4 -2
- package/package.json +55 -56
- package/popupDismissal/index.js +3 -3
- package/providers/authenticationProvider.js +3 -3
- package/providers/logging/loggingProvider.js +5 -1
- package/proxy/index.js +2 -1
- package/proxy/index.js.LICENSE.txt +5 -0
- package/reporters/mochAwesome/mochAwesomeReporter.js +11 -7
- package/reporters/reporter.js +1 -1
- package/resources/mablFind.js +1 -1
- package/resources/pdf-viewer/index.js +1 -1
- package/resources/pdf-viewer/libEmbeddedPdfHandler.js +11 -2
- package/resources/popupDismissal.js +1 -1
- package/util/RichPromise.js +1 -0
- package/util/actionabilityUtil.js +16 -35
- package/util/analytics.js +7 -3
- package/util/downloadUtil.js +6 -2
- package/util/httpUtil.js +6 -2
- package/util/markdownUtil.js +1 -1
- package/util/pureUtil.js +5 -1
- package/util/resourceUtil.js +5 -1
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowser.js +0 -134
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowserLauncher.js +0 -45
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerElementHandle.js +0 -139
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerFrame.js +0 -115
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpRequest.js +0 -38
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpResponse.js +0 -27
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerJsHandle.js +0 -36
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerPage.js +0 -331
- package/browserLauncher/puppeteerBrowserLauncher/wrappers.js +0 -25
package/mablApi/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mablApi=t():e.mablApi=t()}(global,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("zlib")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("querystring")},function(e,t){e.exports=require("http")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OauthCode=t.Note=t.NetworkConnection=t.MetricsSummaryPoints=t.Metrics=t.MabltronPlatform=t.MabltronPackaging=t.MablscriptOverride=t.LoginProviderResult=t.LinkServer=t.LinkAgentDistribution=t.LinkAgent=t.JourneyRunResult=t.JourneyRun=t.JourneyParameters=t.Journey=t.IterationConfiguration=t.IssueSchemaField=t.IssueCreatedFromEntity=t.Insight=t.GeneralExecutionMessage=t.FlowUpdateFlows=t.Flow=t.FindDigest=t.ExportRequest=t.ExecutionSummary=t.ExecutionStage=t.ExecutionParameter=t.ExecutionNotification=t.ExecutionInput=t.Environment=t.DeviceEmulationConfiguration=t.DeviceEmulation=t.Deployment=t.Credentials=t.CreateOrganizationInvitationRequest=t.CompanySessionTimeoutUpdateRequest=t.Company=t.BranchedEntity=t.Branch=t.AsyncValidationRequest=t.ApiKeyCreationRequest=t.ApiKey=t.AggregateMetric=t.ActionAttributeType=t.Account=t.RequiredError=t.BaseAPI=t.AbstractMablApiWrapper=t.COLLECTION_FORMATS=void 0,t.CompanyApiFetchParamCreator=t.BranchApi=t.BranchApiFactory=t.BranchApiFp=t.BranchApiFetchParamCreator=t.ApplicationApi=t.ApplicationApiFactory=t.ApplicationApiFp=t.ApplicationApiFetchParamCreator=t.ApiKeyApi=t.ApiKeyApiFactory=t.ApiKeyApiFp=t.ApiKeyApiFetchParamCreator=t.AccountApi=t.AccountApiFactory=t.AccountApiFp=t.AccountApiFetchParamCreator=t.ValidateUrlResult=t.ValidateUrl=t.WorkspaceIntegrationConfigGithub=t.WorkspaceIntegrationConfigAtlassianConnect=t.WorkspaceIntegrationConfig=t.WorkspaceIntegrationClaimRequest=t.WorkspaceIntegration=t.WorkspaceArtifactQueryRequest=t.WebEmulationConfiguration=t.UserWithAllAttributes=t.UserRole=t.UserPreferences=t.UserCompanyRole=t.Trigger=t.TestStatus=t.TestRunSummary=t.TestRunDuplicationRequest=t.SubscriptionUpdatePricingPlans=t.SubscriptionUpdate=t.Subscription=t.SslOptions=t.Snippet=t.SelectorOverride=t.Scope=t.RunPolicy=t.ReportSetting=t.Report=t.PlanRunDuplicationRequest=t.PlanRun=t.PlanOverrideOptions=t.PlanExecutionResult=t.OrganizationInvitation=t.OauthToken=void 0,t.ExecutionResultApiFactory=t.ExecutionResultApiFp=t.ExecutionResultApiFetchParamCreator=t.ExecutionNotificationApi=t.ExecutionNotificationApiFactory=t.ExecutionNotificationApiFp=t.ExecutionNotificationApiFetchParamCreator=t.ExecutionInputApi=t.ExecutionInputApiFactory=t.ExecutionInputApiFp=t.ExecutionInputApiFetchParamCreator=t.ExecutionApi=t.ExecutionApiFactory=t.ExecutionApiFp=t.ExecutionApiFetchParamCreator=t.EventApi=t.EventApiFactory=t.EventApiFp=t.EventApiFetchParamCreator=t.EnvironmentApi=t.EnvironmentApiFactory=t.EnvironmentApiFp=t.EnvironmentApiFetchParamCreator=t.DeploymentApi=t.DeploymentApiFactory=t.DeploymentApiFp=t.DeploymentApiFetchParamCreator=t.CustomFilterApi=t.CustomFilterApiFactory=t.CustomFilterApiFp=t.CustomFilterApiFetchParamCreator=t.CredentialsApi=t.CredentialsApiFactory=t.CredentialsApiFp=t.CredentialsApiFetchParamCreator=t.CoverageApi=t.CoverageApiFactory=t.CoverageApiFp=t.CoverageApiFetchParamCreator=t.CopyApi=t.CopyApiFactory=t.CopyApiFp=t.CopyApiFetchParamCreator=t.CompanyDomainApi=t.CompanyDomainApiFactory=t.CompanyDomainApiFp=t.CompanyDomainApiFetchParamCreator=t.CompanyApi=t.CompanyApiFactory=t.CompanyApiFp=void 0,t.LinkLabelApiFetchParamCreator=t.LinkAgentApi=t.LinkAgentApiFactory=t.LinkAgentApiFp=t.LinkAgentApiFetchParamCreator=t.JourneyRunApi=t.JourneyRunApiFactory=t.JourneyRunApiFp=t.JourneyRunApiFetchParamCreator=t.JourneyApi=t.JourneyApiFactory=t.JourneyApiFp=t.JourneyApiFetchParamCreator=t.IssueApi=t.IssueApiFactory=t.IssueApiFp=t.IssueApiFetchParamCreator=t.InsightApi=t.InsightApiFactory=t.InsightApiFp=t.InsightApiFetchParamCreator=t.HealthApi=t.HealthApiFactory=t.HealthApiFp=t.HealthApiFetchParamCreator=t.FlowApi=t.FlowApiFactory=t.FlowApiFp=t.FlowApiFetchParamCreator=t.FindSummaryApi=t.FindSummaryApiFactory=t.FindSummaryApiFp=t.FindSummaryApiFetchParamCreator=t.FindModelApi=t.FindModelApiFactory=t.FindModelApiFp=t.FindModelApiFetchParamCreator=t.FileUploadApi=t.FileUploadApiFactory=t.FileUploadApiFp=t.FileUploadApiFetchParamCreator=t.ExportRequestApi=t.ExportRequestApiFactory=t.ExportRequestApiFp=t.ExportRequestApiFetchParamCreator=t.ExportApi=t.ExportApiFactory=t.ExportApiFp=t.ExportApiFetchParamCreator=t.ExecutionResultApi=void 0,t.RoleApiFactory=t.RoleApiFp=t.RoleApiFetchParamCreator=t.ReportApi=t.ReportApiFactory=t.ReportApiFp=t.ReportApiFetchParamCreator=t.PlanRunApi=t.PlanRunApiFactory=t.PlanRunApiFp=t.PlanRunApiFetchParamCreator=t.OrganizationInvitationApi=t.OrganizationInvitationApiFactory=t.OrganizationInvitationApiFp=t.OrganizationInvitationApiFetchParamCreator=t.OrganizationApi=t.OrganizationApiFactory=t.OrganizationApiFp=t.OrganizationApiFetchParamCreator=t.OauthTokenApi=t.OauthTokenApiFactory=t.OauthTokenApiFp=t.OauthTokenApiFetchParamCreator=t.NoteApi=t.NoteApiFactory=t.NoteApiFp=t.NoteApiFetchParamCreator=t.MailboxApi=t.MailboxApiFactory=t.MailboxApiFp=t.MailboxApiFetchParamCreator=t.MabltronDistributionApi=t.MabltronDistributionApiFactory=t.MabltronDistributionApiFp=t.MabltronDistributionApiFetchParamCreator=t.MablscriptOverrideApi=t.MablscriptOverrideApiFactory=t.MablscriptOverrideApiFp=t.MablscriptOverrideApiFetchParamCreator=t.LoginApi=t.LoginApiFactory=t.LoginApiFp=t.LoginApiFetchParamCreator=t.LinkServerApi=t.LinkServerApiFactory=t.LinkServerApiFp=t.LinkServerApiFetchParamCreator=t.LinkLabelApi=t.LinkLabelApiFactory=t.LinkLabelApiFp=void 0,t.WorkspaceIntegrationApi=t.WorkspaceIntegrationApiFactory=t.WorkspaceIntegrationApiFp=t.WorkspaceIntegrationApiFetchParamCreator=t.WorkspaceInfrastructureApi=t.WorkspaceInfrastructureApiFactory=t.WorkspaceInfrastructureApiFp=t.WorkspaceInfrastructureApiFetchParamCreator=t.VariableTableApi=t.VariableTableApiFactory=t.VariableTableApiFp=t.VariableTableApiFetchParamCreator=t.VariableRowApi=t.VariableRowApiFactory=t.VariableRowApiFp=t.VariableRowApiFetchParamCreator=t.ValidateUrlApi=t.ValidateUrlApiFactory=t.ValidateUrlApiFp=t.ValidateUrlApiFetchParamCreator=t.UserApi=t.UserApiFactory=t.UserApiFp=t.UserApiFetchParamCreator=t.UsageApi=t.UsageApiFactory=t.UsageApiFp=t.UsageApiFetchParamCreator=t.StateDetectionApi=t.StateDetectionApiFactory=t.StateDetectionApiFp=t.StateDetectionApiFetchParamCreator=t.SnippetApi=t.SnippetApiFactory=t.SnippetApiFp=t.SnippetApiFetchParamCreator=t.ScheduleApi=t.ScheduleApiFactory=t.ScheduleApiFp=t.ScheduleApiFetchParamCreator=t.SamlApi=t.SamlApiFactory=t.SamlApiFp=t.SamlApiFetchParamCreator=t.RoleApi=void 0;const n=r(11),i=r(12);r(13);const a=fetch,o="https://api.mabl.com".replace(/\/+$/,"");t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};t.AbstractMablApiWrapper=class{constructor(e,r){this.apiConfig=e,this.wrappedFetch=r,this.accounts=(0,t.AccountApiFactory)(e,r,e.basePath),this.apiKeys=(0,t.ApiKeyApiFactory)(e,r,e.basePath),this.applications=(0,t.ApplicationApiFactory)(e,r,e.basePath),this.branchs=(0,t.BranchApiFactory)(e,r,e.basePath),this.companys=(0,t.CompanyApiFactory)(e,r,e.basePath),this.companyDomains=(0,t.CompanyDomainApiFactory)(e,r,e.basePath),this.copys=(0,t.CopyApiFactory)(e,r,e.basePath),this.coverages=(0,t.CoverageApiFactory)(e,r,e.basePath),this.credentialss=(0,t.CredentialsApiFactory)(e,r,e.basePath),this.customFilters=(0,t.CustomFilterApiFactory)(e,r,e.basePath),this.deployments=(0,t.DeploymentApiFactory)(e,r,e.basePath),this.environments=(0,t.EnvironmentApiFactory)(e,r,e.basePath),this.events=(0,t.EventApiFactory)(e,r,e.basePath),this.executions=(0,t.ExecutionApiFactory)(e,r,e.basePath),this.executionInputs=(0,t.ExecutionInputApiFactory)(e,r,e.basePath),this.executionNotifications=(0,t.ExecutionNotificationApiFactory)(e,r,e.basePath),this.executionResults=(0,t.ExecutionResultApiFactory)(e,r,e.basePath),this.exports=(0,t.ExportApiFactory)(e,r,e.basePath),this.exportRequests=(0,t.ExportRequestApiFactory)(e,r,e.basePath),this.fileUploads=(0,t.FileUploadApiFactory)(e,r,e.basePath),this.findModels=(0,t.FindModelApiFactory)(e,r,e.basePath),this.findSummarys=(0,t.FindSummaryApiFactory)(e,r,e.basePath),this.flows=(0,t.FlowApiFactory)(e,r,e.basePath),this.healths=(0,t.HealthApiFactory)(e,r,e.basePath),this.insights=(0,t.InsightApiFactory)(e,r,e.basePath),this.issues=(0,t.IssueApiFactory)(e,r,e.basePath),this.journeys=(0,t.JourneyApiFactory)(e,r,e.basePath),this.journeyRuns=(0,t.JourneyRunApiFactory)(e,r,e.basePath),this.linkAgents=(0,t.LinkAgentApiFactory)(e,r,e.basePath),this.linkLabels=(0,t.LinkLabelApiFactory)(e,r,e.basePath),this.linkServers=(0,t.LinkServerApiFactory)(e,r,e.basePath),this.logins=(0,t.LoginApiFactory)(e,r,e.basePath),this.mablscriptOverrides=(0,t.MablscriptOverrideApiFactory)(e,r,e.basePath),this.mabltronDistributions=(0,t.MabltronDistributionApiFactory)(e,r,e.basePath),this.mailboxs=(0,t.MailboxApiFactory)(e,r,e.basePath),this.notes=(0,t.NoteApiFactory)(e,r,e.basePath),this.oauthTokens=(0,t.OauthTokenApiFactory)(e,r,e.basePath),this.organizations=(0,t.OrganizationApiFactory)(e,r,e.basePath),this.organizationInvitations=(0,t.OrganizationInvitationApiFactory)(e,r,e.basePath),this.planRuns=(0,t.PlanRunApiFactory)(e,r,e.basePath),this.reports=(0,t.ReportApiFactory)(e,r,e.basePath),this.roles=(0,t.RoleApiFactory)(e,r,e.basePath),this.samls=(0,t.SamlApiFactory)(e,r,e.basePath),this.schedules=(0,t.ScheduleApiFactory)(e,r,e.basePath),this.snippets=(0,t.SnippetApiFactory)(e,r,e.basePath),this.stateDetections=(0,t.StateDetectionApiFactory)(e,r,e.basePath),this.usages=(0,t.UsageApiFactory)(e,r,e.basePath),this.users=(0,t.UserApiFactory)(e,r,e.basePath),this.validateUrls=(0,t.ValidateUrlApiFactory)(e,r,e.basePath),this.variableRows=(0,t.VariableRowApiFactory)(e,r,e.basePath),this.variableTables=(0,t.VariableTableApiFactory)(e,r,e.basePath),this.workspaceInfrastructures=(0,t.WorkspaceInfrastructureApiFactory)(e,r,e.basePath),this.workspaceIntegrations=(0,t.WorkspaceIntegrationApiFactory)(e,r,e.basePath)}};class s{constructor(e,t=o,r=a){this.basePath=t,this.fetch=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}t.BaseAPI=s;class u extends Error{constructor(e,t){super(t),this.field=e}}t.RequiredError=u,function(e){let t,r;!function(e){e[e.Enterprise="enterprise"]="Enterprise",e[e.Enterprise5000="enterprise_5000"]="Enterprise5000",e[e.Enterprise10000="enterprise_10000"]="Enterprise10000",e[e.Enterprise20000="enterprise_20000"]="Enterprise20000",e[e.Enterprise50000="enterprise_50000"]="Enterprise50000",e[e.Essentials="essentials"]="Essentials",e[e.Growth="growth"]="Growth",e[e.PayAsYouGo="pay_as_you_go"]="PayAsYouGo",e[e.Pro="pro"]="Pro",e[e.Seed="seed"]="Seed",e[e.Startup="startup"]="Startup",e[e.Trial="trial"]="Trial"}(t=e.MablPlanTypeEnum||(e.MablPlanTypeEnum={})),function(e){e[e.Monthly="monthly"]="Monthly",e[e.Quarterly="quarterly"]="Quarterly",e[e.Yearly="yearly"]="Yearly"}(r=e.MablSubscriptionPeriodEnum||(e.MablSubscriptionPeriodEnum={}))}(t.Account||(t.Account={})),function(e){e[e.FINDSBBOX="FINDS_BBOX"]="FINDSBBOX",e[e.ISMUTATING="IS_MUTATING"]="ISMUTATING",e[e.NEEDSBBOX="NEEDS_BBOX"]="NEEDSBBOX",e[e.OBSERVABLE="OBSERVABLE"]="OBSERVABLE"}(t.ActionAttributeType||(t.ActionAttributeType={})),function(e){let t,r,n;!function(e){e[e.Deployment="deployment"]="Deployment",e[e.Plan="plan"]="Plan",e[e.Test="test"]="Test",e[e.Flow="flow"]="Flow",e[e.CustomStepGroup="custom_step_group"]="CustomStepGroup"}(t=e.AggregationEntityTypeEnum||(e.AggregationEntityTypeEnum={})),function(e){e[e.Test="test"]="Test",e[e.Flow="flow"]="Flow",e[e.CustomStepGroup="custom_step_group"]="CustomStepGroup"}(r=e.GroupEntityTypeEnum||(e.GroupEntityTypeEnum={})),function(e){e[e.PageSpeedIndex="page_speed_index"]="PageSpeedIndex",e[e.StepExecutionTime="step_execution_time"]="StepExecutionTime"}(n=e.MetricTypeEnum||(e.MetricTypeEnum={}))}(t.AggregateMetric||(t.AggregateMetric={})),function(e){let t;!function(e){e[e.CiCdIntegration="ci_cd_integration"]="CiCdIntegration",e[e.CommandLineInterface="command_line_interface"]="CommandLineInterface",e[e.Custom="custom"]="Custom",e[e.DeploymentTrigger="deployment_trigger"]="DeploymentTrigger",e[e.Execution="execution"]="Execution",e[e.Integration="integration"]="Integration",e[e.IssueTracker="issue_tracker"]="IssueTracker",e[e.LinkAgent="link_agent"]="LinkAgent",e[e.Login="login"]="Login",e[e.SeleniumAgent="selenium_agent"]="SeleniumAgent",e[e.WorkspaceSetup="workspace_setup"]="WorkspaceSetup"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ApiKey||(t.ApiKey={})),function(e){let t;!function(e){e[e.CiCdIntegration="ci_cd_integration"]="CiCdIntegration",e[e.CommandLineInterface="command_line_interface"]="CommandLineInterface",e[e.Custom="custom"]="Custom",e[e.DeploymentTrigger="deployment_trigger"]="DeploymentTrigger",e[e.Execution="execution"]="Execution",e[e.IssueTracker="issue_tracker"]="IssueTracker",e[e.LinkAgent="link_agent"]="LinkAgent",e[e.SeleniumAgent="selenium_agent"]="SeleniumAgent",e[e.WorkspaceSetup="workspace_setup"]="WorkspaceSetup"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ApiKeyCreationRequest||(t.ApiKeyCreationRequest={})),function(e){let t;!function(e){e[e.Error="error"]="Error",e[e.Pending="pending"]="Pending",e[e.Running="running"]="Running",e[e.Success="success"]="Success"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.AsyncValidationRequest||(t.AsyncValidationRequest={})),function(e){let t,r;!function(e){e[e.Feature="feature"]="Feature",e[e.Snapshot="snapshot"]="Snapshot"}(t=e.BranchTypeEnum||(e.BranchTypeEnum={})),function(e){e[e.Merged="merged"]="Merged",e[e.Open="open"]="Open",e[e.Snapshot="snapshot"]="Snapshot"}(r=e.StatusEnum||(e.StatusEnum={}))}(t.Branch||(t.Branch={})),function(e){let t;!function(e){e[e.Test="test"]="Test",e[e.Flow="flow"]="Flow"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.BranchedEntity||(t.BranchedEntity={})),function(e){let t;!function(e){e[e.Default="default"]="Default",e[e.Hours04="hours_04"]="Hours04",e[e.Hours08="hours_08"]="Hours08",e[e.Hours10="hours_10"]="Hours10",e[e.Hours12="hours_12"]="Hours12",e[e.Hours24="hours_24"]="Hours24",e[e.Hours72="hours_72"]="Hours72"}(t=e.SessionTimeoutEnum||(e.SessionTimeoutEnum={}))}(t.Company||(t.Company={})),function(e){let t;!function(e){e[e.Default="default"]="Default",e[e.Hours04="hours_04"]="Hours04",e[e.Hours08="hours_08"]="Hours08",e[e.Hours10="hours_10"]="Hours10",e[e.Hours12="hours_12"]="Hours12",e[e.Hours24="hours_24"]="Hours24",e[e.Hours72="hours_72"]="Hours72"}(t=e.SessionTimeoutEnum||(e.SessionTimeoutEnum={}))}(t.CompanySessionTimeoutUpdateRequest||(t.CompanySessionTimeoutUpdateRequest={})),function(e){let t;!function(e){e[e.Email="email"]="Email",e[e.Link="link"]="Link"}(t=e.InviteTypeEnum||(e.InviteTypeEnum={}))}(t.CreateOrganizationInvitationRequest||(t.CreateOrganizationInvitationRequest={})),function(e){let t;!function(e){e[e.Basic="basic"]="Basic"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.Credentials||(t.Credentials={})),function(e){let t;!function(e){e[e.WebApplication="web_application"]="WebApplication",e[e.Api="api"]="Api"}(t=e.DeploymentTypeEnum||(e.DeploymentTypeEnum={}))}(t.Deployment||(t.Deployment={})),function(e){let t;!function(e){e[e.PortraitPrimary="portrait_primary"]="PortraitPrimary",e[e.PortraitSecondary="portrait_secondary"]="PortraitSecondary",e[e.LandscapePrimary="landscape_primary"]="LandscapePrimary",e[e.LandscapeSecondary="landscape_secondary"]="LandscapeSecondary"}(t=e.OrientationEnum||(e.OrientationEnum={}))}(t.DeviceEmulation||(t.DeviceEmulation={})),function(e){let t,r,n;!function(e){e[e.BlackberryPlaybook="blackberry_playbook"]="BlackberryPlaybook",e[e.BlackberryZ30="blackberry_z30"]="BlackberryZ30",e[e.GalaxyFold="galaxy_fold"]="GalaxyFold",e[e.GalaxyNote3="galaxy_note_3"]="GalaxyNote3",e[e.GalaxyNoteIi="galaxy_note_ii"]="GalaxyNoteIi",e[e.GalaxyS5="galaxy_s5"]="GalaxyS5",e[e.GalaxyS6="galaxy_s6"]="GalaxyS6",e[e.GalaxyS8="galaxy_s8"]="GalaxyS8",e[e.GalaxyS21="galaxy_s21"]="GalaxyS21",e[e.GalaxySIii="galaxy_s_iii"]="GalaxySIii",e[e.GalaxyTabS7="galaxy_tab_s7"]="GalaxyTabS7",e[e.Ipad="ipad"]="Ipad",e[e.IpadAir2020="ipad_air_2020"]="IpadAir2020",e[e.IpadMini="ipad_mini"]="IpadMini",e[e.IpadMini4="ipad_mini_4"]="IpadMini4",e[e.IpadPro="ipad_pro"]="IpadPro",e[e.IpadTenPointTwo="ipad_ten_point_two"]="IpadTenPointTwo",e[e.Iphone11ProMax="iphone_11_pro_max"]="Iphone11ProMax",e[e.Iphone11="iphone_11"]="Iphone11",e[e.Iphone12="iphone_12"]="Iphone12",e[e.Iphone12ProMax="iphone_12_pro_max"]="Iphone12ProMax",e[e.Iphone4="iphone_4"]="Iphone4",e[e.Iphone5Se="iphone_5_se"]="Iphone5Se",e[e.Iphone678="iphone_6_7_8"]="Iphone678",e[e.Iphone678Plus="iphone_6_7_8_plus"]="Iphone678Plus",e[e.IphoneX="iphone_x"]="IphoneX",e[e.Jiophone2="jiophone_2"]="Jiophone2",e[e.KindleFireHdx="kindle_fire_hdx"]="KindleFireHdx",e[e.LaptopWithHidpiScreen="laptop_with_hidpi_screen"]="LaptopWithHidpiScreen",e[e.LaptopWithMdpiScreen="laptop_with_mdpi_screen"]="LaptopWithMdpiScreen",e[e.LaptopWithTouch="laptop_with_touch"]="LaptopWithTouch",e[e.LgOptimusL70="lg_optimus_l70"]="LgOptimusL70",e[e.MicrosoftLumia550="microsoft_lumia_550"]="MicrosoftLumia550",e[e.MicrosoftLumia950="microsoft_lumia_950"]="MicrosoftLumia950",e[e.MotoG4="moto_g4"]="MotoG4",e[e.Nexus4="nexus_4"]="Nexus4",e[e.Nexus5="nexus_5"]="Nexus5",e[e.Nexus5x="nexus_5x"]="Nexus5x",e[e.Nexus6="nexus_6"]="Nexus6",e[e.Nexus6p="nexus_6p"]="Nexus6p",e[e.Nexus7="nexus_7"]="Nexus7",e[e.Nexus10="nexus_10"]="Nexus10",e[e.NokiaLumia520="nokia_lumia_520"]="NokiaLumia520",e[e.NokiaN9="nokia_n9"]="NokiaN9",e[e.Pixel2="pixel_2"]="Pixel2",e[e.Pixel2Xl="pixel_2_xl"]="Pixel2Xl",e[e.Pixel6="pixel_6"]="Pixel6",e[e.SurfaceDuo="surface_duo"]="SurfaceDuo"}(t=e.PresetTypeEnum||(e.PresetTypeEnum={})),function(e){e[e.Phone="phone"]="Phone",e[e.Tablet="tablet"]="Tablet",e[e.Notebook="notebook"]="Notebook"}(r=e.TypeEnum||(e.TypeEnum={})),function(e){e[e.Touch="touch"]="Touch",e[e.Mobile="mobile"]="Mobile"}(n=e.CapabilitiesEnum||(e.CapabilitiesEnum={}))}(t.DeviceEmulationConfiguration||(t.DeviceEmulationConfiguration={})),function(e){let t;!function(e){e[e.FAST="FAST"]="FAST",e[e.NORMAL="NORMAL"]="NORMAL",e[e.SLOW="SLOW"]="SLOW",e[e.SLOWER="SLOWER"]="SLOWER"}(t=e.PageLoadWaitEnum||(e.PageLoadWaitEnum={}))}(t.Environment||(t.Environment={})),function(e){let t;!function(e){e[e.Email="email"]="Email"}(t=e.InputTypeEnum||(e.InputTypeEnum={}))}(t.ExecutionInput||(t.ExecutionInput={})),function(e){let t;!function(e){e[e.Webhook="webhook"]="Webhook",e[e.Email="email"]="Email"}(t=e.NotificationTypeEnum||(e.NotificationTypeEnum={}))}(t.ExecutionNotification||(t.ExecutionNotification={})),function(e){let t;!function(e){e[e.Value="value"]="Value",e[e.Credentials="credentials"]="Credentials",e[e.Variables="variables"]="Variables",e[e.IgnoreVariables="ignore_variables"]="IgnoreVariables"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ExecutionParameter||(t.ExecutionParameter={})),function(e){let t;!function(e){e[e.Sequential="sequential"]="Sequential",e[e.Parallel="parallel"]="Parallel"}(t=e.ConcurrencyEnum||(e.ConcurrencyEnum={}))}(t.ExecutionStage||(t.ExecutionStage={})),function(e){let t;!function(e){e[e.Queued="queued"]="Queued",e[e.PreExecution="pre_execution"]="PreExecution",e[e.Scheduling="scheduling"]="Scheduling",e[e.Scheduled="scheduled"]="Scheduled",e[e.Succeeded="succeeded"]="Succeeded",e[e.Failed="failed"]="Failed",e[e.Cancelled="cancelled"]="Cancelled",e[e.PostExecution="post_execution"]="PostExecution",e[e.Completed="completed"]="Completed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.ExecutionSummary||(t.ExecutionSummary={})),function(e){let t,r;!function(e){e[e.Queued="queued"]="Queued",e[e.Running="running"]="Running",e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={})),function(e){e[e.Screenshots="screenshots"]="Screenshots",e[e.Doms="doms"]="Doms",e[e.Traces="traces"]="Traces",e[e.Hars="hars"]="Hars"}(r=e.TargetContentEnum||(e.TargetContentEnum={}))}(t.ExportRequest||(t.ExportRequest={})),function(e){let t,r,n,i;!function(e){e[e.None="none"]="None",e[e.Update="update"]="Update",e[e.Heal="heal"]="Heal"}(t=e.SelectorUpdateTypeEnum||(e.SelectorUpdateTypeEnum={})),function(e){e[e.Ancestor="ancestor"]="Ancestor",e[e.Target="target"]="Target"}(r=e.SelectorTypeEnum||(e.SelectorTypeEnum={})),function(e){e[e.TargetOnly="target_only"]="TargetOnly",e[e.AncestorTarget="ancestor_target"]="AncestorTarget"}(n=e.FindDescriptorTypeEnum||(e.FindDescriptorTypeEnum={})),function(e){e[e.All="find_all"]="All",e[e.Any="find_any"]="Any",e[e.First="find_first"]="First",e[e.Last="find_last"]="Last",e[e.One="find_one"]="One"}(i=e.FindActionTypeEnum||(e.FindActionTypeEnum={}))}(t.FindDigest||(t.FindDigest={})),function(e){let t,r;!function(e){e[e.ValidatePage="validate_page"]="ValidatePage",e[e.Login="login"]="Login",e[e.VerifyUrl="verify_url"]="VerifyUrl",e[e.Mablscript="mablscript"]="Mablscript",e[e.CheckLinks="check_links"]="CheckLinks",e[e.VisualPageValidation="visual_page_validation"]="VisualPageValidation",e[e.Api="api"]="Api"}(t=e.FlowTypeEnum||(e.FlowTypeEnum={})),function(e){e[e.Postman="postman"]="Postman",e[e.SeleniumNodeProxy="selenium_node_proxy"]="SeleniumNodeProxy",e[e.SeleniumJavaAgent="selenium_java_agent"]="SeleniumJavaAgent"}(r=e.ImportSourceIdEnum||(e.ImportSourceIdEnum={}))}(t.Flow||(t.Flow={})),function(e){let t;!function(e){e[e.Create="create"]="Create",e[e.Update="update"]="Update"}(t=e.UpdateTypeEnum||(e.UpdateTypeEnum={}))}(t.FlowUpdateFlows||(t.FlowUpdateFlows={})),function(e){let t,r;!function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser"}(t=e.TestTypeEnum||(e.TestTypeEnum={})),function(e){e[e.Chrome="chrome"]="Chrome",e[e.Edge="edge"]="Edge",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(r=e.BrowserTypeEnum||(e.BrowserTypeEnum={}))}(t.GeneralExecutionMessage||(t.GeneralExecutionMessage={})),function(e){let t;!function(e){e[e.Alert="alert"]="Alert",e[e.Warning="warning"]="Warning",e[e.Ok="ok"]="Ok",e[e.Improvement="improvement"]="Improvement",e[e.Info="info"]="Info"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.Insight||(t.Insight={})),function(e){let t;!function(e){e[e.Plan="plan"]="Plan",e[e.Test="test"]="Test",e[e.TestRun="test_run"]="TestRun"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.IssueCreatedFromEntity||(t.IssueCreatedFromEntity={})),function(e){let t;!function(e){e[e.Project="project"]="Project",e[e.Issuetype="issuetype"]="Issuetype",e[e.User="user"]="User",e[e.Priority="priority"]="Priority",e[e.Text="text"]="Text",e[e.Textarea="textarea"]="Textarea",e[e.Labels="labels"]="Labels",e[e.Number="number"]="Number",e[e.Date="date"]="Date",e[e.Datetime="datetime"]="Datetime",e[e.Checkboxes="checkboxes"]="Checkboxes",e[e.Radiobuttons="radiobuttons"]="Radiobuttons"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.IssueSchemaField||(t.IssueSchemaField={})),function(e){let t;!function(e){e[e.Fixed="fixed"]="Fixed",e[e.Variable="variable"]="Variable",e[e.Array="array"]="Array"}(t=e.IterationTypeEnum||(e.IterationTypeEnum={}))}(t.IterationConfiguration||(t.IterationConfiguration={})),function(e){let t;!function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser",e[e.Manual="manual"]="Manual"}(t=e.TestTypeEnum||(e.TestTypeEnum={}))}(t.Journey||(t.Journey={})),function(e){let t;!function(e){e[e.FAST="FAST"]="FAST",e[e.NORMAL="NORMAL"]="NORMAL",e[e.SLOW="SLOW"]="SLOW",e[e.SLOWER="SLOWER"]="SLOWER"}(t=e.PageLoadWaitEnum||(e.PageLoadWaitEnum={}))}(t.JourneyParameters||(t.JourneyParameters={})),function(e){let t,r,n,i;!function(e){e[e.Container="container"]="Container",e[e.VirtualMachine="virtual_machine"]="VirtualMachine"}(t=e.ExecutionRuntimeTypeEnum||(e.ExecutionRuntimeTypeEnum={})),function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(r=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={})),function(e){e[e.AwaitingPrecondition="awaiting_precondition"]="AwaitingPrecondition",e[e.Skipped="skipped"]="Skipped",e[e.Queued="queued"]="Queued",e[e.Running="running"]="Running",e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated"}(n=e.StatusEnum||(e.StatusEnum={})),function(e){e[e.ExecutionComplete="execution_complete"]="ExecutionComplete",e[e.ExecutionOvertime="execution_overtime"]="ExecutionOvertime",e[e.HeartbeatLost="heartbeat_lost"]="HeartbeatLost",e[e.InsufficientResources="insufficient_resources"]="InsufficientResources",e[e.StartupOvertime="startup_overtime"]="StartupOvertime",e[e.StopRequested="stop_requested"]="StopRequested",e[e.Unknown="unknown"]="Unknown"}(i=e.TerminationReasonEnum||(e.TerminationReasonEnum={}))}(t.JourneyRun||(t.JourneyRun={})),function(e){let t;!function(e){e[e.Queued="queued"]="Queued",e[e.Running="running"]="Running",e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated",e[e.Skipped="skipped"]="Skipped"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.JourneyRunResult||(t.JourneyRunResult={})),function(e){let t,r;!function(e){e[e.Ssl="ssl"]="Ssl",e[e.Https="https"]="Https",e[e.Wss="wss"]="Wss"}(t=e.ProtocolEnum||(e.ProtocolEnum={})),function(e){e[e.Initializing="initializing"]="Initializing",e[e.Updating="updating"]="Updating",e[e.Announcing="announcing"]="Announcing",e[e.Locating="locating"]="Locating",e[e.Connecting="connecting"]="Connecting",e[e.Ready="ready"]="Ready",e[e.Terminated="terminated"]="Terminated"}(r=e.StatusEnum||(e.StatusEnum={}))}(t.LinkAgent||(t.LinkAgent={})),function(e){let t;!function(e){e[e.Tbz2="tbz2"]="Tbz2",e[e.Zip="zip"]="Zip"}(t=e.FormatEnum||(e.FormatEnum={}))}(t.LinkAgentDistribution||(t.LinkAgentDistribution={})),function(e){let t;!function(e){e[e.Starting="starting"]="Starting",e[e.Running="running"]="Running"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.LinkServer||(t.LinkServer={})),function(e){let t;!function(e){e[e.Auth0="auth0"]="Auth0",e[e.Okta="okta"]="Okta"}(t=e.ProviderEnum||(e.ProviderEnum={}))}(t.LoginProviderResult||(t.LoginProviderResult={})),function(e){let t,r;!function(e){e[e.Ancestor="ancestor"]="Ancestor",e[e.Target="target"]="Target"}(t=e.SelectorTypeEnum||(e.SelectorTypeEnum={})),function(e){e[e.TargetOnly="target_only"]="TargetOnly",e[e.AncestorTarget="ancestor_target"]="AncestorTarget"}(r=e.FindTypeEnum||(e.FindTypeEnum={}))}(t.MablscriptOverride||(t.MablscriptOverride={})),function(e){e[e.Appimage="appimage"]="Appimage",e[e.Deb="deb"]="Deb",e[e.Pacman="pacman"]="Pacman",e[e.Rpm="rpm"]="Rpm",e[e.Targz="targz"]="Targz"}(t.MabltronPackaging||(t.MabltronPackaging={})),function(e){e[e.Windows="windows"]="Windows",e[e.WindowsAdvanced="windows-advanced"]="WindowsAdvanced",e[e.Macos="macos"]="Macos",e[e.Linux="linux"]="Linux"}(t.MabltronPlatform||(t.MabltronPlatform={})),function(e){let t;!function(e){e[e.Event="event"]="Event",e[e.Day="day"]="Day",e[e.Hour="hour"]="Hour"}(t=e.IntervalTypeEnum||(e.IntervalTypeEnum={}))}(t.Metrics||(t.Metrics={})),function(e){let t;!function(e){e[e.Event="event"]="Event",e[e.Day="day"]="Day",e[e.Hour="hour"]="Hour"}(t=e.IntervalTypeEnum||(e.IntervalTypeEnum={}))}(t.MetricsSummaryPoints||(t.MetricsSummaryPoints={})),function(e){let t;!function(e){e[e.Ingress="ingress"]="Ingress",e[e.Egress="egress"]="Egress"}(t=e.ConnectionTypeEnum||(e.ConnectionTypeEnum={}))}(t.NetworkConnection||(t.NetworkConnection={})),function(e){let t;!function(e){e[e.Testrun="testrun"]="Testrun"}(t=e.ResourceTypeEnum||(e.ResourceTypeEnum={}))}(t.Note||(t.Note={})),function(e){let t;!function(e){e[e.Slack="slack"]="Slack",e[e.Jira="jira"]="Jira",e[e.Segment="segment"]="Segment"}(t=e.TokenTypeEnum||(e.TokenTypeEnum={}))}(t.OauthCode||(t.OauthCode={})),function(e){let t;!function(e){e[e.Segment="segment"]="Segment",e[e.Slack="slack"]="Slack",e[e.Jira="jira"]="Jira"}(t=e.TokenTypeEnum||(e.TokenTypeEnum={}))}(t.OauthToken||(t.OauthToken={})),function(e){let t;!function(e){e[e.Email="email"]="Email",e[e.Link="link"]="Link"}(t=e.InviteTypeEnum||(e.InviteTypeEnum={}))}(t.OrganizationInvitation||(t.OrganizationInvitation={})),function(e){let t;!function(e){e[e.Queued="queued"]="Queued",e[e.PreExecution="pre_execution"]="PreExecution",e[e.Scheduling="scheduling"]="Scheduling",e[e.Scheduled="scheduled"]="Scheduled",e[e.Succeeded="succeeded"]="Succeeded",e[e.Failed="failed"]="Failed",e[e.Cancelled="cancelled"]="Cancelled",e[e.PostExecution="post_execution"]="PostExecution",e[e.Completed="completed"]="Completed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.PlanExecutionResult||(t.PlanExecutionResult={})),function(e){let t,r,n;!function(e){e[e.Chrome="chrome"]="Chrome",e[e.Edge="edge"]="Edge",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(t=e.BrowserTypeEnum||(e.BrowserTypeEnum={})),function(e){e[e.Desktop="desktop"]="Desktop",e[e.MobileWeb="mobile_web"]="MobileWeb"}(r=e.EmulationModeEnum||(e.EmulationModeEnum={})),function(e){e[e.Playwright="playwright"]="Playwright",e[e.Puppeteer="puppeteer"]="Puppeteer"}(n=e.NodejsRuntimeVariantEnum||(e.NodejsRuntimeVariantEnum={}))}(t.PlanOverrideOptions||(t.PlanOverrideOptions={})),function(e){let t,r,n;!function(e){e[e.Queued="queued"]="Queued",e[e.PreExecution="pre_execution"]="PreExecution",e[e.Scheduling="scheduling"]="Scheduling",e[e.Scheduled="scheduled"]="Scheduled",e[e.Succeeded="succeeded"]="Succeeded",e[e.Failed="failed"]="Failed",e[e.Cancelled="cancelled"]="Cancelled",e[e.PostExecution="post_execution"]="PostExecution",e[e.Completed="completed"]="Completed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={})),function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(r=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={})),function(e){e[e.Manual="manual"]="Manual",e[e.Retry="retry"]="Retry",e[e.Schedule="schedule"]="Schedule",e[e.CustomerEvent="customer_event"]="CustomerEvent",e[e.Insight="insight"]="Insight"}(n=e.TriggerTypeEnum||(e.TriggerTypeEnum={}))}(t.PlanRun||(t.PlanRun={})),function(e){let t;!function(e){e[e.Event="event"]="Event",e[e.Insight="insight"]="Insight",e[e.RunPolicyExecution="runPolicyExecution"]="RunPolicyExecution",e[e.MablScheduler="mabl_scheduler"]="MablScheduler",e[e.MicrosoftTeamsWebhookIntegration="microsoft_teams_webhook_integration"]="MicrosoftTeamsWebhookIntegration",e[e.SlackIntegration="slack_integration"]="SlackIntegration",e[e.User="user"]="User"}(t=e.TriggeringResourceTypeEnum||(e.TriggeringResourceTypeEnum={}))}(t.PlanRunDuplicationRequest||(t.PlanRunDuplicationRequest={})),function(e){let t,r;!function(e){e[e.PlanSummary="plan_summary"]="PlanSummary",e[e.WorkspaceSummary="workspace_summary"]="WorkspaceSummary"}(t=e.ReportTypeEnum||(e.ReportTypeEnum={})),function(e){e[e.Email="email"]="Email"}(r=e.MediumEnum||(e.MediumEnum={}))}(t.Report||(t.Report={})),function(e){let t;!function(e){e[e.ReleaseCoverageTestsRun="release_coverage_tests_run"]="ReleaseCoverageTestsRun"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ReportSetting||(t.ReportSetting={})),function(e){let t,r,n,i,a;!function(e){e[e.FAST="FAST"]="FAST",e[e.NORMAL="NORMAL"]="NORMAL",e[e.SLOW="SLOW"]="SLOW",e[e.SLOWER="SLOWER"]="SLOWER",e[e.INHERIT="INHERIT"]="INHERIT"}(t=e.PageLoadWaitEnum||(e.PageLoadWaitEnum={})),function(e){e[e.Chrome="chrome"]="Chrome",e[e.Edge="edge"]="Edge",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(r=e.BrowserTypeEnum||(e.BrowserTypeEnum={})),function(e){e[e.Desktop="desktop"]="Desktop",e[e.MobileWeb="mobile_web"]="MobileWeb"}(n=e.EmulationModeEnum||(e.EmulationModeEnum={})),function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(i=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={})),function(e){e[e.Playwright="playwright"]="Playwright",e[e.Puppeteer="puppeteer"]="Puppeteer"}(a=e.NodejsRuntimeVariantEnum||(e.NodejsRuntimeVariantEnum={}))}(t.RunPolicy||(t.RunPolicy={})),function(e){let t;!function(e){e[e.Read="read"]="Read",e[e.Write="write"]="Write"}(t=e.PermissionEnum||(e.PermissionEnum={}))}(t.Scope||(t.Scope={})),function(e){let t;!function(e){e[e.Heal="heal"]="Heal",e[e.Update="update"]="Update"}(t=e.OverrideTypeEnum||(e.OverrideTypeEnum={}))}(t.SelectorOverride||(t.SelectorOverride={})),function(e){let t;!function(e){e[e.Css="css"]="Css",e[e.Javascript="javascript"]="Javascript",e[e.Xpath="xpath"]="Xpath"}(t=e.SnippetTypeEnum||(e.SnippetTypeEnum={}))}(t.Snippet||(t.Snippet={})),function(e){let t,r;!function(e){e[e.TLSv1="TLSv1"]="TLSv1",e[e.TLSv11="TLSv1_1"]="TLSv11",e[e.TLSv12="TLSv1_2"]="TLSv12",e[e.TLSv13="TLSv1_3"]="TLSv13"}(t=e.MinVersionEnum||(e.MinVersionEnum={})),function(e){e[e.TLSv1="TLSv1"]="TLSv1",e[e.TLSv11="TLSv1_1"]="TLSv11",e[e.TLSv12="TLSv1_2"]="TLSv12",e[e.TLSv13="TLSv1_3"]="TLSv13"}(r=e.MaxVersionEnum||(e.MaxVersionEnum={}))}(t.SslOptions||(t.SslOptions={})),function(e){let t,r;!function(e){e[e.JourneyExecutions="journey_executions"]="JourneyExecutions",e[e.Executions="executions"]="Executions",e[e.Monthly="monthly"]="Monthly",e[e.Quarterly="quarterly"]="Quarterly",e[e.Yearly="yearly"]="Yearly"}(t=e.PlanTypeEnum||(e.PlanTypeEnum={})),function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser"}(r=e.PlanSubtypeEnum||(e.PlanSubtypeEnum={}))}(t.Subscription||(t.Subscription={})),function(e){let t;!function(e){e[e.BackDate="back_date"]="BackDate",e[e.Immediate="immediate"]="Immediate",e[e.PeriodEnd="period_end"]="PeriodEnd"}(t=e.RolloverTimingOptionsEnum||(e.RolloverTimingOptionsEnum={}))}(t.SubscriptionUpdate||(t.SubscriptionUpdate={})),function(e){let t,r;!function(e){e[e.Monthly="monthly"]="Monthly",e[e.Quarterly="quarterly"]="Quarterly",e[e.Yearly="yearly"]="Yearly",e[e.JourneyExecutions="journey_executions"]="JourneyExecutions",e[e.Executions="executions"]="Executions"}(t=e.PlanTypeEnum||(e.PlanTypeEnum={})),function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser"}(r=e.PlanSubtypeEnum||(e.PlanSubtypeEnum={}))}(t.SubscriptionUpdatePricingPlans||(t.SubscriptionUpdatePricingPlans={})),function(e){let t;!function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(t=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={}))}(t.TestRunDuplicationRequest||(t.TestRunDuplicationRequest={})),function(e){let t,r;!function(e){e[e.BlackberryPlaybook="blackberry_playbook"]="BlackberryPlaybook",e[e.BlackberryZ30="blackberry_z30"]="BlackberryZ30",e[e.GalaxyFold="galaxy_fold"]="GalaxyFold",e[e.GalaxyNote3="galaxy_note_3"]="GalaxyNote3",e[e.GalaxyNoteIi="galaxy_note_ii"]="GalaxyNoteIi",e[e.GalaxyS5="galaxy_s5"]="GalaxyS5",e[e.GalaxyS6="galaxy_s6"]="GalaxyS6",e[e.GalaxyS8="galaxy_s8"]="GalaxyS8",e[e.GalaxyS21="galaxy_s21"]="GalaxyS21",e[e.GalaxySIii="galaxy_s_iii"]="GalaxySIii",e[e.GalaxyTabS7="galaxy_tab_s7"]="GalaxyTabS7",e[e.Ipad="ipad"]="Ipad",e[e.IpadAir2020="ipad_air_2020"]="IpadAir2020",e[e.IpadMini="ipad_mini"]="IpadMini",e[e.IpadMini4="ipad_mini_4"]="IpadMini4",e[e.IpadPro="ipad_pro"]="IpadPro",e[e.IpadTenPointTwo="ipad_ten_point_two"]="IpadTenPointTwo",e[e.Iphone11ProMax="iphone_11_pro_max"]="Iphone11ProMax",e[e.Iphone11="iphone_11"]="Iphone11",e[e.Iphone12="iphone_12"]="Iphone12",e[e.Iphone12ProMax="iphone_12_pro_max"]="Iphone12ProMax",e[e.Iphone4="iphone_4"]="Iphone4",e[e.Iphone5Se="iphone_5_se"]="Iphone5Se",e[e.Iphone678="iphone_6_7_8"]="Iphone678",e[e.Iphone678Plus="iphone_6_7_8_plus"]="Iphone678Plus",e[e.IphoneX="iphone_x"]="IphoneX",e[e.Jiophone2="jiophone_2"]="Jiophone2",e[e.KindleFireHdx="kindle_fire_hdx"]="KindleFireHdx",e[e.LaptopWithHidpiScreen="laptop_with_hidpi_screen"]="LaptopWithHidpiScreen",e[e.LaptopWithMdpiScreen="laptop_with_mdpi_screen"]="LaptopWithMdpiScreen",e[e.LaptopWithTouch="laptop_with_touch"]="LaptopWithTouch",e[e.LgOptimusL70="lg_optimus_l70"]="LgOptimusL70",e[e.MicrosoftLumia550="microsoft_lumia_550"]="MicrosoftLumia550",e[e.MicrosoftLumia950="microsoft_lumia_950"]="MicrosoftLumia950",e[e.MotoG4="moto_g4"]="MotoG4",e[e.Nexus4="nexus_4"]="Nexus4",e[e.Nexus5="nexus_5"]="Nexus5",e[e.Nexus5x="nexus_5x"]="Nexus5x",e[e.Nexus6="nexus_6"]="Nexus6",e[e.Nexus6p="nexus_6p"]="Nexus6p",e[e.Nexus7="nexus_7"]="Nexus7",e[e.Nexus10="nexus_10"]="Nexus10",e[e.NokiaLumia520="nokia_lumia_520"]="NokiaLumia520",e[e.NokiaN9="nokia_n9"]="NokiaN9",e[e.Pixel2="pixel_2"]="Pixel2",e[e.Pixel2Xl="pixel_2_xl"]="Pixel2Xl",e[e.Pixel6="pixel_6"]="Pixel6",e[e.SurfaceDuo="surface_duo"]="SurfaceDuo"}(t=e.DeviceEmulationPresetTypeEnum||(e.DeviceEmulationPresetTypeEnum={})),function(e){e[e.PortraitPrimary="portrait_primary"]="PortraitPrimary",e[e.PortraitSecondary="portrait_secondary"]="PortraitSecondary",e[e.LandscapePrimary="landscape_primary"]="LandscapePrimary",e[e.LandscapeSecondary="landscape_secondary"]="LandscapeSecondary"}(r=e.DeviceEmulationOrientationEnum||(e.DeviceEmulationOrientationEnum={}))}(t.TestRunSummary||(t.TestRunSummary={})),function(e){let t;!function(e){e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated",e[e.NoStatus="no_status"]="NoStatus"}(t=e.RecentStatusEnum||(e.RecentStatusEnum={}))}(t.TestStatus||(t.TestStatus={})),function(e){let t;!function(e){e[e.Timer="timer"]="Timer",e[e.Event="event"]="Event",e[e.Schedule="schedule"]="Schedule",e[e.Insight="insight"]="Insight",e[e.PlanExecution="plan_execution"]="PlanExecution"}(t=e.TriggerTypeEnum||(e.TriggerTypeEnum={}))}(t.Trigger||(t.Trigger={})),function(e){let t;!function(e){e[e.Owner="owner"]="Owner",e[e.Editor="editor"]="Editor",e[e.Viewer="viewer"]="Viewer"}(t=e.RoleEnum||(e.RoleEnum={}))}(t.UserCompanyRole||(t.UserCompanyRole={})),function(e){let t,r;!function(e){e[e.Standard="standard"]="Standard",e[e.Dark="dark"]="Dark"}(t=e.WebUiThemeEnum||(e.WebUiThemeEnum={})),function(e){e[e.ChromeExtension="chrome_extension"]="ChromeExtension",e[e.Electron="electron"]="Electron"}(r=e.TrainerTypeEnum||(e.TrainerTypeEnum={}))}(t.UserPreferences||(t.UserPreferences={})),function(e){let t,r;!function(e){e[e.Owner="owner"]="Owner",e[e.Editor="editor"]="Editor",e[e.Viewer="viewer"]="Viewer"}(t=e.RoleEnum||(e.RoleEnum={})),function(e){e[e.RequiresAcknowledgement="requires_acknowledgement"]="RequiresAcknowledgement",e[e.Acknowledged="acknowledged"]="Acknowledged"}(r=e.AcknowledgedStatusEnum||(e.AcknowledgedStatusEnum={}))}(t.UserRole||(t.UserRole={})),function(e){let t;!function(e){e[e.Auth0="auth0"]="Auth0",e[e.Okta="okta"]="Okta"}(t=e.SourceEnum||(e.SourceEnum={}))}(t.UserWithAllAttributes||(t.UserWithAllAttributes={})),function(e){let t;!function(e){e[e.Chrome="chrome"]="Chrome"}(t=e.BrowserTypeEnum||(e.BrowserTypeEnum={}))}(t.WebEmulationConfiguration||(t.WebEmulationConfiguration={})),function(e){let t,r,n;!function(e){e[e.Image="image"]="Image"}(t=e.ArtifactTypesEnum||(e.ArtifactTypesEnum={})),function(e){e[e.Chrome="chrome"]="Chrome",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(r=e.BrowserTypesEnum||(e.BrowserTypesEnum={})),function(e){e[e.Ascending="ascending"]="Ascending",e[e.Descending="descending"]="Descending"}(n=e.CreatedTimeSortEnum||(e.CreatedTimeSortEnum={}))}(t.WorkspaceArtifactQueryRequest||(t.WorkspaceArtifactQueryRequest={})),function(e){let t,r,n;!function(e){e[e.Slack="slack"]="Slack",e[e.GithubApp="github_app"]="GithubApp",e[e.JiraServerPlugin="jira_server_plugin"]="JiraServerPlugin",e[e.Jira="jira"]="Jira",e[e.AtlassianConnect="atlassian_connect"]="AtlassianConnect",e[e.ExportFeedGoogleBigquery="export_feed_google_bigquery"]="ExportFeedGoogleBigquery",e[e.ExportFeedGoogleCloudStorage="export_feed_google_cloud_storage"]="ExportFeedGoogleCloudStorage",e[e.ExportFeedGooglePubsub="export_feed_google_pubsub"]="ExportFeedGooglePubsub",e[e.Segment="segment"]="Segment",e[e.MicrosoftTeamsWebhook="microsoft_teams_webhook"]="MicrosoftTeamsWebhook"}(t=e.IntegrationTypeEnum||(e.IntegrationTypeEnum={})),function(e){e[e.IssueTracker="issue_tracker"]="IssueTracker",e[e.SourceControlManagement="source_control_management"]="SourceControlManagement"}(r=e.IntegrationCategoriesEnum||(e.IntegrationCategoriesEnum={})),function(e){e[e.Success="success"]="Success",e[e.Error="error"]="Error",e[e.Pending="pending"]="Pending"}(n=e.StatusEnum||(e.StatusEnum={}))}(t.WorkspaceIntegration||(t.WorkspaceIntegration={})),function(e){let t;!function(e){e[e.Slack="slack"]="Slack",e[e.GithubApp="github_app"]="GithubApp",e[e.Jira="jira"]="Jira",e[e.AtlassianConnect="atlassian_connect"]="AtlassianConnect",e[e.ExportFeedGoogleBigquery="export_feed_google_bigquery"]="ExportFeedGoogleBigquery",e[e.ExportFeedGoogleCloudStorage="export_feed_google_cloud_storage"]="ExportFeedGoogleCloudStorage",e[e.ExportFeedGooglePubsub="export_feed_google_pubsub"]="ExportFeedGooglePubsub",e[e.Segment="segment"]="Segment"}(t=e.IntegrationTypeEnum||(e.IntegrationTypeEnum={}))}(t.WorkspaceIntegrationClaimRequest||(t.WorkspaceIntegrationClaimRequest={})),function(e){let t;!function(e){e[e.Alert="alert"]="Alert",e[e.Warning="warning"]="Warning",e[e.Ok="ok"]="Ok",e[e.Improvement="improvement"]="Improvement",e[e.Info="info"]="Info"}(t=e.ExclusionStatusesEnum||(e.ExclusionStatusesEnum={}))}(t.WorkspaceIntegrationConfig||(t.WorkspaceIntegrationConfig={})),function(e){let t;!function(e){e[e.Jira="jira"]="Jira",e[e.Confluence="confluence"]="Confluence"}(t=e.ProductTypeEnum||(e.ProductTypeEnum={}))}(t.WorkspaceIntegrationConfigAtlassianConnect||(t.WorkspaceIntegrationConfigAtlassianConnect={})),function(e){let t;!function(e){e[e.Created="created"]="Created",e[e.Deleted="deleted"]="Deleted",e[e.NewPermissionsAccepted="new_permissions_accepted"]="NewPermissionsAccepted"}(t=e.InstallationStatusEnum||(e.InstallationStatusEnum={}))}(t.WorkspaceIntegrationConfigGithub||(t.WorkspaceIntegrationConfigGithub={})),function(e){let t;!function(e){e[e.Error="error"]="Error",e[e.Pending="pending"]="Pending",e[e.Running="running"]="Running",e[e.Success="success"]="Success"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.ValidateUrl||(t.ValidateUrl={})),function(e){let t;!function(e){e[e.CERTHOSTNAMEMISMATCH="CERT_HOSTNAME_MISMATCH"]="CERTHOSTNAMEMISMATCH",e[e.HTTPVERSIONUNSUPPORTED="HTTP_VERSION_UNSUPPORTED"]="HTTPVERSIONUNSUPPORTED",e[e.MALFORMEDURL="MALFORMED_URL"]="MALFORMEDURL",e[e.METHODUNSUPPORTED="METHOD_UNSUPPORTED"]="METHODUNSUPPORTED",e[e.NORESPONSE="NO_RESPONSE"]="NORESPONSE",e[e.REDIRECTLIMIT="REDIRECT_LIMIT"]="REDIRECTLIMIT",e[e.SERVERERROR="SERVER_ERROR"]="SERVERERROR",e[e.SOCKETEXCEPTION="SOCKET_EXCEPTION"]="SOCKETEXCEPTION",e[e.SSLERROR="SSL_ERROR"]="SSLERROR",e[e.TIMEOUT="TIMEOUT"]="TIMEOUT",e[e.TUNNELREFUSED="TUNNEL_REFUSED"]="TUNNELREFUSED",e[e.UNKNOWNHOST="UNKNOWN_HOST"]="UNKNOWNHOST",e[e.UNKNOWN="UNKNOWN"]="UNKNOWN",e[e.UNREACHABLE="UNREACHABLE"]="UNREACHABLE",e[e.BADREQUEST="BAD_REQUEST"]="BADREQUEST"}(t=e.ErrorCodeEnum||(e.ErrorCodeEnum={}))}(t.ValidateUrlResult||(t.ValidateUrlResult={}));t.AccountApiFetchParamCreator=function(e){return{createAccount(t,r,a={}){if(null==t)throw new u("account","Required parameter account was null or undefined when calling createAccount.");if(null==r)throw new u("organizationId","Required parameter organizationId was null or undefined when calling createAccount.");const o=n.parse("/accounts",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.organizationId=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},getAccount(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getAccount.");const a="/accounts/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryAccounts(t,r,a,o={}){const s=n.parse("/accounts",!0),u=Object.assign({method:"GET"},o),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.company_id=t),void 0!==r&&(c.limit=r),void 0!==a&&(c.cursor=a),s.query=Object.assign({},s.query,c,o.query),delete s.search,u.headers=Object.assign({},p,o.headers),{url:n.format(s),options:u}},queryPlans(t={}){const r=n.parse("/accounts/plans",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},queryProducts(t={}){const r=n.parse("/accounts/products",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},recoverAccount(t,r={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling recoverAccount.");const a="/recover/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeAccount(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeAccount.");const a="/accounts/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},setBillingDetails(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setBillingDetails.");if(null==r)throw new u("billingDetails","Required parameter billingDetails was null or undefined when calling setBillingDetails.");const o="/accounts/{accountId}/billing".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},setFeatureOverrides(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setFeatureOverrides.");if(null==r)throw new u("account","Required parameter account was null or undefined when calling setFeatureOverrides.");const o="/accounts/{accountId}/features".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},setPaymentDetails(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setPaymentDetails.");if(null==r)throw new u("billingDetails","Required parameter billingDetails was null or undefined when calling setPaymentDetails.");const o="/accounts/{accountId}/payment".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},setSubscriptionDetails(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setSubscriptionDetails.");if(null==r)throw new u("subscriptionDetails","Required parameter subscriptionDetails was null or undefined when calling setSubscriptionDetails.");const o="/accounts/{accountId}/subscription".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},unsubscribe(t,r={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling unsubscribe.");const a="/accounts/{accountId}/subscription".replace("{accountId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateAccount(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateAccount.");if(null==r)throw new u("account","Required parameter account was null or undefined when calling updateAccount.");const o="/accounts/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.AccountApiFp=function(e){return{createAccount(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).createAccount(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getAccount(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).getAccount(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryAccounts(r,n,i,s){const u=(0,t.AccountApiFetchParamCreator)(e).queryAccounts(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryPlans(r){const n=(0,t.AccountApiFetchParamCreator)(e).queryPlans(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryProducts(r){const n=(0,t.AccountApiFetchParamCreator)(e).queryProducts(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverAccount(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).recoverAccount(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeAccount(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).removeAccount(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setBillingDetails(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setBillingDetails(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setFeatureOverrides(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setFeatureOverrides(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setPaymentDetails(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setPaymentDetails(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setSubscriptionDetails(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setSubscriptionDetails(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},unsubscribe(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).unsubscribe(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateAccount(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).updateAccount(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.AccountApiFactory=function(e,r,n){return{createAccount:(i,a,o)=>(0,t.AccountApiFp)(e).createAccount(i,a,o)(r,n),getAccount:(i,a)=>(0,t.AccountApiFp)(e).getAccount(i,a)(r,n),queryAccounts:(i,a,o,s)=>(0,t.AccountApiFp)(e).queryAccounts(i,a,o,s)(r,n),queryPlans:i=>(0,t.AccountApiFp)(e).queryPlans(i)(r,n),queryProducts:i=>(0,t.AccountApiFp)(e).queryProducts(i)(r,n),recoverAccount:(i,a)=>(0,t.AccountApiFp)(e).recoverAccount(i,a)(r,n),removeAccount:(i,a)=>(0,t.AccountApiFp)(e).removeAccount(i,a)(r,n),setBillingDetails:(i,a,o)=>(0,t.AccountApiFp)(e).setBillingDetails(i,a,o)(r,n),setFeatureOverrides:(i,a,o)=>(0,t.AccountApiFp)(e).setFeatureOverrides(i,a,o)(r,n),setPaymentDetails:(i,a,o)=>(0,t.AccountApiFp)(e).setPaymentDetails(i,a,o)(r,n),setSubscriptionDetails:(i,a,o)=>(0,t.AccountApiFp)(e).setSubscriptionDetails(i,a,o)(r,n),unsubscribe:(i,a)=>(0,t.AccountApiFp)(e).unsubscribe(i,a)(r,n),updateAccount:(i,a,o)=>(0,t.AccountApiFp)(e).updateAccount(i,a,o)(r,n)}};t.AccountApi=class extends s{createAccount(e,r,n){return(0,t.AccountApiFp)(this.configuration).createAccount(e,r,n)(this.fetch,this.basePath)}getAccount(e,r){return(0,t.AccountApiFp)(this.configuration).getAccount(e,r)(this.fetch,this.basePath)}queryAccounts(e,r,n,i){return(0,t.AccountApiFp)(this.configuration).queryAccounts(e,r,n,i)(this.fetch,this.basePath)}queryPlans(e){return(0,t.AccountApiFp)(this.configuration).queryPlans(e)(this.fetch,this.basePath)}queryProducts(e){return(0,t.AccountApiFp)(this.configuration).queryProducts(e)(this.fetch,this.basePath)}recoverAccount(e,r){return(0,t.AccountApiFp)(this.configuration).recoverAccount(e,r)(this.fetch,this.basePath)}removeAccount(e,r){return(0,t.AccountApiFp)(this.configuration).removeAccount(e,r)(this.fetch,this.basePath)}setBillingDetails(e,r,n){return(0,t.AccountApiFp)(this.configuration).setBillingDetails(e,r,n)(this.fetch,this.basePath)}setFeatureOverrides(e,r,n){return(0,t.AccountApiFp)(this.configuration).setFeatureOverrides(e,r,n)(this.fetch,this.basePath)}setPaymentDetails(e,r,n){return(0,t.AccountApiFp)(this.configuration).setPaymentDetails(e,r,n)(this.fetch,this.basePath)}setSubscriptionDetails(e,r,n){return(0,t.AccountApiFp)(this.configuration).setSubscriptionDetails(e,r,n)(this.fetch,this.basePath)}unsubscribe(e,r){return(0,t.AccountApiFp)(this.configuration).unsubscribe(e,r)(this.fetch,this.basePath)}updateAccount(e,r,n){return(0,t.AccountApiFp)(this.configuration).updateAccount(e,r,n)(this.fetch,this.basePath)}};t.ApiKeyApiFetchParamCreator=function(e){return{createApiKey(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createApiKey.");const o="/workspaces/{workspace_id}/apiKeys".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getApiKeyByIdOrSecret(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getApiKeyByIdOrSecret.");const o="/apiKeys/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.with_secret=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getApiKeySelf(t,r={}){const a=n.parse("/apiKeys/self",!0),o=Object.assign({method:"GET"},r),s={},u={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}return void 0!==t&&(u.with_secret=t),a.query=Object.assign({},a.query,u,r.query),delete a.search,o.headers=Object.assign({},s,r.headers),{url:n.format(a),options:o}},queryApiKeys(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryApiKeys.");const p=n.parse("/apiKeys",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.with_secrets=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},removeApiKey(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeApiKey.");const a="/apiKeys/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeExpired(t={}){const r=n.parse("/cron/apiKeys/removeExpired",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},updateApiKey(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateApiKey.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateApiKey.");const p="/apiKeys/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==a&&(h.with_secret=a),null!=o&&(d["If-Match"]=String(o)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.ApiKeyApiFp=function(e){return{createApiKey(r,n,i){const s=(0,t.ApiKeyApiFetchParamCreator)(e).createApiKey(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getApiKeyByIdOrSecret(r,n,i){const s=(0,t.ApiKeyApiFetchParamCreator)(e).getApiKeyByIdOrSecret(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getApiKeySelf(r,n){const i=(0,t.ApiKeyApiFetchParamCreator)(e).getApiKeySelf(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryApiKeys(r,n,i,s,u){const p=(0,t.ApiKeyApiFetchParamCreator)(e).queryApiKeys(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeApiKey(r,n){const i=(0,t.ApiKeyApiFetchParamCreator)(e).removeApiKey(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeExpired(r){const n=(0,t.ApiKeyApiFetchParamCreator)(e).removeExpired(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateApiKey(r,n,i,s,u){const p=(0,t.ApiKeyApiFetchParamCreator)(e).updateApiKey(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ApiKeyApiFactory=function(e,r,n){return{createApiKey:(i,a,o)=>(0,t.ApiKeyApiFp)(e).createApiKey(i,a,o)(r,n),getApiKeyByIdOrSecret:(i,a,o)=>(0,t.ApiKeyApiFp)(e).getApiKeyByIdOrSecret(i,a,o)(r,n),getApiKeySelf:(i,a)=>(0,t.ApiKeyApiFp)(e).getApiKeySelf(i,a)(r,n),queryApiKeys:(i,a,o,s,u)=>(0,t.ApiKeyApiFp)(e).queryApiKeys(i,a,o,s,u)(r,n),removeApiKey:(i,a)=>(0,t.ApiKeyApiFp)(e).removeApiKey(i,a)(r,n),removeExpired:i=>(0,t.ApiKeyApiFp)(e).removeExpired(i)(r,n),updateApiKey:(i,a,o,s,u)=>(0,t.ApiKeyApiFp)(e).updateApiKey(i,a,o,s,u)(r,n)}};t.ApiKeyApi=class extends s{createApiKey(e,r,n){return(0,t.ApiKeyApiFp)(this.configuration).createApiKey(e,r,n)(this.fetch,this.basePath)}getApiKeyByIdOrSecret(e,r,n){return(0,t.ApiKeyApiFp)(this.configuration).getApiKeyByIdOrSecret(e,r,n)(this.fetch,this.basePath)}getApiKeySelf(e,r){return(0,t.ApiKeyApiFp)(this.configuration).getApiKeySelf(e,r)(this.fetch,this.basePath)}queryApiKeys(e,r,n,i,a){return(0,t.ApiKeyApiFp)(this.configuration).queryApiKeys(e,r,n,i,a)(this.fetch,this.basePath)}removeApiKey(e,r){return(0,t.ApiKeyApiFp)(this.configuration).removeApiKey(e,r)(this.fetch,this.basePath)}removeExpired(e){return(0,t.ApiKeyApiFp)(this.configuration).removeExpired(e)(this.fetch,this.basePath)}updateApiKey(e,r,n,i,a){return(0,t.ApiKeyApiFp)(this.configuration).updateApiKey(e,r,n,i,a)(this.fetch,this.basePath)}};t.ApplicationApiFetchParamCreator=function(e){return{createApplication(t,r={}){if(null==t)throw new u("application","Required parameter application was null or undefined when calling createApplication.");const a=n.parse("/applications",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getApplication(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getApplication.");const a="/applications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryApplications(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryApplications.");const s=n.parse("/applications",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeApplication(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeApplication.");const a="/applications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateApplication(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateApplication.");if(null==r)throw new u("application","Required parameter application was null or undefined when calling updateApplication.");const s="/applications/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ApplicationApiFp=function(e){return{createApplication(r,n){const i=(0,t.ApplicationApiFetchParamCreator)(e).createApplication(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getApplication(r,n){const i=(0,t.ApplicationApiFetchParamCreator)(e).getApplication(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryApplications(r,n,i,s){const u=(0,t.ApplicationApiFetchParamCreator)(e).queryApplications(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeApplication(r,n){const i=(0,t.ApplicationApiFetchParamCreator)(e).removeApplication(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateApplication(r,n,i,s){const u=(0,t.ApplicationApiFetchParamCreator)(e).updateApplication(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ApplicationApiFactory=function(e,r,n){return{createApplication:(i,a)=>(0,t.ApplicationApiFp)(e).createApplication(i,a)(r,n),getApplication:(i,a)=>(0,t.ApplicationApiFp)(e).getApplication(i,a)(r,n),queryApplications:(i,a,o,s)=>(0,t.ApplicationApiFp)(e).queryApplications(i,a,o,s)(r,n),removeApplication:(i,a)=>(0,t.ApplicationApiFp)(e).removeApplication(i,a)(r,n),updateApplication:(i,a,o,s)=>(0,t.ApplicationApiFp)(e).updateApplication(i,a,o,s)(r,n)}};t.ApplicationApi=class extends s{createApplication(e,r){return(0,t.ApplicationApiFp)(this.configuration).createApplication(e,r)(this.fetch,this.basePath)}getApplication(e,r){return(0,t.ApplicationApiFp)(this.configuration).getApplication(e,r)(this.fetch,this.basePath)}queryApplications(e,r,n,i){return(0,t.ApplicationApiFp)(this.configuration).queryApplications(e,r,n,i)(this.fetch,this.basePath)}removeApplication(e,r){return(0,t.ApplicationApiFp)(this.configuration).removeApplication(e,r)(this.fetch,this.basePath)}updateApplication(e,r,n,i){return(0,t.ApplicationApiFp)(this.configuration).updateApplication(e,r,n,i)(this.fetch,this.basePath)}};t.BranchApiFetchParamCreator=function(e){return{createBranch(t,r={}){if(null==t)throw new u("branch","Required parameter branch was null or undefined when calling createBranch.");const a=n.parse("/branch",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getBranch(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getBranch.");const a="/branch/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getBranchByName(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getBranchByName.");if(null==r)throw new u("name","Required parameter name was null or undefined when calling getBranchByName.");const o="/branch/{workspace_id}/{name}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},mergeBranches(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling mergeBranches.");if(null==r)throw new u("from","Required parameter from was null or undefined when calling mergeBranches.");const s="/branch/{workspace_id}/merge".replace("{workspace_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"POST"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.from=r),void 0!==a&&(d.to=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryBranches(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryBranches.");const p=n.parse("/branch",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.workspace_id=t),void 0!==r&&(d.status=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},recoverBranch(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverBranch.");const a="/recover/branch/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},refreshSnapshot(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling refreshSnapshot.");if(null==r)throw new u("snapshot_branch_name","Required parameter snapshot_branch_name was null or undefined when calling refreshSnapshot.");const o="/branch/{workspace_id}/snapshot/{snapshot_branch_name}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{snapshot_branch_name}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},removeBranch(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeBranch.");const a="/branch/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateBranch(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateBranch.");if(null==r)throw new u("branch","Required parameter branch was null or undefined when calling updateBranch.");const s="/branch/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.BranchApiFp=function(e){return{createBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).createBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).getBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getBranchByName(r,n,i){const s=(0,t.BranchApiFetchParamCreator)(e).getBranchByName(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},mergeBranches(r,n,i,s){const u=(0,t.BranchApiFetchParamCreator)(e).mergeBranches(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryBranches(r,n,i,s,u){const p=(0,t.BranchApiFetchParamCreator)(e).queryBranches(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).recoverBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},refreshSnapshot(r,n,i){const s=(0,t.BranchApiFetchParamCreator)(e).refreshSnapshot(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).removeBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateBranch(r,n,i,s){const u=(0,t.BranchApiFetchParamCreator)(e).updateBranch(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.BranchApiFactory=function(e,r,n){return{createBranch:(i,a)=>(0,t.BranchApiFp)(e).createBranch(i,a)(r,n),getBranch:(i,a)=>(0,t.BranchApiFp)(e).getBranch(i,a)(r,n),getBranchByName:(i,a,o)=>(0,t.BranchApiFp)(e).getBranchByName(i,a,o)(r,n),mergeBranches:(i,a,o,s)=>(0,t.BranchApiFp)(e).mergeBranches(i,a,o,s)(r,n),queryBranches:(i,a,o,s,u)=>(0,t.BranchApiFp)(e).queryBranches(i,a,o,s,u)(r,n),recoverBranch:(i,a)=>(0,t.BranchApiFp)(e).recoverBranch(i,a)(r,n),refreshSnapshot:(i,a,o)=>(0,t.BranchApiFp)(e).refreshSnapshot(i,a,o)(r,n),removeBranch:(i,a)=>(0,t.BranchApiFp)(e).removeBranch(i,a)(r,n),updateBranch:(i,a,o,s)=>(0,t.BranchApiFp)(e).updateBranch(i,a,o,s)(r,n)}};t.BranchApi=class extends s{createBranch(e,r){return(0,t.BranchApiFp)(this.configuration).createBranch(e,r)(this.fetch,this.basePath)}getBranch(e,r){return(0,t.BranchApiFp)(this.configuration).getBranch(e,r)(this.fetch,this.basePath)}getBranchByName(e,r,n){return(0,t.BranchApiFp)(this.configuration).getBranchByName(e,r,n)(this.fetch,this.basePath)}mergeBranches(e,r,n,i){return(0,t.BranchApiFp)(this.configuration).mergeBranches(e,r,n,i)(this.fetch,this.basePath)}queryBranches(e,r,n,i,a){return(0,t.BranchApiFp)(this.configuration).queryBranches(e,r,n,i,a)(this.fetch,this.basePath)}recoverBranch(e,r){return(0,t.BranchApiFp)(this.configuration).recoverBranch(e,r)(this.fetch,this.basePath)}refreshSnapshot(e,r,n){return(0,t.BranchApiFp)(this.configuration).refreshSnapshot(e,r,n)(this.fetch,this.basePath)}removeBranch(e,r){return(0,t.BranchApiFp)(this.configuration).removeBranch(e,r)(this.fetch,this.basePath)}updateBranch(e,r,n,i){return(0,t.BranchApiFp)(this.configuration).updateBranch(e,r,n,i)(this.fetch,this.basePath)}};t.CompanyApiFetchParamCreator=function(e){return{createCompany(t,r={}){if(null==t)throw new u("companyUpdateRequest","Required parameter companyUpdateRequest was null or undefined when calling createCompany.");const a=n.parse("/companies",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCompany(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCompany.");const a="/companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanyRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanyRoles.");const a="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCompanies(t,r,a={}){const o=n.parse("/companies",!0),s=Object.assign({method:"GET"},a),u={},p={};if(e&&(e.username||e.password)&&(u.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;u.Authorization=t}return void 0!==t&&(p.limit=t),void 0!==r&&(p.cursor=r),o.query=Object.assign({},o.query,p,a.query),delete o.search,s.headers=Object.assign({},u,a.headers),{url:n.format(o),options:s}},recoverCompany(t,r={}){if(null==t)throw new u("companyId","Required parameter companyId was null or undefined when calling recoverCompany.");const a="/recover/companies/{companyId}".replace("{companyId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeCompany(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCompany.");const a="/companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCompany(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCompany.");if(null==r)throw new u("companyUpdateRequest","Required parameter companyUpdateRequest was null or undefined when calling updateCompany.");const o="/companies/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},updateCompanySessionTimeout(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCompanySessionTimeout.");if(null==r)throw new u("companySessionTimeoutUpdateRequest","Required parameter companySessionTimeoutUpdateRequest was null or undefined when calling updateCompanySessionTimeout.");const o="/companies/{id}/sessionTimeout".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},updateUserCompanyRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserCompanyRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserCompanyRoles.");const s="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.CompanyApiFp=function(e){return{createCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).createCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).getCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserCompanyRoles(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).getUserCompanyRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCompanies(r,n,i){const s=(0,t.CompanyApiFetchParamCreator)(e).queryCompanies(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).recoverCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).removeCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCompany(r,n,i){const s=(0,t.CompanyApiFetchParamCreator)(e).updateCompany(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCompanySessionTimeout(r,n,i){const s=(0,t.CompanyApiFetchParamCreator)(e).updateCompanySessionTimeout(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserCompanyRoles(r,n,i,s){const u=(0,t.CompanyApiFetchParamCreator)(e).updateUserCompanyRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CompanyApiFactory=function(e,r,n){return{createCompany:(i,a)=>(0,t.CompanyApiFp)(e).createCompany(i,a)(r,n),getCompany:(i,a)=>(0,t.CompanyApiFp)(e).getCompany(i,a)(r,n),getUserCompanyRoles:(i,a)=>(0,t.CompanyApiFp)(e).getUserCompanyRoles(i,a)(r,n),queryCompanies:(i,a,o)=>(0,t.CompanyApiFp)(e).queryCompanies(i,a,o)(r,n),recoverCompany:(i,a)=>(0,t.CompanyApiFp)(e).recoverCompany(i,a)(r,n),removeCompany:(i,a)=>(0,t.CompanyApiFp)(e).removeCompany(i,a)(r,n),updateCompany:(i,a,o)=>(0,t.CompanyApiFp)(e).updateCompany(i,a,o)(r,n),updateCompanySessionTimeout:(i,a,o)=>(0,t.CompanyApiFp)(e).updateCompanySessionTimeout(i,a,o)(r,n),updateUserCompanyRoles:(i,a,o,s)=>(0,t.CompanyApiFp)(e).updateUserCompanyRoles(i,a,o,s)(r,n)}};t.CompanyApi=class extends s{createCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).createCompany(e,r)(this.fetch,this.basePath)}getCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).getCompany(e,r)(this.fetch,this.basePath)}getUserCompanyRoles(e,r){return(0,t.CompanyApiFp)(this.configuration).getUserCompanyRoles(e,r)(this.fetch,this.basePath)}queryCompanies(e,r,n){return(0,t.CompanyApiFp)(this.configuration).queryCompanies(e,r,n)(this.fetch,this.basePath)}recoverCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).recoverCompany(e,r)(this.fetch,this.basePath)}removeCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).removeCompany(e,r)(this.fetch,this.basePath)}updateCompany(e,r,n){return(0,t.CompanyApiFp)(this.configuration).updateCompany(e,r,n)(this.fetch,this.basePath)}updateCompanySessionTimeout(e,r,n){return(0,t.CompanyApiFp)(this.configuration).updateCompanySessionTimeout(e,r,n)(this.fetch,this.basePath)}updateUserCompanyRoles(e,r,n,i){return(0,t.CompanyApiFp)(this.configuration).updateUserCompanyRoles(e,r,n,i)(this.fetch,this.basePath)}};t.CompanyDomainApiFetchParamCreator=function(e){return{createCompanyDomain(t,r={}){if(null==t)throw new u("companyDomain","Required parameter companyDomain was null or undefined when calling createCompanyDomain.");const a=n.parse("/company-domains",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCompanyDomain(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCompanyDomain.");const a="/company-domains/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCompanyDomains(t,r,a,o,s={}){const u=n.parse("/company-domains",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.companyId=t),void 0!==r&&(l.domainName=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},removeCompanyDomain(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCompanyDomain.");const a="/company-domains/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCompanyDomain(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCompanyDomain.");if(null==r)throw new u("companyDomainUpdateRequest","Required parameter companyDomainUpdateRequest was null or undefined when calling updateCompanyDomain.");const o="/company-domains/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.CompanyDomainApiFp=function(e){return{createCompanyDomain(r,n){const i=(0,t.CompanyDomainApiFetchParamCreator)(e).createCompanyDomain(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCompanyDomain(r,n){const i=(0,t.CompanyDomainApiFetchParamCreator)(e).getCompanyDomain(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCompanyDomains(r,n,i,s,u){const p=(0,t.CompanyDomainApiFetchParamCreator)(e).queryCompanyDomains(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCompanyDomain(r,n){const i=(0,t.CompanyDomainApiFetchParamCreator)(e).removeCompanyDomain(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCompanyDomain(r,n,i){const s=(0,t.CompanyDomainApiFetchParamCreator)(e).updateCompanyDomain(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CompanyDomainApiFactory=function(e,r,n){return{createCompanyDomain:(i,a)=>(0,t.CompanyDomainApiFp)(e).createCompanyDomain(i,a)(r,n),getCompanyDomain:(i,a)=>(0,t.CompanyDomainApiFp)(e).getCompanyDomain(i,a)(r,n),queryCompanyDomains:(i,a,o,s,u)=>(0,t.CompanyDomainApiFp)(e).queryCompanyDomains(i,a,o,s,u)(r,n),removeCompanyDomain:(i,a)=>(0,t.CompanyDomainApiFp)(e).removeCompanyDomain(i,a)(r,n),updateCompanyDomain:(i,a,o)=>(0,t.CompanyDomainApiFp)(e).updateCompanyDomain(i,a,o)(r,n)}};t.CompanyDomainApi=class extends s{createCompanyDomain(e,r){return(0,t.CompanyDomainApiFp)(this.configuration).createCompanyDomain(e,r)(this.fetch,this.basePath)}getCompanyDomain(e,r){return(0,t.CompanyDomainApiFp)(this.configuration).getCompanyDomain(e,r)(this.fetch,this.basePath)}queryCompanyDomains(e,r,n,i,a){return(0,t.CompanyDomainApiFp)(this.configuration).queryCompanyDomains(e,r,n,i,a)(this.fetch,this.basePath)}removeCompanyDomain(e,r){return(0,t.CompanyDomainApiFp)(this.configuration).removeCompanyDomain(e,r)(this.fetch,this.basePath)}updateCompanyDomain(e,r,n){return(0,t.CompanyDomainApiFp)(this.configuration).updateCompanyDomain(e,r,n)(this.fetch,this.basePath)}};t.CopyApiFetchParamCreator=function(e){return{copyOrganization(t,r,a={}){if(null==t)throw new u("source_workspace_id","Required parameter source_workspace_id was null or undefined when calling copyOrganization.");if(null==r)throw new u("destination_workspace_id","Required parameter destination_workspace_id was null or undefined when calling copyOrganization.");const o=n.parse("/copy/organizations",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.source_workspace_id=t),void 0!==r&&(c.destination_workspace_id=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.CopyApiFp=function(e){return{copyOrganization(r,n,i){const s=(0,t.CopyApiFetchParamCreator)(e).copyOrganization(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.CopyApiFactory=function(e,r,n){return{copyOrganization:(i,a,o)=>(0,t.CopyApiFp)(e).copyOrganization(i,a,o)(r,n)}};t.CopyApi=class extends s{copyOrganization(e,r,n){return(0,t.CopyApiFp)(this.configuration).copyOrganization(e,r,n)(this.fetch,this.basePath)}};t.CoverageApiFetchParamCreator=function(e){return{createOrUpdateExclusion(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createOrUpdateExclusion.");if(null==r)throw new u("coverage_exclusion","Required parameter coverage_exclusion was null or undefined when calling createOrUpdateExclusion.");const o="/test/coverage/workspace/{workspace_id}/exclusions".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},createOrUpdatePageGroup(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createOrUpdatePageGroup.");if(null==r)throw new u("application_id","Required parameter application_id was null or undefined when calling createOrUpdatePageGroup.");if(null==a)throw new u("coverage_page_group","Required parameter coverage_page_group was null or undefined when calling createOrUpdatePageGroup.");const s="/test/coverage/workspace/{workspace_id}/application/{application_id}/pageGroups".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{application_id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"POST"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(a||{}),{url:n.format(p),options:c}},getAllExclusions(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getAllExclusions.");const s="/test/coverage/workspace/{workspace_id}/exclusions".replace("{workspace_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},getExclusion(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getExclusion.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling getExclusion.");const o="/test/coverage/workspace/{workspace_id}/exclusions/{id}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getPageGroup(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getPageGroup.");if(null==r)throw new u("application_id","Required parameter application_id was null or undefined when calling getPageGroup.");const p="/test/coverage/workspace/{workspace_id}/application/{application_id}/pageGroups".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{application_id}",encodeURIComponent(String(r))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryCoverage(t,r,a,o,s,p,c,l,d,h,y,m,f={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverage.");const g=n.parse("/test/coverage",!0),w=Object.assign({method:"GET"},f),A={},b={};if(e&&(e.username||e.password)&&(A.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;A.Authorization=t}return void 0!==t&&(b.workspace_id=t),void 0!==r&&(b.environment_id=r),void 0!==a&&(b.application_id=a),void 0!==o&&(b.url_host_filter=o),void 0!==s&&(b.url_path_filter=s),void 0!==p&&(b.coverage_days=p),void 0!==c&&(b.sort_by=c),void 0!==l&&(b.sort_order=l),void 0!==d&&(b.kms_unsupported=d),void 0!==h&&(b.use_cache=h),void 0!==y&&(b.limit=y),void 0!==m&&(b.cursor=m),g.query=Object.assign({},g.query,b,f.query),delete g.search,w.headers=Object.assign({},A,f.headers),{url:n.format(g),options:w}},queryCoverageByJourney(t,r,a,o={}){if(null==t)throw new u("journey_invariant_id","Required parameter journey_invariant_id was null or undefined when calling queryCoverageByJourney.");const s="/test/coverage/journey/{journey_invariant_id}".replace("{journey_invariant_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryCoverageDetail(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverageDetail.");if(null==r)throw new u("path_pattern","Required parameter path_pattern was null or undefined when calling queryCoverageDetail.");const p=n.parse("/test/coverage/place",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.workspace_id=t),void 0!==r&&(d.path_pattern=r),void 0!==a&&(d.host_pattern=a),void 0!==o&&(d.kms_unsupported=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},queryCoverageSources(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverageSources.");const a="/test/coverage/workspace/{workspace_id}/sources".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCoverageSummary(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverageSummary.");const p="/test/coverage/workspace/{workspace_id}/summary".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.application_id=r),void 0!==a&&(h.coverage_days=a),void 0!==o&&(h.use_cache=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},refreshCoverage(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling refreshCoverage.");const a=n.parse("/test/coverage/refresh",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},updateExclusion(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling updateExclusion.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling updateExclusion.");if(null==a)throw new u("coverage_exclusion","Required parameter coverage_exclusion was null or undefined when calling updateExclusion.");const s="/test/coverage/workspace/{workspace_id}/exclusions/{id}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(a||{}),{url:n.format(p),options:c}}}};t.CoverageApiFp=function(e){return{createOrUpdateExclusion(r,n,i){const s=(0,t.CoverageApiFetchParamCreator)(e).createOrUpdateExclusion(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createOrUpdatePageGroup(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).createOrUpdatePageGroup(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getAllExclusions(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).getAllExclusions(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExclusion(r,n,i){const s=(0,t.CoverageApiFetchParamCreator)(e).getExclusion(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getPageGroup(r,n,i,s,u){const p=(0,t.CoverageApiFetchParamCreator)(e).getPageGroup(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverage(r,n,i,s,u,p,c,l,d,h,y,m,f){const g=(0,t.CoverageApiFetchParamCreator)(e).queryCoverage(r,n,i,s,u,p,c,l,d,h,y,m,f);return(e=a,t=o)=>e(t+g.url,g.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageByJourney(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageByJourney(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageDetail(r,n,i,s,u){const p=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageDetail(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageSources(r,n){const i=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageSources(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageSummary(r,n,i,s,u){const p=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageSummary(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},refreshCoverage(r,n){const i=(0,t.CoverageApiFetchParamCreator)(e).refreshCoverage(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateExclusion(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).updateExclusion(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CoverageApiFactory=function(e,r,n){return{createOrUpdateExclusion:(i,a,o)=>(0,t.CoverageApiFp)(e).createOrUpdateExclusion(i,a,o)(r,n),createOrUpdatePageGroup:(i,a,o,s)=>(0,t.CoverageApiFp)(e).createOrUpdatePageGroup(i,a,o,s)(r,n),getAllExclusions:(i,a,o,s)=>(0,t.CoverageApiFp)(e).getAllExclusions(i,a,o,s)(r,n),getExclusion:(i,a,o)=>(0,t.CoverageApiFp)(e).getExclusion(i,a,o)(r,n),getPageGroup:(i,a,o,s,u)=>(0,t.CoverageApiFp)(e).getPageGroup(i,a,o,s,u)(r,n),queryCoverage:(i,a,o,s,u,p,c,l,d,h,y,m,f)=>(0,t.CoverageApiFp)(e).queryCoverage(i,a,o,s,u,p,c,l,d,h,y,m,f)(r,n),queryCoverageByJourney:(i,a,o,s)=>(0,t.CoverageApiFp)(e).queryCoverageByJourney(i,a,o,s)(r,n),queryCoverageDetail:(i,a,o,s,u)=>(0,t.CoverageApiFp)(e).queryCoverageDetail(i,a,o,s,u)(r,n),queryCoverageSources:(i,a)=>(0,t.CoverageApiFp)(e).queryCoverageSources(i,a)(r,n),queryCoverageSummary:(i,a,o,s,u)=>(0,t.CoverageApiFp)(e).queryCoverageSummary(i,a,o,s,u)(r,n),refreshCoverage:(i,a)=>(0,t.CoverageApiFp)(e).refreshCoverage(i,a)(r,n),updateExclusion:(i,a,o,s)=>(0,t.CoverageApiFp)(e).updateExclusion(i,a,o,s)(r,n)}};t.CoverageApi=class extends s{createOrUpdateExclusion(e,r,n){return(0,t.CoverageApiFp)(this.configuration).createOrUpdateExclusion(e,r,n)(this.fetch,this.basePath)}createOrUpdatePageGroup(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).createOrUpdatePageGroup(e,r,n,i)(this.fetch,this.basePath)}getAllExclusions(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).getAllExclusions(e,r,n,i)(this.fetch,this.basePath)}getExclusion(e,r,n){return(0,t.CoverageApiFp)(this.configuration).getExclusion(e,r,n)(this.fetch,this.basePath)}getPageGroup(e,r,n,i,a){return(0,t.CoverageApiFp)(this.configuration).getPageGroup(e,r,n,i,a)(this.fetch,this.basePath)}queryCoverage(e,r,n,i,a,o,s,u,p,c,l,d,h){return(0,t.CoverageApiFp)(this.configuration).queryCoverage(e,r,n,i,a,o,s,u,p,c,l,d,h)(this.fetch,this.basePath)}queryCoverageByJourney(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).queryCoverageByJourney(e,r,n,i)(this.fetch,this.basePath)}queryCoverageDetail(e,r,n,i,a){return(0,t.CoverageApiFp)(this.configuration).queryCoverageDetail(e,r,n,i,a)(this.fetch,this.basePath)}queryCoverageSources(e,r){return(0,t.CoverageApiFp)(this.configuration).queryCoverageSources(e,r)(this.fetch,this.basePath)}queryCoverageSummary(e,r,n,i,a){return(0,t.CoverageApiFp)(this.configuration).queryCoverageSummary(e,r,n,i,a)(this.fetch,this.basePath)}refreshCoverage(e,r){return(0,t.CoverageApiFp)(this.configuration).refreshCoverage(e,r)(this.fetch,this.basePath)}updateExclusion(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).updateExclusion(e,r,n,i)(this.fetch,this.basePath)}};t.CredentialsApiFetchParamCreator=function(e){return{createCredentials(t,r={}){if(null==t)throw new u("credentials","Required parameter credentials was null or undefined when calling createCredentials.");const a=n.parse("/credentials",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCredentials(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCredentials.");const a="/credentials/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCredentials(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryCredentials.");const p=n.parse("/credentials",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.with_secrets=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},removeCredentials(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCredentials.");const a="/credentials/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCredentials(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCredentials.");if(null==r)throw new u("credentials","Required parameter credentials was null or undefined when calling updateCredentials.");const s="/credentials/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.CredentialsApiFp=function(e){return{createCredentials(r,n){const i=(0,t.CredentialsApiFetchParamCreator)(e).createCredentials(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCredentials(r,n){const i=(0,t.CredentialsApiFetchParamCreator)(e).getCredentials(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCredentials(r,n,i,s,u){const p=(0,t.CredentialsApiFetchParamCreator)(e).queryCredentials(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCredentials(r,n){const i=(0,t.CredentialsApiFetchParamCreator)(e).removeCredentials(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCredentials(r,n,i,s){const u=(0,t.CredentialsApiFetchParamCreator)(e).updateCredentials(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CredentialsApiFactory=function(e,r,n){return{createCredentials:(i,a)=>(0,t.CredentialsApiFp)(e).createCredentials(i,a)(r,n),getCredentials:(i,a)=>(0,t.CredentialsApiFp)(e).getCredentials(i,a)(r,n),queryCredentials:(i,a,o,s,u)=>(0,t.CredentialsApiFp)(e).queryCredentials(i,a,o,s,u)(r,n),removeCredentials:(i,a)=>(0,t.CredentialsApiFp)(e).removeCredentials(i,a)(r,n),updateCredentials:(i,a,o,s)=>(0,t.CredentialsApiFp)(e).updateCredentials(i,a,o,s)(r,n)}};t.CredentialsApi=class extends s{createCredentials(e,r){return(0,t.CredentialsApiFp)(this.configuration).createCredentials(e,r)(this.fetch,this.basePath)}getCredentials(e,r){return(0,t.CredentialsApiFp)(this.configuration).getCredentials(e,r)(this.fetch,this.basePath)}queryCredentials(e,r,n,i,a){return(0,t.CredentialsApiFp)(this.configuration).queryCredentials(e,r,n,i,a)(this.fetch,this.basePath)}removeCredentials(e,r){return(0,t.CredentialsApiFp)(this.configuration).removeCredentials(e,r)(this.fetch,this.basePath)}updateCredentials(e,r,n,i){return(0,t.CredentialsApiFp)(this.configuration).updateCredentials(e,r,n,i)(this.fetch,this.basePath)}};t.CustomFilterApiFetchParamCreator=function(e){return{createCustomFilter(t,r={}){if(null==t)throw new u("entity","Required parameter entity was null or undefined when calling createCustomFilter.");const a=n.parse("/workspaces/filters",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCustomFilter(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCustomFilter.");const a="/workspaces/filters/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCustomFilters(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCustomFilters.");if(null==r)throw new u("user_id","Required parameter user_id was null or undefined when calling queryCustomFilters.");const p="/workspaces/{workspace_id}/user/{user_id}/filters".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{user_id}",encodeURIComponent(String(r))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},removeCustomFilter(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCustomFilter.");const a="/workspaces/filters/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCustomFilter(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCustomFilter.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling updateCustomFilter.");const s="/workspaces/filters/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.CustomFilterApiFp=function(e){return{createCustomFilter(r,n){const i=(0,t.CustomFilterApiFetchParamCreator)(e).createCustomFilter(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCustomFilter(r,n){const i=(0,t.CustomFilterApiFetchParamCreator)(e).getCustomFilter(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCustomFilters(r,n,i,s,u){const p=(0,t.CustomFilterApiFetchParamCreator)(e).queryCustomFilters(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCustomFilter(r,n){const i=(0,t.CustomFilterApiFetchParamCreator)(e).removeCustomFilter(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateCustomFilter(r,n,i,s){const u=(0,t.CustomFilterApiFetchParamCreator)(e).updateCustomFilter(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CustomFilterApiFactory=function(e,r,n){return{createCustomFilter:(i,a)=>(0,t.CustomFilterApiFp)(e).createCustomFilter(i,a)(r,n),getCustomFilter:(i,a)=>(0,t.CustomFilterApiFp)(e).getCustomFilter(i,a)(r,n),queryCustomFilters:(i,a,o,s,u)=>(0,t.CustomFilterApiFp)(e).queryCustomFilters(i,a,o,s,u)(r,n),removeCustomFilter:(i,a)=>(0,t.CustomFilterApiFp)(e).removeCustomFilter(i,a)(r,n),updateCustomFilter:(i,a,o,s)=>(0,t.CustomFilterApiFp)(e).updateCustomFilter(i,a,o,s)(r,n)}};t.CustomFilterApi=class extends s{createCustomFilter(e,r){return(0,t.CustomFilterApiFp)(this.configuration).createCustomFilter(e,r)(this.fetch,this.basePath)}getCustomFilter(e,r){return(0,t.CustomFilterApiFp)(this.configuration).getCustomFilter(e,r)(this.fetch,this.basePath)}queryCustomFilters(e,r,n,i,a){return(0,t.CustomFilterApiFp)(this.configuration).queryCustomFilters(e,r,n,i,a)(this.fetch,this.basePath)}removeCustomFilter(e,r){return(0,t.CustomFilterApiFp)(this.configuration).removeCustomFilter(e,r)(this.fetch,this.basePath)}updateCustomFilter(e,r,n,i){return(0,t.CustomFilterApiFp)(this.configuration).updateCustomFilter(e,r,n,i)(this.fetch,this.basePath)}};t.DeploymentApiFetchParamCreator=function(e){return{createDeployment(t,r={}){if(null==t)throw new u("deployment","Required parameter deployment was null or undefined when calling createDeployment.");const a=n.parse("/deployments",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},findOrCreateDeployment(t,r={}){if(null==t)throw new u("deployment","Required parameter deployment was null or undefined when calling findOrCreateDeployment.");const a=n.parse("/deployments",!0),o=Object.assign({method:"PUT"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getDeployment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getDeployment.");const a="/deployments/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryDeployments(t,r,a,o,s,p={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryDeployments.");const c=n.parse("/deployments",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.organization_id=t),void 0!==r&&(h.environment_id=r),void 0!==a&&(h.application_id=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},removeDeployment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeDeployment.");const a="/deployments/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateDeployment(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateDeployment.");if(null==r)throw new u("deployment","Required parameter deployment was null or undefined when calling updateDeployment.");const s="/deployments/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.DeploymentApiFp=function(e){return{createDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).createDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},findOrCreateDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).findOrCreateDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).getDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryDeployments(r,n,i,s,u,p){const c=(0,t.DeploymentApiFetchParamCreator)(e).queryDeployments(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).removeDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateDeployment(r,n,i,s){const u=(0,t.DeploymentApiFetchParamCreator)(e).updateDeployment(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.DeploymentApiFactory=function(e,r,n){return{createDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).createDeployment(i,a)(r,n),findOrCreateDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).findOrCreateDeployment(i,a)(r,n),getDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).getDeployment(i,a)(r,n),queryDeployments:(i,a,o,s,u,p)=>(0,t.DeploymentApiFp)(e).queryDeployments(i,a,o,s,u,p)(r,n),removeDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).removeDeployment(i,a)(r,n),updateDeployment:(i,a,o,s)=>(0,t.DeploymentApiFp)(e).updateDeployment(i,a,o,s)(r,n)}};t.DeploymentApi=class extends s{createDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).createDeployment(e,r)(this.fetch,this.basePath)}findOrCreateDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).findOrCreateDeployment(e,r)(this.fetch,this.basePath)}getDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).getDeployment(e,r)(this.fetch,this.basePath)}queryDeployments(e,r,n,i,a,o){return(0,t.DeploymentApiFp)(this.configuration).queryDeployments(e,r,n,i,a,o)(this.fetch,this.basePath)}removeDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).removeDeployment(e,r)(this.fetch,this.basePath)}updateDeployment(e,r,n,i){return(0,t.DeploymentApiFp)(this.configuration).updateDeployment(e,r,n,i)(this.fetch,this.basePath)}};t.EnvironmentApiFetchParamCreator=function(e){return{createEnvironment(t,r={}){if(null==t)throw new u("environment","Required parameter environment was null or undefined when calling createEnvironment.");const a=n.parse("/environments",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getEnvironment(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getEnvironment.");const o="/environments/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.decrypt=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryEnvironments(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryEnvironments.");const s=n.parse("/environments",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeEnvironment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeEnvironment.");const a="/environments/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateEnvironment(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateEnvironment.");if(null==r)throw new u("environment","Required parameter environment was null or undefined when calling updateEnvironment.");const s="/environments/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.EnvironmentApiFp=function(e){return{createEnvironment(r,n){const i=(0,t.EnvironmentApiFetchParamCreator)(e).createEnvironment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getEnvironment(r,n,i){const s=(0,t.EnvironmentApiFetchParamCreator)(e).getEnvironment(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryEnvironments(r,n,i,s){const u=(0,t.EnvironmentApiFetchParamCreator)(e).queryEnvironments(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeEnvironment(r,n){const i=(0,t.EnvironmentApiFetchParamCreator)(e).removeEnvironment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateEnvironment(r,n,i,s){const u=(0,t.EnvironmentApiFetchParamCreator)(e).updateEnvironment(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.EnvironmentApiFactory=function(e,r,n){return{createEnvironment:(i,a)=>(0,t.EnvironmentApiFp)(e).createEnvironment(i,a)(r,n),getEnvironment:(i,a,o)=>(0,t.EnvironmentApiFp)(e).getEnvironment(i,a,o)(r,n),queryEnvironments:(i,a,o,s)=>(0,t.EnvironmentApiFp)(e).queryEnvironments(i,a,o,s)(r,n),removeEnvironment:(i,a)=>(0,t.EnvironmentApiFp)(e).removeEnvironment(i,a)(r,n),updateEnvironment:(i,a,o,s)=>(0,t.EnvironmentApiFp)(e).updateEnvironment(i,a,o,s)(r,n)}};t.EnvironmentApi=class extends s{createEnvironment(e,r){return(0,t.EnvironmentApiFp)(this.configuration).createEnvironment(e,r)(this.fetch,this.basePath)}getEnvironment(e,r,n){return(0,t.EnvironmentApiFp)(this.configuration).getEnvironment(e,r,n)(this.fetch,this.basePath)}queryEnvironments(e,r,n,i){return(0,t.EnvironmentApiFp)(this.configuration).queryEnvironments(e,r,n,i)(this.fetch,this.basePath)}removeEnvironment(e,r){return(0,t.EnvironmentApiFp)(this.configuration).removeEnvironment(e,r)(this.fetch,this.basePath)}updateEnvironment(e,r,n,i){return(0,t.EnvironmentApiFp)(this.configuration).updateEnvironment(e,r,n,i)(this.fetch,this.basePath)}};t.EventApiFetchParamCreator=function(e){return{getDeploymentEvent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getDeploymentEvent.");const a="/events/deployment/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getEvent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getEvent.");const a="/events/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},onDeploy(t,r,a={}){if(null==t)throw new u("event","Required parameter event was null or undefined when calling onDeploy.");const o=n.parse("/events/deployment",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.preview=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},queryDeploymentEvents(t,r,a,o,s={}){const u=n.parse("/events/deployment",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.workspace_id=t),void 0!==r&&(l.environment_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},queryEvents(t,r,a,o,s,u={}){const p=n.parse("/events",!0),c=Object.assign({method:"GET"},u),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.workspace_id=t),void 0!==r&&(d.environment_id=r),void 0!==a&&(d.application_id=a),void 0!==o&&(d.limit=o),void 0!==s&&(d.cursor=s),p.query=Object.assign({},p.query,d,u.query),delete p.search,c.headers=Object.assign({},l,u.headers),{url:n.format(p),options:c}},removeEvent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeEvent.");const a="/events/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateDeploymentEvent(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateDeploymentEvent.");if(null==r)throw new u("event","Required parameter event was null or undefined when calling updateDeploymentEvent.");const s="/events/deployment/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.EventApiFp=function(e){return{getDeploymentEvent(r,n){const i=(0,t.EventApiFetchParamCreator)(e).getDeploymentEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getEvent(r,n){const i=(0,t.EventApiFetchParamCreator)(e).getEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},onDeploy(r,n,i){const s=(0,t.EventApiFetchParamCreator)(e).onDeploy(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryDeploymentEvents(r,n,i,s,u){const p=(0,t.EventApiFetchParamCreator)(e).queryDeploymentEvents(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryEvents(r,n,i,s,u,p){const c=(0,t.EventApiFetchParamCreator)(e).queryEvents(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeEvent(r,n){const i=(0,t.EventApiFetchParamCreator)(e).removeEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateDeploymentEvent(r,n,i,s){const u=(0,t.EventApiFetchParamCreator)(e).updateDeploymentEvent(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.EventApiFactory=function(e,r,n){return{getDeploymentEvent:(i,a)=>(0,t.EventApiFp)(e).getDeploymentEvent(i,a)(r,n),getEvent:(i,a)=>(0,t.EventApiFp)(e).getEvent(i,a)(r,n),onDeploy:(i,a,o)=>(0,t.EventApiFp)(e).onDeploy(i,a,o)(r,n),queryDeploymentEvents:(i,a,o,s,u)=>(0,t.EventApiFp)(e).queryDeploymentEvents(i,a,o,s,u)(r,n),queryEvents:(i,a,o,s,u,p)=>(0,t.EventApiFp)(e).queryEvents(i,a,o,s,u,p)(r,n),removeEvent:(i,a)=>(0,t.EventApiFp)(e).removeEvent(i,a)(r,n),updateDeploymentEvent:(i,a,o,s)=>(0,t.EventApiFp)(e).updateDeploymentEvent(i,a,o,s)(r,n)}};t.EventApi=class extends s{getDeploymentEvent(e,r){return(0,t.EventApiFp)(this.configuration).getDeploymentEvent(e,r)(this.fetch,this.basePath)}getEvent(e,r){return(0,t.EventApiFp)(this.configuration).getEvent(e,r)(this.fetch,this.basePath)}onDeploy(e,r,n){return(0,t.EventApiFp)(this.configuration).onDeploy(e,r,n)(this.fetch,this.basePath)}queryDeploymentEvents(e,r,n,i,a){return(0,t.EventApiFp)(this.configuration).queryDeploymentEvents(e,r,n,i,a)(this.fetch,this.basePath)}queryEvents(e,r,n,i,a,o){return(0,t.EventApiFp)(this.configuration).queryEvents(e,r,n,i,a,o)(this.fetch,this.basePath)}removeEvent(e,r){return(0,t.EventApiFp)(this.configuration).removeEvent(e,r)(this.fetch,this.basePath)}updateDeploymentEvent(e,r,n,i){return(0,t.EventApiFp)(this.configuration).updateDeploymentEvent(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionApiFetchParamCreator=function(e){return{createRunPolicyExecution(t,r,a={}){if(null==t)throw new u("policy_id","Required parameter policy_id was null or undefined when calling createRunPolicyExecution.");const o="/execution/runPolicy/{policy_id}/runPolicyExecution".replace("{policy_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getRunPolicyExecution(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getRunPolicyExecution.");const a="/execution/runPolicyExecution/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getTestScriptExecution(t,r,a={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling getTestScriptExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling getTestScriptExecution.");const o="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},putTestScriptExecution(t,r,a,o={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling putTestScriptExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling putTestScriptExecution.");if(null==a)throw new u("test_script_execution","Required parameter test_script_execution was null or undefined when calling putTestScriptExecution.");const s="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(a||{}),{url:n.format(p),options:c}},queryInsightsByTypeAndJourneyExecution(t,r,a,o,s,p={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling queryInsightsByTypeAndJourneyExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling queryInsightsByTypeAndJourneyExecution.");if(null==a)throw new u("insight_type","Required parameter insight_type was null or undefined when calling queryInsightsByTypeAndJourneyExecution.");const c="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}/insights".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==a&&(y.insight_type=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}},queryRunPolicyExecutions(t,r,a,o,s,p={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryRunPolicyExecutions.");const c=n.parse("/execution/runPolicyExecution",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.organization_id=t),void 0!==r&&(h.status=r),void 0!==a&&(h.policy_id=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},queryTestScriptExecutions(t,r,a,o,s={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling queryTestScriptExecutions.");const p="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution".replace("{run_policy_execution_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryTestScriptExecutionsByOrganization(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryTestScriptExecutionsByOrganization.");const p="/execution/organization/{organization_id}/testScriptExecution".replace("{organization_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryTestScriptExecutionsByRunPolicy(t,r,a,o,s,p,c={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryTestScriptExecutionsByRunPolicy.");if(null==r)throw new u("run_policy_id","Required parameter run_policy_id was null or undefined when calling queryTestScriptExecutionsByRunPolicy.");if(null==a)throw new u("test_script_id","Required parameter test_script_id was null or undefined when calling queryTestScriptExecutionsByRunPolicy.");const l="/execution/organization/{organization_id}/runPolicy/{run_policy_id}/testScript/{test_script_id}".replace("{organization_id}",encodeURIComponent(String(t))).replace("{run_policy_id}",encodeURIComponent(String(r))).replace("{test_script_id}",encodeURIComponent(String(a))),d=n.parse(l,!0),h=Object.assign({method:"GET"},c),y={},m={};if(e&&(e.username||e.password)&&(y.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;y.Authorization=t}return void 0!==o&&(m.status=o),void 0!==s&&(m.limit=s),void 0!==p&&(m.cursor=p),d.query=Object.assign({},d.query,m,c.query),delete d.search,h.headers=Object.assign({},y,c.headers),{url:n.format(d),options:h}},terminateRunPolicyExecution(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminateRunPolicyExecution.");const a="/execution/runPolicyExecution/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},terminateTestScriptExecution(t,r,a={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling terminateTestScriptExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling terminateTestScriptExecution.");const o="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}/terminate".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},updateRunPolicyExecution(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateRunPolicyExecution.");if(null==r)throw new u("runPolicyExecution","Required parameter runPolicyExecution was null or undefined when calling updateRunPolicyExecution.");const s="/execution/runPolicyExecution/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ExecutionApiFp=function(e){return{createRunPolicyExecution(r,n,i){const s=(0,t.ExecutionApiFetchParamCreator)(e).createRunPolicyExecution(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getRunPolicyExecution(r,n){const i=(0,t.ExecutionApiFetchParamCreator)(e).getRunPolicyExecution(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getTestScriptExecution(r,n,i){const s=(0,t.ExecutionApiFetchParamCreator)(e).getTestScriptExecution(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putTestScriptExecution(r,n,i,s){const u=(0,t.ExecutionApiFetchParamCreator)(e).putTestScriptExecution(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryInsightsByTypeAndJourneyExecution(r,n,i,s,u,p){const c=(0,t.ExecutionApiFetchParamCreator)(e).queryInsightsByTypeAndJourneyExecution(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRunPolicyExecutions(r,n,i,s,u,p){const c=(0,t.ExecutionApiFetchParamCreator)(e).queryRunPolicyExecutions(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestScriptExecutions(r,n,i,s,u){const p=(0,t.ExecutionApiFetchParamCreator)(e).queryTestScriptExecutions(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestScriptExecutionsByOrganization(r,n,i,s,u){const p=(0,t.ExecutionApiFetchParamCreator)(e).queryTestScriptExecutionsByOrganization(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestScriptExecutionsByRunPolicy(r,n,i,s,u,p,c){const l=(0,t.ExecutionApiFetchParamCreator)(e).queryTestScriptExecutionsByRunPolicy(r,n,i,s,u,p,c);return(e=a,t=o)=>e(t+l.url,l.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},terminateRunPolicyExecution(r,n){const i=(0,t.ExecutionApiFetchParamCreator)(e).terminateRunPolicyExecution(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},terminateTestScriptExecution(r,n,i){const s=(0,t.ExecutionApiFetchParamCreator)(e).terminateTestScriptExecution(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateRunPolicyExecution(r,n,i,s){const u=(0,t.ExecutionApiFetchParamCreator)(e).updateRunPolicyExecution(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionApiFactory=function(e,r,n){return{createRunPolicyExecution:(i,a,o)=>(0,t.ExecutionApiFp)(e).createRunPolicyExecution(i,a,o)(r,n),getRunPolicyExecution:(i,a)=>(0,t.ExecutionApiFp)(e).getRunPolicyExecution(i,a)(r,n),getTestScriptExecution:(i,a,o)=>(0,t.ExecutionApiFp)(e).getTestScriptExecution(i,a,o)(r,n),putTestScriptExecution:(i,a,o,s)=>(0,t.ExecutionApiFp)(e).putTestScriptExecution(i,a,o,s)(r,n),queryInsightsByTypeAndJourneyExecution:(i,a,o,s,u,p)=>(0,t.ExecutionApiFp)(e).queryInsightsByTypeAndJourneyExecution(i,a,o,s,u,p)(r,n),queryRunPolicyExecutions:(i,a,o,s,u,p)=>(0,t.ExecutionApiFp)(e).queryRunPolicyExecutions(i,a,o,s,u,p)(r,n),queryTestScriptExecutions:(i,a,o,s,u)=>(0,t.ExecutionApiFp)(e).queryTestScriptExecutions(i,a,o,s,u)(r,n),queryTestScriptExecutionsByOrganization:(i,a,o,s,u)=>(0,t.ExecutionApiFp)(e).queryTestScriptExecutionsByOrganization(i,a,o,s,u)(r,n),queryTestScriptExecutionsByRunPolicy:(i,a,o,s,u,p,c)=>(0,t.ExecutionApiFp)(e).queryTestScriptExecutionsByRunPolicy(i,a,o,s,u,p,c)(r,n),terminateRunPolicyExecution:(i,a)=>(0,t.ExecutionApiFp)(e).terminateRunPolicyExecution(i,a)(r,n),terminateTestScriptExecution:(i,a,o)=>(0,t.ExecutionApiFp)(e).terminateTestScriptExecution(i,a,o)(r,n),updateRunPolicyExecution:(i,a,o,s)=>(0,t.ExecutionApiFp)(e).updateRunPolicyExecution(i,a,o,s)(r,n)}};t.ExecutionApi=class extends s{createRunPolicyExecution(e,r,n){return(0,t.ExecutionApiFp)(this.configuration).createRunPolicyExecution(e,r,n)(this.fetch,this.basePath)}getRunPolicyExecution(e,r){return(0,t.ExecutionApiFp)(this.configuration).getRunPolicyExecution(e,r)(this.fetch,this.basePath)}getTestScriptExecution(e,r,n){return(0,t.ExecutionApiFp)(this.configuration).getTestScriptExecution(e,r,n)(this.fetch,this.basePath)}putTestScriptExecution(e,r,n,i){return(0,t.ExecutionApiFp)(this.configuration).putTestScriptExecution(e,r,n,i)(this.fetch,this.basePath)}queryInsightsByTypeAndJourneyExecution(e,r,n,i,a,o){return(0,t.ExecutionApiFp)(this.configuration).queryInsightsByTypeAndJourneyExecution(e,r,n,i,a,o)(this.fetch,this.basePath)}queryRunPolicyExecutions(e,r,n,i,a,o){return(0,t.ExecutionApiFp)(this.configuration).queryRunPolicyExecutions(e,r,n,i,a,o)(this.fetch,this.basePath)}queryTestScriptExecutions(e,r,n,i,a){return(0,t.ExecutionApiFp)(this.configuration).queryTestScriptExecutions(e,r,n,i,a)(this.fetch,this.basePath)}queryTestScriptExecutionsByOrganization(e,r,n,i,a){return(0,t.ExecutionApiFp)(this.configuration).queryTestScriptExecutionsByOrganization(e,r,n,i,a)(this.fetch,this.basePath)}queryTestScriptExecutionsByRunPolicy(e,r,n,i,a,o,s){return(0,t.ExecutionApiFp)(this.configuration).queryTestScriptExecutionsByRunPolicy(e,r,n,i,a,o,s)(this.fetch,this.basePath)}terminateRunPolicyExecution(e,r){return(0,t.ExecutionApiFp)(this.configuration).terminateRunPolicyExecution(e,r)(this.fetch,this.basePath)}terminateTestScriptExecution(e,r,n){return(0,t.ExecutionApiFp)(this.configuration).terminateTestScriptExecution(e,r,n)(this.fetch,this.basePath)}updateRunPolicyExecution(e,r,n,i){return(0,t.ExecutionApiFp)(this.configuration).updateRunPolicyExecution(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionInputApiFetchParamCreator=function(e){return{createExecutionInput(t,r={}){if(null==t)throw new u("executionInput","Required parameter executionInput was null or undefined when calling createExecutionInput.");const a=n.parse("/execution/inputs",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getExecutionInput(t,r={}){if(null==t)throw new u("executionInputId","Required parameter executionInputId was null or undefined when calling getExecutionInput.");const a="/execution/inputs/{executionInputId}".replace("{executionInputId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryExecutionInputs(t,r,a,o={}){if(null==t)throw new u("context_id","Required parameter context_id was null or undefined when calling queryExecutionInputs.");const s=n.parse("/execution/inputs",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.context_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}}}};t.ExecutionInputApiFp=function(e){return{createExecutionInput(r,n){const i=(0,t.ExecutionInputApiFetchParamCreator)(e).createExecutionInput(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExecutionInput(r,n){const i=(0,t.ExecutionInputApiFetchParamCreator)(e).getExecutionInput(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryExecutionInputs(r,n,i,s){const u=(0,t.ExecutionInputApiFetchParamCreator)(e).queryExecutionInputs(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionInputApiFactory=function(e,r,n){return{createExecutionInput:(i,a)=>(0,t.ExecutionInputApiFp)(e).createExecutionInput(i,a)(r,n),getExecutionInput:(i,a)=>(0,t.ExecutionInputApiFp)(e).getExecutionInput(i,a)(r,n),queryExecutionInputs:(i,a,o,s)=>(0,t.ExecutionInputApiFp)(e).queryExecutionInputs(i,a,o,s)(r,n)}};t.ExecutionInputApi=class extends s{createExecutionInput(e,r){return(0,t.ExecutionInputApiFp)(this.configuration).createExecutionInput(e,r)(this.fetch,this.basePath)}getExecutionInput(e,r){return(0,t.ExecutionInputApiFp)(this.configuration).getExecutionInput(e,r)(this.fetch,this.basePath)}queryExecutionInputs(e,r,n,i){return(0,t.ExecutionInputApiFp)(this.configuration).queryExecutionInputs(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionNotificationApiFetchParamCreator=function(e){return{createExecutionNotification(t,r={}){if(null==t)throw new u("payload","Required parameter payload was null or undefined when calling createExecutionNotification.");const a=n.parse("/executionNotifications",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getExecutionNotification(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getExecutionNotification.");const a="/executionNotifications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryExecutionNotifications(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryExecutionNotifications.");const c=n.parse("/executionNotifications",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.notification_type=r),void 0!==a&&(h["lifecycle_trigger,"]=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},removeExecutionNotification(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeExecutionNotification.");const a="/executionNotifications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateExecutionNotification(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateExecutionNotification.");if(null==r)throw new u("payload","Required parameter payload was null or undefined when calling updateExecutionNotification.");const s="/executionNotifications/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ExecutionNotificationApiFp=function(e){return{createExecutionNotification(r,n){const i=(0,t.ExecutionNotificationApiFetchParamCreator)(e).createExecutionNotification(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExecutionNotification(r,n){const i=(0,t.ExecutionNotificationApiFetchParamCreator)(e).getExecutionNotification(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryExecutionNotifications(r,n,i,s,u,p){const c=(0,t.ExecutionNotificationApiFetchParamCreator)(e).queryExecutionNotifications(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeExecutionNotification(r,n){const i=(0,t.ExecutionNotificationApiFetchParamCreator)(e).removeExecutionNotification(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateExecutionNotification(r,n,i,s){const u=(0,t.ExecutionNotificationApiFetchParamCreator)(e).updateExecutionNotification(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionNotificationApiFactory=function(e,r,n){return{createExecutionNotification:(i,a)=>(0,t.ExecutionNotificationApiFp)(e).createExecutionNotification(i,a)(r,n),getExecutionNotification:(i,a)=>(0,t.ExecutionNotificationApiFp)(e).getExecutionNotification(i,a)(r,n),queryExecutionNotifications:(i,a,o,s,u,p)=>(0,t.ExecutionNotificationApiFp)(e).queryExecutionNotifications(i,a,o,s,u,p)(r,n),removeExecutionNotification:(i,a)=>(0,t.ExecutionNotificationApiFp)(e).removeExecutionNotification(i,a)(r,n),updateExecutionNotification:(i,a,o,s)=>(0,t.ExecutionNotificationApiFp)(e).updateExecutionNotification(i,a,o,s)(r,n)}};t.ExecutionNotificationApi=class extends s{createExecutionNotification(e,r){return(0,t.ExecutionNotificationApiFp)(this.configuration).createExecutionNotification(e,r)(this.fetch,this.basePath)}getExecutionNotification(e,r){return(0,t.ExecutionNotificationApiFp)(this.configuration).getExecutionNotification(e,r)(this.fetch,this.basePath)}queryExecutionNotifications(e,r,n,i,a,o){return(0,t.ExecutionNotificationApiFp)(this.configuration).queryExecutionNotifications(e,r,n,i,a,o)(this.fetch,this.basePath)}removeExecutionNotification(e,r){return(0,t.ExecutionNotificationApiFp)(this.configuration).removeExecutionNotification(e,r)(this.fetch,this.basePath)}updateExecutionNotification(e,r,n,i){return(0,t.ExecutionNotificationApiFp)(this.configuration).updateExecutionNotification(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionResultApiFetchParamCreator=function(e){return{getExecutionResultForEvent(t,r={}){if(null==t)throw new u("event_id","Required parameter event_id was null or undefined when calling getExecutionResultForEvent.");const a="/execution/result/event/{event_id}".replace("{event_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getExecutionResultForEventAndPlan(t,r,a={}){if(null==t)throw new u("event_id","Required parameter event_id was null or undefined when calling getExecutionResultForEventAndPlan.");if(null==r)throw new u("plan_id","Required parameter plan_id was null or undefined when calling getExecutionResultForEventAndPlan.");const o="/execution/result/event/{event_id}/plan/{plan_id}".replace("{event_id}",encodeURIComponent(String(t))).replace("{plan_id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}}}};t.ExecutionResultApiFp=function(e){return{getExecutionResultForEvent(r,n){const i=(0,t.ExecutionResultApiFetchParamCreator)(e).getExecutionResultForEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExecutionResultForEventAndPlan(r,n,i){const s=(0,t.ExecutionResultApiFetchParamCreator)(e).getExecutionResultForEventAndPlan(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionResultApiFactory=function(e,r,n){return{getExecutionResultForEvent:(i,a)=>(0,t.ExecutionResultApiFp)(e).getExecutionResultForEvent(i,a)(r,n),getExecutionResultForEventAndPlan:(i,a,o)=>(0,t.ExecutionResultApiFp)(e).getExecutionResultForEventAndPlan(i,a,o)(r,n)}};t.ExecutionResultApi=class extends s{getExecutionResultForEvent(e,r){return(0,t.ExecutionResultApiFp)(this.configuration).getExecutionResultForEvent(e,r)(this.fetch,this.basePath)}getExecutionResultForEventAndPlan(e,r,n){return(0,t.ExecutionResultApiFp)(this.configuration).getExecutionResultForEventAndPlan(e,r,n)(this.fetch,this.basePath)}};t.ExportApiFetchParamCreator=function(e){return{exportPlanRuns(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling exportPlanRuns.");if(null==r)throw new u("plan_id","Required parameter plan_id was null or undefined when calling exportPlanRuns.");if(null==a)throw new u("data_format","Required parameter data_format was null or undefined when calling exportPlanRuns.");const c="/exports/workspaces/{workspace_id}/planRuns".replace("{workspace_id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==r&&(y.plan_id=r),void 0!==a&&(y.data_format=a),void 0!==o&&(y.status=o),void 0!==s&&(y.limit=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}}}};t.ExportApiFp=function(e){return{exportPlanRuns(r,n,i,s,u,p){const c=(0,t.ExportApiFetchParamCreator)(e).exportPlanRuns(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExportApiFactory=function(e,r,n){return{exportPlanRuns:(i,a,o,s,u,p)=>(0,t.ExportApiFp)(e).exportPlanRuns(i,a,o,s,u,p)(r,n)}};t.ExportApi=class extends s{exportPlanRuns(e,r,n,i,a,o){return(0,t.ExportApiFp)(this.configuration).exportPlanRuns(e,r,n,i,a,o)(this.fetch,this.basePath)}};t.ExportRequestApiFetchParamCreator=function(e){return{exportJourneyRun(t,r,a={}){if(null==t)throw new u("journey_run_id","Required parameter journey_run_id was null or undefined when calling exportJourneyRun.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling exportJourneyRun.");const o="/exports/journeyRuns/{journey_run_id}".replace("{journey_run_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getExportJourney(t,r={}){if(null==t)throw new u("export_id","Required parameter export_id was null or undefined when calling getExportJourney.");const a="/exports/{export_id}".replace("{export_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeExportJourneyRun(t,r={}){if(null==t)throw new u("export_id","Required parameter export_id was null or undefined when calling removeExportJourneyRun.");const a="/exports/{export_id}".replace("{export_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateExportJourney(t,r,a,o={}){if(null==t)throw new u("export_id","Required parameter export_id was null or undefined when calling updateExportJourney.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling updateExportJourney.");const s="/exports/{export_id}".replace("{export_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ExportRequestApiFp=function(e){return{exportJourneyRun(r,n,i){const s=(0,t.ExportRequestApiFetchParamCreator)(e).exportJourneyRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExportJourney(r,n){const i=(0,t.ExportRequestApiFetchParamCreator)(e).getExportJourney(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeExportJourneyRun(r,n){const i=(0,t.ExportRequestApiFetchParamCreator)(e).removeExportJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateExportJourney(r,n,i,s){const u=(0,t.ExportRequestApiFetchParamCreator)(e).updateExportJourney(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExportRequestApiFactory=function(e,r,n){return{exportJourneyRun:(i,a,o)=>(0,t.ExportRequestApiFp)(e).exportJourneyRun(i,a,o)(r,n),getExportJourney:(i,a)=>(0,t.ExportRequestApiFp)(e).getExportJourney(i,a)(r,n),removeExportJourneyRun:(i,a)=>(0,t.ExportRequestApiFp)(e).removeExportJourneyRun(i,a)(r,n),updateExportJourney:(i,a,o,s)=>(0,t.ExportRequestApiFp)(e).updateExportJourney(i,a,o,s)(r,n)}};t.ExportRequestApi=class extends s{exportJourneyRun(e,r,n){return(0,t.ExportRequestApiFp)(this.configuration).exportJourneyRun(e,r,n)(this.fetch,this.basePath)}getExportJourney(e,r){return(0,t.ExportRequestApiFp)(this.configuration).getExportJourney(e,r)(this.fetch,this.basePath)}removeExportJourneyRun(e,r){return(0,t.ExportRequestApiFp)(this.configuration).removeExportJourneyRun(e,r)(this.fetch,this.basePath)}updateExportJourney(e,r,n,i){return(0,t.ExportRequestApiFp)(this.configuration).updateExportJourney(e,r,n,i)(this.fetch,this.basePath)}};t.FileUploadApiFetchParamCreator=function(e){return{createFileUpload(r,a,o,s,p,c,l,d={}){if(null==r)throw new u("organization_id","Required parameter organization_id was null or undefined when calling createFileUpload.");if(null==a)throw new u("name","Required parameter name was null or undefined when calling createFileUpload.");if(null==o)throw new u("file","Required parameter file was null or undefined when calling createFileUpload.");const h=n.parse("/files/fileUpload",!0),y=Object.assign({method:"POST"},d),m={},f=new n.URLSearchParams;if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==r&&f.set("organization_id",r),void 0!==a&&f.set("name",a),void 0!==s&&f.set("extension",s),void 0!==p&&f.set("content_type",p),void 0!==o&&f.set("file",o),void 0!==c&&f.set("file_size",c),l&&f.set("journeys",l.join(t.COLLECTION_FORMATS.csv)),m["Content-Type"]="application/x-www-form-urlencoded",h.query=Object.assign({},h.query,{},d.query),delete h.search,y.headers=Object.assign({},m,d.headers),y.body=f.toString(),{url:n.format(h),options:y}},downloadFileUpload(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling downloadFileUpload.");const a="/files/fileUpload/download/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getFileUpload(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFileUpload.");const a="/files/fileUpload/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryFileUploads(t,r,a,o,s={}){const u=n.parse("/files/fileUpload",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.journey_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},removeFileUpload(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeFileUpload.");const a="/files/fileUpload/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},signedFileUploadUrl(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling signedFileUploadUrl.");const a="/files/fileUpload/url/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateFileUpload(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateFileUpload.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateFileUpload.");const p="/files/fileUpload/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}null!=a&&(d.ifMatch=String(a)),null!=o&&(d["If-Match"]=String(o)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.FileUploadApiFp=function(e){return{createFileUpload(r,n,i,s,u,p,c,l){const d=(0,t.FileUploadApiFetchParamCreator)(e).createFileUpload(r,n,i,s,u,p,c,l);return(e=a,t=o)=>e(t+d.url,d.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},downloadFileUpload(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).downloadFileUpload(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFileUpload(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).getFileUpload(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryFileUploads(r,n,i,s,u){const p=(0,t.FileUploadApiFetchParamCreator)(e).queryFileUploads(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeFileUpload(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).removeFileUpload(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},signedFileUploadUrl(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).signedFileUploadUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateFileUpload(r,n,i,s,u){const p=(0,t.FileUploadApiFetchParamCreator)(e).updateFileUpload(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FileUploadApiFactory=function(e,r,n){return{createFileUpload:(i,a,o,s,u,p,c,l)=>(0,t.FileUploadApiFp)(e).createFileUpload(i,a,o,s,u,p,c,l)(r,n),downloadFileUpload:(i,a)=>(0,t.FileUploadApiFp)(e).downloadFileUpload(i,a)(r,n),getFileUpload:(i,a)=>(0,t.FileUploadApiFp)(e).getFileUpload(i,a)(r,n),queryFileUploads:(i,a,o,s,u)=>(0,t.FileUploadApiFp)(e).queryFileUploads(i,a,o,s,u)(r,n),removeFileUpload:(i,a)=>(0,t.FileUploadApiFp)(e).removeFileUpload(i,a)(r,n),signedFileUploadUrl:(i,a)=>(0,t.FileUploadApiFp)(e).signedFileUploadUrl(i,a)(r,n),updateFileUpload:(i,a,o,s,u)=>(0,t.FileUploadApiFp)(e).updateFileUpload(i,a,o,s,u)(r,n)}};t.FileUploadApi=class extends s{createFileUpload(e,r,n,i,a,o,s,u){return(0,t.FileUploadApiFp)(this.configuration).createFileUpload(e,r,n,i,a,o,s,u)(this.fetch,this.basePath)}downloadFileUpload(e,r){return(0,t.FileUploadApiFp)(this.configuration).downloadFileUpload(e,r)(this.fetch,this.basePath)}getFileUpload(e,r){return(0,t.FileUploadApiFp)(this.configuration).getFileUpload(e,r)(this.fetch,this.basePath)}queryFileUploads(e,r,n,i,a){return(0,t.FileUploadApiFp)(this.configuration).queryFileUploads(e,r,n,i,a)(this.fetch,this.basePath)}removeFileUpload(e,r){return(0,t.FileUploadApiFp)(this.configuration).removeFileUpload(e,r)(this.fetch,this.basePath)}signedFileUploadUrl(e,r){return(0,t.FileUploadApiFp)(this.configuration).signedFileUploadUrl(e,r)(this.fetch,this.basePath)}updateFileUpload(e,r,n,i,a){return(0,t.FileUploadApiFp)(this.configuration).updateFileUpload(e,r,n,i,a)(this.fetch,this.basePath)}};t.FindModelApiFetchParamCreator=function(e){return{getTestFindModels(t,r,a={}){if(null==t)throw new u("test_id","Required parameter test_id was null or undefined when calling getTestFindModels.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getTestFindModels.");const o="/findModel/test/{test_id}".replace("{test_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.environment_id=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}}}};t.FindModelApiFp=function(e){return{getTestFindModels(r,n,i){const s=(0,t.FindModelApiFetchParamCreator)(e).getTestFindModels(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FindModelApiFactory=function(e,r,n){return{getTestFindModels:(i,a,o)=>(0,t.FindModelApiFp)(e).getTestFindModels(i,a,o)(r,n)}};t.FindModelApi=class extends s{getTestFindModels(e,r,n){return(0,t.FindModelApiFp)(this.configuration).getTestFindModels(e,r,n)(this.fetch,this.basePath)}};t.FindSummaryApiFetchParamCreator=function(e){return{createFindSummary(t,r={}){if(null==t)throw new u("findsummary","Required parameter findsummary was null or undefined when calling createFindSummary.");const a=n.parse("/findSummary",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getJourneyFindSummaries(t,r,a={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling getJourneyFindSummaries.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getJourneyFindSummaries.");const o=n.parse("/findSummary",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.journey_id=t),void 0!==r&&(c.environment_id=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.FindSummaryApiFp=function(e){return{createFindSummary(r,n){const i=(0,t.FindSummaryApiFetchParamCreator)(e).createFindSummary(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJourneyFindSummaries(r,n,i){const s=(0,t.FindSummaryApiFetchParamCreator)(e).getJourneyFindSummaries(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FindSummaryApiFactory=function(e,r,n){return{createFindSummary:(i,a)=>(0,t.FindSummaryApiFp)(e).createFindSummary(i,a)(r,n),getJourneyFindSummaries:(i,a,o)=>(0,t.FindSummaryApiFp)(e).getJourneyFindSummaries(i,a,o)(r,n)}};t.FindSummaryApi=class extends s{createFindSummary(e,r){return(0,t.FindSummaryApiFp)(this.configuration).createFindSummary(e,r)(this.fetch,this.basePath)}getJourneyFindSummaries(e,r,n){return(0,t.FindSummaryApiFp)(this.configuration).getJourneyFindSummaries(e,r,n)(this.fetch,this.basePath)}};t.FlowApiFetchParamCreator=function(e){return{batchPutFlows(t,r,a,o={}){if(null==t)throw new u("update","Required parameter update was null or undefined when calling batchPutFlows.");const s=n.parse("/flows",!0),p=Object.assign({method:"PUT"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}void 0!==r&&(l.branch=r),void 0!==a&&(l.force=a),c["Content-Type"]="application/json",s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers);return p.body=JSON.stringify(t||{}),{url:n.format(s),options:p}},createFlow(t,r,a={}){if(null==t)throw new u("flow","Required parameter flow was null or undefined when calling createFlow.");const o=n.parse("/flows",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.branch=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},getFlow(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFlow.");const o="/flows/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.sourceControlTag=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getFlowElements(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFlowElements.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getFlowElements.");const o="/flows/{id}/elements".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.environment_id=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getFlowVersion(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFlowVersion.");if(null==r)throw new u("version","Required parameter version was null or undefined when calling getFlowVersion.");const o="/flows/{id}/{version}".replace("{id}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},listVersions(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling listVersions.");const a="/flows/{id}/version".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryFlows(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryFlows.");const h=n.parse("/flows",!0),y=Object.assign({method:"GET"},d),m={},f={};if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==t&&(f.organization_id=t),void 0!==r&&(f.flow_type=r),void 0!==a&&(f.reusable=a),void 0!==o&&(f.has_snippet=o),void 0!==s&&(f.snippetId=s),void 0!==p&&(f.branch=p),void 0!==c&&(f.limit=c),void 0!==l&&(f.cursor=l),h.query=Object.assign({},h.query,f,d.query),delete h.search,y.headers=Object.assign({},m,d.headers),{url:n.format(h),options:y}},recoverFlow(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverFlow.");const a="/recover/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeFlow(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeFlow.");const a="/flows/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateFlow(t,r,a,o,s,p={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateFlow.");if(null==r)throw new u("flow","Required parameter flow was null or undefined when calling updateFlow.");const c="/flows/{id}".replace("{id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"PATCH"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}void 0!==a&&(y.branch=a),void 0!==s&&(y.force=s),null!=o&&(h["If-Match"]=String(o)),h["Content-Type"]="application/json",l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers);return d.body=JSON.stringify(r||{}),{url:n.format(l),options:d}}}};t.FlowApiFp=function(e){return{batchPutFlows(r,n,i,s){const u=(0,t.FlowApiFetchParamCreator)(e).batchPutFlows(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createFlow(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).createFlow(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFlow(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).getFlow(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFlowElements(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).getFlowElements(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFlowVersion(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).getFlowVersion(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},listVersions(r,n){const i=(0,t.FlowApiFetchParamCreator)(e).listVersions(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryFlows(r,n,i,s,u,p,c,l,d){const h=(0,t.FlowApiFetchParamCreator)(e).queryFlows(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverFlow(r,n){const i=(0,t.FlowApiFetchParamCreator)(e).recoverFlow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeFlow(r,n){const i=(0,t.FlowApiFetchParamCreator)(e).removeFlow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateFlow(r,n,i,s,u,p){const c=(0,t.FlowApiFetchParamCreator)(e).updateFlow(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FlowApiFactory=function(e,r,n){return{batchPutFlows:(i,a,o,s)=>(0,t.FlowApiFp)(e).batchPutFlows(i,a,o,s)(r,n),createFlow:(i,a,o)=>(0,t.FlowApiFp)(e).createFlow(i,a,o)(r,n),getFlow:(i,a,o)=>(0,t.FlowApiFp)(e).getFlow(i,a,o)(r,n),getFlowElements:(i,a,o)=>(0,t.FlowApiFp)(e).getFlowElements(i,a,o)(r,n),getFlowVersion:(i,a,o)=>(0,t.FlowApiFp)(e).getFlowVersion(i,a,o)(r,n),listVersions:(i,a)=>(0,t.FlowApiFp)(e).listVersions(i,a)(r,n),queryFlows:(i,a,o,s,u,p,c,l,d)=>(0,t.FlowApiFp)(e).queryFlows(i,a,o,s,u,p,c,l,d)(r,n),recoverFlow:(i,a)=>(0,t.FlowApiFp)(e).recoverFlow(i,a)(r,n),removeFlow:(i,a)=>(0,t.FlowApiFp)(e).removeFlow(i,a)(r,n),updateFlow:(i,a,o,s,u,p)=>(0,t.FlowApiFp)(e).updateFlow(i,a,o,s,u,p)(r,n)}};t.FlowApi=class extends s{batchPutFlows(e,r,n,i){return(0,t.FlowApiFp)(this.configuration).batchPutFlows(e,r,n,i)(this.fetch,this.basePath)}createFlow(e,r,n){return(0,t.FlowApiFp)(this.configuration).createFlow(e,r,n)(this.fetch,this.basePath)}getFlow(e,r,n){return(0,t.FlowApiFp)(this.configuration).getFlow(e,r,n)(this.fetch,this.basePath)}getFlowElements(e,r,n){return(0,t.FlowApiFp)(this.configuration).getFlowElements(e,r,n)(this.fetch,this.basePath)}getFlowVersion(e,r,n){return(0,t.FlowApiFp)(this.configuration).getFlowVersion(e,r,n)(this.fetch,this.basePath)}listVersions(e,r){return(0,t.FlowApiFp)(this.configuration).listVersions(e,r)(this.fetch,this.basePath)}queryFlows(e,r,n,i,a,o,s,u,p){return(0,t.FlowApiFp)(this.configuration).queryFlows(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}recoverFlow(e,r){return(0,t.FlowApiFp)(this.configuration).recoverFlow(e,r)(this.fetch,this.basePath)}removeFlow(e,r){return(0,t.FlowApiFp)(this.configuration).removeFlow(e,r)(this.fetch,this.basePath)}updateFlow(e,r,n,i,a,o){return(0,t.FlowApiFp)(this.configuration).updateFlow(e,r,n,i,a,o)(this.fetch,this.basePath)}};t.HealthApiFetchParamCreator=function(e){return{isAlive(t={}){const r=n.parse("/health/live",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},isHealthy(t={}){const r=n.parse("/health",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},isHealthyVerbose(t={}){const r=n.parse("/health/verbose",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}}}};t.HealthApiFp=function(e){return{isAlive(r){const n=(0,t.HealthApiFetchParamCreator)(e).isAlive(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},isHealthy(r){const n=(0,t.HealthApiFetchParamCreator)(e).isHealthy(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},isHealthyVerbose(r){const n=(0,t.HealthApiFetchParamCreator)(e).isHealthyVerbose(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.HealthApiFactory=function(e,r,n){return{isAlive:i=>(0,t.HealthApiFp)(e).isAlive(i)(r,n),isHealthy:i=>(0,t.HealthApiFp)(e).isHealthy(i)(r,n),isHealthyVerbose:i=>(0,t.HealthApiFp)(e).isHealthyVerbose(i)(r,n)}};t.HealthApi=class extends s{isAlive(e){return(0,t.HealthApiFp)(this.configuration).isAlive(e)(this.fetch,this.basePath)}isHealthy(e){return(0,t.HealthApiFp)(this.configuration).isHealthy(e)(this.fetch,this.basePath)}isHealthyVerbose(e){return(0,t.HealthApiFp)(this.configuration).isHealthyVerbose(e)(this.fetch,this.basePath)}};t.InsightApiFetchParamCreator=function(e){return{createInsight(t,r={}){if(null==t)throw new u("insight","Required parameter insight was null or undefined when calling createInsight.");const a=n.parse("/insights",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getInsight(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getInsight.");const a="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},putInsight(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling putInsight.");if(null==r)throw new u("insight","Required parameter insight was null or undefined when calling putInsight.");const o="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},queryInsights(t,r,a,o,s,u,p,c,l={}){const d=n.parse("/insights",!0),h=Object.assign({method:"GET"},l),y={},m={};if(e&&(e.username||e.password)&&(y.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;y.Authorization=t}return void 0!==t&&(m.organization_id=t),void 0!==r&&(m.workspace_id=r),void 0!==a&&(m.environment_id=a),void 0!==o&&(m.application_id=o),void 0!==s&&(m.archived=s),void 0!==u&&(m.insight_type=u),void 0!==p&&(m.limit=p),void 0!==c&&(m.cursor=c),d.query=Object.assign({},d.query,m,l.query),delete d.search,h.headers=Object.assign({},y,l.headers),{url:n.format(d),options:h}},removeInsight(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeInsight.");const a="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateInsight(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateInsight.");if(null==r)throw new u("insight","Required parameter insight was null or undefined when calling updateInsight.");const s="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.InsightApiFp=function(e){return{createInsight(r,n){const i=(0,t.InsightApiFetchParamCreator)(e).createInsight(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getInsight(r,n){const i=(0,t.InsightApiFetchParamCreator)(e).getInsight(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putInsight(r,n,i){const s=(0,t.InsightApiFetchParamCreator)(e).putInsight(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryInsights(r,n,i,s,u,p,c,l,d){const h=(0,t.InsightApiFetchParamCreator)(e).queryInsights(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeInsight(r,n){const i=(0,t.InsightApiFetchParamCreator)(e).removeInsight(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateInsight(r,n,i,s){const u=(0,t.InsightApiFetchParamCreator)(e).updateInsight(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.InsightApiFactory=function(e,r,n){return{createInsight:(i,a)=>(0,t.InsightApiFp)(e).createInsight(i,a)(r,n),getInsight:(i,a)=>(0,t.InsightApiFp)(e).getInsight(i,a)(r,n),putInsight:(i,a,o)=>(0,t.InsightApiFp)(e).putInsight(i,a,o)(r,n),queryInsights:(i,a,o,s,u,p,c,l,d)=>(0,t.InsightApiFp)(e).queryInsights(i,a,o,s,u,p,c,l,d)(r,n),removeInsight:(i,a)=>(0,t.InsightApiFp)(e).removeInsight(i,a)(r,n),updateInsight:(i,a,o,s)=>(0,t.InsightApiFp)(e).updateInsight(i,a,o,s)(r,n)}};t.InsightApi=class extends s{createInsight(e,r){return(0,t.InsightApiFp)(this.configuration).createInsight(e,r)(this.fetch,this.basePath)}getInsight(e,r){return(0,t.InsightApiFp)(this.configuration).getInsight(e,r)(this.fetch,this.basePath)}putInsight(e,r,n){return(0,t.InsightApiFp)(this.configuration).putInsight(e,r,n)(this.fetch,this.basePath)}queryInsights(e,r,n,i,a,o,s,u,p){return(0,t.InsightApiFp)(this.configuration).queryInsights(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}removeInsight(e,r){return(0,t.InsightApiFp)(this.configuration).removeInsight(e,r)(this.fetch,this.basePath)}updateInsight(e,r,n,i){return(0,t.InsightApiFp)(this.configuration).updateInsight(e,r,n,i)(this.fetch,this.basePath)}};t.IssueApiFetchParamCreator=function(e){return{commit(t,r,a={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling commit.");if(null==r)throw new u("If_Match","Required parameter If_Match was null or undefined when calling commit.");const o="/issues/{issueId}/commit".replace("{issueId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return null!=r&&(c["If-Match"]=String(r)),s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},createIssue(t,r,a={}){if(null==t)throw new u("issue","Required parameter issue was null or undefined when calling createIssue.");const o=n.parse("/issues",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.issue_tracker_id=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},getIssue(t,r={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling getIssue.");const a="/issues/{issueId}".replace("{issueId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getIssueSuggestions(t,r,a,o={}){if(null==t)throw new u("integrationId","Required parameter integrationId was null or undefined when calling getIssueSuggestions.");if(null==r)throw new u("project_id","Required parameter project_id was null or undefined when calling getIssueSuggestions.");const s="/integrations/{integrationId}/issues/suggestions".replace("{integrationId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.project_id=r),void 0!==a&&(d.query=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryIssuesByWorkspaceId(t,r,a,o,s,p={}){if(null==t)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling queryIssuesByWorkspaceId.");const c="/workspaces/{workspaceId}/issues".replace("{workspaceId}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==r&&(y.open=r),void 0!==a&&(y.linkedTo=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}},queryUncommittedByIntegrationId(t,r,a,o={}){if(null==t)throw new u("integrationId","Required parameter integrationId was null or undefined when calling queryUncommittedByIntegrationId.");const s="/integrations/{integrationId}/issues/uncommitted".replace("{integrationId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},removeIssue(t,r={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling removeIssue.");const a="/issues/{issueId}".replace("{issueId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCommitted(t,r,a,o={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling updateCommitted.");const s="/issues/{issueId}/committed".replace("{issueId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateIssue(t,r,a,o={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling updateIssue.");const s="/issues/{issueId}".replace("{issueId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.IssueApiFp=function(e){return{commit(r,n,i){const s=(0,t.IssueApiFetchParamCreator)(e).commit(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},createIssue(r,n,i){const s=(0,t.IssueApiFetchParamCreator)(e).createIssue(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssue(r,n){const i=(0,t.IssueApiFetchParamCreator)(e).getIssue(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssueSuggestions(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).getIssueSuggestions(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryIssuesByWorkspaceId(r,n,i,s,u,p){const c=(0,t.IssueApiFetchParamCreator)(e).queryIssuesByWorkspaceId(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryUncommittedByIntegrationId(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).queryUncommittedByIntegrationId(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeIssue(r,n){const i=(0,t.IssueApiFetchParamCreator)(e).removeIssue(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateCommitted(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).updateCommitted(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateIssue(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).updateIssue(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.IssueApiFactory=function(e,r,n){return{commit:(i,a,o)=>(0,t.IssueApiFp)(e).commit(i,a,o)(r,n),createIssue:(i,a,o)=>(0,t.IssueApiFp)(e).createIssue(i,a,o)(r,n),getIssue:(i,a)=>(0,t.IssueApiFp)(e).getIssue(i,a)(r,n),getIssueSuggestions:(i,a,o,s)=>(0,t.IssueApiFp)(e).getIssueSuggestions(i,a,o,s)(r,n),queryIssuesByWorkspaceId:(i,a,o,s,u,p)=>(0,t.IssueApiFp)(e).queryIssuesByWorkspaceId(i,a,o,s,u,p)(r,n),queryUncommittedByIntegrationId:(i,a,o,s)=>(0,t.IssueApiFp)(e).queryUncommittedByIntegrationId(i,a,o,s)(r,n),removeIssue:(i,a)=>(0,t.IssueApiFp)(e).removeIssue(i,a)(r,n),updateCommitted:(i,a,o,s)=>(0,t.IssueApiFp)(e).updateCommitted(i,a,o,s)(r,n),updateIssue:(i,a,o,s)=>(0,t.IssueApiFp)(e).updateIssue(i,a,o,s)(r,n)}};t.IssueApi=class extends s{commit(e,r,n){return(0,t.IssueApiFp)(this.configuration).commit(e,r,n)(this.fetch,this.basePath)}createIssue(e,r,n){return(0,t.IssueApiFp)(this.configuration).createIssue(e,r,n)(this.fetch,this.basePath)}getIssue(e,r){return(0,t.IssueApiFp)(this.configuration).getIssue(e,r)(this.fetch,this.basePath)}getIssueSuggestions(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).getIssueSuggestions(e,r,n,i)(this.fetch,this.basePath)}queryIssuesByWorkspaceId(e,r,n,i,a,o){return(0,t.IssueApiFp)(this.configuration).queryIssuesByWorkspaceId(e,r,n,i,a,o)(this.fetch,this.basePath)}queryUncommittedByIntegrationId(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).queryUncommittedByIntegrationId(e,r,n,i)(this.fetch,this.basePath)}removeIssue(e,r){return(0,t.IssueApiFp)(this.configuration).removeIssue(e,r)(this.fetch,this.basePath)}updateCommitted(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).updateCommitted(e,r,n,i)(this.fetch,this.basePath)}updateIssue(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).updateIssue(e,r,n,i)(this.fetch,this.basePath)}};t.JourneyApiFetchParamCreator=function(e){return{addLabelsToJourneys(t,r,a={}){if(null==t)throw new u("ids","Required parameter ids was null or undefined when calling addLabelsToJourneys.");if(null==r)throw new u("labels","Required parameter labels was null or undefined when calling addLabelsToJourneys.");const o=n.parse("/test/journeys/addLabels",!0),s=Object.assign({method:"PATCH"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}t&&(c.ids=t),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(r||{}),{url:n.format(o),options:s}},createJourney(t,r,a={}){if(null==t)throw new u("journey","Required parameter journey was null or undefined when calling createJourney.");const o=n.parse("/test/journeys",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.branch=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},duplicateJourneyWithCustomLoginFlow(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling duplicateJourneyWithCustomLoginFlow.");if(null==r)throw new u("flow_id","Required parameter flow_id was null or undefined when calling duplicateJourneyWithCustomLoginFlow.");const o="/test/journey/{id}/duplicateCustomLogin".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);const l="application/json"===p.headers["Content-Type"];return p.body=l?JSON.stringify(r||{}):r||"",{url:n.format(s),options:p}},getJourney(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getJourney.");const o="/test/journey/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.sourceControlTag=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},listVersions(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling listVersions.");const a="/test/journey/{id}/version".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryJourneys(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryJourneys.");const h=n.parse("/test/journeys",!0),y=Object.assign({method:"GET"},d),m={},f={};if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==t&&(f.organization_id=t),r&&(f.include_labels=r),a&&(f.exclude_labels=a),o&&(f.include_test_case_ids=o),void 0!==s&&(f.branch=s),void 0!==p&&(f.branch_changes_only=p),void 0!==c&&(f.limit=c),void 0!==l&&(f.cursor=l),h.query=Object.assign({},h.query,f,d.query),delete h.search,y.headers=Object.assign({},m,d.headers),{url:n.format(h),options:y}},recoverJourney(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverJourney.");const a="/recover/test/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeJourney(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeJourney.");const a="/test/journey/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeJourneys(t,r={}){if(null==t)throw new u("journey_ids","Required parameter journey_ids was null or undefined when calling removeJourneys.");const a=n.parse("/test/journeys/removeMultiple",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},updateJourney(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateJourney.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateJourney.");const p="/test/journey/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==a&&(h.branch=a),null!=o&&(d["If-Match"]=String(o)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.JourneyApiFp=function(e){return{addLabelsToJourneys(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).addLabelsToJourneys(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createJourney(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).createJourney(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},duplicateJourneyWithCustomLoginFlow(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).duplicateJourneyWithCustomLoginFlow(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJourney(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).getJourney(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},listVersions(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).listVersions(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneys(r,n,i,s,u,p,c,l,d){const h=(0,t.JourneyApiFetchParamCreator)(e).queryJourneys(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverJourney(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).recoverJourney(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeJourney(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).removeJourney(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeJourneys(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).removeJourneys(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateJourney(r,n,i,s,u){const p=(0,t.JourneyApiFetchParamCreator)(e).updateJourney(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.JourneyApiFactory=function(e,r,n){return{addLabelsToJourneys:(i,a,o)=>(0,t.JourneyApiFp)(e).addLabelsToJourneys(i,a,o)(r,n),createJourney:(i,a,o)=>(0,t.JourneyApiFp)(e).createJourney(i,a,o)(r,n),duplicateJourneyWithCustomLoginFlow:(i,a,o)=>(0,t.JourneyApiFp)(e).duplicateJourneyWithCustomLoginFlow(i,a,o)(r,n),getJourney:(i,a,o)=>(0,t.JourneyApiFp)(e).getJourney(i,a,o)(r,n),listVersions:(i,a)=>(0,t.JourneyApiFp)(e).listVersions(i,a)(r,n),queryJourneys:(i,a,o,s,u,p,c,l,d)=>(0,t.JourneyApiFp)(e).queryJourneys(i,a,o,s,u,p,c,l,d)(r,n),recoverJourney:(i,a)=>(0,t.JourneyApiFp)(e).recoverJourney(i,a)(r,n),removeJourney:(i,a)=>(0,t.JourneyApiFp)(e).removeJourney(i,a)(r,n),removeJourneys:(i,a)=>(0,t.JourneyApiFp)(e).removeJourneys(i,a)(r,n),updateJourney:(i,a,o,s,u)=>(0,t.JourneyApiFp)(e).updateJourney(i,a,o,s,u)(r,n)}};t.JourneyApi=class extends s{addLabelsToJourneys(e,r,n){return(0,t.JourneyApiFp)(this.configuration).addLabelsToJourneys(e,r,n)(this.fetch,this.basePath)}createJourney(e,r,n){return(0,t.JourneyApiFp)(this.configuration).createJourney(e,r,n)(this.fetch,this.basePath)}duplicateJourneyWithCustomLoginFlow(e,r,n){return(0,t.JourneyApiFp)(this.configuration).duplicateJourneyWithCustomLoginFlow(e,r,n)(this.fetch,this.basePath)}getJourney(e,r,n){return(0,t.JourneyApiFp)(this.configuration).getJourney(e,r,n)(this.fetch,this.basePath)}listVersions(e,r){return(0,t.JourneyApiFp)(this.configuration).listVersions(e,r)(this.fetch,this.basePath)}queryJourneys(e,r,n,i,a,o,s,u,p){return(0,t.JourneyApiFp)(this.configuration).queryJourneys(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}recoverJourney(e,r){return(0,t.JourneyApiFp)(this.configuration).recoverJourney(e,r)(this.fetch,this.basePath)}removeJourney(e,r){return(0,t.JourneyApiFp)(this.configuration).removeJourney(e,r)(this.fetch,this.basePath)}removeJourneys(e,r){return(0,t.JourneyApiFp)(this.configuration).removeJourneys(e,r)(this.fetch,this.basePath)}updateJourney(e,r,n,i,a){return(0,t.JourneyApiFp)(this.configuration).updateJourney(e,r,n,i,a)(this.fetch,this.basePath)}};t.JourneyRunApiFetchParamCreator=function(e){return{createJourneyRun(t,r={}){if(null==t)throw new u("journeyRun","Required parameter journeyRun was null or undefined when calling createJourneyRun.");const a=n.parse("/journeyRuns",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},deleteJourneyRunFailureCategorization(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling deleteJourneyRunFailureCategorization.");const o="/journeyRun/{id}/failureCategorization".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"DELETE"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return null!=r&&(c["If-Match"]=String(r)),s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},duplicateTestRun(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling duplicateTestRun.");if(null==r)throw new u("testRunDuplicationRequest","Required parameter testRunDuplicationRequest was null or undefined when calling duplicateTestRun.");const o="/journeyRuns/{id}/duplicate".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getJourneyRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getJourneyRun.");const a="/journeyRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryJourneyRunInsights(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling queryJourneyRunInsights.");if(null==r)throw new u("insight_type","Required parameter insight_type was null or undefined when calling queryJourneyRunInsights.");const p="/journeyRun/{id}/insights".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.insight_type=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryJourneyRunStateDetections(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling queryJourneyRunStateDetections.");if(null==r)throw new u("category","Required parameter category was null or undefined when calling queryJourneyRunStateDetections.");const h="/journeyRun/{id}/stateDetections".replace("{id}",encodeURIComponent(String(t))),y=n.parse(h,!0),m=Object.assign({method:"GET"},d),f={},g={};if(e&&(e.username||e.password)&&(f.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;f.Authorization=t}return void 0!==r&&(g.category=r),void 0!==a&&(g.group_id=a),void 0!==o&&(g.start=o),void 0!==s&&(g.end=s),void 0!==p&&(g.current_state=p),void 0!==c&&(g.limit=c),void 0!==l&&(g.cursor=l),y.query=Object.assign({},y.query,g,d.query),delete y.search,m.headers=Object.assign({},f,d.headers),{url:n.format(y),options:m}},queryJourneyRunsByPlanAndJourney(t,r,a,o,s,p={}){if(null==t)throw new u("plan_id","Required parameter plan_id was null or undefined when calling queryJourneyRunsByPlanAndJourney.");if(null==r)throw new u("journey_id","Required parameter journey_id was null or undefined when calling queryJourneyRunsByPlanAndJourney.");const c="/journeyRuns/plan/{plan_id}/journey/{journey_id}".replace("{plan_id}",encodeURIComponent(String(t))).replace("{journey_id}",encodeURIComponent(String(r))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==a&&(y.status=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}},queryJourneyRunsByPlanRun(t,r,a,o,s={}){if(null==t)throw new u("plan_run_id","Required parameter plan_run_id was null or undefined when calling queryJourneyRunsByPlanRun.");const p="/journeyRuns/planRun/{plan_run_id}".replace("{plan_run_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryJourneyRunsByWorkspace(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryJourneyRunsByWorkspace.");const p="/journeyRuns/workspace/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryLatestJourneyRunByVmIdAndName(t,r,a={}){if(null==t)throw new u("virtual_machine_id","Required parameter virtual_machine_id was null or undefined when calling queryLatestJourneyRunByVmIdAndName.");if(null==r)throw new u("virtual_machine_name","Required parameter virtual_machine_name was null or undefined when calling queryLatestJourneyRunByVmIdAndName.");const o="/journeyRuns/virtualMachine/{virtual_machine_id}/{virtual_machine_name}".replace("{virtual_machine_id}",encodeURIComponent(String(t))).replace("{virtual_machine_name}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryRecentJourneyRunsByJourney(t,r,a,o={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling queryRecentJourneyRunsByJourney.");const s="/journeyRuns/journey/{journey_id}".replace("{journey_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryRecentJourneyRunsByJourneyAndPlan(t,r,a={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling queryRecentJourneyRunsByJourneyAndPlan.");if(null==r)throw new u("maxRunsPerJourney","Required parameter maxRunsPerJourney was null or undefined when calling queryRecentJourneyRunsByJourneyAndPlan.");const o="/journeyRuns/journey/{journey_id}/byPlan".replace("{journey_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.maxRunsPerJourney=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryRecentJourneyRunsByJourneyAndWorkspace(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryRecentJourneyRunsByJourneyAndWorkspace.");if(null==r)throw new u("maxRunsPerJourney","Required parameter maxRunsPerJourney was null or undefined when calling queryRecentJourneyRunsByJourneyAndWorkspace.");const o="/journeyRuns/workspace/{workspace_id}/byJourney".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.maxRunsPerJourney=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryTestRunSummaryByWorkspace(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestRunSummaryByWorkspace.");if(null==r)throw new u("testRunSummaryFilterOptions","Required parameter testRunSummaryFilterOptions was null or undefined when calling queryTestRunSummaryByWorkspace.");const o="/journeyRuns/workspace/{workspace_id}/querySummarys".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},removeJourneyRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeJourneyRun.");const a="/journeyRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},terminateJourneyRun(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminateJourneyRun.");const o="/journeyRun/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.terminationReason=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},updateJourneyRun(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateJourneyRun.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateJourneyRun.");const s="/journeyRuns/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateJourneyRunFailureCategorization(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateJourneyRunFailureCategorization.");if(null==r)throw new u("failure_category_id","Required parameter failure_category_id was null or undefined when calling updateJourneyRunFailureCategorization.");const s="/journeyRun/{id}/failureCategorization/{failure_category_id}".replace("{id}",encodeURIComponent(String(t))).replace("{failure_category_id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return null!=a&&(l["If-Match"]=String(a)),p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}}}};t.JourneyRunApiFp=function(e){return{createJourneyRun(r,n){const i=(0,t.JourneyRunApiFetchParamCreator)(e).createJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},deleteJourneyRunFailureCategorization(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).deleteJourneyRunFailureCategorization(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},duplicateTestRun(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).duplicateTestRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJourneyRun(r,n){const i=(0,t.JourneyRunApiFetchParamCreator)(e).getJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunInsights(r,n,i,s,u){const p=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunInsights(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunStateDetections(r,n,i,s,u,p,c,l,d){const h=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunStateDetections(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunsByPlanAndJourney(r,n,i,s,u,p){const c=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunsByPlanAndJourney(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunsByPlanRun(r,n,i,s,u){const p=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunsByPlanRun(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunsByWorkspace(r,n,i,s,u){const p=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunsByWorkspace(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryLatestJourneyRunByVmIdAndName(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryLatestJourneyRunByVmIdAndName(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRecentJourneyRunsByJourney(r,n,i,s){const u=(0,t.JourneyRunApiFetchParamCreator)(e).queryRecentJourneyRunsByJourney(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRecentJourneyRunsByJourneyAndPlan(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryRecentJourneyRunsByJourneyAndPlan(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRecentJourneyRunsByJourneyAndWorkspace(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryRecentJourneyRunsByJourneyAndWorkspace(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestRunSummaryByWorkspace(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryTestRunSummaryByWorkspace(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeJourneyRun(r,n){const i=(0,t.JourneyRunApiFetchParamCreator)(e).removeJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},terminateJourneyRun(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).terminateJourneyRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateJourneyRun(r,n,i,s){const u=(0,t.JourneyRunApiFetchParamCreator)(e).updateJourneyRun(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateJourneyRunFailureCategorization(r,n,i,s){const u=(0,t.JourneyRunApiFetchParamCreator)(e).updateJourneyRunFailureCategorization(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.JourneyRunApiFactory=function(e,r,n){return{createJourneyRun:(i,a)=>(0,t.JourneyRunApiFp)(e).createJourneyRun(i,a)(r,n),deleteJourneyRunFailureCategorization:(i,a,o)=>(0,t.JourneyRunApiFp)(e).deleteJourneyRunFailureCategorization(i,a,o)(r,n),duplicateTestRun:(i,a,o)=>(0,t.JourneyRunApiFp)(e).duplicateTestRun(i,a,o)(r,n),getJourneyRun:(i,a)=>(0,t.JourneyRunApiFp)(e).getJourneyRun(i,a)(r,n),queryJourneyRunInsights:(i,a,o,s,u)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunInsights(i,a,o,s,u)(r,n),queryJourneyRunStateDetections:(i,a,o,s,u,p,c,l,d)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunStateDetections(i,a,o,s,u,p,c,l,d)(r,n),queryJourneyRunsByPlanAndJourney:(i,a,o,s,u,p)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunsByPlanAndJourney(i,a,o,s,u,p)(r,n),queryJourneyRunsByPlanRun:(i,a,o,s,u)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunsByPlanRun(i,a,o,s,u)(r,n),queryJourneyRunsByWorkspace:(i,a,o,s,u)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunsByWorkspace(i,a,o,s,u)(r,n),queryLatestJourneyRunByVmIdAndName:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryLatestJourneyRunByVmIdAndName(i,a,o)(r,n),queryRecentJourneyRunsByJourney:(i,a,o,s)=>(0,t.JourneyRunApiFp)(e).queryRecentJourneyRunsByJourney(i,a,o,s)(r,n),queryRecentJourneyRunsByJourneyAndPlan:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryRecentJourneyRunsByJourneyAndPlan(i,a,o)(r,n),queryRecentJourneyRunsByJourneyAndWorkspace:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryRecentJourneyRunsByJourneyAndWorkspace(i,a,o)(r,n),queryTestRunSummaryByWorkspace:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryTestRunSummaryByWorkspace(i,a,o)(r,n),removeJourneyRun:(i,a)=>(0,t.JourneyRunApiFp)(e).removeJourneyRun(i,a)(r,n),terminateJourneyRun:(i,a,o)=>(0,t.JourneyRunApiFp)(e).terminateJourneyRun(i,a,o)(r,n),updateJourneyRun:(i,a,o,s)=>(0,t.JourneyRunApiFp)(e).updateJourneyRun(i,a,o,s)(r,n),updateJourneyRunFailureCategorization:(i,a,o,s)=>(0,t.JourneyRunApiFp)(e).updateJourneyRunFailureCategorization(i,a,o,s)(r,n)}};t.JourneyRunApi=class extends s{createJourneyRun(e,r){return(0,t.JourneyRunApiFp)(this.configuration).createJourneyRun(e,r)(this.fetch,this.basePath)}deleteJourneyRunFailureCategorization(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).deleteJourneyRunFailureCategorization(e,r,n)(this.fetch,this.basePath)}duplicateTestRun(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).duplicateTestRun(e,r,n)(this.fetch,this.basePath)}getJourneyRun(e,r){return(0,t.JourneyRunApiFp)(this.configuration).getJourneyRun(e,r)(this.fetch,this.basePath)}queryJourneyRunInsights(e,r,n,i,a){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunInsights(e,r,n,i,a)(this.fetch,this.basePath)}queryJourneyRunStateDetections(e,r,n,i,a,o,s,u,p){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunStateDetections(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryJourneyRunsByPlanAndJourney(e,r,n,i,a,o){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunsByPlanAndJourney(e,r,n,i,a,o)(this.fetch,this.basePath)}queryJourneyRunsByPlanRun(e,r,n,i,a){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunsByPlanRun(e,r,n,i,a)(this.fetch,this.basePath)}queryJourneyRunsByWorkspace(e,r,n,i,a){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunsByWorkspace(e,r,n,i,a)(this.fetch,this.basePath)}queryLatestJourneyRunByVmIdAndName(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryLatestJourneyRunByVmIdAndName(e,r,n)(this.fetch,this.basePath)}queryRecentJourneyRunsByJourney(e,r,n,i){return(0,t.JourneyRunApiFp)(this.configuration).queryRecentJourneyRunsByJourney(e,r,n,i)(this.fetch,this.basePath)}queryRecentJourneyRunsByJourneyAndPlan(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryRecentJourneyRunsByJourneyAndPlan(e,r,n)(this.fetch,this.basePath)}queryRecentJourneyRunsByJourneyAndWorkspace(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryRecentJourneyRunsByJourneyAndWorkspace(e,r,n)(this.fetch,this.basePath)}queryTestRunSummaryByWorkspace(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryTestRunSummaryByWorkspace(e,r,n)(this.fetch,this.basePath)}removeJourneyRun(e,r){return(0,t.JourneyRunApiFp)(this.configuration).removeJourneyRun(e,r)(this.fetch,this.basePath)}terminateJourneyRun(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).terminateJourneyRun(e,r,n)(this.fetch,this.basePath)}updateJourneyRun(e,r,n,i){return(0,t.JourneyRunApiFp)(this.configuration).updateJourneyRun(e,r,n,i)(this.fetch,this.basePath)}updateJourneyRunFailureCategorization(e,r,n,i){return(0,t.JourneyRunApiFp)(this.configuration).updateJourneyRunFailureCategorization(e,r,n,i)(this.fetch,this.basePath)}};t.LinkAgentApiFetchParamCreator=function(e){return{cleanupLinkAgents(t={}){const r=n.parse("/cron/link/agents/cleanup",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getLinkServerForAgent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getLinkServerForAgent.");const a="/link/agents/{id}/server".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},linkAgentHeartbeat(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling linkAgentHeartbeat.");const o="/link/agents/{id}/heartbeat".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},onLinkAgentStartup(t,r={}){if(null==t)throw new u("agent","Required parameter agent was null or undefined when calling onLinkAgentStartup.");const a=n.parse("/link/agents",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},queryLinkAgents(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryLinkAgents.");const c=n.parse("/link/agents",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.label=r),void 0!==a&&(h.max_heartbeat_age_sec=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},redirectToLatestDistribution(t,r,a,o={}){const s=n.parse("/link/agents/distribution-redirect",!0),u=Object.assign({method:"GET"},o),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.branch=t),void 0!==r&&(c.format=r),void 0!==a&&(c.auto_update=a),s.query=Object.assign({},s.query,c,o.query),delete s.search,u.headers=Object.assign({},p,o.headers),{url:n.format(s),options:u}},removeLinkAgent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeLinkAgent.");const a="/link/agents/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},terminateLinkAgent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminateLinkAgent.");const a="/link/agents/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.LinkAgentApiFp=function(e){return{cleanupLinkAgents(r){const n=(0,t.LinkAgentApiFetchParamCreator)(e).cleanupLinkAgents(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getLinkServerForAgent(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).getLinkServerForAgent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},linkAgentHeartbeat(r,n,i){const s=(0,t.LinkAgentApiFetchParamCreator)(e).linkAgentHeartbeat(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},onLinkAgentStartup(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).onLinkAgentStartup(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryLinkAgents(r,n,i,s,u,p){const c=(0,t.LinkAgentApiFetchParamCreator)(e).queryLinkAgents(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},redirectToLatestDistribution(r,n,i,s){const u=(0,t.LinkAgentApiFetchParamCreator)(e).redirectToLatestDistribution(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeLinkAgent(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).removeLinkAgent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},terminateLinkAgent(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).terminateLinkAgent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.LinkAgentApiFactory=function(e,r,n){return{cleanupLinkAgents:i=>(0,t.LinkAgentApiFp)(e).cleanupLinkAgents(i)(r,n),getLinkServerForAgent:(i,a)=>(0,t.LinkAgentApiFp)(e).getLinkServerForAgent(i,a)(r,n),linkAgentHeartbeat:(i,a,o)=>(0,t.LinkAgentApiFp)(e).linkAgentHeartbeat(i,a,o)(r,n),onLinkAgentStartup:(i,a)=>(0,t.LinkAgentApiFp)(e).onLinkAgentStartup(i,a)(r,n),queryLinkAgents:(i,a,o,s,u,p)=>(0,t.LinkAgentApiFp)(e).queryLinkAgents(i,a,o,s,u,p)(r,n),redirectToLatestDistribution:(i,a,o,s)=>(0,t.LinkAgentApiFp)(e).redirectToLatestDistribution(i,a,o,s)(r,n),removeLinkAgent:(i,a)=>(0,t.LinkAgentApiFp)(e).removeLinkAgent(i,a)(r,n),terminateLinkAgent:(i,a)=>(0,t.LinkAgentApiFp)(e).terminateLinkAgent(i,a)(r,n)}};t.LinkAgentApi=class extends s{cleanupLinkAgents(e){return(0,t.LinkAgentApiFp)(this.configuration).cleanupLinkAgents(e)(this.fetch,this.basePath)}getLinkServerForAgent(e,r){return(0,t.LinkAgentApiFp)(this.configuration).getLinkServerForAgent(e,r)(this.fetch,this.basePath)}linkAgentHeartbeat(e,r,n){return(0,t.LinkAgentApiFp)(this.configuration).linkAgentHeartbeat(e,r,n)(this.fetch,this.basePath)}onLinkAgentStartup(e,r){return(0,t.LinkAgentApiFp)(this.configuration).onLinkAgentStartup(e,r)(this.fetch,this.basePath)}queryLinkAgents(e,r,n,i,a,o){return(0,t.LinkAgentApiFp)(this.configuration).queryLinkAgents(e,r,n,i,a,o)(this.fetch,this.basePath)}redirectToLatestDistribution(e,r,n,i){return(0,t.LinkAgentApiFp)(this.configuration).redirectToLatestDistribution(e,r,n,i)(this.fetch,this.basePath)}removeLinkAgent(e,r){return(0,t.LinkAgentApiFp)(this.configuration).removeLinkAgent(e,r)(this.fetch,this.basePath)}terminateLinkAgent(e,r){return(0,t.LinkAgentApiFp)(this.configuration).terminateLinkAgent(e,r)(this.fetch,this.basePath)}};t.LinkLabelApiFetchParamCreator=function(e){return{deleteLinkStack(t,r,a={}){if(null==t)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling deleteLinkStack.");if(null==r)throw new u("label","Required parameter label was null or undefined when calling deleteLinkStack.");const o="/link/{workspaceId}/label/{label}".replace("{workspaceId}",encodeURIComponent(String(t))).replace("{label}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"DELETE"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getLinkLabel(t,r,a={}){if(null==t)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling getLinkLabel.");if(null==r)throw new u("label","Required parameter label was null or undefined when calling getLinkLabel.");const o="/link/{workspaceId}/label/{label}".replace("{workspaceId}",encodeURIComponent(String(t))).replace("{label}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryLinkLabels(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryLinkLabels.");const a=n.parse("/link/labels",!0),o=Object.assign({method:"GET"},r),s={},p={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}return void 0!==t&&(p.workspace_id=t),a.query=Object.assign({},a.query,p,r.query),delete a.search,o.headers=Object.assign({},s,r.headers),{url:n.format(a),options:o}}}};t.LinkLabelApiFp=function(e){return{deleteLinkStack(r,n,i){const s=(0,t.LinkLabelApiFetchParamCreator)(e).deleteLinkStack(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getLinkLabel(r,n,i){const s=(0,t.LinkLabelApiFetchParamCreator)(e).getLinkLabel(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryLinkLabels(r,n){const i=(0,t.LinkLabelApiFetchParamCreator)(e).queryLinkLabels(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.LinkLabelApiFactory=function(e,r,n){return{deleteLinkStack:(i,a,o)=>(0,t.LinkLabelApiFp)(e).deleteLinkStack(i,a,o)(r,n),getLinkLabel:(i,a,o)=>(0,t.LinkLabelApiFp)(e).getLinkLabel(i,a,o)(r,n),queryLinkLabels:(i,a)=>(0,t.LinkLabelApiFp)(e).queryLinkLabels(i,a)(r,n)}};t.LinkLabelApi=class extends s{deleteLinkStack(e,r,n){return(0,t.LinkLabelApiFp)(this.configuration).deleteLinkStack(e,r,n)(this.fetch,this.basePath)}getLinkLabel(e,r,n){return(0,t.LinkLabelApiFp)(this.configuration).getLinkLabel(e,r,n)(this.fetch,this.basePath)}queryLinkLabels(e,r){return(0,t.LinkLabelApiFp)(this.configuration).queryLinkLabels(e,r)(this.fetch,this.basePath)}};t.LinkServerApiFetchParamCreator=function(e){return{cleanupLinkServers(t={}){const r=n.parse("/cron/link/servers/cleanup",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getLinkServer(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getLinkServer.");const a="/link/servers/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},linkServerHeartbeat(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling linkServerHeartbeat.");const o="/link/servers/{id}/heartbeat".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},onLinkServerStartup(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling onLinkServerStartup.");if(null==r)throw new u("If_Match","Required parameter If_Match was null or undefined when calling onLinkServerStartup.");const o="/link/servers/{id}/startup".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return null!=r&&(c["If-Match"]=String(r)),s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},removeLinkServer(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeLinkServer.");const a="/link/servers/{id}/heartbeat".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},selectLinkServer(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling selectLinkServer.");if(null==r)throw new u("label","Required parameter label was null or undefined when calling selectLinkServer.");const o=n.parse("/link/servers/select",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.workspace_id=t),void 0!==r&&(c.label=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.LinkServerApiFp=function(e){return{cleanupLinkServers(r){const n=(0,t.LinkServerApiFetchParamCreator)(e).cleanupLinkServers(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getLinkServer(r,n){const i=(0,t.LinkServerApiFetchParamCreator)(e).getLinkServer(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},linkServerHeartbeat(r,n,i){const s=(0,t.LinkServerApiFetchParamCreator)(e).linkServerHeartbeat(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},onLinkServerStartup(r,n,i){const s=(0,t.LinkServerApiFetchParamCreator)(e).onLinkServerStartup(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeLinkServer(r,n){const i=(0,t.LinkServerApiFetchParamCreator)(e).removeLinkServer(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},selectLinkServer(r,n,i){const s=(0,t.LinkServerApiFetchParamCreator)(e).selectLinkServer(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.LinkServerApiFactory=function(e,r,n){return{cleanupLinkServers:i=>(0,t.LinkServerApiFp)(e).cleanupLinkServers(i)(r,n),getLinkServer:(i,a)=>(0,t.LinkServerApiFp)(e).getLinkServer(i,a)(r,n),linkServerHeartbeat:(i,a,o)=>(0,t.LinkServerApiFp)(e).linkServerHeartbeat(i,a,o)(r,n),onLinkServerStartup:(i,a,o)=>(0,t.LinkServerApiFp)(e).onLinkServerStartup(i,a,o)(r,n),removeLinkServer:(i,a)=>(0,t.LinkServerApiFp)(e).removeLinkServer(i,a)(r,n),selectLinkServer:(i,a,o)=>(0,t.LinkServerApiFp)(e).selectLinkServer(i,a,o)(r,n)}};t.LinkServerApi=class extends s{cleanupLinkServers(e){return(0,t.LinkServerApiFp)(this.configuration).cleanupLinkServers(e)(this.fetch,this.basePath)}getLinkServer(e,r){return(0,t.LinkServerApiFp)(this.configuration).getLinkServer(e,r)(this.fetch,this.basePath)}linkServerHeartbeat(e,r,n){return(0,t.LinkServerApiFp)(this.configuration).linkServerHeartbeat(e,r,n)(this.fetch,this.basePath)}onLinkServerStartup(e,r,n){return(0,t.LinkServerApiFp)(this.configuration).onLinkServerStartup(e,r,n)(this.fetch,this.basePath)}removeLinkServer(e,r){return(0,t.LinkServerApiFp)(this.configuration).removeLinkServer(e,r)(this.fetch,this.basePath)}selectLinkServer(e,r,n){return(0,t.LinkServerApiFp)(this.configuration).selectLinkServer(e,r,n)(this.fetch,this.basePath)}};t.LoginApiFetchParamCreator=function(e){return{determineLoginProvider(t,r={}){if(null==t)throw new u("login_provider_query","Required parameter login_provider_query was null or undefined when calling determineLoginProvider.");const a=n.parse("/login/provider",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},emailLoginLink(t,r={}){if(null==t)throw new u("email_login_request","Required parameter email_login_request was null or undefined when calling emailLoginLink.");const a=n.parse("/login/email",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},generateJwt(t={}){const r=n.parse("/login/jwt",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getJwks(t={}){const r=n.parse("/.well-known/jwks.json",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}}}};t.LoginApiFp=function(e){return{determineLoginProvider(r,n){const i=(0,t.LoginApiFetchParamCreator)(e).determineLoginProvider(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},emailLoginLink(r,n){const i=(0,t.LoginApiFetchParamCreator)(e).emailLoginLink(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},generateJwt(r){const n=(0,t.LoginApiFetchParamCreator)(e).generateJwt(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJwks(r){const n=(0,t.LoginApiFetchParamCreator)(e).getJwks(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.LoginApiFactory=function(e,r,n){return{determineLoginProvider:(i,a)=>(0,t.LoginApiFp)(e).determineLoginProvider(i,a)(r,n),emailLoginLink:(i,a)=>(0,t.LoginApiFp)(e).emailLoginLink(i,a)(r,n),generateJwt:i=>(0,t.LoginApiFp)(e).generateJwt(i)(r,n),getJwks:i=>(0,t.LoginApiFp)(e).getJwks(i)(r,n)}};t.LoginApi=class extends s{determineLoginProvider(e,r){return(0,t.LoginApiFp)(this.configuration).determineLoginProvider(e,r)(this.fetch,this.basePath)}emailLoginLink(e,r){return(0,t.LoginApiFp)(this.configuration).emailLoginLink(e,r)(this.fetch,this.basePath)}generateJwt(e){return(0,t.LoginApiFp)(this.configuration).generateJwt(e)(this.fetch,this.basePath)}getJwks(e){return(0,t.LoginApiFp)(this.configuration).getJwks(e)(this.fetch,this.basePath)}};t.MablscriptOverrideApiFetchParamCreator=function(e){return{createSelectorOverride(t,r,a={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling createSelectorOverride.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling createSelectorOverride.");const o="/tests/testScripts/{journey_id}/overrides".replace("{journey_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getTestScriptOverrides(t,r,a,o={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling getTestScriptOverrides.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getTestScriptOverrides.");const s="/tests/testScripts/{journey_id}/overrides".replace("{journey_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.environment_id=r),void 0!==a&&(d.selector_override_limit=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},rollbackMablscriptOverride(t,r,a={}){if(null==t)throw new u("mablscript_override_id","Required parameter mablscript_override_id was null or undefined when calling rollbackMablscriptOverride.");if(null==r)throw new u("rollback_time","Required parameter rollback_time was null or undefined when calling rollbackMablscriptOverride.");const o="/selector/overrides/{mablscript_override_id}/rollback/{rollback_time}".replace("{mablscript_override_id}",encodeURIComponent(String(t))).replace("{rollback_time}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},rollbackMablscriptOverridesFromTestRun(t,r={}){if(null==t)throw new u("test_run_id","Required parameter test_run_id was null or undefined when calling rollbackMablscriptOverridesFromTestRun.");const a="/tests/testScripts/overrides/{test_run_id}".replace("{test_run_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.MablscriptOverrideApiFp=function(e){return{createSelectorOverride(r,n,i){const s=(0,t.MablscriptOverrideApiFetchParamCreator)(e).createSelectorOverride(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getTestScriptOverrides(r,n,i,s){const u=(0,t.MablscriptOverrideApiFetchParamCreator)(e).getTestScriptOverrides(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},rollbackMablscriptOverride(r,n,i){const s=(0,t.MablscriptOverrideApiFetchParamCreator)(e).rollbackMablscriptOverride(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},rollbackMablscriptOverridesFromTestRun(r,n){const i=(0,t.MablscriptOverrideApiFetchParamCreator)(e).rollbackMablscriptOverridesFromTestRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.MablscriptOverrideApiFactory=function(e,r,n){return{createSelectorOverride:(i,a,o)=>(0,t.MablscriptOverrideApiFp)(e).createSelectorOverride(i,a,o)(r,n),getTestScriptOverrides:(i,a,o,s)=>(0,t.MablscriptOverrideApiFp)(e).getTestScriptOverrides(i,a,o,s)(r,n),rollbackMablscriptOverride:(i,a,o)=>(0,t.MablscriptOverrideApiFp)(e).rollbackMablscriptOverride(i,a,o)(r,n),rollbackMablscriptOverridesFromTestRun:(i,a)=>(0,t.MablscriptOverrideApiFp)(e).rollbackMablscriptOverridesFromTestRun(i,a)(r,n)}};t.MablscriptOverrideApi=class extends s{createSelectorOverride(e,r,n){return(0,t.MablscriptOverrideApiFp)(this.configuration).createSelectorOverride(e,r,n)(this.fetch,this.basePath)}getTestScriptOverrides(e,r,n,i){return(0,t.MablscriptOverrideApiFp)(this.configuration).getTestScriptOverrides(e,r,n,i)(this.fetch,this.basePath)}rollbackMablscriptOverride(e,r,n){return(0,t.MablscriptOverrideApiFp)(this.configuration).rollbackMablscriptOverride(e,r,n)(this.fetch,this.basePath)}rollbackMablscriptOverridesFromTestRun(e,r){return(0,t.MablscriptOverrideApiFp)(this.configuration).rollbackMablscriptOverridesFromTestRun(e,r)(this.fetch,this.basePath)}};t.MabltronDistributionApiFetchParamCreator=function(e){return{downloadInstaller(t,r,a={}){if(null==t)throw new u("platform","Required parameter platform was null or undefined when calling downloadInstaller.");const o=n.parse("/mabltron/download",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.platform=t),void 0!==r&&(c.packaging=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getLatestInstallerInfo(t,r,a={}){if(null==t)throw new u("platform","Required parameter platform was null or undefined when calling getLatestInstallerInfo.");const o=n.parse("/mabltron/latest",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.platform=t),void 0!==r&&(c.packaging=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.MabltronDistributionApiFp=function(e){return{downloadInstaller(r,n,i){const s=(0,t.MabltronDistributionApiFetchParamCreator)(e).downloadInstaller(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getLatestInstallerInfo(r,n,i){const s=(0,t.MabltronDistributionApiFetchParamCreator)(e).getLatestInstallerInfo(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.MabltronDistributionApiFactory=function(e,r,n){return{downloadInstaller:(i,a,o)=>(0,t.MabltronDistributionApiFp)(e).downloadInstaller(i,a,o)(r,n),getLatestInstallerInfo:(i,a,o)=>(0,t.MabltronDistributionApiFp)(e).getLatestInstallerInfo(i,a,o)(r,n)}};t.MabltronDistributionApi=class extends s{downloadInstaller(e,r,n){return(0,t.MabltronDistributionApiFp)(this.configuration).downloadInstaller(e,r,n)(this.fetch,this.basePath)}getLatestInstallerInfo(e,r,n){return(0,t.MabltronDistributionApiFp)(this.configuration).getLatestInstallerInfo(e,r,n)(this.fetch,this.basePath)}};t.MailboxApiFetchParamCreator=function(e){return{createMailboxAddress(t,r={}){if(null==t)throw new u("mailbox","Required parameter mailbox was null or undefined when calling createMailboxAddress.");const a=n.parse("/mailbox/address",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},deleteMailboxAddress(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling deleteMailboxAddress.");const a="/mailbox/address/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getMailboxAddress(t,r={}){if(null==t)throw new u("email_address","Required parameter email_address was null or undefined when calling getMailboxAddress.");const a="/mailbox/address/{email_address}".replace("{email_address}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.MailboxApiFp=function(e){return{createMailboxAddress(r,n){const i=(0,t.MailboxApiFetchParamCreator)(e).createMailboxAddress(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},deleteMailboxAddress(r,n){const i=(0,t.MailboxApiFetchParamCreator)(e).deleteMailboxAddress(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getMailboxAddress(r,n){const i=(0,t.MailboxApiFetchParamCreator)(e).getMailboxAddress(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.MailboxApiFactory=function(e,r,n){return{createMailboxAddress:(i,a)=>(0,t.MailboxApiFp)(e).createMailboxAddress(i,a)(r,n),deleteMailboxAddress:(i,a)=>(0,t.MailboxApiFp)(e).deleteMailboxAddress(i,a)(r,n),getMailboxAddress:(i,a)=>(0,t.MailboxApiFp)(e).getMailboxAddress(i,a)(r,n)}};t.MailboxApi=class extends s{createMailboxAddress(e,r){return(0,t.MailboxApiFp)(this.configuration).createMailboxAddress(e,r)(this.fetch,this.basePath)}deleteMailboxAddress(e,r){return(0,t.MailboxApiFp)(this.configuration).deleteMailboxAddress(e,r)(this.fetch,this.basePath)}getMailboxAddress(e,r){return(0,t.MailboxApiFp)(this.configuration).getMailboxAddress(e,r)(this.fetch,this.basePath)}};t.NoteApiFetchParamCreator=function(e){return{createNote(t,r={}){if(null==t)throw new u("note","Required parameter note was null or undefined when calling createNote.");const a=n.parse("/note",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getNote(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getNote.");const a="/note/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryNotes(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryNotes.");if(null==r)throw new u("resource_type","Required parameter resource_type was null or undefined when calling queryNotes.");if(null==a)throw new u("resource_id","Required parameter resource_id was null or undefined when calling queryNotes.");const c=n.parse("/note",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.resource_type=r),void 0!==a&&(h.resource_id=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},recoverNote(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverNote.");const a="/recover/note/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeNote(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeNote.");const a="/note/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.NoteApiFp=function(e){return{createNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).createNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).getNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryNotes(r,n,i,s,u,p){const c=(0,t.NoteApiFetchParamCreator)(e).queryNotes(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).recoverNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).removeNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.NoteApiFactory=function(e,r,n){return{createNote:(i,a)=>(0,t.NoteApiFp)(e).createNote(i,a)(r,n),getNote:(i,a)=>(0,t.NoteApiFp)(e).getNote(i,a)(r,n),queryNotes:(i,a,o,s,u,p)=>(0,t.NoteApiFp)(e).queryNotes(i,a,o,s,u,p)(r,n),recoverNote:(i,a)=>(0,t.NoteApiFp)(e).recoverNote(i,a)(r,n),removeNote:(i,a)=>(0,t.NoteApiFp)(e).removeNote(i,a)(r,n)}};t.NoteApi=class extends s{createNote(e,r){return(0,t.NoteApiFp)(this.configuration).createNote(e,r)(this.fetch,this.basePath)}getNote(e,r){return(0,t.NoteApiFp)(this.configuration).getNote(e,r)(this.fetch,this.basePath)}queryNotes(e,r,n,i,a,o){return(0,t.NoteApiFp)(this.configuration).queryNotes(e,r,n,i,a,o)(this.fetch,this.basePath)}recoverNote(e,r){return(0,t.NoteApiFp)(this.configuration).recoverNote(e,r)(this.fetch,this.basePath)}removeNote(e,r){return(0,t.NoteApiFp)(this.configuration).removeNote(e,r)(this.fetch,this.basePath)}};t.OauthTokenApiFetchParamCreator=function(e){return{createOauthToken(t,r={}){if(null==t)throw new u("oauthToken","Required parameter oauthToken was null or undefined when calling createOauthToken.");const a=n.parse("/oauth",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},exchangeOauthCode(t,r={}){if(null==t)throw new u("oauthCode","Required parameter oauthCode was null or undefined when calling exchangeOauthCode.");const a=n.parse("/oauth/exchange",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getOauthToken(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getOauthToken.");const a="/oauth/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOauthTokens(t,r,a,o,s={}){const u=n.parse("/oauth",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.token_type=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},removeOauthToken(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeOauthToken.");const a="/oauth/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateOauthToken(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateOauthToken.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateOauthToken.");const s="/oauth/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.OauthTokenApiFp=function(e){return{createOauthToken(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).createOauthToken(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},exchangeOauthCode(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).exchangeOauthCode(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getOauthToken(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).getOauthToken(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryOauthTokens(r,n,i,s,u){const p=(0,t.OauthTokenApiFetchParamCreator)(e).queryOauthTokens(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeOauthToken(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).removeOauthToken(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateOauthToken(r,n,i,s){const u=(0,t.OauthTokenApiFetchParamCreator)(e).updateOauthToken(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.OauthTokenApiFactory=function(e,r,n){return{createOauthToken:(i,a)=>(0,t.OauthTokenApiFp)(e).createOauthToken(i,a)(r,n),exchangeOauthCode:(i,a)=>(0,t.OauthTokenApiFp)(e).exchangeOauthCode(i,a)(r,n),getOauthToken:(i,a)=>(0,t.OauthTokenApiFp)(e).getOauthToken(i,a)(r,n),queryOauthTokens:(i,a,o,s,u)=>(0,t.OauthTokenApiFp)(e).queryOauthTokens(i,a,o,s,u)(r,n),removeOauthToken:(i,a)=>(0,t.OauthTokenApiFp)(e).removeOauthToken(i,a)(r,n),updateOauthToken:(i,a,o,s)=>(0,t.OauthTokenApiFp)(e).updateOauthToken(i,a,o,s)(r,n)}};t.OauthTokenApi=class extends s{createOauthToken(e,r){return(0,t.OauthTokenApiFp)(this.configuration).createOauthToken(e,r)(this.fetch,this.basePath)}exchangeOauthCode(e,r){return(0,t.OauthTokenApiFp)(this.configuration).exchangeOauthCode(e,r)(this.fetch,this.basePath)}getOauthToken(e,r){return(0,t.OauthTokenApiFp)(this.configuration).getOauthToken(e,r)(this.fetch,this.basePath)}queryOauthTokens(e,r,n,i,a){return(0,t.OauthTokenApiFp)(this.configuration).queryOauthTokens(e,r,n,i,a)(this.fetch,this.basePath)}removeOauthToken(e,r){return(0,t.OauthTokenApiFp)(this.configuration).removeOauthToken(e,r)(this.fetch,this.basePath)}updateOauthToken(e,r,n,i){return(0,t.OauthTokenApiFp)(this.configuration).updateOauthToken(e,r,n,i)(this.fetch,this.basePath)}};t.OrganizationApiFetchParamCreator=function(e){return{acknowledgeWorkspaceRole(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling acknowledgeWorkspaceRole.");const a="/user-roles/acknowledge/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},copyOrganization(t,r,a={}){if(null==t)throw new u("source_workspace_id","Required parameter source_workspace_id was null or undefined when calling copyOrganization.");if(null==r)throw new u("destination_workspace_id","Required parameter destination_workspace_id was null or undefined when calling copyOrganization.");const o=n.parse("/copy/organizations",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.source_workspace_id=t),void 0!==r&&(c.destination_workspace_id=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},createOrganization(t,r={}){if(null==t)throw new u("organization","Required parameter organization was null or undefined when calling createOrganization.");const a=n.parse("/organizations",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getOrganization(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getOrganization.");const a="/organizations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getTombstonedOrganization(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getTombstonedOrganization.");const a="/organizations/tombstoned/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserRoles.");const a="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOrganizations(t,r,a,o={}){const s=n.parse("/organizations",!0),u=Object.assign({method:"GET"},o),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.account_id=t),void 0!==r&&(c.limit=r),void 0!==a&&(c.cursor=a),s.query=Object.assign({},s.query,c,o.query),delete s.search,u.headers=Object.assign({},p,o.headers),{url:n.format(s),options:u}},removeOrganization(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeOrganization.");const a="/organizations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateOrganization(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateOrganization.");if(null==r)throw new u("organization","Required parameter organization was null or undefined when calling updateOrganization.");const s="/organizations/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserRoles.");const s="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.OrganizationApiFp=function(e){return{acknowledgeWorkspaceRole(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).acknowledgeWorkspaceRole(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},copyOrganization(r,n,i){const s=(0,t.OrganizationApiFetchParamCreator)(e).copyOrganization(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},createOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).createOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).getOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getTombstonedOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).getTombstonedOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserRoles(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).getUserRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryOrganizations(r,n,i,s){const u=(0,t.OrganizationApiFetchParamCreator)(e).queryOrganizations(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).removeOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateOrganization(r,n,i,s){const u=(0,t.OrganizationApiFetchParamCreator)(e).updateOrganization(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserRoles(r,n,i,s){const u=(0,t.OrganizationApiFetchParamCreator)(e).updateUserRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.OrganizationApiFactory=function(e,r,n){return{acknowledgeWorkspaceRole:(i,a)=>(0,t.OrganizationApiFp)(e).acknowledgeWorkspaceRole(i,a)(r,n),copyOrganization:(i,a,o)=>(0,t.OrganizationApiFp)(e).copyOrganization(i,a,o)(r,n),createOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).createOrganization(i,a)(r,n),getOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).getOrganization(i,a)(r,n),getTombstonedOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).getTombstonedOrganization(i,a)(r,n),getUserRoles:(i,a)=>(0,t.OrganizationApiFp)(e).getUserRoles(i,a)(r,n),queryOrganizations:(i,a,o,s)=>(0,t.OrganizationApiFp)(e).queryOrganizations(i,a,o,s)(r,n),removeOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).removeOrganization(i,a)(r,n),updateOrganization:(i,a,o,s)=>(0,t.OrganizationApiFp)(e).updateOrganization(i,a,o,s)(r,n),updateUserRoles:(i,a,o,s)=>(0,t.OrganizationApiFp)(e).updateUserRoles(i,a,o,s)(r,n)}};t.OrganizationApi=class extends s{acknowledgeWorkspaceRole(e,r){return(0,t.OrganizationApiFp)(this.configuration).acknowledgeWorkspaceRole(e,r)(this.fetch,this.basePath)}copyOrganization(e,r,n){return(0,t.OrganizationApiFp)(this.configuration).copyOrganization(e,r,n)(this.fetch,this.basePath)}createOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).createOrganization(e,r)(this.fetch,this.basePath)}getOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).getOrganization(e,r)(this.fetch,this.basePath)}getTombstonedOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).getTombstonedOrganization(e,r)(this.fetch,this.basePath)}getUserRoles(e,r){return(0,t.OrganizationApiFp)(this.configuration).getUserRoles(e,r)(this.fetch,this.basePath)}queryOrganizations(e,r,n,i){return(0,t.OrganizationApiFp)(this.configuration).queryOrganizations(e,r,n,i)(this.fetch,this.basePath)}removeOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).removeOrganization(e,r)(this.fetch,this.basePath)}updateOrganization(e,r,n,i){return(0,t.OrganizationApiFp)(this.configuration).updateOrganization(e,r,n,i)(this.fetch,this.basePath)}updateUserRoles(e,r,n,i){return(0,t.OrganizationApiFp)(this.configuration).updateUserRoles(e,r,n,i)(this.fetch,this.basePath)}};t.OrganizationInvitationApiFetchParamCreator=function(e){return{acceptOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling acceptOrganizationInvitation.");const a="/organizations/invitations/{id}/accept".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},createOrganizationInvitation(t,r={}){if(null==t)throw new u("organizationInvitation","Required parameter organizationInvitation was null or undefined when calling createOrganizationInvitation.");const a=n.parse("/organizations/invitations",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getOrganizationInvitation.");const a="/organizations/invitations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOrganizationInvitations(t,r,a,o,s,u={}){const p=n.parse("/organizations/invitations",!0),c=Object.assign({method:"GET"},u),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.invitation_type=r),void 0!==a&&(d.invitee_email=a),void 0!==o&&(d.limit=o),void 0!==s&&(d.cursor=s),p.query=Object.assign({},p.query,d,u.query),delete p.search,c.headers=Object.assign({},l,u.headers),{url:n.format(p),options:c}},removeOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeOrganizationInvitation.");const a="/organizations/invitations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},resendOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling resendOrganizationInvitation.");const a="/organizations/invitations/{id}/resend".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateAcceptUriAndResendOrganizationInvitation(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateAcceptUriAndResendOrganizationInvitation.");if(null==r)throw new u("invitationAcceptUriTemplate","Required parameter invitationAcceptUriTemplate was null or undefined when calling updateAcceptUriAndResendOrganizationInvitation.");const o="/organizations/invitations/{id}/resend".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.OrganizationInvitationApiFp=function(e){return{acceptOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).acceptOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).createOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).getOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryOrganizationInvitations(r,n,i,s,u,p){const c=(0,t.OrganizationInvitationApiFetchParamCreator)(e).queryOrganizationInvitations(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).removeOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},resendOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).resendOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateAcceptUriAndResendOrganizationInvitation(r,n,i){const s=(0,t.OrganizationInvitationApiFetchParamCreator)(e).updateAcceptUriAndResendOrganizationInvitation(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.OrganizationInvitationApiFactory=function(e,r,n){return{acceptOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).acceptOrganizationInvitation(i,a)(r,n),createOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).createOrganizationInvitation(i,a)(r,n),getOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).getOrganizationInvitation(i,a)(r,n),queryOrganizationInvitations:(i,a,o,s,u,p)=>(0,t.OrganizationInvitationApiFp)(e).queryOrganizationInvitations(i,a,o,s,u,p)(r,n),removeOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).removeOrganizationInvitation(i,a)(r,n),resendOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).resendOrganizationInvitation(i,a)(r,n),updateAcceptUriAndResendOrganizationInvitation:(i,a,o)=>(0,t.OrganizationInvitationApiFp)(e).updateAcceptUriAndResendOrganizationInvitation(i,a,o)(r,n)}};t.OrganizationInvitationApi=class extends s{acceptOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).acceptOrganizationInvitation(e,r)(this.fetch,this.basePath)}createOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).createOrganizationInvitation(e,r)(this.fetch,this.basePath)}getOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).getOrganizationInvitation(e,r)(this.fetch,this.basePath)}queryOrganizationInvitations(e,r,n,i,a,o){return(0,t.OrganizationInvitationApiFp)(this.configuration).queryOrganizationInvitations(e,r,n,i,a,o)(this.fetch,this.basePath)}removeOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).removeOrganizationInvitation(e,r)(this.fetch,this.basePath)}resendOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).resendOrganizationInvitation(e,r)(this.fetch,this.basePath)}updateAcceptUriAndResendOrganizationInvitation(e,r,n){return(0,t.OrganizationInvitationApiFp)(this.configuration).updateAcceptUriAndResendOrganizationInvitation(e,r,n)(this.fetch,this.basePath)}};t.PlanRunApiFetchParamCreator=function(e){return{categorizeAllFailures(t,r,a,o={}){if(null==t)throw new u("plan_run_id","Required parameter plan_run_id was null or undefined when calling categorizeAllFailures.");if(null==r)throw new u("failure_categorization","Required parameter failure_categorization was null or undefined when calling categorizeAllFailures.");const s="/planRun/{plan_run_id}/failureCategorization".replace("{plan_run_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}void 0!==a&&(d.override_existing_failure_categorizations=a),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},categorizeFailuresForDeploymentEvent(t,r,a,o={}){if(null==t)throw new u("deployment_event_id","Required parameter deployment_event_id was null or undefined when calling categorizeFailuresForDeploymentEvent.");if(null==r)throw new u("failure_categorization","Required parameter failure_categorization was null or undefined when calling categorizeFailuresForDeploymentEvent.");const s="/planRun/deployment/{deployment_event_id}/failureCategorization".replace("{deployment_event_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}void 0!==a&&(d.override_existing_failure_categorizations=a),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},createPlanRun(t,r={}){if(null==t)throw new u("planRunOptions","Required parameter planRunOptions was null or undefined when calling createPlanRun.");const a=n.parse("/planRuns",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},duplicatePlanRun(t,r={}){if(null==t)throw new u("planRunDuplicationRequest","Required parameter planRunDuplicationRequest was null or undefined when calling duplicatePlanRun.");const a=n.parse("/planRuns/duplicate",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getPlanRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getPlanRun.");const a="/planRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryPlanRuns(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryPlanRuns.");const h="/planRuns/workspace/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),y=n.parse(h,!0),m=Object.assign({method:"GET"},d),f={},g={};if(e&&(e.username||e.password)&&(f.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;f.Authorization=t}return void 0!==r&&(g.environment_id=r),void 0!==a&&(g.status=a),void 0!==o&&(g.plan_id=o),void 0!==s&&(g.limit=s),void 0!==p&&(g.cursor=p),void 0!==c&&(g.populate_test_script_executions=c),void 0!==l&&(g.min_created_time=l),y.query=Object.assign({},y.query,g,d.query),delete y.search,m.headers=Object.assign({},f,d.headers),{url:n.format(y),options:m}},queryPlanRunsByEventId(t,r,a,o={}){if(null==t)throw new u("deployment_id","Required parameter deployment_id was null or undefined when calling queryPlanRunsByEventId.");const s="/planRuns/deployment/{deployment_id}".replace("{deployment_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},removePlanRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removePlanRun.");const a="/planRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},rerunPlanRun(t,r,a={}){if(null==t)throw new u("planRunId","Required parameter planRunId was null or undefined when calling rerunPlanRun.");const o="/planRun/{planRunId}/rerun".replace("{planRunId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.failedJourneysOnly=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},terminatePlanRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminatePlanRun.");const a="/planRun/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updatePlanRun(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updatePlanRun.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updatePlanRun.");const s="/planRuns/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},webhookExecutionComplete(t,r,a={}){if(null==t)throw new u("planRunId","Required parameter planRunId was null or undefined when calling webhookExecutionComplete.");if(null==r)throw new u("status","Required parameter status was null or undefined when calling webhookExecutionComplete.");const o="/planRun/{planRunId}/webhooks".replace("{planRunId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.PlanRunApiFp=function(e){return{categorizeAllFailures(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).categorizeAllFailures(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},categorizeFailuresForDeploymentEvent(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).categorizeFailuresForDeploymentEvent(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},createPlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).createPlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},duplicatePlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).duplicatePlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getPlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).getPlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryPlanRuns(r,n,i,s,u,p,c,l,d){const h=(0,t.PlanRunApiFetchParamCreator)(e).queryPlanRuns(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryPlanRunsByEventId(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).queryPlanRunsByEventId(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removePlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).removePlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},rerunPlanRun(r,n,i){const s=(0,t.PlanRunApiFetchParamCreator)(e).rerunPlanRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},terminatePlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).terminatePlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updatePlanRun(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).updatePlanRun(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},webhookExecutionComplete(r,n,i){const s=(0,t.PlanRunApiFetchParamCreator)(e).webhookExecutionComplete(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.PlanRunApiFactory=function(e,r,n){return{categorizeAllFailures:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).categorizeAllFailures(i,a,o,s)(r,n),categorizeFailuresForDeploymentEvent:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).categorizeFailuresForDeploymentEvent(i,a,o,s)(r,n),createPlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).createPlanRun(i,a)(r,n),duplicatePlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).duplicatePlanRun(i,a)(r,n),getPlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).getPlanRun(i,a)(r,n),queryPlanRuns:(i,a,o,s,u,p,c,l,d)=>(0,t.PlanRunApiFp)(e).queryPlanRuns(i,a,o,s,u,p,c,l,d)(r,n),queryPlanRunsByEventId:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).queryPlanRunsByEventId(i,a,o,s)(r,n),removePlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).removePlanRun(i,a)(r,n),rerunPlanRun:(i,a,o)=>(0,t.PlanRunApiFp)(e).rerunPlanRun(i,a,o)(r,n),terminatePlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).terminatePlanRun(i,a)(r,n),updatePlanRun:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).updatePlanRun(i,a,o,s)(r,n),webhookExecutionComplete:(i,a,o)=>(0,t.PlanRunApiFp)(e).webhookExecutionComplete(i,a,o)(r,n)}};t.PlanRunApi=class extends s{categorizeAllFailures(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).categorizeAllFailures(e,r,n,i)(this.fetch,this.basePath)}categorizeFailuresForDeploymentEvent(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).categorizeFailuresForDeploymentEvent(e,r,n,i)(this.fetch,this.basePath)}createPlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).createPlanRun(e,r)(this.fetch,this.basePath)}duplicatePlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).duplicatePlanRun(e,r)(this.fetch,this.basePath)}getPlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).getPlanRun(e,r)(this.fetch,this.basePath)}queryPlanRuns(e,r,n,i,a,o,s,u,p){return(0,t.PlanRunApiFp)(this.configuration).queryPlanRuns(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryPlanRunsByEventId(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).queryPlanRunsByEventId(e,r,n,i)(this.fetch,this.basePath)}removePlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).removePlanRun(e,r)(this.fetch,this.basePath)}rerunPlanRun(e,r,n){return(0,t.PlanRunApiFp)(this.configuration).rerunPlanRun(e,r,n)(this.fetch,this.basePath)}terminatePlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).terminatePlanRun(e,r)(this.fetch,this.basePath)}updatePlanRun(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).updatePlanRun(e,r,n,i)(this.fetch,this.basePath)}webhookExecutionComplete(e,r,n){return(0,t.PlanRunApiFp)(this.configuration).webhookExecutionComplete(e,r,n)(this.fetch,this.basePath)}};t.ReportApiFetchParamCreator=function(e){return{createArtifactUploadAndRetrievalUrls(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createArtifactUploadAndRetrievalUrls.");const o="/workspaces/{workspace_id}/artifacts/urls".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.kms_unsupported=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},createReportSetting(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createReportSetting.");if(null==r)throw new u("report_setting","Required parameter report_setting was null or undefined when calling createReportSetting.");const o=n.parse("/report/settings",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==t&&(c.workspace_id=t),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(r||{}),{url:n.format(o),options:s}},deleteReportSetting(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling deleteReportSetting.");const a="/report/settings/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getArtifact(t,r,a={}){if(null==t)throw new u("path","Required parameter path was null or undefined when calling getArtifact.");const o=n.parse("/artifact",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.path=t),void 0!==r&&(c.kms_unsupported=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getArtifactUrl(t,r,a={}){if(null==t)throw new u("path","Required parameter path was null or undefined when calling getArtifactUrl.");const o=n.parse("/artifact/url",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.path=t),void 0!==r&&(c.kms_unsupported=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getImageUrls(t,r,a={}){if(null==t)throw new u("artifact_uri","Required parameter artifact_uri was null or undefined when calling getImageUrls.");const o=n.parse("/artifact/image/url",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.artifact_uri=t),void 0!==r&&(c.kms_unsupported=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getReportSettings(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getReportSettings.");const o=n.parse("/report/settings",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.workspace_id=t),void 0!==r&&(c.cursor=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getStepRunScreenshotUrls(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getStepRunScreenshotUrls.");if(null==r)throw new u("step_run_id","Required parameter step_run_id was null or undefined when calling getStepRunScreenshotUrls.");const s="/workspaces/{workspace_id}/reports/stepRuns/{step_run_id}/screenshot".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{step_run_id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==a&&(d.kms_unsupported=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},putMetrics(t,r={}){if(null==t)throw new u("metrics","Required parameter metrics was null or undefined when calling putMetrics.");const a=n.parse("/report/metrics",!0),o=Object.assign({method:"PUT"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},queryAggregateDaily(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryAggregateDaily.");if(null==r)throw new u("start_time","Required parameter start_time was null or undefined when calling queryAggregateDaily.");if(null==a)throw new u("metric_type","Required parameter metric_type was null or undefined when calling queryAggregateDaily.");if(null==o)throw new u("aggregation_invariant_id","Required parameter aggregation_invariant_id was null or undefined when calling queryAggregateDaily.");const h="/workspaces/{workspace_id}/reports/qualityMetrics/metricDailyTrend".replace("{workspace_id}",encodeURIComponent(String(t))),y=n.parse(h,!0),m=Object.assign({method:"GET"},d),f={},g={};if(e&&(e.username||e.password)&&(f.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;f.Authorization=t}return void 0!==r&&(g.start_time=r),void 0!==s&&(g.end_time=s),void 0!==p&&(g.timezone=p),void 0!==a&&(g.metric_type=a),void 0!==o&&(g.aggregation_invariant_id=o),void 0!==c&&(g.limit=c),void 0!==l&&(g.cursor=l),y.query=Object.assign({},y.query,g,d.query),delete y.search,m.headers=Object.assign({},f,d.headers),{url:n.format(y),options:m}},queryJourneyRunFailureCategoryHistory(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryJourneyRunFailureCategoryHistory.");const p="/workspaces/{workspace_id}/reports/failureCategoryHistory".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.history_days=r),void 0!==a&&(h.environment_id=a),void 0!==o&&(h.application_id=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryJourneyRunStatusHistory(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryJourneyRunStatusHistory.");const p="/workspaces/{workspace_id}/reports/runStatusHistory".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.history_days=r),void 0!==a&&(h.environment_id=a),void 0!==o&&(h.application_id=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryQualityMetric(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryQualityMetric.");if(null==r)throw new u("aggregation_run_id","Required parameter aggregation_run_id was null or undefined when calling queryQualityMetric.");if(null==a)throw new u("group_id","Required parameter group_id was null or undefined when calling queryQualityMetric.");if(null==o)throw new u("metric_types","Required parameter metric_types was null or undefined when calling queryQualityMetric.");const p="/workspaces/{workspace_id}/reports/qualityMetricsSummary".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.aggregation_run_id=r),void 0!==a&&(h.group_id=a),o&&(h.metric_types=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryTestSuitePerformanceOverTime(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestSuitePerformanceOverTime.");if(null==r)throw new u("test_suite_filter_options","Required parameter test_suite_filter_options was null or undefined when calling queryTestSuitePerformanceOverTime.");const c="/workspaces/{workspace_id}/reports/testSuitePerformanceOverTime".replace("{workspace_id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"POST"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}void 0!==a&&(y.timezone=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),h["Content-Type"]="application/json",l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers);return d.body=JSON.stringify(r||{}),{url:n.format(l),options:d}},queryTestSuiteStatus(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestSuiteStatus.");const p="/workspaces/{workspace_id}/reports/testSuiteStatus".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"POST"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}},queryTestSuiteStatusOverTime(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestSuiteStatusOverTime.");if(null==r)throw new u("test_suite_filter_options","Required parameter test_suite_filter_options was null or undefined when calling queryTestSuiteStatusOverTime.");const c="/workspaces/{workspace_id}/reports/testSuiteStatusOverTime".replace("{workspace_id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"POST"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}void 0!==a&&(y.timezone=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),h["Content-Type"]="application/json",l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers);return d.body=JSON.stringify(r||{}),{url:n.format(l),options:d}},queryWorkspaceActivity(t,r,a,o,s,p,c,l,d,h={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryWorkspaceActivity.");const y="/workspaces/{workspace_id}/reports/activityLog".replace("{workspace_id}",encodeURIComponent(String(t))),m=n.parse(y,!0),f=Object.assign({method:"GET"},h),g={},w={};if(e&&(e.username||e.password)&&(g.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;g.Authorization=t}return void 0!==r&&(w.action_type=r),void 0!==a&&(w.entity_type=a),void 0!==o&&(w.entity_name=o),void 0!==s&&(w.actor_id=s),void 0!==p&&(w.start_time=p),void 0!==c&&(w.end_time=c),void 0!==l&&(w.limit=l),void 0!==d&&(w.cursor=d),m.query=Object.assign({},m.query,w,h.query),delete m.search,f.headers=Object.assign({},g,h.headers),{url:n.format(m),options:f}},queryWorkspaceArtifacts(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryWorkspaceArtifacts.");if(null==r)throw new u("query","Required parameter query was null or undefined when calling queryWorkspaceArtifacts.");const s="/workspaces/{workspace_id}/reports/artifacts".replace("{workspace_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"POST"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}void 0!==a&&(d.kms_unsupported=a),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},retrieveMetrics(t,r,a,o,s,p={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling retrieveMetrics.");if(null==r)throw new u("metric_type","Required parameter metric_type was null or undefined when calling retrieveMetrics.");if(null==a)throw new u("metric_id","Required parameter metric_id was null or undefined when calling retrieveMetrics.");if(null==o)throw new u("start","Required parameter start was null or undefined when calling retrieveMetrics.");const c=n.parse("/report/metrics",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.organization_id=t),void 0!==r&&(h.metric_type=r),void 0!==a&&(h.metric_id=a),void 0!==o&&(h.start=o),void 0!==s&&(h.end=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},updateReportSetting(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateReportSetting.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateReportSetting.");const o="/report/settings/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.ReportApiFp=function(e){return{createArtifactUploadAndRetrievalUrls(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).createArtifactUploadAndRetrievalUrls(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createReportSetting(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).createReportSetting(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},deleteReportSetting(r,n){const i=(0,t.ReportApiFetchParamCreator)(e).deleteReportSetting(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getArtifact(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getArtifact(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getArtifactUrl(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getArtifactUrl(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getImageUrls(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getImageUrls(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getReportSettings(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getReportSettings(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getStepRunScreenshotUrls(r,n,i,s){const u=(0,t.ReportApiFetchParamCreator)(e).getStepRunScreenshotUrls(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putMetrics(r,n){const i=(0,t.ReportApiFetchParamCreator)(e).putMetrics(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryAggregateDaily(r,n,i,s,u,p,c,l,d){const h=(0,t.ReportApiFetchParamCreator)(e).queryAggregateDaily(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunFailureCategoryHistory(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryJourneyRunFailureCategoryHistory(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunStatusHistory(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryJourneyRunStatusHistory(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryQualityMetric(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryQualityMetric(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestSuitePerformanceOverTime(r,n,i,s,u,p){const c=(0,t.ReportApiFetchParamCreator)(e).queryTestSuitePerformanceOverTime(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestSuiteStatus(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryTestSuiteStatus(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestSuiteStatusOverTime(r,n,i,s,u,p){const c=(0,t.ReportApiFetchParamCreator)(e).queryTestSuiteStatusOverTime(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryWorkspaceActivity(r,n,i,s,u,p,c,l,d,h){const y=(0,t.ReportApiFetchParamCreator)(e).queryWorkspaceActivity(r,n,i,s,u,p,c,l,d,h);return(e=a,t=o)=>e(t+y.url,y.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryWorkspaceArtifacts(r,n,i,s){const u=(0,t.ReportApiFetchParamCreator)(e).queryWorkspaceArtifacts(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},retrieveMetrics(r,n,i,s,u,p){const c=(0,t.ReportApiFetchParamCreator)(e).retrieveMetrics(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateReportSetting(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).updateReportSetting(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ReportApiFactory=function(e,r,n){return{createArtifactUploadAndRetrievalUrls:(i,a,o)=>(0,t.ReportApiFp)(e).createArtifactUploadAndRetrievalUrls(i,a,o)(r,n),createReportSetting:(i,a,o)=>(0,t.ReportApiFp)(e).createReportSetting(i,a,o)(r,n),deleteReportSetting:(i,a)=>(0,t.ReportApiFp)(e).deleteReportSetting(i,a)(r,n),getArtifact:(i,a,o)=>(0,t.ReportApiFp)(e).getArtifact(i,a,o)(r,n),getArtifactUrl:(i,a,o)=>(0,t.ReportApiFp)(e).getArtifactUrl(i,a,o)(r,n),getImageUrls:(i,a,o)=>(0,t.ReportApiFp)(e).getImageUrls(i,a,o)(r,n),getReportSettings:(i,a,o)=>(0,t.ReportApiFp)(e).getReportSettings(i,a,o)(r,n),getStepRunScreenshotUrls:(i,a,o,s)=>(0,t.ReportApiFp)(e).getStepRunScreenshotUrls(i,a,o,s)(r,n),putMetrics:(i,a)=>(0,t.ReportApiFp)(e).putMetrics(i,a)(r,n),queryAggregateDaily:(i,a,o,s,u,p,c,l,d)=>(0,t.ReportApiFp)(e).queryAggregateDaily(i,a,o,s,u,p,c,l,d)(r,n),queryJourneyRunFailureCategoryHistory:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryJourneyRunFailureCategoryHistory(i,a,o,s,u)(r,n),queryJourneyRunStatusHistory:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryJourneyRunStatusHistory(i,a,o,s,u)(r,n),queryQualityMetric:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryQualityMetric(i,a,o,s,u)(r,n),queryTestSuitePerformanceOverTime:(i,a,o,s,u,p)=>(0,t.ReportApiFp)(e).queryTestSuitePerformanceOverTime(i,a,o,s,u,p)(r,n),queryTestSuiteStatus:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryTestSuiteStatus(i,a,o,s,u)(r,n),queryTestSuiteStatusOverTime:(i,a,o,s,u,p)=>(0,t.ReportApiFp)(e).queryTestSuiteStatusOverTime(i,a,o,s,u,p)(r,n),queryWorkspaceActivity:(i,a,o,s,u,p,c,l,d,h)=>(0,t.ReportApiFp)(e).queryWorkspaceActivity(i,a,o,s,u,p,c,l,d,h)(r,n),queryWorkspaceArtifacts:(i,a,o,s)=>(0,t.ReportApiFp)(e).queryWorkspaceArtifacts(i,a,o,s)(r,n),retrieveMetrics:(i,a,o,s,u,p)=>(0,t.ReportApiFp)(e).retrieveMetrics(i,a,o,s,u,p)(r,n),updateReportSetting:(i,a,o)=>(0,t.ReportApiFp)(e).updateReportSetting(i,a,o)(r,n)}};t.ReportApi=class extends s{createArtifactUploadAndRetrievalUrls(e,r,n){return(0,t.ReportApiFp)(this.configuration).createArtifactUploadAndRetrievalUrls(e,r,n)(this.fetch,this.basePath)}createReportSetting(e,r,n){return(0,t.ReportApiFp)(this.configuration).createReportSetting(e,r,n)(this.fetch,this.basePath)}deleteReportSetting(e,r){return(0,t.ReportApiFp)(this.configuration).deleteReportSetting(e,r)(this.fetch,this.basePath)}getArtifact(e,r,n){return(0,t.ReportApiFp)(this.configuration).getArtifact(e,r,n)(this.fetch,this.basePath)}getArtifactUrl(e,r,n){return(0,t.ReportApiFp)(this.configuration).getArtifactUrl(e,r,n)(this.fetch,this.basePath)}getImageUrls(e,r,n){return(0,t.ReportApiFp)(this.configuration).getImageUrls(e,r,n)(this.fetch,this.basePath)}getReportSettings(e,r,n){return(0,t.ReportApiFp)(this.configuration).getReportSettings(e,r,n)(this.fetch,this.basePath)}getStepRunScreenshotUrls(e,r,n,i){return(0,t.ReportApiFp)(this.configuration).getStepRunScreenshotUrls(e,r,n,i)(this.fetch,this.basePath)}putMetrics(e,r){return(0,t.ReportApiFp)(this.configuration).putMetrics(e,r)(this.fetch,this.basePath)}queryAggregateDaily(e,r,n,i,a,o,s,u,p){return(0,t.ReportApiFp)(this.configuration).queryAggregateDaily(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryJourneyRunFailureCategoryHistory(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryJourneyRunFailureCategoryHistory(e,r,n,i,a)(this.fetch,this.basePath)}queryJourneyRunStatusHistory(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryJourneyRunStatusHistory(e,r,n,i,a)(this.fetch,this.basePath)}queryQualityMetric(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryQualityMetric(e,r,n,i,a)(this.fetch,this.basePath)}queryTestSuitePerformanceOverTime(e,r,n,i,a,o){return(0,t.ReportApiFp)(this.configuration).queryTestSuitePerformanceOverTime(e,r,n,i,a,o)(this.fetch,this.basePath)}queryTestSuiteStatus(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryTestSuiteStatus(e,r,n,i,a)(this.fetch,this.basePath)}queryTestSuiteStatusOverTime(e,r,n,i,a,o){return(0,t.ReportApiFp)(this.configuration).queryTestSuiteStatusOverTime(e,r,n,i,a,o)(this.fetch,this.basePath)}queryWorkspaceActivity(e,r,n,i,a,o,s,u,p,c){return(0,t.ReportApiFp)(this.configuration).queryWorkspaceActivity(e,r,n,i,a,o,s,u,p,c)(this.fetch,this.basePath)}queryWorkspaceArtifacts(e,r,n,i){return(0,t.ReportApiFp)(this.configuration).queryWorkspaceArtifacts(e,r,n,i)(this.fetch,this.basePath)}retrieveMetrics(e,r,n,i,a,o){return(0,t.ReportApiFp)(this.configuration).retrieveMetrics(e,r,n,i,a,o)(this.fetch,this.basePath)}updateReportSetting(e,r,n){return(0,t.ReportApiFp)(this.configuration).updateReportSetting(e,r,n)(this.fetch,this.basePath)}};t.RoleApiFetchParamCreator=function(e){return{acknowledgeWorkspaceRole(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling acknowledgeWorkspaceRole.");const a="/user-roles/acknowledge/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanyRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanyRoles.");const a="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserRoles.");const a="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateUserCompanyRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserCompanyRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserCompanyRoles.");const s="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserRoles.");const s="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.RoleApiFp=function(e){return{acknowledgeWorkspaceRole(r,n){const i=(0,t.RoleApiFetchParamCreator)(e).acknowledgeWorkspaceRole(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getUserCompanyRoles(r,n){const i=(0,t.RoleApiFetchParamCreator)(e).getUserCompanyRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserRoles(r,n){const i=(0,t.RoleApiFetchParamCreator)(e).getUserRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserCompanyRoles(r,n,i,s){const u=(0,t.RoleApiFetchParamCreator)(e).updateUserCompanyRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserRoles(r,n,i,s){const u=(0,t.RoleApiFetchParamCreator)(e).updateUserRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.RoleApiFactory=function(e,r,n){return{acknowledgeWorkspaceRole:(i,a)=>(0,t.RoleApiFp)(e).acknowledgeWorkspaceRole(i,a)(r,n),getUserCompanyRoles:(i,a)=>(0,t.RoleApiFp)(e).getUserCompanyRoles(i,a)(r,n),getUserRoles:(i,a)=>(0,t.RoleApiFp)(e).getUserRoles(i,a)(r,n),updateUserCompanyRoles:(i,a,o,s)=>(0,t.RoleApiFp)(e).updateUserCompanyRoles(i,a,o,s)(r,n),updateUserRoles:(i,a,o,s)=>(0,t.RoleApiFp)(e).updateUserRoles(i,a,o,s)(r,n)}};t.RoleApi=class extends s{acknowledgeWorkspaceRole(e,r){return(0,t.RoleApiFp)(this.configuration).acknowledgeWorkspaceRole(e,r)(this.fetch,this.basePath)}getUserCompanyRoles(e,r){return(0,t.RoleApiFp)(this.configuration).getUserCompanyRoles(e,r)(this.fetch,this.basePath)}getUserRoles(e,r){return(0,t.RoleApiFp)(this.configuration).getUserRoles(e,r)(this.fetch,this.basePath)}updateUserCompanyRoles(e,r,n,i){return(0,t.RoleApiFp)(this.configuration).updateUserCompanyRoles(e,r,n,i)(this.fetch,this.basePath)}updateUserRoles(e,r,n,i){return(0,t.RoleApiFp)(this.configuration).updateUserRoles(e,r,n,i)(this.fetch,this.basePath)}};t.SamlApiFetchParamCreator=function(e){return{configurePreviewEnvironment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling configurePreviewEnvironment.");const a="/preview/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},configureSaml(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling configureSaml.");if(null==r)throw new u("identity_provider","Required parameter identity_provider was null or undefined when calling configureSaml.");const o="/saml/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},initializeSaml(t,r,a={}){const o=n.parse("/saml",!0),s=Object.assign({method:"POST"},a),u={},p={};if(e&&(e.username||e.password)&&(u.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;u.Authorization=t}return void 0!==t&&(p.company_id=t),void 0!==r&&(p.name=r),o.query=Object.assign({},o.query,p,a.query),delete o.search,s.headers=Object.assign({},u,a.headers),{url:n.format(o),options:s}}}};t.SamlApiFp=function(e){return{configurePreviewEnvironment(r,n){const i=(0,t.SamlApiFetchParamCreator)(e).configurePreviewEnvironment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},configureSaml(r,n,i){const s=(0,t.SamlApiFetchParamCreator)(e).configureSaml(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},initializeSaml(r,n,i){const s=(0,t.SamlApiFetchParamCreator)(e).initializeSaml(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.SamlApiFactory=function(e,r,n){return{configurePreviewEnvironment:(i,a)=>(0,t.SamlApiFp)(e).configurePreviewEnvironment(i,a)(r,n),configureSaml:(i,a,o)=>(0,t.SamlApiFp)(e).configureSaml(i,a,o)(r,n),initializeSaml:(i,a,o)=>(0,t.SamlApiFp)(e).initializeSaml(i,a,o)(r,n)}};t.SamlApi=class extends s{configurePreviewEnvironment(e,r){return(0,t.SamlApiFp)(this.configuration).configurePreviewEnvironment(e,r)(this.fetch,this.basePath)}configureSaml(e,r,n){return(0,t.SamlApiFp)(this.configuration).configureSaml(e,r,n)(this.fetch,this.basePath)}initializeSaml(e,r,n){return(0,t.SamlApiFp)(this.configuration).initializeSaml(e,r,n)(this.fetch,this.basePath)}};t.ScheduleApiFetchParamCreator=function(e){return{createDefaultRunPolicies(t,r={}){if(null==t)throw new u("defaultRunPolicy","Required parameter defaultRunPolicy was null or undefined when calling createDefaultRunPolicies.");const a=n.parse("/schedule/runPolicy/default",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},createReport(t,r={}){if(null==t)throw new u("report","Required parameter report was null or undefined when calling createReport.");const a=n.parse("/schedule/report",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},createRunPolicy(t,r={}){if(null==t)throw new u("runPolicy","Required parameter runPolicy was null or undefined when calling createRunPolicy.");const a=n.parse("/schedule/runPolicy",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getReport(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getReport.");const a="/schedule/report/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getRunPolicy(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getRunPolicy.");const a="/schedule/runPolicy/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},maybeOnlyEncryptOnce(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling maybeOnlyEncryptOnce.");const a="/schedule/runPolicy/{id}/migrate/maybeOnlyEncryptOnce".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOwnReports(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryOwnReports.");if(null==r)throw new u("report_type","Required parameter report_type was null or undefined when calling queryOwnReports.");const p=n.parse("/schedule/report/own",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.report_type=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},queryReports(t,r,a,o,s,p,c={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryReports.");const l=n.parse("/schedule/report",!0),d=Object.assign({method:"GET"},c),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==t&&(y.organization_id=t),void 0!==r&&(y.plan_id=r),void 0!==a&&(y.journey_id=a),void 0!==o&&(y.report_type=o),void 0!==s&&(y.limit=s),void 0!==p&&(y.cursor=p),l.query=Object.assign({},l.query,y,c.query),delete l.search,d.headers=Object.assign({},h,c.headers),{url:n.format(l),options:d}},queryRunPolicies(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryRunPolicies.");const p=n.parse("/schedule/runPolicy",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.deployment_id=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},queryRunPolicyLabels(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryRunPolicyLabels.");const s=n.parse("/schedule/runPolicy/labels",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},recoverRunPolicy(t,r={}){if(null==t)throw new u("runPolicyId","Required parameter runPolicyId was null or undefined when calling recoverRunPolicy.");const a="/schedule/runPolicy/{runPolicyId}/recover".replace("{runPolicyId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeReport(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeReport.");const a="/schedule/report/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeRunPolicy(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeRunPolicy.");const a="/schedule/runPolicy/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},runScheduledPolicies(t,r={}){if(null==t)throw new u("shard","Required parameter shard was null or undefined when calling runScheduledPolicies.");const a="/cron/scheduledPolicies/{shard}".replace("{shard}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateReport(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateReport.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateReport.");const s="/schedule/report/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateRunPolicy(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateRunPolicy.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateRunPolicy.");const s="/schedule/runPolicy/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ScheduleApiFp=function(e){return{createDefaultRunPolicies(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).createDefaultRunPolicies(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createReport(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).createReport(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).createRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getReport(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).getReport(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).getRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},maybeOnlyEncryptOnce(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).maybeOnlyEncryptOnce(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},queryOwnReports(r,n,i,s,u){const p=(0,t.ScheduleApiFetchParamCreator)(e).queryOwnReports(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryReports(r,n,i,s,u,p,c){const l=(0,t.ScheduleApiFetchParamCreator)(e).queryReports(r,n,i,s,u,p,c);return(e=a,t=o)=>e(t+l.url,l.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRunPolicies(r,n,i,s,u){const p=(0,t.ScheduleApiFetchParamCreator)(e).queryRunPolicies(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRunPolicyLabels(r,n,i,s){const u=(0,t.ScheduleApiFetchParamCreator)(e).queryRunPolicyLabels(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).recoverRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeReport(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).removeReport(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).removeRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},runScheduledPolicies(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).runScheduledPolicies(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateReport(r,n,i,s){const u=(0,t.ScheduleApiFetchParamCreator)(e).updateReport(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateRunPolicy(r,n,i,s){const u=(0,t.ScheduleApiFetchParamCreator)(e).updateRunPolicy(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ScheduleApiFactory=function(e,r,n){return{createDefaultRunPolicies:(i,a)=>(0,t.ScheduleApiFp)(e).createDefaultRunPolicies(i,a)(r,n),createReport:(i,a)=>(0,t.ScheduleApiFp)(e).createReport(i,a)(r,n),createRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).createRunPolicy(i,a)(r,n),getReport:(i,a)=>(0,t.ScheduleApiFp)(e).getReport(i,a)(r,n),getRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).getRunPolicy(i,a)(r,n),maybeOnlyEncryptOnce:(i,a)=>(0,t.ScheduleApiFp)(e).maybeOnlyEncryptOnce(i,a)(r,n),queryOwnReports:(i,a,o,s,u)=>(0,t.ScheduleApiFp)(e).queryOwnReports(i,a,o,s,u)(r,n),queryReports:(i,a,o,s,u,p,c)=>(0,t.ScheduleApiFp)(e).queryReports(i,a,o,s,u,p,c)(r,n),queryRunPolicies:(i,a,o,s,u)=>(0,t.ScheduleApiFp)(e).queryRunPolicies(i,a,o,s,u)(r,n),queryRunPolicyLabels:(i,a,o,s)=>(0,t.ScheduleApiFp)(e).queryRunPolicyLabels(i,a,o,s)(r,n),recoverRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).recoverRunPolicy(i,a)(r,n),removeReport:(i,a)=>(0,t.ScheduleApiFp)(e).removeReport(i,a)(r,n),removeRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).removeRunPolicy(i,a)(r,n),runScheduledPolicies:(i,a)=>(0,t.ScheduleApiFp)(e).runScheduledPolicies(i,a)(r,n),updateReport:(i,a,o,s)=>(0,t.ScheduleApiFp)(e).updateReport(i,a,o,s)(r,n),updateRunPolicy:(i,a,o,s)=>(0,t.ScheduleApiFp)(e).updateRunPolicy(i,a,o,s)(r,n)}};t.ScheduleApi=class extends s{createDefaultRunPolicies(e,r){return(0,t.ScheduleApiFp)(this.configuration).createDefaultRunPolicies(e,r)(this.fetch,this.basePath)}createReport(e,r){return(0,t.ScheduleApiFp)(this.configuration).createReport(e,r)(this.fetch,this.basePath)}createRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).createRunPolicy(e,r)(this.fetch,this.basePath)}getReport(e,r){return(0,t.ScheduleApiFp)(this.configuration).getReport(e,r)(this.fetch,this.basePath)}getRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).getRunPolicy(e,r)(this.fetch,this.basePath)}maybeOnlyEncryptOnce(e,r){return(0,t.ScheduleApiFp)(this.configuration).maybeOnlyEncryptOnce(e,r)(this.fetch,this.basePath)}queryOwnReports(e,r,n,i,a){return(0,t.ScheduleApiFp)(this.configuration).queryOwnReports(e,r,n,i,a)(this.fetch,this.basePath)}queryReports(e,r,n,i,a,o,s){return(0,t.ScheduleApiFp)(this.configuration).queryReports(e,r,n,i,a,o,s)(this.fetch,this.basePath)}queryRunPolicies(e,r,n,i,a){return(0,t.ScheduleApiFp)(this.configuration).queryRunPolicies(e,r,n,i,a)(this.fetch,this.basePath)}queryRunPolicyLabels(e,r,n,i){return(0,t.ScheduleApiFp)(this.configuration).queryRunPolicyLabels(e,r,n,i)(this.fetch,this.basePath)}recoverRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).recoverRunPolicy(e,r)(this.fetch,this.basePath)}removeReport(e,r){return(0,t.ScheduleApiFp)(this.configuration).removeReport(e,r)(this.fetch,this.basePath)}removeRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).removeRunPolicy(e,r)(this.fetch,this.basePath)}runScheduledPolicies(e,r){return(0,t.ScheduleApiFp)(this.configuration).runScheduledPolicies(e,r)(this.fetch,this.basePath)}updateReport(e,r,n,i){return(0,t.ScheduleApiFp)(this.configuration).updateReport(e,r,n,i)(this.fetch,this.basePath)}updateRunPolicy(e,r,n,i){return(0,t.ScheduleApiFp)(this.configuration).updateRunPolicy(e,r,n,i)(this.fetch,this.basePath)}};t.SnippetApiFetchParamCreator=function(e){return{createSnippet(t,r={}){if(null==t)throw new u("snippet","Required parameter snippet was null or undefined when calling createSnippet.");const a=n.parse("/snippets",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getSnippet(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getSnippet.");const o="/snippets/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.preferLatestIfReusable=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},querySnippets(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling querySnippets.");const c=n.parse("/snippets",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.snippet_type=r),void 0!==a&&(h.includeNonReusable=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},recoverSnippet(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverSnippet.");const a="/recover/snippet/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeSnippet(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeSnippet.");const a="/snippets/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateSnippet(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateSnippet.");if(null==r)throw new u("snippet","Required parameter snippet was null or undefined when calling updateSnippet.");const p="/snippets/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==o&&(h.force=o),null!=a&&(d["If-Match"]=String(a)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.SnippetApiFp=function(e){return{createSnippet(r,n){const i=(0,t.SnippetApiFetchParamCreator)(e).createSnippet(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getSnippet(r,n,i){const s=(0,t.SnippetApiFetchParamCreator)(e).getSnippet(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},querySnippets(r,n,i,s,u,p){const c=(0,t.SnippetApiFetchParamCreator)(e).querySnippets(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverSnippet(r,n){const i=(0,t.SnippetApiFetchParamCreator)(e).recoverSnippet(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeSnippet(r,n){const i=(0,t.SnippetApiFetchParamCreator)(e).removeSnippet(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateSnippet(r,n,i,s,u){const p=(0,t.SnippetApiFetchParamCreator)(e).updateSnippet(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.SnippetApiFactory=function(e,r,n){return{createSnippet:(i,a)=>(0,t.SnippetApiFp)(e).createSnippet(i,a)(r,n),getSnippet:(i,a,o)=>(0,t.SnippetApiFp)(e).getSnippet(i,a,o)(r,n),querySnippets:(i,a,o,s,u,p)=>(0,t.SnippetApiFp)(e).querySnippets(i,a,o,s,u,p)(r,n),recoverSnippet:(i,a)=>(0,t.SnippetApiFp)(e).recoverSnippet(i,a)(r,n),removeSnippet:(i,a)=>(0,t.SnippetApiFp)(e).removeSnippet(i,a)(r,n),updateSnippet:(i,a,o,s,u)=>(0,t.SnippetApiFp)(e).updateSnippet(i,a,o,s,u)(r,n)}};t.SnippetApi=class extends s{createSnippet(e,r){return(0,t.SnippetApiFp)(this.configuration).createSnippet(e,r)(this.fetch,this.basePath)}getSnippet(e,r,n){return(0,t.SnippetApiFp)(this.configuration).getSnippet(e,r,n)(this.fetch,this.basePath)}querySnippets(e,r,n,i,a,o){return(0,t.SnippetApiFp)(this.configuration).querySnippets(e,r,n,i,a,o)(this.fetch,this.basePath)}recoverSnippet(e,r){return(0,t.SnippetApiFp)(this.configuration).recoverSnippet(e,r)(this.fetch,this.basePath)}removeSnippet(e,r){return(0,t.SnippetApiFp)(this.configuration).removeSnippet(e,r)(this.fetch,this.basePath)}updateSnippet(e,r,n,i,a){return(0,t.SnippetApiFp)(this.configuration).updateSnippet(e,r,n,i,a)(this.fetch,this.basePath)}};t.StateDetectionApiFetchParamCreator=function(e){return{createStateDetection(t,r={}){if(null==t)throw new u("stateDetection","Required parameter stateDetection was null or undefined when calling createStateDetection.");const a=n.parse("/stateDetections",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getStateDetection(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getStateDetection.");const a="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},putStateDetection(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling putStateDetection.");if(null==r)throw new u("stateDetection","Required parameter stateDetection was null or undefined when calling putStateDetection.");const o="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},queryStateDetections(t,r,a,o,s,p,c,l,d,h,y={}){if(null==t)throw new u("category","Required parameter category was null or undefined when calling queryStateDetections.");const m=n.parse("/stateDetections",!0),f=Object.assign({method:"GET"},y),g={},w={};if(e&&(e.username||e.password)&&(g.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;g.Authorization=t}return void 0!==t&&(w.category=t),void 0!==r&&(w.run_policy_execution_id=r),void 0!==a&&(w.test_script_id=a),void 0!==o&&(w.group_id=o),void 0!==s&&(w.start=s),void 0!==p&&(w.end=p),void 0!==c&&(w.current_state=c),void 0!==l&&(w.organization_id=l),void 0!==d&&(w.limit=d),void 0!==h&&(w.cursor=h),m.query=Object.assign({},m.query,w,y.query),delete m.search,f.headers=Object.assign({},g,y.headers),{url:n.format(m),options:f}},queryStateDetectionsByCategory(t,r,a,o,s,p,c,l={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryStateDetectionsByCategory.");if(null==r)throw new u("category","Required parameter category was null or undefined when calling queryStateDetectionsByCategory.");const d="/stateDetections/workspace/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),h=n.parse(d,!0),y=Object.assign({method:"GET"},l),m={},f={};if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==r&&(f.category=r),void 0!==a&&(f.current_state=a),void 0!==o&&(f.start=o),void 0!==s&&(f.end=s),void 0!==p&&(f.limit=p),void 0!==c&&(f.cursor=c),h.query=Object.assign({},h.query,f,l.query),delete h.search,y.headers=Object.assign({},m,l.headers),{url:n.format(h),options:y}},removeStateDetection(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeStateDetection.");const a="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateStateDetection(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateStateDetection.");if(null==r)throw new u("stateDetection","Required parameter stateDetection was null or undefined when calling updateStateDetection.");const s="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.StateDetectionApiFp=function(e){return{createStateDetection(r,n){const i=(0,t.StateDetectionApiFetchParamCreator)(e).createStateDetection(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getStateDetection(r,n){const i=(0,t.StateDetectionApiFetchParamCreator)(e).getStateDetection(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putStateDetection(r,n,i){const s=(0,t.StateDetectionApiFetchParamCreator)(e).putStateDetection(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryStateDetections(r,n,i,s,u,p,c,l,d,h,y){const m=(0,t.StateDetectionApiFetchParamCreator)(e).queryStateDetections(r,n,i,s,u,p,c,l,d,h,y);return(e=a,t=o)=>e(t+m.url,m.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryStateDetectionsByCategory(r,n,i,s,u,p,c,l){const d=(0,t.StateDetectionApiFetchParamCreator)(e).queryStateDetectionsByCategory(r,n,i,s,u,p,c,l);return(e=a,t=o)=>e(t+d.url,d.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeStateDetection(r,n){const i=(0,t.StateDetectionApiFetchParamCreator)(e).removeStateDetection(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateStateDetection(r,n,i,s){const u=(0,t.StateDetectionApiFetchParamCreator)(e).updateStateDetection(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.StateDetectionApiFactory=function(e,r,n){return{createStateDetection:(i,a)=>(0,t.StateDetectionApiFp)(e).createStateDetection(i,a)(r,n),getStateDetection:(i,a)=>(0,t.StateDetectionApiFp)(e).getStateDetection(i,a)(r,n),putStateDetection:(i,a,o)=>(0,t.StateDetectionApiFp)(e).putStateDetection(i,a,o)(r,n),queryStateDetections:(i,a,o,s,u,p,c,l,d,h,y)=>(0,t.StateDetectionApiFp)(e).queryStateDetections(i,a,o,s,u,p,c,l,d,h,y)(r,n),queryStateDetectionsByCategory:(i,a,o,s,u,p,c,l)=>(0,t.StateDetectionApiFp)(e).queryStateDetectionsByCategory(i,a,o,s,u,p,c,l)(r,n),removeStateDetection:(i,a)=>(0,t.StateDetectionApiFp)(e).removeStateDetection(i,a)(r,n),updateStateDetection:(i,a,o,s)=>(0,t.StateDetectionApiFp)(e).updateStateDetection(i,a,o,s)(r,n)}};t.StateDetectionApi=class extends s{createStateDetection(e,r){return(0,t.StateDetectionApiFp)(this.configuration).createStateDetection(e,r)(this.fetch,this.basePath)}getStateDetection(e,r){return(0,t.StateDetectionApiFp)(this.configuration).getStateDetection(e,r)(this.fetch,this.basePath)}putStateDetection(e,r,n){return(0,t.StateDetectionApiFp)(this.configuration).putStateDetection(e,r,n)(this.fetch,this.basePath)}queryStateDetections(e,r,n,i,a,o,s,u,p,c,l){return(0,t.StateDetectionApiFp)(this.configuration).queryStateDetections(e,r,n,i,a,o,s,u,p,c,l)(this.fetch,this.basePath)}queryStateDetectionsByCategory(e,r,n,i,a,o,s,u){return(0,t.StateDetectionApiFp)(this.configuration).queryStateDetectionsByCategory(e,r,n,i,a,o,s,u)(this.fetch,this.basePath)}removeStateDetection(e,r){return(0,t.StateDetectionApiFp)(this.configuration).removeStateDetection(e,r)(this.fetch,this.basePath)}updateStateDetection(e,r,n,i){return(0,t.StateDetectionApiFp)(this.configuration).updateStateDetection(e,r,n,i)(this.fetch,this.basePath)}};t.UsageApiFetchParamCreator=function(e){return{putDailyExecutionUsage(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling putDailyExecutionUsage.");if(null==r)throw new u("dailyExecutionStats","Required parameter dailyExecutionStats was null or undefined when calling putDailyExecutionUsage.");const o="/usage/daily/executions/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},retrieveDailyExecutionUsage(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling retrieveDailyExecutionUsage.");if(null==r)throw new u("day","Required parameter day was null or undefined when calling retrieveDailyExecutionUsage.");if(null==a)throw new u("month","Required parameter month was null or undefined when calling retrieveDailyExecutionUsage.");if(null==o)throw new u("year","Required parameter year was null or undefined when calling retrieveDailyExecutionUsage.");const p=n.parse("/usage/daily/executions",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.day=r),void 0!==a&&(d.month=a),void 0!==o&&(d.year=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},retrieveExecutionUsage(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling retrieveExecutionUsage.");if(null==r)throw new u("month","Required parameter month was null or undefined when calling retrieveExecutionUsage.");if(null==a)throw new u("year","Required parameter year was null or undefined when calling retrieveExecutionUsage.");const s=n.parse("/usage/executions",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.month=r),void 0!==a&&(l.year=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}}}};t.UsageApiFp=function(e){return{putDailyExecutionUsage(r,n,i){const s=(0,t.UsageApiFetchParamCreator)(e).putDailyExecutionUsage(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},retrieveDailyExecutionUsage(r,n,i,s,u){const p=(0,t.UsageApiFetchParamCreator)(e).retrieveDailyExecutionUsage(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},retrieveExecutionUsage(r,n,i,s){const u=(0,t.UsageApiFetchParamCreator)(e).retrieveExecutionUsage(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.UsageApiFactory=function(e,r,n){return{putDailyExecutionUsage:(i,a,o)=>(0,t.UsageApiFp)(e).putDailyExecutionUsage(i,a,o)(r,n),retrieveDailyExecutionUsage:(i,a,o,s,u)=>(0,t.UsageApiFp)(e).retrieveDailyExecutionUsage(i,a,o,s,u)(r,n),retrieveExecutionUsage:(i,a,o,s)=>(0,t.UsageApiFp)(e).retrieveExecutionUsage(i,a,o,s)(r,n)}};t.UsageApi=class extends s{putDailyExecutionUsage(e,r,n){return(0,t.UsageApiFp)(this.configuration).putDailyExecutionUsage(e,r,n)(this.fetch,this.basePath)}retrieveDailyExecutionUsage(e,r,n,i,a){return(0,t.UsageApiFp)(this.configuration).retrieveDailyExecutionUsage(e,r,n,i,a)(this.fetch,this.basePath)}retrieveExecutionUsage(e,r,n,i){return(0,t.UsageApiFp)(this.configuration).retrieveExecutionUsage(e,r,n,i)(this.fetch,this.basePath)}};t.UserApiFetchParamCreator=function(e){return{acknowledgeWorkspaceRole(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling acknowledgeWorkspaceRole.");const a="/user-roles/acknowledge/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getSelf(t={}){const r=n.parse("/self",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getUser(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUser.");const a="/users/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanies(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanies.");const a="/users/{id}/companies".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanyRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanyRoles.");const a="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserOrganizations(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserOrganizations.");const a="/users/{id}/organizations".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserRoles.");const a="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserWithAllAttributes(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserWithAllAttributes.");const a="/users/withAllAttributes/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryUsers(t,r,a,o,s={}){const u=n.parse("/users",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.email=t),void 0!==r&&(l.organization_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},queryUsersWithAllAttributes(t,r,a,o,s={}){const u=n.parse("/users/withAllAttributes",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.email=t),void 0!==r&&(l.organization_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},reactivateUser(t,r={}){if(null==t)throw new u("request","Required parameter request was null or undefined when calling reactivateUser.");const a=n.parse("/users/reactivate",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},registerUser(t,r={}){if(null==t)throw new u("request","Required parameter request was null or undefined when calling registerUser.");const a=n.parse("/users",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},removeUser(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeUser.");const a="/users/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},sendUserVerificationEmail(t={}){const r=n.parse("/user-verification/email",!0),a=Object.assign({method:"POST"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},updateSelf(t={}){const r=n.parse("/self",!0),a=Object.assign({method:"PATCH"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},updateUser(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUser.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUser.");const s="/users/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserCompanyRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserCompanyRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserCompanyRoles.");const s="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserRoles.");const s="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.UserApiFp=function(e){return{acknowledgeWorkspaceRole(r,n){const i=(0,t.UserApiFetchParamCreator)(e).acknowledgeWorkspaceRole(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getSelf(r){const n=(0,t.UserApiFetchParamCreator)(e).getSelf(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserCompanies(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserCompanies(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserCompanyRoles(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserCompanyRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserOrganizations(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserOrganizations(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserRoles(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserWithAllAttributes(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserWithAllAttributes(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryUsers(r,n,i,s,u){const p=(0,t.UserApiFetchParamCreator)(e).queryUsers(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryUsersWithAllAttributes(r,n,i,s,u){const p=(0,t.UserApiFetchParamCreator)(e).queryUsersWithAllAttributes(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},reactivateUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).reactivateUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},registerUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).registerUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).removeUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},sendUserVerificationEmail(r){const n=(0,t.UserApiFetchParamCreator)(e).sendUserVerificationEmail(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateSelf(r){const n=(0,t.UserApiFetchParamCreator)(e).updateSelf(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUser(r,n,i,s){const u=(0,t.UserApiFetchParamCreator)(e).updateUser(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserCompanyRoles(r,n,i,s){const u=(0,t.UserApiFetchParamCreator)(e).updateUserCompanyRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserRoles(r,n,i,s){const u=(0,t.UserApiFetchParamCreator)(e).updateUserRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.UserApiFactory=function(e,r,n){return{acknowledgeWorkspaceRole:(i,a)=>(0,t.UserApiFp)(e).acknowledgeWorkspaceRole(i,a)(r,n),getSelf:i=>(0,t.UserApiFp)(e).getSelf(i)(r,n),getUser:(i,a)=>(0,t.UserApiFp)(e).getUser(i,a)(r,n),getUserCompanies:(i,a)=>(0,t.UserApiFp)(e).getUserCompanies(i,a)(r,n),getUserCompanyRoles:(i,a)=>(0,t.UserApiFp)(e).getUserCompanyRoles(i,a)(r,n),getUserOrganizations:(i,a)=>(0,t.UserApiFp)(e).getUserOrganizations(i,a)(r,n),getUserRoles:(i,a)=>(0,t.UserApiFp)(e).getUserRoles(i,a)(r,n),getUserWithAllAttributes:(i,a)=>(0,t.UserApiFp)(e).getUserWithAllAttributes(i,a)(r,n),queryUsers:(i,a,o,s,u)=>(0,t.UserApiFp)(e).queryUsers(i,a,o,s,u)(r,n),queryUsersWithAllAttributes:(i,a,o,s,u)=>(0,t.UserApiFp)(e).queryUsersWithAllAttributes(i,a,o,s,u)(r,n),reactivateUser:(i,a)=>(0,t.UserApiFp)(e).reactivateUser(i,a)(r,n),registerUser:(i,a)=>(0,t.UserApiFp)(e).registerUser(i,a)(r,n),removeUser:(i,a)=>(0,t.UserApiFp)(e).removeUser(i,a)(r,n),sendUserVerificationEmail:i=>(0,t.UserApiFp)(e).sendUserVerificationEmail(i)(r,n),updateSelf:i=>(0,t.UserApiFp)(e).updateSelf(i)(r,n),updateUser:(i,a,o,s)=>(0,t.UserApiFp)(e).updateUser(i,a,o,s)(r,n),updateUserCompanyRoles:(i,a,o,s)=>(0,t.UserApiFp)(e).updateUserCompanyRoles(i,a,o,s)(r,n),updateUserRoles:(i,a,o,s)=>(0,t.UserApiFp)(e).updateUserRoles(i,a,o,s)(r,n)}};t.UserApi=class extends s{acknowledgeWorkspaceRole(e,r){return(0,t.UserApiFp)(this.configuration).acknowledgeWorkspaceRole(e,r)(this.fetch,this.basePath)}getSelf(e){return(0,t.UserApiFp)(this.configuration).getSelf(e)(this.fetch,this.basePath)}getUser(e,r){return(0,t.UserApiFp)(this.configuration).getUser(e,r)(this.fetch,this.basePath)}getUserCompanies(e,r){return(0,t.UserApiFp)(this.configuration).getUserCompanies(e,r)(this.fetch,this.basePath)}getUserCompanyRoles(e,r){return(0,t.UserApiFp)(this.configuration).getUserCompanyRoles(e,r)(this.fetch,this.basePath)}getUserOrganizations(e,r){return(0,t.UserApiFp)(this.configuration).getUserOrganizations(e,r)(this.fetch,this.basePath)}getUserRoles(e,r){return(0,t.UserApiFp)(this.configuration).getUserRoles(e,r)(this.fetch,this.basePath)}getUserWithAllAttributes(e,r){return(0,t.UserApiFp)(this.configuration).getUserWithAllAttributes(e,r)(this.fetch,this.basePath)}queryUsers(e,r,n,i,a){return(0,t.UserApiFp)(this.configuration).queryUsers(e,r,n,i,a)(this.fetch,this.basePath)}queryUsersWithAllAttributes(e,r,n,i,a){return(0,t.UserApiFp)(this.configuration).queryUsersWithAllAttributes(e,r,n,i,a)(this.fetch,this.basePath)}reactivateUser(e,r){return(0,t.UserApiFp)(this.configuration).reactivateUser(e,r)(this.fetch,this.basePath)}registerUser(e,r){return(0,t.UserApiFp)(this.configuration).registerUser(e,r)(this.fetch,this.basePath)}removeUser(e,r){return(0,t.UserApiFp)(this.configuration).removeUser(e,r)(this.fetch,this.basePath)}sendUserVerificationEmail(e){return(0,t.UserApiFp)(this.configuration).sendUserVerificationEmail(e)(this.fetch,this.basePath)}updateSelf(e){return(0,t.UserApiFp)(this.configuration).updateSelf(e)(this.fetch,this.basePath)}updateUser(e,r,n,i){return(0,t.UserApiFp)(this.configuration).updateUser(e,r,n,i)(this.fetch,this.basePath)}updateUserCompanyRoles(e,r,n,i){return(0,t.UserApiFp)(this.configuration).updateUserCompanyRoles(e,r,n,i)(this.fetch,this.basePath)}updateUserRoles(e,r,n,i){return(0,t.UserApiFp)(this.configuration).updateUserRoles(e,r,n,i)(this.fetch,this.basePath)}};t.ValidateUrlApiFetchParamCreator=function(e){return{createValidateUrl(t,r={}){if(null==t)throw new u("entity","Required parameter entity was null or undefined when calling createValidateUrl.");const a=n.parse("/validations/url",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getValidateUrl(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getValidateUrl.");const a="/validations/url/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeValidateUrl(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeValidateUrl.");const a="/validations/url/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateValidateUrl(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateValidateUrl.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling updateValidateUrl.");const s="/validations/url/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ValidateUrlApiFp=function(e){return{createValidateUrl(r,n){const i=(0,t.ValidateUrlApiFetchParamCreator)(e).createValidateUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getValidateUrl(r,n){const i=(0,t.ValidateUrlApiFetchParamCreator)(e).getValidateUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeValidateUrl(r,n){const i=(0,t.ValidateUrlApiFetchParamCreator)(e).removeValidateUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateValidateUrl(r,n,i,s){const u=(0,t.ValidateUrlApiFetchParamCreator)(e).updateValidateUrl(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ValidateUrlApiFactory=function(e,r,n){return{createValidateUrl:(i,a)=>(0,t.ValidateUrlApiFp)(e).createValidateUrl(i,a)(r,n),getValidateUrl:(i,a)=>(0,t.ValidateUrlApiFp)(e).getValidateUrl(i,a)(r,n),removeValidateUrl:(i,a)=>(0,t.ValidateUrlApiFp)(e).removeValidateUrl(i,a)(r,n),updateValidateUrl:(i,a,o,s)=>(0,t.ValidateUrlApiFp)(e).updateValidateUrl(i,a,o,s)(r,n)}};t.ValidateUrlApi=class extends s{createValidateUrl(e,r){return(0,t.ValidateUrlApiFp)(this.configuration).createValidateUrl(e,r)(this.fetch,this.basePath)}getValidateUrl(e,r){return(0,t.ValidateUrlApiFp)(this.configuration).getValidateUrl(e,r)(this.fetch,this.basePath)}removeValidateUrl(e,r){return(0,t.ValidateUrlApiFp)(this.configuration).removeValidateUrl(e,r)(this.fetch,this.basePath)}updateValidateUrl(e,r,n,i){return(0,t.ValidateUrlApiFp)(this.configuration).updateValidateUrl(e,r,n,i)(this.fetch,this.basePath)}};t.VariableRowApiFetchParamCreator=function(e){return{createVariableRow(t,r={}){if(null==t)throw new u("prototype","Required parameter prototype was null or undefined when calling createVariableRow.");const a=n.parse("/variables/rows",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getVariableRow(t,r={}){if(null==t)throw new u("variable_row_id","Required parameter variable_row_id was null or undefined when calling getVariableRow.");const a="/variables/rows/{variable_row_id}".replace("{variable_row_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeVariableRow(t,r={}){if(null==t)throw new u("variable_row_id","Required parameter variable_row_id was null or undefined when calling removeVariableRow.");const a="/variables/rows/{variable_row_id}".replace("{variable_row_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateVariableRow(t,r,a,o={}){if(null==t)throw new u("variable_row_id","Required parameter variable_row_id was null or undefined when calling updateVariableRow.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateVariableRow.");const s="/variables/rows/{variable_row_id}".replace("{variable_row_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.VariableRowApiFp=function(e){return{createVariableRow(r,n){const i=(0,t.VariableRowApiFetchParamCreator)(e).createVariableRow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getVariableRow(r,n){const i=(0,t.VariableRowApiFetchParamCreator)(e).getVariableRow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeVariableRow(r,n){const i=(0,t.VariableRowApiFetchParamCreator)(e).removeVariableRow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateVariableRow(r,n,i,s){const u=(0,t.VariableRowApiFetchParamCreator)(e).updateVariableRow(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.VariableRowApiFactory=function(e,r,n){return{createVariableRow:(i,a)=>(0,t.VariableRowApiFp)(e).createVariableRow(i,a)(r,n),getVariableRow:(i,a)=>(0,t.VariableRowApiFp)(e).getVariableRow(i,a)(r,n),removeVariableRow:(i,a)=>(0,t.VariableRowApiFp)(e).removeVariableRow(i,a)(r,n),updateVariableRow:(i,a,o,s)=>(0,t.VariableRowApiFp)(e).updateVariableRow(i,a,o,s)(r,n)}};t.VariableRowApi=class extends s{createVariableRow(e,r){return(0,t.VariableRowApiFp)(this.configuration).createVariableRow(e,r)(this.fetch,this.basePath)}getVariableRow(e,r){return(0,t.VariableRowApiFp)(this.configuration).getVariableRow(e,r)(this.fetch,this.basePath)}removeVariableRow(e,r){return(0,t.VariableRowApiFp)(this.configuration).removeVariableRow(e,r)(this.fetch,this.basePath)}updateVariableRow(e,r,n,i){return(0,t.VariableRowApiFp)(this.configuration).updateVariableRow(e,r,n,i)(this.fetch,this.basePath)}};t.VariableTableApiFetchParamCreator=function(e){return{createVariableTable(t,r,a={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling createVariableTable.");const o=n.parse("/variables/tables",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==t&&(c.organization_id=t),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(r||{}),{url:n.format(o),options:s}},getVariableTable(t,r={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling getVariableTable.");const a="/variables/tables/{variable_table_id}".replace("{variable_table_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryVariableRowsForTable(t,r,a,o={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling queryVariableRowsForTable.");const s="/variables/tables/{variable_table_id}/rows".replace("{variable_table_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryVariableTables(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryVariableTables.");const s=n.parse("/variables/tables",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeVariableTable(t,r={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling removeVariableTable.");const a="/variables/tables/{variable_table_id}".replace("{variable_table_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateVariableTable(t,r,a,o={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling updateVariableTable.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateVariableTable.");const s="/variables/tables/{variable_table_id}".replace("{variable_table_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.VariableTableApiFp=function(e){return{createVariableTable(r,n,i){const s=(0,t.VariableTableApiFetchParamCreator)(e).createVariableTable(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getVariableTable(r,n){const i=(0,t.VariableTableApiFetchParamCreator)(e).getVariableTable(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryVariableRowsForTable(r,n,i,s){const u=(0,t.VariableTableApiFetchParamCreator)(e).queryVariableRowsForTable(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryVariableTables(r,n,i,s){const u=(0,t.VariableTableApiFetchParamCreator)(e).queryVariableTables(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeVariableTable(r,n){const i=(0,t.VariableTableApiFetchParamCreator)(e).removeVariableTable(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateVariableTable(r,n,i,s){const u=(0,t.VariableTableApiFetchParamCreator)(e).updateVariableTable(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.VariableTableApiFactory=function(e,r,n){return{createVariableTable:(i,a,o)=>(0,t.VariableTableApiFp)(e).createVariableTable(i,a,o)(r,n),getVariableTable:(i,a)=>(0,t.VariableTableApiFp)(e).getVariableTable(i,a)(r,n),queryVariableRowsForTable:(i,a,o,s)=>(0,t.VariableTableApiFp)(e).queryVariableRowsForTable(i,a,o,s)(r,n),queryVariableTables:(i,a,o,s)=>(0,t.VariableTableApiFp)(e).queryVariableTables(i,a,o,s)(r,n),removeVariableTable:(i,a)=>(0,t.VariableTableApiFp)(e).removeVariableTable(i,a)(r,n),updateVariableTable:(i,a,o,s)=>(0,t.VariableTableApiFp)(e).updateVariableTable(i,a,o,s)(r,n)}};t.VariableTableApi=class extends s{createVariableTable(e,r,n){return(0,t.VariableTableApiFp)(this.configuration).createVariableTable(e,r,n)(this.fetch,this.basePath)}getVariableTable(e,r){return(0,t.VariableTableApiFp)(this.configuration).getVariableTable(e,r)(this.fetch,this.basePath)}queryVariableRowsForTable(e,r,n,i){return(0,t.VariableTableApiFp)(this.configuration).queryVariableRowsForTable(e,r,n,i)(this.fetch,this.basePath)}queryVariableTables(e,r,n,i){return(0,t.VariableTableApiFp)(this.configuration).queryVariableTables(e,r,n,i)(this.fetch,this.basePath)}removeVariableTable(e,r){return(0,t.VariableTableApiFp)(this.configuration).removeVariableTable(e,r)(this.fetch,this.basePath)}updateVariableTable(e,r,n,i){return(0,t.VariableTableApiFp)(this.configuration).updateVariableTable(e,r,n,i)(this.fetch,this.basePath)}};t.WorkspaceInfrastructureApiFetchParamCreator=function(e){return{getWorkspaceNetworkingConfig(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getWorkspaceNetworkingConfig.");const a="/workspaces/{workspace_id}/networking".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.WorkspaceInfrastructureApiFp=function(e){return{getWorkspaceNetworkingConfig(r,n){const i=(0,t.WorkspaceInfrastructureApiFetchParamCreator)(e).getWorkspaceNetworkingConfig(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.WorkspaceInfrastructureApiFactory=function(e,r,n){return{getWorkspaceNetworkingConfig:(i,a)=>(0,t.WorkspaceInfrastructureApiFp)(e).getWorkspaceNetworkingConfig(i,a)(r,n)}};t.WorkspaceInfrastructureApi=class extends s{getWorkspaceNetworkingConfig(e,r){return(0,t.WorkspaceInfrastructureApiFp)(this.configuration).getWorkspaceNetworkingConfig(e,r)(this.fetch,this.basePath)}};t.WorkspaceIntegrationApiFetchParamCreator=function(e){return{claimIntegration(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling claimIntegration.");if(null==r)throw new u("claim_request","Required parameter claim_request was null or undefined when calling claimIntegration.");const o="/workspaces/{workspace_id}/integrations/claim".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},createWorkspaceIntegration(t,r={}){if(null==t)throw new u("integration","Required parameter integration was null or undefined when calling createWorkspaceIntegration.");const a=n.parse("/integrations",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getIssueTrackerSchema(t,r,a={}){if(null==t)throw new u("integrationId","Required parameter integrationId was null or undefined when calling getIssueTrackerSchema.");if(null==r)throw new u("schemaId","Required parameter schemaId was null or undefined when calling getIssueTrackerSchema.");const o="/integrations/{integrationId}/issueTracker/schemas/{schemaId}".replace("{integrationId}",encodeURIComponent(String(t))).replace("{schemaId}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getIssueTrackerSchemaKeyFields(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getIssueTrackerSchemaKeyFields.");const a="/integrations/{id}/issueTracker/schemaKeyFields".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getWorkspaceIntegration(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getWorkspaceIntegration.");const a="/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryByWorkspaceId(r,a,o,s,p,c,l,d,h={}){if(null==r)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling queryByWorkspaceId.");const y="/workspaces/{workspaceId}/integrations".replace("{workspaceId}",encodeURIComponent(String(r))),m=n.parse(y,!0),f=Object.assign({method:"GET"},h),g={},w={};if(e&&(e.username||e.password)&&(g.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;g.Authorization=t}return void 0!==a&&(w.integration_type=a),void 0!==o&&(w.oauth_token_id=o),void 0!==s&&(w.user_id=s),void 0!==p&&(w.enabled=p),void 0!==c&&(w.limit=c),void 0!==l&&(w.cursor=l),d&&(w.integration_types=d.join(t.COLLECTION_FORMATS.csv)),m.query=Object.assign({},m.query,w,h.query),delete m.search,f.headers=Object.assign({},g,h.headers),{url:n.format(m),options:f}},queryWorkspaceIntegrations(t,r,a,o={}){if(null==t)throw new u("integration_type","Required parameter integration_type was null or undefined when calling queryWorkspaceIntegrations.");const s=n.parse("/integrations",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.integration_type=t),void 0!==r&&(l.installation_id=r),void 0!==a&&(l.github_installation_id=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeWorkspaceIntegration(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeWorkspaceIntegration.");const a="/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},setIssueTrackerSchemaIds(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling setIssueTrackerSchemaIds.");if(null==r)throw new u("schemaIds","Required parameter schemaIds was null or undefined when calling setIssueTrackerSchemaIds.");const o="/integrations/{id}/issueTracker/schemaIds".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},updateWorkspaceIntegration(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateWorkspaceIntegration.");if(null==r)throw new u("integration","Required parameter integration was null or undefined when calling updateWorkspaceIntegration.");const s="/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},upsertIssueTrackerSchemas(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling upsertIssueTrackerSchemas.");if(null==r)throw new u("schemas","Required parameter schemas was null or undefined when calling upsertIssueTrackerSchemas.");const o="/integrations/{id}/issueTracker/schemas".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.WorkspaceIntegrationApiFp=function(e){return{claimIntegration(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).claimIntegration(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createWorkspaceIntegration(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).createWorkspaceIntegration(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssueTrackerSchema(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).getIssueTrackerSchema(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssueTrackerSchemaKeyFields(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).getIssueTrackerSchemaKeyFields(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getWorkspaceIntegration(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).getWorkspaceIntegration(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryByWorkspaceId(r,n,i,s,u,p,c,l,d){const h=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).queryByWorkspaceId(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryWorkspaceIntegrations(r,n,i,s){const u=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).queryWorkspaceIntegrations(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeWorkspaceIntegration(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).removeWorkspaceIntegration(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},setIssueTrackerSchemaIds(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).setIssueTrackerSchemaIds(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateWorkspaceIntegration(r,n,i,s){const u=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).updateWorkspaceIntegration(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},upsertIssueTrackerSchemas(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).upsertIssueTrackerSchemas(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.WorkspaceIntegrationApiFactory=function(e,r,n){return{claimIntegration:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).claimIntegration(i,a,o)(r,n),createWorkspaceIntegration:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).createWorkspaceIntegration(i,a)(r,n),getIssueTrackerSchema:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).getIssueTrackerSchema(i,a,o)(r,n),getIssueTrackerSchemaKeyFields:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).getIssueTrackerSchemaKeyFields(i,a)(r,n),getWorkspaceIntegration:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).getWorkspaceIntegration(i,a)(r,n),queryByWorkspaceId:(i,a,o,s,u,p,c,l,d)=>(0,t.WorkspaceIntegrationApiFp)(e).queryByWorkspaceId(i,a,o,s,u,p,c,l,d)(r,n),queryWorkspaceIntegrations:(i,a,o,s)=>(0,t.WorkspaceIntegrationApiFp)(e).queryWorkspaceIntegrations(i,a,o,s)(r,n),removeWorkspaceIntegration:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).removeWorkspaceIntegration(i,a)(r,n),setIssueTrackerSchemaIds:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).setIssueTrackerSchemaIds(i,a,o)(r,n),updateWorkspaceIntegration:(i,a,o,s)=>(0,t.WorkspaceIntegrationApiFp)(e).updateWorkspaceIntegration(i,a,o,s)(r,n),upsertIssueTrackerSchemas:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).upsertIssueTrackerSchemas(i,a,o)(r,n)}};t.WorkspaceIntegrationApi=class extends s{claimIntegration(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).claimIntegration(e,r,n)(this.fetch,this.basePath)}createWorkspaceIntegration(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).createWorkspaceIntegration(e,r)(this.fetch,this.basePath)}getIssueTrackerSchema(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).getIssueTrackerSchema(e,r,n)(this.fetch,this.basePath)}getIssueTrackerSchemaKeyFields(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).getIssueTrackerSchemaKeyFields(e,r)(this.fetch,this.basePath)}getWorkspaceIntegration(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).getWorkspaceIntegration(e,r)(this.fetch,this.basePath)}queryByWorkspaceId(e,r,n,i,a,o,s,u,p){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).queryByWorkspaceId(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryWorkspaceIntegrations(e,r,n,i){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).queryWorkspaceIntegrations(e,r,n,i)(this.fetch,this.basePath)}removeWorkspaceIntegration(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).removeWorkspaceIntegration(e,r)(this.fetch,this.basePath)}setIssueTrackerSchemaIds(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).setIssueTrackerSchemaIds(e,r,n)(this.fetch,this.basePath)}updateWorkspaceIntegration(e,r,n,i){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).updateWorkspaceIntegration(e,r,n,i)(this.fetch,this.basePath)}upsertIssueTrackerSchemas(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).upsertIssueTrackerSchemas(e,r,n)(this.fetch,this.basePath)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;t.Configuration=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MablApiWrapper=void 0;const n=r(15),i=r(5),a=r(6);class o extends i.AbstractMablApiWrapper{constructor(e){super(o.createSwaggerConfig(e),o.createWrappedFetch(e)),this.integrations=this.workspaceIntegrations,this.oauth=this.oauthTokens,this.plans=this.schedules,this.workspaces=this.organizations}static createWrappedFetch(e){const t={};return e.userAgent&&(t["user-agent"]=e.userAgent),new n.RetryHelper(t,e.maxTryCount,e.debugLogging,e.retryBackoffStepMillis).wrappedFetchWithRetry}static createSwaggerConfig(e){let t;switch(e.authType){case"public":t=new a.Configuration({basePath:e.apiBaseUrl});break;case"api_key":t=new a.Configuration({username:"key",password:e.authToken,basePath:e.apiBaseUrl});break;case"id_token":t=new a.Configuration({apiKey:"Bearer "+e.authToken,basePath:e.apiBaseUrl});break;default:throw new Error(`Unsupported API auth type [${e.authType}]`)}return t}}t.MablApiWrapper=o},function(e,t){e.exports=require("https")},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(10),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(5),t),i(r(6),t),i(r(7),t),i(r(7),t)},function(e,t,r){"use strict";r.r(t),r.d(t,"parse",(function(){return A})),r.d(t,"format",(function(){return a})),r.d(t,"resolve",(function(){return l})),r.d(t,"resolveObject",(function(){return d})),r.d(t,"Url",(function(){return h}));var n=r(3),i=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=A(e));var t=function(e,t,r){var n=e.auth,i=e.hostname,a=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",p=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?p=n+e.host:i&&(p=n+(~i.indexOf(":")?"["+i+"]":i),e.port&&(p+=":"+e.port)),u&&"object"==typeof u&&(u=t.encode(u));var c=e.search||u&&"?"+u||"";return a&&":"!==a.substr(-1)&&(a+=":"),e.slashes||(!a||r.test(a))&&!1!==p?(p="//"+(p||""),o&&"/"!==o[0]&&(o="/"+o)):p||(p=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),{protocol:a,host:p,pathname:o=o.replace(/[?#]/g,encodeURIComponent),search:c=c.replace("#","%23"),hash:s}}(e,n,i);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var o="http://",s="w.w",u=o+s,p=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function l(e,t){var r="string"==typeof e?A(e):e;e="object"==typeof e?a(e):e;var n=A(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&n.protocol&&(i="",n.slashes||(i=n.protocol,t=t.replace(n.protocol,"")));var s=e.match(p);s&&!n.protocol&&(e=e.substr((i=s[1]+(s[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var l=new URL(e,u+"/"),d=new URL(t,l).toString().replace(u,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!i&&h?d=d.replace(o,h):i&&(d=d.replace(o,"")),c.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),i&&(d=i+("/"===d[0]?d.substr(1):d)),d}function d(e,t){return A(l(e,t))}function h(){}h.prototype.parse=A,h.prototype.format=a,h.prototype.resolve=l,h.prototype.resolveObject=l;var y=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,w=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function A(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e&&"object"==typeof e&&e instanceof h)return e;var i=(e=e.trim()).match(m);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),w.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(f),p=g.test(e),c="";o&&(y.test(o[1])||(c=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(p=!1,y.test(o[1])?(c=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(c=o[1],e="/"+o[3]));var l,d=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),A=d&&d[1],b=new h,q="",R="";try{l=new URL(e)}catch(F){q=F,c||r||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(R="/",e=e.substr(1));try{l=new URL(e,u)}catch(F){return b.protocol=c,b.href=c,b}}b.slashes=p&&!R,b.host=l.host===s?"":l.host,b.hostname=l.hostname===s?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=q?c||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var F,O=e.split("#");!b.search&&~O[0].indexOf("?")&&(b.search="?"),b.hash||""!==O[1]||(b.hash="#"),b.query=t?n.decode(l.search.substr(1)):b.search.substr(1),b.pathname=R+(o?(F=l.pathname).replace(/['^|`]/g,(function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(e,t){try{return decodeURIComponent(t).split("").map((function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()})).join("")}catch(e){return t}})):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),q&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),c&&!y.test(c)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=l.port,A&&!b.host.endsWith(A)&&(b.host+=A,b.port=A.slice(1)),b.href=R?""+b.pathname+b.search+b.hash:a(b);var v=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach((function(e){~v.indexOf(e)||(b[e]=b[e]||null)})),b}},function(e,t){!function(){"use strict";e.exports=function(e){return(e instanceof Buffer?e:Buffer.from(e.toString(),"binary")).toString("base64")}}()},function(e,t,r){"use strict";var n=r(14);e.exports=function(e,t){return/^\/\//.test(e)&&(e="https:"+e),n.call(this,e,t)},global.fetch||(global.fetch=e.exports,global.Response=n.Response,global.Headers=n.Headers,global.Request=n.Request)},function(e,t,r){"use strict";r.r(t),r.d(t,"Headers",(function(){return C})),r.d(t,"Request",(function(){return N})),r.d(t,"Response",(function(){return x})),r.d(t,"FetchError",(function(){return d}));var n=r(0),i=r(4),a=r(2),o=r(8),s=r(1);const u=n.Readable,p=Symbol("buffer"),c=Symbol("type");class l{constructor(){this[c]="";const e=arguments[0],t=arguments[1],r=[];let n=0;if(e){const t=e,i=Number(t.length);for(let e=0;e<i;e++){const i=t[e];let a;a=i instanceof Buffer?i:ArrayBuffer.isView(i)?Buffer.from(i.buffer,i.byteOffset,i.byteLength):i instanceof ArrayBuffer?Buffer.from(i):i instanceof l?i[p]:Buffer.from("string"==typeof i?i:String(i)),n+=a.length,r.push(a)}}this[p]=Buffer.concat(r);let i=t&&void 0!==t.type&&String(t.type).toLowerCase();i&&!/[^\u0020-\u007E]/.test(i)&&(this[c]=i)}get size(){return this[p].length}get type(){return this[c]}text(){return Promise.resolve(this[p].toString())}arrayBuffer(){const e=this[p],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new u;return e._read=function(){},e.push(this[p]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],r=arguments[1];let n,i;n=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),i=void 0===r?e:r<0?Math.max(e+r,0):Math.min(r,e);const a=Math.max(i-n,0),o=this[p].slice(n,n+a),s=new l([],{type:arguments[2]});return s[p]=o,s}}function d(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}let h;Object.defineProperties(l.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="FetchError";try{h=require("encoding").convert}catch(e){}const y=Symbol("Body internals"),m=n.PassThrough;function f(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let a=void 0===i?0:i;var o=r.timeout;let s=void 0===o?0:o;null==e?e=null:w(e)?e=Buffer.from(e.toString()):A(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[y]={body:e,disturbed:!1,error:null},this.size=a,this.timeout=s,e instanceof n&&e.on("error",(function(e){const r="AbortError"===e.name?e:new d(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[y].error=r}))}function g(){var e=this;if(this[y].disturbed)return f.Promise.reject(new TypeError("body used already for: "+this.url));if(this[y].disturbed=!0,this[y].error)return f.Promise.reject(this[y].error);let t=this.body;if(null===t)return f.Promise.resolve(Buffer.alloc(0));if(A(t)&&(t=t.stream()),Buffer.isBuffer(t))return f.Promise.resolve(t);if(!(t instanceof n))return f.Promise.resolve(Buffer.alloc(0));let r=[],i=0,a=!1;return new f.Promise((function(n,o){let s;e.timeout&&(s=setTimeout((function(){a=!0,o(new d(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(a=!0,o(t)):o(new d(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!a&&null!==t){if(e.size&&i+t.length>e.size)return a=!0,void o(new d(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}})),t.on("end",(function(){if(!a){clearTimeout(s);try{n(Buffer.concat(r,i))}catch(t){o(new d(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function w(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function A(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function b(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof n&&"function"!=typeof i.getBoundary&&(t=new m,r=new m,i.pipe(t),i.pipe(r),e[y].body=t,i=r),i}function q(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":w(e)?"application/x-www-form-urlencoded;charset=UTF-8":A(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof n?null:"text/plain;charset=UTF-8"}function R(e){const t=e.body;return null===t?0:A(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}f.prototype={get body(){return this[y].body},get bodyUsed(){return this[y].disturbed},arrayBuffer(){return g.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return g.call(this).then((function(t){return Object.assign(new l([],{type:e.toLowerCase()}),{[p]:t})}))},json(){var e=this;return g.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return f.Promise.reject(new d(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return g.call(this).then((function(e){return e.toString()}))},buffer(){return g.call(this)},textConverted(){var e=this;return g.call(this).then((function(t){return function(e,t){if("function"!=typeof h)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,i,a="utf-8";r&&(n=/charset=([^;]*)/i.exec(r));i=e.slice(0,1024).toString(),!n&&i&&(n=/<meta.+?charset=(['"])(.+?)\1/i.exec(i));!n&&i&&(n=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(i),n||(n=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(i),n&&n.pop()),n&&(n=/charset=(.*)/i.exec(n.pop())));!n&&i&&(n=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(i));n&&(a=n.pop(),"gb2312"!==a&&"gbk"!==a||(a="gb18030"));return h(e,"UTF-8",a).toString()}(t,e.headers)}))}},Object.defineProperties(f.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),f.mixIn=function(e){for(const t of Object.getOwnPropertyNames(f.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(f.prototype,t);Object.defineProperty(e,t,r)}},f.Promise=global.Promise;const F=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,O=/[^\t\x20-\x7e\x80-\xff]/;function v(e){if(e=""+e,F.test(e)||""===e)throw new TypeError(e+" is not a legal HTTP header name")}function P(e){if(e=""+e,O.test(e))throw new TypeError(e+" is not a legal HTTP header value")}function S(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const j=Symbol("map");class C{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[j]=Object.create(null),e instanceof C){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}}get(e){v(e=""+e);const t=S(this[j],e);return void 0===t?null:this[j][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=K(this),n=0;for(;n<r.length;){var i=r[n];const a=i[0],o=i[1];e.call(t,o,a,this),r=K(this),n++}}set(e,t){t=""+t,v(e=""+e),P(t);const r=S(this[j],e);this[j][void 0!==r?r:e]=[t]}append(e,t){t=""+t,v(e=""+e),P(t);const r=S(this[j],e);void 0!==r?this[j][r].push(t):this[j][e]=[t]}has(e){return v(e=""+e),void 0!==S(this[j],e)}delete(e){v(e=""+e);const t=S(this[j],e);void 0!==t&&delete this[j][t]}raw(){return this[j]}keys(){return z(this,"key")}values(){return z(this,"value")}[Symbol.iterator](){return z(this,"key+value")}}function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[j]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[j][t].join(", ")}:function(t){return[t.toLowerCase(),e[j][t].join(", ")]})}C.prototype.entries=C.prototype[Symbol.iterator],Object.defineProperty(C.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(C.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const E=Symbol("internal");function z(e,t){const r=Object.create(T);return r[E]={target:e,kind:t,index:0},r}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[E];const t=e.target,r=e.kind,n=e.index,i=K(t,r);return n>=i.length?{value:void 0,done:!0}:(this[E].index=n+1,{value:i[n],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function I(e){const t=Object.assign({__proto__:null},e[j]),r=S(e[j],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const _=Symbol("Response internals"),k=i.STATUS_CODES;class x{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f.call(this,e,t);const r=t.status||200,n=new C(t.headers);if(null!=e&&!n.has("Content-Type")){const t=q(e);t&&n.append("Content-Type",t)}this[_]={url:t.url,status:r,statusText:t.statusText||k[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new x(b(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}f.mixIn(x.prototype),Object.defineProperties(x.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(x.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const U=Symbol("Request internals"),B=a.parse,J=a.format,L="destroy"in n.Readable.prototype;function D(e){return"object"==typeof e&&"object"==typeof e[U]}class N{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D(e)?t=B(e.url):(t=e&&e.href?B(e.href):B(""+e),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||D(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=r.body?r.body:D(e)&&null!==e.body?b(e):null;f.call(this,i,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const a=new C(r.headers||e.headers||{});if(null!=i&&!a.has("Content-Type")){const e=q(i);e&&a.append("Content-Type",e)}let o=D(e)?e.signal:null;if("signal"in r&&(o=r.signal),null!=o&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[U]={method:n,redirect:r.redirect||e.redirect||"follow",headers:a,parsedURL:t,signal:o},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[U].method}get url(){return J(this[U].parsedURL)}get headers(){return this[U].headers}get redirect(){return this[U].redirect}get signal(){return this[U].signal}clone(){return new N(this)}}function M(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}f.mixIn(N.prototype),Object.defineProperty(N.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(N.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M.prototype.name="AbortError";const W=n.PassThrough,V=a.resolve;function G(e,t){if(!G.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return f.Promise=G.Promise,new G.Promise((function(r,a){const u=new N(e,t),p=function(e){const t=e[U].parsedURL,r=new C(e[U].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!L)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=R(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let a=e.agent;return"function"==typeof a&&(a=a(t)),r.has("Connection")||a||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:I(r),agent:a})}(u),c=("https:"===p.protocol?o:i).request,l=u.signal;let h=null;const y=function(){let e=new M("The user aborted a request.");a(e),u.body&&u.body instanceof n.Readable&&u.body.destroy(e),h&&h.body&&h.body.emit("error",e)};if(l&&l.aborted)return void y();const m=function(){y(),w()},f=c(p);let g;function w(){f.abort(),l&&l.removeEventListener("abort",m),clearTimeout(g)}l&&l.addEventListener("abort",m),u.timeout&&f.once("socket",(function(e){g=setTimeout((function(){a(new d("network timeout at: "+u.url,"request-timeout")),w()}),u.timeout)})),f.on("error",(function(e){a(new d(`request to ${u.url} failed, reason: ${e.message}`,"system",e)),w()})),f.on("response",(function(e){clearTimeout(g);const t=function(e){const t=new C;for(const r of Object.keys(e))if(!F.test(r))if(Array.isArray(e[r]))for(const n of e[r])O.test(n)||(void 0===t[j][r]?t[j][r]=[n]:t[j][r].push(n));else O.test(e[r])||(t[j][r]=[e[r]]);return t}(e.headers);if(G.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:V(u.url,n);switch(u.redirect){case"error":return a(new d("uri requested responds with a redirect, redirect mode is set to error: "+u.url,"no-redirect")),void w();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){a(e)}break;case"follow":if(null===i)break;if(u.counter>=u.follow)return a(new d("maximum redirect reached at: "+u.url,"max-redirect")),void w();const n={headers:new C(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout,size:u.size};return 303!==e.statusCode&&u.body&&null===R(u)?(a(new d("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==u.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(G(new N(i,n))),void w())}}e.once("end",(function(){l&&l.removeEventListener("abort",m)}));let n=e.pipe(new W);const i={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter},o=t.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===o||204===e.statusCode||304===e.statusCode)return h=new x(n,i),void r(h);const p={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH};if("gzip"==o||"x-gzip"==o)return n=n.pipe(s.createGunzip(p)),h=new x(n,i),void r(h);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof s.createBrotliDecompress)return n=n.pipe(s.createBrotliDecompress()),h=new x(n,i),void r(h);h=new x(n,i),r(h)}else{e.pipe(new W).once("data",(function(e){n=8==(15&e[0])?n.pipe(s.createInflate()):n.pipe(s.createInflateRaw()),h=new x(n,i),r(h)}))}})),function(e,t){const r=t.body;null===r?e.end():A(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(f,u)}))}G.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},G.Promise=global.Promise,t.default=G},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.RetryHelper=void 0;const i=["DELETE","GET","HEAD","OPTIONS","PUT"],a=["EAI_AGAIN","ECONNRESET","ENOTFOUND","ENETUNREACH","ETIMEOUT"];t.RetryHelper=class{constructor(e,t=4,r=!1,n=1e3){this.extraHeaders=e,this.maxTryCount=t,this.debugLogging=r,this.retryBackoffStepMillis=n,this.wrappedFetchWithRetry=(e,t)=>{const r=Object.assign({},t);r.headers=Object.assign(Object.assign({},r.headers),this.extraHeaders);return(null==t?void 0:t.method)&&i.includes(null==t?void 0:t.method)?this.retryWithBackoff(e,r,this.maxTryCount-1):(this.debugLogging&&console.debug(`API call [${e}]`),fetch(e,r))}}retryWithBackoff(e,t,r=0){return n(this,void 0,void 0,(function*(){let n;try{this.debugLogging&&console.debug(`API call [${e}]`),n=yield fetch(e,t);const i=n.status;return r>0&&(i>=500&&i<=599||429===i)?(this.debugLogging&&console.debug(`Received error status [${i}], retrying`),yield this.backoff(r),this.retryWithBackoff(e,t,r-1)):n}catch(n){if(r>0&&a.includes(n.code))return this.debugLogging&&console.debug(`Received error [${n.code}], retrying`),yield this.backoff(r),this.retryWithBackoff(e,t,r-1);throw n}}))}backoff(e){const t=1+Math.random()/10,r=Math.floor((this.maxTryCount-e)*this.retryBackoffStepMillis*t);return this.debugLogging&&console.debug(`Sleeping [${r}ms] until next retry`),n=r,new Promise(e=>setTimeout(e,n));var n}}}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mablApi=t():e.mablApi=t()}(global,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("zlib")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("querystring")},function(e,t){e.exports=require("http")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OauthCode=t.Note=t.NetworkConnection=t.MetricsSummaryPoints=t.Metrics=t.MabltronPlatform=t.MabltronPackaging=t.MablscriptOverride=t.LoginProviderResult=t.LinkServer=t.LinkAgentDistribution=t.LinkAgent=t.JourneyRunResult=t.JourneyRun=t.JourneyParameters=t.Journey=t.IterationConfiguration=t.IssueSchemaField=t.IssueCreatedFromEntity=t.Insight=t.GeneralExecutionMessage=t.FlowUpdateFlows=t.Flow=t.FindDigest=t.ExportRequest=t.ExecutionSummary=t.ExecutionStage=t.ExecutionParameter=t.ExecutionNotification=t.ExecutionInput=t.Environment=t.DeviceEmulationConfiguration=t.DeviceEmulation=t.Deployment=t.Credentials=t.CreateOrganizationInvitationRequest=t.CompanySessionTimeoutUpdateRequest=t.Company=t.BranchedEntity=t.Branch=t.AsyncValidationRequest=t.ApiKeyCreationRequest=t.ApiKey=t.AggregateMetric=t.ActionAttributeType=t.Account=t.RequiredError=t.BaseAPI=t.AbstractMablApiWrapper=t.COLLECTION_FORMATS=void 0,t.CompanyApiFetchParamCreator=t.BranchApi=t.BranchApiFactory=t.BranchApiFp=t.BranchApiFetchParamCreator=t.ApplicationApi=t.ApplicationApiFactory=t.ApplicationApiFp=t.ApplicationApiFetchParamCreator=t.ApiKeyApi=t.ApiKeyApiFactory=t.ApiKeyApiFp=t.ApiKeyApiFetchParamCreator=t.AccountApi=t.AccountApiFactory=t.AccountApiFp=t.AccountApiFetchParamCreator=t.ValidateUrlResult=t.ValidateUrl=t.WorkspaceIntegrationConfigGithub=t.WorkspaceIntegrationConfigAtlassianConnect=t.WorkspaceIntegrationConfig=t.WorkspaceIntegrationClaimRequest=t.WorkspaceIntegration=t.WorkspaceArtifactQueryRequest=t.WebEmulationConfiguration=t.UserWithAllAttributes=t.UserRole=t.UserPreferences=t.UserCompanyRole=t.Trigger=t.TestStatus=t.TestRunSummary=t.TestRunDuplicationRequest=t.SubscriptionUpdatePricingPlans=t.SubscriptionUpdate=t.Subscription=t.SslOptions=t.Snippet=t.SelectorOverride=t.Scope=t.RunPolicy=t.ReportSetting=t.Report=t.PlanRunDuplicationRequest=t.PlanRun=t.PlanOverrideOptions=t.PlanExecutionResult=t.OrganizationInvitation=t.OauthToken=void 0,t.ExecutionResultApiFactory=t.ExecutionResultApiFp=t.ExecutionResultApiFetchParamCreator=t.ExecutionNotificationApi=t.ExecutionNotificationApiFactory=t.ExecutionNotificationApiFp=t.ExecutionNotificationApiFetchParamCreator=t.ExecutionInputApi=t.ExecutionInputApiFactory=t.ExecutionInputApiFp=t.ExecutionInputApiFetchParamCreator=t.ExecutionApi=t.ExecutionApiFactory=t.ExecutionApiFp=t.ExecutionApiFetchParamCreator=t.EventApi=t.EventApiFactory=t.EventApiFp=t.EventApiFetchParamCreator=t.EnvironmentApi=t.EnvironmentApiFactory=t.EnvironmentApiFp=t.EnvironmentApiFetchParamCreator=t.DeploymentApi=t.DeploymentApiFactory=t.DeploymentApiFp=t.DeploymentApiFetchParamCreator=t.CustomFilterApi=t.CustomFilterApiFactory=t.CustomFilterApiFp=t.CustomFilterApiFetchParamCreator=t.CredentialsApi=t.CredentialsApiFactory=t.CredentialsApiFp=t.CredentialsApiFetchParamCreator=t.CoverageApi=t.CoverageApiFactory=t.CoverageApiFp=t.CoverageApiFetchParamCreator=t.CopyApi=t.CopyApiFactory=t.CopyApiFp=t.CopyApiFetchParamCreator=t.CompanyDomainApi=t.CompanyDomainApiFactory=t.CompanyDomainApiFp=t.CompanyDomainApiFetchParamCreator=t.CompanyApi=t.CompanyApiFactory=t.CompanyApiFp=void 0,t.LinkLabelApiFetchParamCreator=t.LinkAgentApi=t.LinkAgentApiFactory=t.LinkAgentApiFp=t.LinkAgentApiFetchParamCreator=t.JourneyRunApi=t.JourneyRunApiFactory=t.JourneyRunApiFp=t.JourneyRunApiFetchParamCreator=t.JourneyApi=t.JourneyApiFactory=t.JourneyApiFp=t.JourneyApiFetchParamCreator=t.IssueApi=t.IssueApiFactory=t.IssueApiFp=t.IssueApiFetchParamCreator=t.InsightApi=t.InsightApiFactory=t.InsightApiFp=t.InsightApiFetchParamCreator=t.HealthApi=t.HealthApiFactory=t.HealthApiFp=t.HealthApiFetchParamCreator=t.FlowApi=t.FlowApiFactory=t.FlowApiFp=t.FlowApiFetchParamCreator=t.FindSummaryApi=t.FindSummaryApiFactory=t.FindSummaryApiFp=t.FindSummaryApiFetchParamCreator=t.FindModelApi=t.FindModelApiFactory=t.FindModelApiFp=t.FindModelApiFetchParamCreator=t.FileUploadApi=t.FileUploadApiFactory=t.FileUploadApiFp=t.FileUploadApiFetchParamCreator=t.ExportRequestApi=t.ExportRequestApiFactory=t.ExportRequestApiFp=t.ExportRequestApiFetchParamCreator=t.ExportApi=t.ExportApiFactory=t.ExportApiFp=t.ExportApiFetchParamCreator=t.ExecutionResultApi=void 0,t.RoleApiFactory=t.RoleApiFp=t.RoleApiFetchParamCreator=t.ReportApi=t.ReportApiFactory=t.ReportApiFp=t.ReportApiFetchParamCreator=t.PlanRunApi=t.PlanRunApiFactory=t.PlanRunApiFp=t.PlanRunApiFetchParamCreator=t.OrganizationInvitationApi=t.OrganizationInvitationApiFactory=t.OrganizationInvitationApiFp=t.OrganizationInvitationApiFetchParamCreator=t.OrganizationApi=t.OrganizationApiFactory=t.OrganizationApiFp=t.OrganizationApiFetchParamCreator=t.OauthTokenApi=t.OauthTokenApiFactory=t.OauthTokenApiFp=t.OauthTokenApiFetchParamCreator=t.NoteApi=t.NoteApiFactory=t.NoteApiFp=t.NoteApiFetchParamCreator=t.MailboxApi=t.MailboxApiFactory=t.MailboxApiFp=t.MailboxApiFetchParamCreator=t.MabltronDistributionApi=t.MabltronDistributionApiFactory=t.MabltronDistributionApiFp=t.MabltronDistributionApiFetchParamCreator=t.MablscriptOverrideApi=t.MablscriptOverrideApiFactory=t.MablscriptOverrideApiFp=t.MablscriptOverrideApiFetchParamCreator=t.LoginApi=t.LoginApiFactory=t.LoginApiFp=t.LoginApiFetchParamCreator=t.LinkServerApi=t.LinkServerApiFactory=t.LinkServerApiFp=t.LinkServerApiFetchParamCreator=t.LinkLabelApi=t.LinkLabelApiFactory=t.LinkLabelApiFp=void 0,t.WorkspaceIntegrationApi=t.WorkspaceIntegrationApiFactory=t.WorkspaceIntegrationApiFp=t.WorkspaceIntegrationApiFetchParamCreator=t.WorkspaceInfrastructureApi=t.WorkspaceInfrastructureApiFactory=t.WorkspaceInfrastructureApiFp=t.WorkspaceInfrastructureApiFetchParamCreator=t.VariableTableApi=t.VariableTableApiFactory=t.VariableTableApiFp=t.VariableTableApiFetchParamCreator=t.VariableRowApi=t.VariableRowApiFactory=t.VariableRowApiFp=t.VariableRowApiFetchParamCreator=t.ValidateUrlApi=t.ValidateUrlApiFactory=t.ValidateUrlApiFp=t.ValidateUrlApiFetchParamCreator=t.UserApi=t.UserApiFactory=t.UserApiFp=t.UserApiFetchParamCreator=t.UsageApi=t.UsageApiFactory=t.UsageApiFp=t.UsageApiFetchParamCreator=t.StateDetectionApi=t.StateDetectionApiFactory=t.StateDetectionApiFp=t.StateDetectionApiFetchParamCreator=t.SnippetApi=t.SnippetApiFactory=t.SnippetApiFp=t.SnippetApiFetchParamCreator=t.ScheduleApi=t.ScheduleApiFactory=t.ScheduleApiFp=t.ScheduleApiFetchParamCreator=t.SamlApi=t.SamlApiFactory=t.SamlApiFp=t.SamlApiFetchParamCreator=t.RoleApi=void 0;const n=r(11),i=r(12);r(13);const a=fetch,o="https://api.mabl.com".replace(/\/+$/,"");t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};t.AbstractMablApiWrapper=class{constructor(e,r){this.apiConfig=e,this.wrappedFetch=r,this.accounts=(0,t.AccountApiFactory)(e,r,e.basePath),this.apiKeys=(0,t.ApiKeyApiFactory)(e,r,e.basePath),this.applications=(0,t.ApplicationApiFactory)(e,r,e.basePath),this.branchs=(0,t.BranchApiFactory)(e,r,e.basePath),this.companys=(0,t.CompanyApiFactory)(e,r,e.basePath),this.companyDomains=(0,t.CompanyDomainApiFactory)(e,r,e.basePath),this.copys=(0,t.CopyApiFactory)(e,r,e.basePath),this.coverages=(0,t.CoverageApiFactory)(e,r,e.basePath),this.credentialss=(0,t.CredentialsApiFactory)(e,r,e.basePath),this.customFilters=(0,t.CustomFilterApiFactory)(e,r,e.basePath),this.deployments=(0,t.DeploymentApiFactory)(e,r,e.basePath),this.environments=(0,t.EnvironmentApiFactory)(e,r,e.basePath),this.events=(0,t.EventApiFactory)(e,r,e.basePath),this.executions=(0,t.ExecutionApiFactory)(e,r,e.basePath),this.executionInputs=(0,t.ExecutionInputApiFactory)(e,r,e.basePath),this.executionNotifications=(0,t.ExecutionNotificationApiFactory)(e,r,e.basePath),this.executionResults=(0,t.ExecutionResultApiFactory)(e,r,e.basePath),this.exports=(0,t.ExportApiFactory)(e,r,e.basePath),this.exportRequests=(0,t.ExportRequestApiFactory)(e,r,e.basePath),this.fileUploads=(0,t.FileUploadApiFactory)(e,r,e.basePath),this.findModels=(0,t.FindModelApiFactory)(e,r,e.basePath),this.findSummarys=(0,t.FindSummaryApiFactory)(e,r,e.basePath),this.flows=(0,t.FlowApiFactory)(e,r,e.basePath),this.healths=(0,t.HealthApiFactory)(e,r,e.basePath),this.insights=(0,t.InsightApiFactory)(e,r,e.basePath),this.issues=(0,t.IssueApiFactory)(e,r,e.basePath),this.journeys=(0,t.JourneyApiFactory)(e,r,e.basePath),this.journeyRuns=(0,t.JourneyRunApiFactory)(e,r,e.basePath),this.linkAgents=(0,t.LinkAgentApiFactory)(e,r,e.basePath),this.linkLabels=(0,t.LinkLabelApiFactory)(e,r,e.basePath),this.linkServers=(0,t.LinkServerApiFactory)(e,r,e.basePath),this.logins=(0,t.LoginApiFactory)(e,r,e.basePath),this.mablscriptOverrides=(0,t.MablscriptOverrideApiFactory)(e,r,e.basePath),this.mabltronDistributions=(0,t.MabltronDistributionApiFactory)(e,r,e.basePath),this.mailboxs=(0,t.MailboxApiFactory)(e,r,e.basePath),this.notes=(0,t.NoteApiFactory)(e,r,e.basePath),this.oauthTokens=(0,t.OauthTokenApiFactory)(e,r,e.basePath),this.organizations=(0,t.OrganizationApiFactory)(e,r,e.basePath),this.organizationInvitations=(0,t.OrganizationInvitationApiFactory)(e,r,e.basePath),this.planRuns=(0,t.PlanRunApiFactory)(e,r,e.basePath),this.reports=(0,t.ReportApiFactory)(e,r,e.basePath),this.roles=(0,t.RoleApiFactory)(e,r,e.basePath),this.samls=(0,t.SamlApiFactory)(e,r,e.basePath),this.schedules=(0,t.ScheduleApiFactory)(e,r,e.basePath),this.snippets=(0,t.SnippetApiFactory)(e,r,e.basePath),this.stateDetections=(0,t.StateDetectionApiFactory)(e,r,e.basePath),this.usages=(0,t.UsageApiFactory)(e,r,e.basePath),this.users=(0,t.UserApiFactory)(e,r,e.basePath),this.validateUrls=(0,t.ValidateUrlApiFactory)(e,r,e.basePath),this.variableRows=(0,t.VariableRowApiFactory)(e,r,e.basePath),this.variableTables=(0,t.VariableTableApiFactory)(e,r,e.basePath),this.workspaceInfrastructures=(0,t.WorkspaceInfrastructureApiFactory)(e,r,e.basePath),this.workspaceIntegrations=(0,t.WorkspaceIntegrationApiFactory)(e,r,e.basePath)}};class s{constructor(e,t=o,r=a){this.basePath=t,this.fetch=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}t.BaseAPI=s;class u extends Error{constructor(e,t){super(t),this.field=e}}t.RequiredError=u,function(e){let t,r;!function(e){e[e.Enterprise="enterprise"]="Enterprise",e[e.Enterprise5000="enterprise_5000"]="Enterprise5000",e[e.Enterprise10000="enterprise_10000"]="Enterprise10000",e[e.Enterprise20000="enterprise_20000"]="Enterprise20000",e[e.Enterprise50000="enterprise_50000"]="Enterprise50000",e[e.Essentials="essentials"]="Essentials",e[e.Growth="growth"]="Growth",e[e.PayAsYouGo="pay_as_you_go"]="PayAsYouGo",e[e.Pro="pro"]="Pro",e[e.Seed="seed"]="Seed",e[e.Startup="startup"]="Startup",e[e.Trial="trial"]="Trial"}(t=e.MablPlanTypeEnum||(e.MablPlanTypeEnum={})),function(e){e[e.Monthly="monthly"]="Monthly",e[e.Quarterly="quarterly"]="Quarterly",e[e.Yearly="yearly"]="Yearly"}(r=e.MablSubscriptionPeriodEnum||(e.MablSubscriptionPeriodEnum={}))}(t.Account||(t.Account={})),function(e){e[e.FINDSBBOX="FINDS_BBOX"]="FINDSBBOX",e[e.ISMUTATING="IS_MUTATING"]="ISMUTATING",e[e.NEEDSBBOX="NEEDS_BBOX"]="NEEDSBBOX",e[e.OBSERVABLE="OBSERVABLE"]="OBSERVABLE"}(t.ActionAttributeType||(t.ActionAttributeType={})),function(e){let t,r,n;!function(e){e[e.Deployment="deployment"]="Deployment",e[e.Plan="plan"]="Plan",e[e.Test="test"]="Test",e[e.Flow="flow"]="Flow",e[e.CustomStepGroup="custom_step_group"]="CustomStepGroup"}(t=e.AggregationEntityTypeEnum||(e.AggregationEntityTypeEnum={})),function(e){e[e.Test="test"]="Test",e[e.Flow="flow"]="Flow",e[e.CustomStepGroup="custom_step_group"]="CustomStepGroup"}(r=e.GroupEntityTypeEnum||(e.GroupEntityTypeEnum={})),function(e){e[e.PageSpeedIndex="page_speed_index"]="PageSpeedIndex",e[e.StepExecutionTime="step_execution_time"]="StepExecutionTime"}(n=e.MetricTypeEnum||(e.MetricTypeEnum={}))}(t.AggregateMetric||(t.AggregateMetric={})),function(e){let t;!function(e){e[e.CiCdIntegration="ci_cd_integration"]="CiCdIntegration",e[e.CommandLineInterface="command_line_interface"]="CommandLineInterface",e[e.Custom="custom"]="Custom",e[e.DeploymentTrigger="deployment_trigger"]="DeploymentTrigger",e[e.Execution="execution"]="Execution",e[e.Integration="integration"]="Integration",e[e.IssueTracker="issue_tracker"]="IssueTracker",e[e.LinkAgent="link_agent"]="LinkAgent",e[e.Login="login"]="Login",e[e.SeleniumAgent="selenium_agent"]="SeleniumAgent",e[e.WorkspaceSetup="workspace_setup"]="WorkspaceSetup"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ApiKey||(t.ApiKey={})),function(e){let t;!function(e){e[e.CiCdIntegration="ci_cd_integration"]="CiCdIntegration",e[e.CommandLineInterface="command_line_interface"]="CommandLineInterface",e[e.Custom="custom"]="Custom",e[e.DeploymentTrigger="deployment_trigger"]="DeploymentTrigger",e[e.Execution="execution"]="Execution",e[e.IssueTracker="issue_tracker"]="IssueTracker",e[e.LinkAgent="link_agent"]="LinkAgent",e[e.SeleniumAgent="selenium_agent"]="SeleniumAgent",e[e.WorkspaceSetup="workspace_setup"]="WorkspaceSetup"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ApiKeyCreationRequest||(t.ApiKeyCreationRequest={})),function(e){let t;!function(e){e[e.Error="error"]="Error",e[e.Pending="pending"]="Pending",e[e.Running="running"]="Running",e[e.Success="success"]="Success"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.AsyncValidationRequest||(t.AsyncValidationRequest={})),function(e){let t,r;!function(e){e[e.Feature="feature"]="Feature",e[e.Snapshot="snapshot"]="Snapshot"}(t=e.BranchTypeEnum||(e.BranchTypeEnum={})),function(e){e[e.Merged="merged"]="Merged",e[e.Open="open"]="Open",e[e.Snapshot="snapshot"]="Snapshot"}(r=e.StatusEnum||(e.StatusEnum={}))}(t.Branch||(t.Branch={})),function(e){let t;!function(e){e[e.Test="test"]="Test",e[e.Flow="flow"]="Flow"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.BranchedEntity||(t.BranchedEntity={})),function(e){let t;!function(e){e[e.Default="default"]="Default",e[e.Hours04="hours_04"]="Hours04",e[e.Hours08="hours_08"]="Hours08",e[e.Hours10="hours_10"]="Hours10",e[e.Hours12="hours_12"]="Hours12",e[e.Hours24="hours_24"]="Hours24",e[e.Hours72="hours_72"]="Hours72"}(t=e.SessionTimeoutEnum||(e.SessionTimeoutEnum={}))}(t.Company||(t.Company={})),function(e){let t;!function(e){e[e.Default="default"]="Default",e[e.Hours04="hours_04"]="Hours04",e[e.Hours08="hours_08"]="Hours08",e[e.Hours10="hours_10"]="Hours10",e[e.Hours12="hours_12"]="Hours12",e[e.Hours24="hours_24"]="Hours24",e[e.Hours72="hours_72"]="Hours72"}(t=e.SessionTimeoutEnum||(e.SessionTimeoutEnum={}))}(t.CompanySessionTimeoutUpdateRequest||(t.CompanySessionTimeoutUpdateRequest={})),function(e){let t;!function(e){e[e.Email="email"]="Email",e[e.Link="link"]="Link"}(t=e.InviteTypeEnum||(e.InviteTypeEnum={}))}(t.CreateOrganizationInvitationRequest||(t.CreateOrganizationInvitationRequest={})),function(e){let t;!function(e){e[e.Basic="basic"]="Basic"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.Credentials||(t.Credentials={})),function(e){let t;!function(e){e[e.WebApplication="web_application"]="WebApplication",e[e.Api="api"]="Api"}(t=e.DeploymentTypeEnum||(e.DeploymentTypeEnum={}))}(t.Deployment||(t.Deployment={})),function(e){let t;!function(e){e[e.PortraitPrimary="portrait_primary"]="PortraitPrimary",e[e.PortraitSecondary="portrait_secondary"]="PortraitSecondary",e[e.LandscapePrimary="landscape_primary"]="LandscapePrimary",e[e.LandscapeSecondary="landscape_secondary"]="LandscapeSecondary"}(t=e.OrientationEnum||(e.OrientationEnum={}))}(t.DeviceEmulation||(t.DeviceEmulation={})),function(e){let t,r,n;!function(e){e[e.BlackberryPlaybook="blackberry_playbook"]="BlackberryPlaybook",e[e.BlackberryZ30="blackberry_z30"]="BlackberryZ30",e[e.GalaxyFold="galaxy_fold"]="GalaxyFold",e[e.GalaxyNote3="galaxy_note_3"]="GalaxyNote3",e[e.GalaxyNoteIi="galaxy_note_ii"]="GalaxyNoteIi",e[e.GalaxyS5="galaxy_s5"]="GalaxyS5",e[e.GalaxyS6="galaxy_s6"]="GalaxyS6",e[e.GalaxyS8="galaxy_s8"]="GalaxyS8",e[e.GalaxyS21="galaxy_s21"]="GalaxyS21",e[e.GalaxySIii="galaxy_s_iii"]="GalaxySIii",e[e.GalaxyTabS7="galaxy_tab_s7"]="GalaxyTabS7",e[e.Ipad="ipad"]="Ipad",e[e.IpadAir2020="ipad_air_2020"]="IpadAir2020",e[e.IpadMini="ipad_mini"]="IpadMini",e[e.IpadMini4="ipad_mini_4"]="IpadMini4",e[e.IpadPro="ipad_pro"]="IpadPro",e[e.IpadTenPointTwo="ipad_ten_point_two"]="IpadTenPointTwo",e[e.Iphone11ProMax="iphone_11_pro_max"]="Iphone11ProMax",e[e.Iphone11="iphone_11"]="Iphone11",e[e.Iphone12="iphone_12"]="Iphone12",e[e.Iphone12ProMax="iphone_12_pro_max"]="Iphone12ProMax",e[e.Iphone4="iphone_4"]="Iphone4",e[e.Iphone5Se="iphone_5_se"]="Iphone5Se",e[e.Iphone678="iphone_6_7_8"]="Iphone678",e[e.Iphone678Plus="iphone_6_7_8_plus"]="Iphone678Plus",e[e.IphoneX="iphone_x"]="IphoneX",e[e.Jiophone2="jiophone_2"]="Jiophone2",e[e.KindleFireHdx="kindle_fire_hdx"]="KindleFireHdx",e[e.LaptopWithHidpiScreen="laptop_with_hidpi_screen"]="LaptopWithHidpiScreen",e[e.LaptopWithMdpiScreen="laptop_with_mdpi_screen"]="LaptopWithMdpiScreen",e[e.LaptopWithTouch="laptop_with_touch"]="LaptopWithTouch",e[e.LgOptimusL70="lg_optimus_l70"]="LgOptimusL70",e[e.MicrosoftLumia550="microsoft_lumia_550"]="MicrosoftLumia550",e[e.MicrosoftLumia950="microsoft_lumia_950"]="MicrosoftLumia950",e[e.MotoG4="moto_g4"]="MotoG4",e[e.Nexus4="nexus_4"]="Nexus4",e[e.Nexus5="nexus_5"]="Nexus5",e[e.Nexus5x="nexus_5x"]="Nexus5x",e[e.Nexus6="nexus_6"]="Nexus6",e[e.Nexus6p="nexus_6p"]="Nexus6p",e[e.Nexus7="nexus_7"]="Nexus7",e[e.Nexus10="nexus_10"]="Nexus10",e[e.NokiaLumia520="nokia_lumia_520"]="NokiaLumia520",e[e.NokiaN9="nokia_n9"]="NokiaN9",e[e.Pixel2="pixel_2"]="Pixel2",e[e.Pixel2Xl="pixel_2_xl"]="Pixel2Xl",e[e.Pixel6="pixel_6"]="Pixel6",e[e.SurfaceDuo="surface_duo"]="SurfaceDuo"}(t=e.PresetTypeEnum||(e.PresetTypeEnum={})),function(e){e[e.Phone="phone"]="Phone",e[e.Tablet="tablet"]="Tablet",e[e.Notebook="notebook"]="Notebook"}(r=e.TypeEnum||(e.TypeEnum={})),function(e){e[e.Touch="touch"]="Touch",e[e.Mobile="mobile"]="Mobile"}(n=e.CapabilitiesEnum||(e.CapabilitiesEnum={}))}(t.DeviceEmulationConfiguration||(t.DeviceEmulationConfiguration={})),function(e){let t;!function(e){e[e.FAST="FAST"]="FAST",e[e.NORMAL="NORMAL"]="NORMAL",e[e.SLOW="SLOW"]="SLOW",e[e.SLOWER="SLOWER"]="SLOWER"}(t=e.PageLoadWaitEnum||(e.PageLoadWaitEnum={}))}(t.Environment||(t.Environment={})),function(e){let t;!function(e){e[e.Email="email"]="Email"}(t=e.InputTypeEnum||(e.InputTypeEnum={}))}(t.ExecutionInput||(t.ExecutionInput={})),function(e){let t;!function(e){e[e.Webhook="webhook"]="Webhook",e[e.Email="email"]="Email"}(t=e.NotificationTypeEnum||(e.NotificationTypeEnum={}))}(t.ExecutionNotification||(t.ExecutionNotification={})),function(e){let t;!function(e){e[e.Value="value"]="Value",e[e.Credentials="credentials"]="Credentials",e[e.Variables="variables"]="Variables",e[e.IgnoreVariables="ignore_variables"]="IgnoreVariables"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ExecutionParameter||(t.ExecutionParameter={})),function(e){let t;!function(e){e[e.Sequential="sequential"]="Sequential",e[e.Parallel="parallel"]="Parallel"}(t=e.ConcurrencyEnum||(e.ConcurrencyEnum={}))}(t.ExecutionStage||(t.ExecutionStage={})),function(e){let t;!function(e){e[e.Queued="queued"]="Queued",e[e.PreExecution="pre_execution"]="PreExecution",e[e.Scheduling="scheduling"]="Scheduling",e[e.Scheduled="scheduled"]="Scheduled",e[e.Succeeded="succeeded"]="Succeeded",e[e.Failed="failed"]="Failed",e[e.Cancelled="cancelled"]="Cancelled",e[e.PostExecution="post_execution"]="PostExecution",e[e.Completed="completed"]="Completed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.ExecutionSummary||(t.ExecutionSummary={})),function(e){let t,r;!function(e){e[e.Queued="queued"]="Queued",e[e.Running="running"]="Running",e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={})),function(e){e[e.Screenshots="screenshots"]="Screenshots",e[e.Doms="doms"]="Doms",e[e.Traces="traces"]="Traces",e[e.Hars="hars"]="Hars"}(r=e.TargetContentEnum||(e.TargetContentEnum={}))}(t.ExportRequest||(t.ExportRequest={})),function(e){let t,r,n,i;!function(e){e[e.None="none"]="None",e[e.Update="update"]="Update",e[e.Heal="heal"]="Heal"}(t=e.SelectorUpdateTypeEnum||(e.SelectorUpdateTypeEnum={})),function(e){e[e.Ancestor="ancestor"]="Ancestor",e[e.Target="target"]="Target"}(r=e.SelectorTypeEnum||(e.SelectorTypeEnum={})),function(e){e[e.TargetOnly="target_only"]="TargetOnly",e[e.AncestorTarget="ancestor_target"]="AncestorTarget"}(n=e.FindDescriptorTypeEnum||(e.FindDescriptorTypeEnum={})),function(e){e[e.All="find_all"]="All",e[e.Any="find_any"]="Any",e[e.First="find_first"]="First",e[e.Last="find_last"]="Last",e[e.One="find_one"]="One"}(i=e.FindActionTypeEnum||(e.FindActionTypeEnum={}))}(t.FindDigest||(t.FindDigest={})),function(e){let t,r;!function(e){e[e.ValidatePage="validate_page"]="ValidatePage",e[e.Login="login"]="Login",e[e.VerifyUrl="verify_url"]="VerifyUrl",e[e.Mablscript="mablscript"]="Mablscript",e[e.CheckLinks="check_links"]="CheckLinks",e[e.VisualPageValidation="visual_page_validation"]="VisualPageValidation",e[e.Api="api"]="Api"}(t=e.FlowTypeEnum||(e.FlowTypeEnum={})),function(e){e[e.Postman="postman"]="Postman",e[e.SeleniumNodeProxy="selenium_node_proxy"]="SeleniumNodeProxy",e[e.SeleniumJavaAgent="selenium_java_agent"]="SeleniumJavaAgent"}(r=e.ImportSourceIdEnum||(e.ImportSourceIdEnum={}))}(t.Flow||(t.Flow={})),function(e){let t;!function(e){e[e.Create="create"]="Create",e[e.Update="update"]="Update"}(t=e.UpdateTypeEnum||(e.UpdateTypeEnum={}))}(t.FlowUpdateFlows||(t.FlowUpdateFlows={})),function(e){let t,r;!function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser"}(t=e.TestTypeEnum||(e.TestTypeEnum={})),function(e){e[e.Chrome="chrome"]="Chrome",e[e.Edge="edge"]="Edge",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(r=e.BrowserTypeEnum||(e.BrowserTypeEnum={}))}(t.GeneralExecutionMessage||(t.GeneralExecutionMessage={})),function(e){let t;!function(e){e[e.Alert="alert"]="Alert",e[e.Warning="warning"]="Warning",e[e.Ok="ok"]="Ok",e[e.Improvement="improvement"]="Improvement",e[e.Info="info"]="Info"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.Insight||(t.Insight={})),function(e){let t;!function(e){e[e.Plan="plan"]="Plan",e[e.Test="test"]="Test",e[e.TestRun="test_run"]="TestRun"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.IssueCreatedFromEntity||(t.IssueCreatedFromEntity={})),function(e){let t;!function(e){e[e.Project="project"]="Project",e[e.Issuetype="issuetype"]="Issuetype",e[e.User="user"]="User",e[e.Priority="priority"]="Priority",e[e.Text="text"]="Text",e[e.Textarea="textarea"]="Textarea",e[e.Labels="labels"]="Labels",e[e.Number="number"]="Number",e[e.Date="date"]="Date",e[e.Datetime="datetime"]="Datetime",e[e.Checkboxes="checkboxes"]="Checkboxes",e[e.Radiobuttons="radiobuttons"]="Radiobuttons"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.IssueSchemaField||(t.IssueSchemaField={})),function(e){let t;!function(e){e[e.Fixed="fixed"]="Fixed",e[e.Variable="variable"]="Variable",e[e.Array="array"]="Array"}(t=e.IterationTypeEnum||(e.IterationTypeEnum={}))}(t.IterationConfiguration||(t.IterationConfiguration={})),function(e){let t;!function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser",e[e.Manual="manual"]="Manual"}(t=e.TestTypeEnum||(e.TestTypeEnum={}))}(t.Journey||(t.Journey={})),function(e){let t;!function(e){e[e.FAST="FAST"]="FAST",e[e.NORMAL="NORMAL"]="NORMAL",e[e.SLOW="SLOW"]="SLOW",e[e.SLOWER="SLOWER"]="SLOWER"}(t=e.PageLoadWaitEnum||(e.PageLoadWaitEnum={}))}(t.JourneyParameters||(t.JourneyParameters={})),function(e){let t,r,n,i;!function(e){e[e.Container="container"]="Container",e[e.VirtualMachine="virtual_machine"]="VirtualMachine"}(t=e.ExecutionRuntimeTypeEnum||(e.ExecutionRuntimeTypeEnum={})),function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(r=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={})),function(e){e[e.AwaitingPrecondition="awaiting_precondition"]="AwaitingPrecondition",e[e.Skipped="skipped"]="Skipped",e[e.Queued="queued"]="Queued",e[e.Running="running"]="Running",e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated"}(n=e.StatusEnum||(e.StatusEnum={})),function(e){e[e.ExecutionComplete="execution_complete"]="ExecutionComplete",e[e.ExecutionOvertime="execution_overtime"]="ExecutionOvertime",e[e.HeartbeatLost="heartbeat_lost"]="HeartbeatLost",e[e.InsufficientResources="insufficient_resources"]="InsufficientResources",e[e.StartupOvertime="startup_overtime"]="StartupOvertime",e[e.StopRequested="stop_requested"]="StopRequested",e[e.Unknown="unknown"]="Unknown"}(i=e.TerminationReasonEnum||(e.TerminationReasonEnum={}))}(t.JourneyRun||(t.JourneyRun={})),function(e){let t;!function(e){e[e.Queued="queued"]="Queued",e[e.Running="running"]="Running",e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated",e[e.Skipped="skipped"]="Skipped"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.JourneyRunResult||(t.JourneyRunResult={})),function(e){let t,r;!function(e){e[e.Ssl="ssl"]="Ssl",e[e.Https="https"]="Https",e[e.Wss="wss"]="Wss"}(t=e.ProtocolEnum||(e.ProtocolEnum={})),function(e){e[e.Initializing="initializing"]="Initializing",e[e.Updating="updating"]="Updating",e[e.Announcing="announcing"]="Announcing",e[e.Locating="locating"]="Locating",e[e.Connecting="connecting"]="Connecting",e[e.Ready="ready"]="Ready",e[e.Terminated="terminated"]="Terminated"}(r=e.StatusEnum||(e.StatusEnum={}))}(t.LinkAgent||(t.LinkAgent={})),function(e){let t;!function(e){e[e.Tbz2="tbz2"]="Tbz2",e[e.Zip="zip"]="Zip"}(t=e.FormatEnum||(e.FormatEnum={}))}(t.LinkAgentDistribution||(t.LinkAgentDistribution={})),function(e){let t;!function(e){e[e.Starting="starting"]="Starting",e[e.Running="running"]="Running"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.LinkServer||(t.LinkServer={})),function(e){let t;!function(e){e[e.Auth0="auth0"]="Auth0",e[e.Okta="okta"]="Okta"}(t=e.ProviderEnum||(e.ProviderEnum={}))}(t.LoginProviderResult||(t.LoginProviderResult={})),function(e){let t,r;!function(e){e[e.Ancestor="ancestor"]="Ancestor",e[e.Target="target"]="Target"}(t=e.SelectorTypeEnum||(e.SelectorTypeEnum={})),function(e){e[e.TargetOnly="target_only"]="TargetOnly",e[e.AncestorTarget="ancestor_target"]="AncestorTarget"}(r=e.FindTypeEnum||(e.FindTypeEnum={}))}(t.MablscriptOverride||(t.MablscriptOverride={})),function(e){e[e.Appimage="appimage"]="Appimage",e[e.Deb="deb"]="Deb",e[e.Pacman="pacman"]="Pacman",e[e.Rpm="rpm"]="Rpm",e[e.Targz="targz"]="Targz"}(t.MabltronPackaging||(t.MabltronPackaging={})),function(e){e[e.Windows="windows"]="Windows",e[e.WindowsAdvanced="windows-advanced"]="WindowsAdvanced",e[e.Macos="macos"]="Macos",e[e.Linux="linux"]="Linux"}(t.MabltronPlatform||(t.MabltronPlatform={})),function(e){let t;!function(e){e[e.Event="event"]="Event",e[e.Day="day"]="Day",e[e.Hour="hour"]="Hour"}(t=e.IntervalTypeEnum||(e.IntervalTypeEnum={}))}(t.Metrics||(t.Metrics={})),function(e){let t;!function(e){e[e.Event="event"]="Event",e[e.Day="day"]="Day",e[e.Hour="hour"]="Hour"}(t=e.IntervalTypeEnum||(e.IntervalTypeEnum={}))}(t.MetricsSummaryPoints||(t.MetricsSummaryPoints={})),function(e){let t;!function(e){e[e.Ingress="ingress"]="Ingress",e[e.Egress="egress"]="Egress"}(t=e.ConnectionTypeEnum||(e.ConnectionTypeEnum={}))}(t.NetworkConnection||(t.NetworkConnection={})),function(e){let t;!function(e){e[e.Testrun="testrun"]="Testrun"}(t=e.ResourceTypeEnum||(e.ResourceTypeEnum={}))}(t.Note||(t.Note={})),function(e){let t;!function(e){e[e.Slack="slack"]="Slack",e[e.Jira="jira"]="Jira",e[e.Segment="segment"]="Segment"}(t=e.TokenTypeEnum||(e.TokenTypeEnum={}))}(t.OauthCode||(t.OauthCode={})),function(e){let t;!function(e){e[e.Segment="segment"]="Segment",e[e.Slack="slack"]="Slack",e[e.Jira="jira"]="Jira"}(t=e.TokenTypeEnum||(e.TokenTypeEnum={}))}(t.OauthToken||(t.OauthToken={})),function(e){let t;!function(e){e[e.Email="email"]="Email",e[e.Link="link"]="Link"}(t=e.InviteTypeEnum||(e.InviteTypeEnum={}))}(t.OrganizationInvitation||(t.OrganizationInvitation={})),function(e){let t;!function(e){e[e.Queued="queued"]="Queued",e[e.PreExecution="pre_execution"]="PreExecution",e[e.Scheduling="scheduling"]="Scheduling",e[e.Scheduled="scheduled"]="Scheduled",e[e.Succeeded="succeeded"]="Succeeded",e[e.Failed="failed"]="Failed",e[e.Cancelled="cancelled"]="Cancelled",e[e.PostExecution="post_execution"]="PostExecution",e[e.Completed="completed"]="Completed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.PlanExecutionResult||(t.PlanExecutionResult={})),function(e){let t,r,n;!function(e){e[e.Chrome="chrome"]="Chrome",e[e.Edge="edge"]="Edge",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(t=e.BrowserTypeEnum||(e.BrowserTypeEnum={})),function(e){e[e.Desktop="desktop"]="Desktop",e[e.MobileWeb="mobile_web"]="MobileWeb"}(r=e.EmulationModeEnum||(e.EmulationModeEnum={})),function(e){e[e.Playwright="playwright"]="Playwright",e[e.Puppeteer="puppeteer"]="Puppeteer"}(n=e.NodejsRuntimeVariantEnum||(e.NodejsRuntimeVariantEnum={}))}(t.PlanOverrideOptions||(t.PlanOverrideOptions={})),function(e){let t,r,n;!function(e){e[e.Queued="queued"]="Queued",e[e.PreExecution="pre_execution"]="PreExecution",e[e.Scheduling="scheduling"]="Scheduling",e[e.Scheduled="scheduled"]="Scheduled",e[e.Succeeded="succeeded"]="Succeeded",e[e.Failed="failed"]="Failed",e[e.Cancelled="cancelled"]="Cancelled",e[e.PostExecution="post_execution"]="PostExecution",e[e.Completed="completed"]="Completed",e[e.Terminated="terminated"]="Terminated"}(t=e.StatusEnum||(e.StatusEnum={})),function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(r=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={})),function(e){e[e.Manual="manual"]="Manual",e[e.Retry="retry"]="Retry",e[e.Schedule="schedule"]="Schedule",e[e.CustomerEvent="customer_event"]="CustomerEvent",e[e.Insight="insight"]="Insight"}(n=e.TriggerTypeEnum||(e.TriggerTypeEnum={}))}(t.PlanRun||(t.PlanRun={})),function(e){let t;!function(e){e[e.Event="event"]="Event",e[e.Insight="insight"]="Insight",e[e.RunPolicyExecution="runPolicyExecution"]="RunPolicyExecution",e[e.MablScheduler="mabl_scheduler"]="MablScheduler",e[e.MicrosoftTeamsWebhookIntegration="microsoft_teams_webhook_integration"]="MicrosoftTeamsWebhookIntegration",e[e.SlackIntegration="slack_integration"]="SlackIntegration",e[e.User="user"]="User"}(t=e.TriggeringResourceTypeEnum||(e.TriggeringResourceTypeEnum={}))}(t.PlanRunDuplicationRequest||(t.PlanRunDuplicationRequest={})),function(e){let t,r;!function(e){e[e.PlanSummary="plan_summary"]="PlanSummary",e[e.WorkspaceSummary="workspace_summary"]="WorkspaceSummary"}(t=e.ReportTypeEnum||(e.ReportTypeEnum={})),function(e){e[e.Email="email"]="Email"}(r=e.MediumEnum||(e.MediumEnum={}))}(t.Report||(t.Report={})),function(e){let t;!function(e){e[e.ReleaseCoverageTestsRun="release_coverage_tests_run"]="ReleaseCoverageTestsRun"}(t=e.TypeEnum||(e.TypeEnum={}))}(t.ReportSetting||(t.ReportSetting={})),function(e){let t,r,n,i,a;!function(e){e[e.FAST="FAST"]="FAST",e[e.NORMAL="NORMAL"]="NORMAL",e[e.SLOW="SLOW"]="SLOW",e[e.SLOWER="SLOWER"]="SLOWER",e[e.INHERIT="INHERIT"]="INHERIT"}(t=e.PageLoadWaitEnum||(e.PageLoadWaitEnum={})),function(e){e[e.Chrome="chrome"]="Chrome",e[e.Edge="edge"]="Edge",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(r=e.BrowserTypeEnum||(e.BrowserTypeEnum={})),function(e){e[e.Desktop="desktop"]="Desktop",e[e.MobileWeb="mobile_web"]="MobileWeb"}(n=e.EmulationModeEnum||(e.EmulationModeEnum={})),function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(i=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={})),function(e){e[e.Playwright="playwright"]="Playwright",e[e.Puppeteer="puppeteer"]="Puppeteer"}(a=e.NodejsRuntimeVariantEnum||(e.NodejsRuntimeVariantEnum={}))}(t.RunPolicy||(t.RunPolicy={})),function(e){let t;!function(e){e[e.Read="read"]="Read",e[e.Write="write"]="Write"}(t=e.PermissionEnum||(e.PermissionEnum={}))}(t.Scope||(t.Scope={})),function(e){let t;!function(e){e[e.Heal="heal"]="Heal",e[e.Update="update"]="Update"}(t=e.OverrideTypeEnum||(e.OverrideTypeEnum={}))}(t.SelectorOverride||(t.SelectorOverride={})),function(e){let t;!function(e){e[e.Css="css"]="Css",e[e.Javascript="javascript"]="Javascript",e[e.Xpath="xpath"]="Xpath"}(t=e.SnippetTypeEnum||(e.SnippetTypeEnum={}))}(t.Snippet||(t.Snippet={})),function(e){let t,r;!function(e){e[e.TLSv1="TLSv1"]="TLSv1",e[e.TLSv11="TLSv1_1"]="TLSv11",e[e.TLSv12="TLSv1_2"]="TLSv12",e[e.TLSv13="TLSv1_3"]="TLSv13"}(t=e.MinVersionEnum||(e.MinVersionEnum={})),function(e){e[e.TLSv1="TLSv1"]="TLSv1",e[e.TLSv11="TLSv1_1"]="TLSv11",e[e.TLSv12="TLSv1_2"]="TLSv12",e[e.TLSv13="TLSv1_3"]="TLSv13"}(r=e.MaxVersionEnum||(e.MaxVersionEnum={}))}(t.SslOptions||(t.SslOptions={})),function(e){let t,r;!function(e){e[e.JourneyExecutions="journey_executions"]="JourneyExecutions",e[e.Executions="executions"]="Executions",e[e.Monthly="monthly"]="Monthly",e[e.Quarterly="quarterly"]="Quarterly",e[e.Yearly="yearly"]="Yearly"}(t=e.PlanTypeEnum||(e.PlanTypeEnum={})),function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser"}(r=e.PlanSubtypeEnum||(e.PlanSubtypeEnum={}))}(t.Subscription||(t.Subscription={})),function(e){let t;!function(e){e[e.BackDate="back_date"]="BackDate",e[e.Immediate="immediate"]="Immediate",e[e.PeriodEnd="period_end"]="PeriodEnd"}(t=e.RolloverTimingOptionsEnum||(e.RolloverTimingOptionsEnum={}))}(t.SubscriptionUpdate||(t.SubscriptionUpdate={})),function(e){let t,r;!function(e){e[e.Monthly="monthly"]="Monthly",e[e.Quarterly="quarterly"]="Quarterly",e[e.Yearly="yearly"]="Yearly",e[e.JourneyExecutions="journey_executions"]="JourneyExecutions",e[e.Executions="executions"]="Executions"}(t=e.PlanTypeEnum||(e.PlanTypeEnum={})),function(e){e[e.Api="api"]="Api",e[e.Browser="browser"]="Browser"}(r=e.PlanSubtypeEnum||(e.PlanSubtypeEnum={}))}(t.SubscriptionUpdatePricingPlans||(t.SubscriptionUpdatePricingPlans={})),function(e){let t;!function(e){e[e.JavaV1="cloud_java_v1"]="JavaV1",e[e.NodejsV2="cloud_nodejs_v2"]="NodejsV2"}(t=e.ExecutionRunnerTypeEnum||(e.ExecutionRunnerTypeEnum={}))}(t.TestRunDuplicationRequest||(t.TestRunDuplicationRequest={})),function(e){let t,r;!function(e){e[e.BlackberryPlaybook="blackberry_playbook"]="BlackberryPlaybook",e[e.BlackberryZ30="blackberry_z30"]="BlackberryZ30",e[e.GalaxyFold="galaxy_fold"]="GalaxyFold",e[e.GalaxyNote3="galaxy_note_3"]="GalaxyNote3",e[e.GalaxyNoteIi="galaxy_note_ii"]="GalaxyNoteIi",e[e.GalaxyS5="galaxy_s5"]="GalaxyS5",e[e.GalaxyS6="galaxy_s6"]="GalaxyS6",e[e.GalaxyS8="galaxy_s8"]="GalaxyS8",e[e.GalaxyS21="galaxy_s21"]="GalaxyS21",e[e.GalaxySIii="galaxy_s_iii"]="GalaxySIii",e[e.GalaxyTabS7="galaxy_tab_s7"]="GalaxyTabS7",e[e.Ipad="ipad"]="Ipad",e[e.IpadAir2020="ipad_air_2020"]="IpadAir2020",e[e.IpadMini="ipad_mini"]="IpadMini",e[e.IpadMini4="ipad_mini_4"]="IpadMini4",e[e.IpadPro="ipad_pro"]="IpadPro",e[e.IpadTenPointTwo="ipad_ten_point_two"]="IpadTenPointTwo",e[e.Iphone11ProMax="iphone_11_pro_max"]="Iphone11ProMax",e[e.Iphone11="iphone_11"]="Iphone11",e[e.Iphone12="iphone_12"]="Iphone12",e[e.Iphone12ProMax="iphone_12_pro_max"]="Iphone12ProMax",e[e.Iphone4="iphone_4"]="Iphone4",e[e.Iphone5Se="iphone_5_se"]="Iphone5Se",e[e.Iphone678="iphone_6_7_8"]="Iphone678",e[e.Iphone678Plus="iphone_6_7_8_plus"]="Iphone678Plus",e[e.IphoneX="iphone_x"]="IphoneX",e[e.Jiophone2="jiophone_2"]="Jiophone2",e[e.KindleFireHdx="kindle_fire_hdx"]="KindleFireHdx",e[e.LaptopWithHidpiScreen="laptop_with_hidpi_screen"]="LaptopWithHidpiScreen",e[e.LaptopWithMdpiScreen="laptop_with_mdpi_screen"]="LaptopWithMdpiScreen",e[e.LaptopWithTouch="laptop_with_touch"]="LaptopWithTouch",e[e.LgOptimusL70="lg_optimus_l70"]="LgOptimusL70",e[e.MicrosoftLumia550="microsoft_lumia_550"]="MicrosoftLumia550",e[e.MicrosoftLumia950="microsoft_lumia_950"]="MicrosoftLumia950",e[e.MotoG4="moto_g4"]="MotoG4",e[e.Nexus4="nexus_4"]="Nexus4",e[e.Nexus5="nexus_5"]="Nexus5",e[e.Nexus5x="nexus_5x"]="Nexus5x",e[e.Nexus6="nexus_6"]="Nexus6",e[e.Nexus6p="nexus_6p"]="Nexus6p",e[e.Nexus7="nexus_7"]="Nexus7",e[e.Nexus10="nexus_10"]="Nexus10",e[e.NokiaLumia520="nokia_lumia_520"]="NokiaLumia520",e[e.NokiaN9="nokia_n9"]="NokiaN9",e[e.Pixel2="pixel_2"]="Pixel2",e[e.Pixel2Xl="pixel_2_xl"]="Pixel2Xl",e[e.Pixel6="pixel_6"]="Pixel6",e[e.SurfaceDuo="surface_duo"]="SurfaceDuo"}(t=e.DeviceEmulationPresetTypeEnum||(e.DeviceEmulationPresetTypeEnum={})),function(e){e[e.PortraitPrimary="portrait_primary"]="PortraitPrimary",e[e.PortraitSecondary="portrait_secondary"]="PortraitSecondary",e[e.LandscapePrimary="landscape_primary"]="LandscapePrimary",e[e.LandscapeSecondary="landscape_secondary"]="LandscapeSecondary"}(r=e.DeviceEmulationOrientationEnum||(e.DeviceEmulationOrientationEnum={}))}(t.TestRunSummary||(t.TestRunSummary={})),function(e){let t;!function(e){e[e.Completed="completed"]="Completed",e[e.Failed="failed"]="Failed",e[e.Terminated="terminated"]="Terminated",e[e.NoStatus="no_status"]="NoStatus"}(t=e.RecentStatusEnum||(e.RecentStatusEnum={}))}(t.TestStatus||(t.TestStatus={})),function(e){let t;!function(e){e[e.Timer="timer"]="Timer",e[e.Event="event"]="Event",e[e.Schedule="schedule"]="Schedule",e[e.Insight="insight"]="Insight",e[e.PlanExecution="plan_execution"]="PlanExecution"}(t=e.TriggerTypeEnum||(e.TriggerTypeEnum={}))}(t.Trigger||(t.Trigger={})),function(e){let t;!function(e){e[e.Owner="owner"]="Owner",e[e.Editor="editor"]="Editor",e[e.Viewer="viewer"]="Viewer"}(t=e.RoleEnum||(e.RoleEnum={}))}(t.UserCompanyRole||(t.UserCompanyRole={})),function(e){let t,r;!function(e){e[e.Standard="standard"]="Standard",e[e.Dark="dark"]="Dark"}(t=e.WebUiThemeEnum||(e.WebUiThemeEnum={})),function(e){e[e.ChromeExtension="chrome_extension"]="ChromeExtension",e[e.Electron="electron"]="Electron"}(r=e.TrainerTypeEnum||(e.TrainerTypeEnum={}))}(t.UserPreferences||(t.UserPreferences={})),function(e){let t,r;!function(e){e[e.Owner="owner"]="Owner",e[e.Editor="editor"]="Editor",e[e.Viewer="viewer"]="Viewer"}(t=e.RoleEnum||(e.RoleEnum={})),function(e){e[e.RequiresAcknowledgement="requires_acknowledgement"]="RequiresAcknowledgement",e[e.Acknowledged="acknowledged"]="Acknowledged"}(r=e.AcknowledgedStatusEnum||(e.AcknowledgedStatusEnum={}))}(t.UserRole||(t.UserRole={})),function(e){let t;!function(e){e[e.Auth0="auth0"]="Auth0",e[e.Okta="okta"]="Okta"}(t=e.SourceEnum||(e.SourceEnum={}))}(t.UserWithAllAttributes||(t.UserWithAllAttributes={})),function(e){let t;!function(e){e[e.Chrome="chrome"]="Chrome"}(t=e.BrowserTypeEnum||(e.BrowserTypeEnum={}))}(t.WebEmulationConfiguration||(t.WebEmulationConfiguration={})),function(e){let t,r,n;!function(e){e[e.Image="image"]="Image"}(t=e.ArtifactTypesEnum||(e.ArtifactTypesEnum={})),function(e){e[e.Chrome="chrome"]="Chrome",e[e.Firefox="firefox"]="Firefox",e[e.InternetExplorer="internet_explorer"]="InternetExplorer",e[e.Safari="safari"]="Safari"}(r=e.BrowserTypesEnum||(e.BrowserTypesEnum={})),function(e){e[e.Ascending="ascending"]="Ascending",e[e.Descending="descending"]="Descending"}(n=e.CreatedTimeSortEnum||(e.CreatedTimeSortEnum={}))}(t.WorkspaceArtifactQueryRequest||(t.WorkspaceArtifactQueryRequest={})),function(e){let t,r,n;!function(e){e[e.Slack="slack"]="Slack",e[e.GithubApp="github_app"]="GithubApp",e[e.JiraServerPlugin="jira_server_plugin"]="JiraServerPlugin",e[e.Jira="jira"]="Jira",e[e.AtlassianConnect="atlassian_connect"]="AtlassianConnect",e[e.ExportFeedGoogleBigquery="export_feed_google_bigquery"]="ExportFeedGoogleBigquery",e[e.ExportFeedGoogleCloudStorage="export_feed_google_cloud_storage"]="ExportFeedGoogleCloudStorage",e[e.ExportFeedGooglePubsub="export_feed_google_pubsub"]="ExportFeedGooglePubsub",e[e.Segment="segment"]="Segment",e[e.MicrosoftTeamsWebhook="microsoft_teams_webhook"]="MicrosoftTeamsWebhook"}(t=e.IntegrationTypeEnum||(e.IntegrationTypeEnum={})),function(e){e[e.IssueTracker="issue_tracker"]="IssueTracker",e[e.SourceControlManagement="source_control_management"]="SourceControlManagement"}(r=e.IntegrationCategoriesEnum||(e.IntegrationCategoriesEnum={})),function(e){e[e.Success="success"]="Success",e[e.Error="error"]="Error",e[e.Pending="pending"]="Pending"}(n=e.StatusEnum||(e.StatusEnum={}))}(t.WorkspaceIntegration||(t.WorkspaceIntegration={})),function(e){let t;!function(e){e[e.Slack="slack"]="Slack",e[e.GithubApp="github_app"]="GithubApp",e[e.Jira="jira"]="Jira",e[e.AtlassianConnect="atlassian_connect"]="AtlassianConnect",e[e.ExportFeedGoogleBigquery="export_feed_google_bigquery"]="ExportFeedGoogleBigquery",e[e.ExportFeedGoogleCloudStorage="export_feed_google_cloud_storage"]="ExportFeedGoogleCloudStorage",e[e.ExportFeedGooglePubsub="export_feed_google_pubsub"]="ExportFeedGooglePubsub",e[e.Segment="segment"]="Segment"}(t=e.IntegrationTypeEnum||(e.IntegrationTypeEnum={}))}(t.WorkspaceIntegrationClaimRequest||(t.WorkspaceIntegrationClaimRequest={})),function(e){let t;!function(e){e[e.Alert="alert"]="Alert",e[e.Warning="warning"]="Warning",e[e.Ok="ok"]="Ok",e[e.Improvement="improvement"]="Improvement",e[e.Info="info"]="Info"}(t=e.ExclusionStatusesEnum||(e.ExclusionStatusesEnum={}))}(t.WorkspaceIntegrationConfig||(t.WorkspaceIntegrationConfig={})),function(e){let t;!function(e){e[e.Jira="jira"]="Jira",e[e.Confluence="confluence"]="Confluence"}(t=e.ProductTypeEnum||(e.ProductTypeEnum={}))}(t.WorkspaceIntegrationConfigAtlassianConnect||(t.WorkspaceIntegrationConfigAtlassianConnect={})),function(e){let t;!function(e){e[e.Created="created"]="Created",e[e.Deleted="deleted"]="Deleted",e[e.NewPermissionsAccepted="new_permissions_accepted"]="NewPermissionsAccepted"}(t=e.InstallationStatusEnum||(e.InstallationStatusEnum={}))}(t.WorkspaceIntegrationConfigGithub||(t.WorkspaceIntegrationConfigGithub={})),function(e){let t;!function(e){e[e.Error="error"]="Error",e[e.Pending="pending"]="Pending",e[e.Running="running"]="Running",e[e.Success="success"]="Success"}(t=e.StatusEnum||(e.StatusEnum={}))}(t.ValidateUrl||(t.ValidateUrl={})),function(e){let t;!function(e){e[e.CERTHOSTNAMEMISMATCH="CERT_HOSTNAME_MISMATCH"]="CERTHOSTNAMEMISMATCH",e[e.HTTPVERSIONUNSUPPORTED="HTTP_VERSION_UNSUPPORTED"]="HTTPVERSIONUNSUPPORTED",e[e.MALFORMEDURL="MALFORMED_URL"]="MALFORMEDURL",e[e.METHODUNSUPPORTED="METHOD_UNSUPPORTED"]="METHODUNSUPPORTED",e[e.NORESPONSE="NO_RESPONSE"]="NORESPONSE",e[e.REDIRECTLIMIT="REDIRECT_LIMIT"]="REDIRECTLIMIT",e[e.SERVERERROR="SERVER_ERROR"]="SERVERERROR",e[e.SOCKETEXCEPTION="SOCKET_EXCEPTION"]="SOCKETEXCEPTION",e[e.SSLERROR="SSL_ERROR"]="SSLERROR",e[e.TIMEOUT="TIMEOUT"]="TIMEOUT",e[e.TUNNELREFUSED="TUNNEL_REFUSED"]="TUNNELREFUSED",e[e.UNKNOWNHOST="UNKNOWN_HOST"]="UNKNOWNHOST",e[e.UNKNOWN="UNKNOWN"]="UNKNOWN",e[e.UNREACHABLE="UNREACHABLE"]="UNREACHABLE",e[e.BADREQUEST="BAD_REQUEST"]="BADREQUEST"}(t=e.ErrorCodeEnum||(e.ErrorCodeEnum={}))}(t.ValidateUrlResult||(t.ValidateUrlResult={}));t.AccountApiFetchParamCreator=function(e){return{createAccount(t,r,a={}){if(null==t)throw new u("account","Required parameter account was null or undefined when calling createAccount.");if(null==r)throw new u("organizationId","Required parameter organizationId was null or undefined when calling createAccount.");const o=n.parse("/accounts",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.organizationId=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},getAccount(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getAccount.");const a="/accounts/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryAccounts(t,r,a,o={}){const s=n.parse("/accounts",!0),u=Object.assign({method:"GET"},o),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.company_id=t),void 0!==r&&(c.limit=r),void 0!==a&&(c.cursor=a),s.query=Object.assign({},s.query,c,o.query),delete s.search,u.headers=Object.assign({},p,o.headers),{url:n.format(s),options:u}},queryPlans(t={}){const r=n.parse("/accounts/plans",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},queryProducts(t={}){const r=n.parse("/accounts/products",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},recoverAccount(t,r={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling recoverAccount.");const a="/recover/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeAccount(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeAccount.");const a="/accounts/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},setBillingDetails(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setBillingDetails.");if(null==r)throw new u("billingDetails","Required parameter billingDetails was null or undefined when calling setBillingDetails.");const o="/accounts/{accountId}/billing".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},setFeatureOverrides(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setFeatureOverrides.");if(null==r)throw new u("account","Required parameter account was null or undefined when calling setFeatureOverrides.");const o="/accounts/{accountId}/features".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},setPaymentDetails(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setPaymentDetails.");if(null==r)throw new u("billingDetails","Required parameter billingDetails was null or undefined when calling setPaymentDetails.");const o="/accounts/{accountId}/payment".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},setSubscriptionDetails(t,r,a={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling setSubscriptionDetails.");if(null==r)throw new u("subscriptionDetails","Required parameter subscriptionDetails was null or undefined when calling setSubscriptionDetails.");const o="/accounts/{accountId}/subscription".replace("{accountId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},unsubscribe(t,r={}){if(null==t)throw new u("accountId","Required parameter accountId was null or undefined when calling unsubscribe.");const a="/accounts/{accountId}/subscription".replace("{accountId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateAccount(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateAccount.");if(null==r)throw new u("account","Required parameter account was null or undefined when calling updateAccount.");const o="/accounts/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.AccountApiFp=function(e){return{createAccount(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).createAccount(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getAccount(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).getAccount(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryAccounts(r,n,i,s){const u=(0,t.AccountApiFetchParamCreator)(e).queryAccounts(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryPlans(r){const n=(0,t.AccountApiFetchParamCreator)(e).queryPlans(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryProducts(r){const n=(0,t.AccountApiFetchParamCreator)(e).queryProducts(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverAccount(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).recoverAccount(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeAccount(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).removeAccount(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setBillingDetails(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setBillingDetails(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setFeatureOverrides(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setFeatureOverrides(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setPaymentDetails(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setPaymentDetails(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},setSubscriptionDetails(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).setSubscriptionDetails(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},unsubscribe(r,n){const i=(0,t.AccountApiFetchParamCreator)(e).unsubscribe(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateAccount(r,n,i){const s=(0,t.AccountApiFetchParamCreator)(e).updateAccount(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.AccountApiFactory=function(e,r,n){return{createAccount:(i,a,o)=>(0,t.AccountApiFp)(e).createAccount(i,a,o)(r,n),getAccount:(i,a)=>(0,t.AccountApiFp)(e).getAccount(i,a)(r,n),queryAccounts:(i,a,o,s)=>(0,t.AccountApiFp)(e).queryAccounts(i,a,o,s)(r,n),queryPlans:i=>(0,t.AccountApiFp)(e).queryPlans(i)(r,n),queryProducts:i=>(0,t.AccountApiFp)(e).queryProducts(i)(r,n),recoverAccount:(i,a)=>(0,t.AccountApiFp)(e).recoverAccount(i,a)(r,n),removeAccount:(i,a)=>(0,t.AccountApiFp)(e).removeAccount(i,a)(r,n),setBillingDetails:(i,a,o)=>(0,t.AccountApiFp)(e).setBillingDetails(i,a,o)(r,n),setFeatureOverrides:(i,a,o)=>(0,t.AccountApiFp)(e).setFeatureOverrides(i,a,o)(r,n),setPaymentDetails:(i,a,o)=>(0,t.AccountApiFp)(e).setPaymentDetails(i,a,o)(r,n),setSubscriptionDetails:(i,a,o)=>(0,t.AccountApiFp)(e).setSubscriptionDetails(i,a,o)(r,n),unsubscribe:(i,a)=>(0,t.AccountApiFp)(e).unsubscribe(i,a)(r,n),updateAccount:(i,a,o)=>(0,t.AccountApiFp)(e).updateAccount(i,a,o)(r,n)}};t.AccountApi=class extends s{createAccount(e,r,n){return(0,t.AccountApiFp)(this.configuration).createAccount(e,r,n)(this.fetch,this.basePath)}getAccount(e,r){return(0,t.AccountApiFp)(this.configuration).getAccount(e,r)(this.fetch,this.basePath)}queryAccounts(e,r,n,i){return(0,t.AccountApiFp)(this.configuration).queryAccounts(e,r,n,i)(this.fetch,this.basePath)}queryPlans(e){return(0,t.AccountApiFp)(this.configuration).queryPlans(e)(this.fetch,this.basePath)}queryProducts(e){return(0,t.AccountApiFp)(this.configuration).queryProducts(e)(this.fetch,this.basePath)}recoverAccount(e,r){return(0,t.AccountApiFp)(this.configuration).recoverAccount(e,r)(this.fetch,this.basePath)}removeAccount(e,r){return(0,t.AccountApiFp)(this.configuration).removeAccount(e,r)(this.fetch,this.basePath)}setBillingDetails(e,r,n){return(0,t.AccountApiFp)(this.configuration).setBillingDetails(e,r,n)(this.fetch,this.basePath)}setFeatureOverrides(e,r,n){return(0,t.AccountApiFp)(this.configuration).setFeatureOverrides(e,r,n)(this.fetch,this.basePath)}setPaymentDetails(e,r,n){return(0,t.AccountApiFp)(this.configuration).setPaymentDetails(e,r,n)(this.fetch,this.basePath)}setSubscriptionDetails(e,r,n){return(0,t.AccountApiFp)(this.configuration).setSubscriptionDetails(e,r,n)(this.fetch,this.basePath)}unsubscribe(e,r){return(0,t.AccountApiFp)(this.configuration).unsubscribe(e,r)(this.fetch,this.basePath)}updateAccount(e,r,n){return(0,t.AccountApiFp)(this.configuration).updateAccount(e,r,n)(this.fetch,this.basePath)}};t.ApiKeyApiFetchParamCreator=function(e){return{createApiKey(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createApiKey.");const o="/workspaces/{workspace_id}/apiKeys".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getApiKeyByIdOrSecret(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getApiKeyByIdOrSecret.");const o="/apiKeys/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.with_secret=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getApiKeySelf(t,r={}){const a=n.parse("/apiKeys/self",!0),o=Object.assign({method:"GET"},r),s={},u={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}return void 0!==t&&(u.with_secret=t),a.query=Object.assign({},a.query,u,r.query),delete a.search,o.headers=Object.assign({},s,r.headers),{url:n.format(a),options:o}},queryApiKeys(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryApiKeys.");const p=n.parse("/apiKeys",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.with_secrets=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},removeApiKey(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeApiKey.");const a="/apiKeys/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeExpired(t={}){const r=n.parse("/cron/apiKeys/removeExpired",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},updateApiKey(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateApiKey.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateApiKey.");const p="/apiKeys/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==a&&(h.with_secret=a),null!=o&&(d["If-Match"]=String(o)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.ApiKeyApiFp=function(e){return{createApiKey(r,n,i){const s=(0,t.ApiKeyApiFetchParamCreator)(e).createApiKey(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getApiKeyByIdOrSecret(r,n,i){const s=(0,t.ApiKeyApiFetchParamCreator)(e).getApiKeyByIdOrSecret(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getApiKeySelf(r,n){const i=(0,t.ApiKeyApiFetchParamCreator)(e).getApiKeySelf(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryApiKeys(r,n,i,s,u){const p=(0,t.ApiKeyApiFetchParamCreator)(e).queryApiKeys(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeApiKey(r,n){const i=(0,t.ApiKeyApiFetchParamCreator)(e).removeApiKey(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeExpired(r){const n=(0,t.ApiKeyApiFetchParamCreator)(e).removeExpired(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateApiKey(r,n,i,s,u){const p=(0,t.ApiKeyApiFetchParamCreator)(e).updateApiKey(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ApiKeyApiFactory=function(e,r,n){return{createApiKey:(i,a,o)=>(0,t.ApiKeyApiFp)(e).createApiKey(i,a,o)(r,n),getApiKeyByIdOrSecret:(i,a,o)=>(0,t.ApiKeyApiFp)(e).getApiKeyByIdOrSecret(i,a,o)(r,n),getApiKeySelf:(i,a)=>(0,t.ApiKeyApiFp)(e).getApiKeySelf(i,a)(r,n),queryApiKeys:(i,a,o,s,u)=>(0,t.ApiKeyApiFp)(e).queryApiKeys(i,a,o,s,u)(r,n),removeApiKey:(i,a)=>(0,t.ApiKeyApiFp)(e).removeApiKey(i,a)(r,n),removeExpired:i=>(0,t.ApiKeyApiFp)(e).removeExpired(i)(r,n),updateApiKey:(i,a,o,s,u)=>(0,t.ApiKeyApiFp)(e).updateApiKey(i,a,o,s,u)(r,n)}};t.ApiKeyApi=class extends s{createApiKey(e,r,n){return(0,t.ApiKeyApiFp)(this.configuration).createApiKey(e,r,n)(this.fetch,this.basePath)}getApiKeyByIdOrSecret(e,r,n){return(0,t.ApiKeyApiFp)(this.configuration).getApiKeyByIdOrSecret(e,r,n)(this.fetch,this.basePath)}getApiKeySelf(e,r){return(0,t.ApiKeyApiFp)(this.configuration).getApiKeySelf(e,r)(this.fetch,this.basePath)}queryApiKeys(e,r,n,i,a){return(0,t.ApiKeyApiFp)(this.configuration).queryApiKeys(e,r,n,i,a)(this.fetch,this.basePath)}removeApiKey(e,r){return(0,t.ApiKeyApiFp)(this.configuration).removeApiKey(e,r)(this.fetch,this.basePath)}removeExpired(e){return(0,t.ApiKeyApiFp)(this.configuration).removeExpired(e)(this.fetch,this.basePath)}updateApiKey(e,r,n,i,a){return(0,t.ApiKeyApiFp)(this.configuration).updateApiKey(e,r,n,i,a)(this.fetch,this.basePath)}};t.ApplicationApiFetchParamCreator=function(e){return{createApplication(t,r={}){if(null==t)throw new u("application","Required parameter application was null or undefined when calling createApplication.");const a=n.parse("/applications",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getApplication(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getApplication.");const a="/applications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryApplications(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryApplications.");const s=n.parse("/applications",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeApplication(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeApplication.");const a="/applications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateApplication(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateApplication.");if(null==r)throw new u("application","Required parameter application was null or undefined when calling updateApplication.");const s="/applications/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ApplicationApiFp=function(e){return{createApplication(r,n){const i=(0,t.ApplicationApiFetchParamCreator)(e).createApplication(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getApplication(r,n){const i=(0,t.ApplicationApiFetchParamCreator)(e).getApplication(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryApplications(r,n,i,s){const u=(0,t.ApplicationApiFetchParamCreator)(e).queryApplications(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeApplication(r,n){const i=(0,t.ApplicationApiFetchParamCreator)(e).removeApplication(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateApplication(r,n,i,s){const u=(0,t.ApplicationApiFetchParamCreator)(e).updateApplication(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ApplicationApiFactory=function(e,r,n){return{createApplication:(i,a)=>(0,t.ApplicationApiFp)(e).createApplication(i,a)(r,n),getApplication:(i,a)=>(0,t.ApplicationApiFp)(e).getApplication(i,a)(r,n),queryApplications:(i,a,o,s)=>(0,t.ApplicationApiFp)(e).queryApplications(i,a,o,s)(r,n),removeApplication:(i,a)=>(0,t.ApplicationApiFp)(e).removeApplication(i,a)(r,n),updateApplication:(i,a,o,s)=>(0,t.ApplicationApiFp)(e).updateApplication(i,a,o,s)(r,n)}};t.ApplicationApi=class extends s{createApplication(e,r){return(0,t.ApplicationApiFp)(this.configuration).createApplication(e,r)(this.fetch,this.basePath)}getApplication(e,r){return(0,t.ApplicationApiFp)(this.configuration).getApplication(e,r)(this.fetch,this.basePath)}queryApplications(e,r,n,i){return(0,t.ApplicationApiFp)(this.configuration).queryApplications(e,r,n,i)(this.fetch,this.basePath)}removeApplication(e,r){return(0,t.ApplicationApiFp)(this.configuration).removeApplication(e,r)(this.fetch,this.basePath)}updateApplication(e,r,n,i){return(0,t.ApplicationApiFp)(this.configuration).updateApplication(e,r,n,i)(this.fetch,this.basePath)}};t.BranchApiFetchParamCreator=function(e){return{createBranch(t,r={}){if(null==t)throw new u("branch","Required parameter branch was null or undefined when calling createBranch.");const a=n.parse("/branch",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getBranch(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getBranch.");const a="/branch/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getBranchByName(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getBranchByName.");if(null==r)throw new u("name","Required parameter name was null or undefined when calling getBranchByName.");const o="/branch/{workspace_id}/{name}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},mergeBranches(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling mergeBranches.");if(null==r)throw new u("from","Required parameter from was null or undefined when calling mergeBranches.");const s="/branch/{workspace_id}/merge".replace("{workspace_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"POST"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.from=r),void 0!==a&&(d.to=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryBranches(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryBranches.");const p=n.parse("/branch",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.workspace_id=t),void 0!==r&&(d.status=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},recoverBranch(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverBranch.");const a="/recover/branch/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},refreshSnapshot(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling refreshSnapshot.");if(null==r)throw new u("snapshot_branch_name","Required parameter snapshot_branch_name was null or undefined when calling refreshSnapshot.");const o="/branch/{workspace_id}/snapshot/{snapshot_branch_name}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{snapshot_branch_name}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},removeBranch(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeBranch.");const a="/branch/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateBranch(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateBranch.");if(null==r)throw new u("branch","Required parameter branch was null or undefined when calling updateBranch.");const s="/branch/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.BranchApiFp=function(e){return{createBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).createBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).getBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getBranchByName(r,n,i){const s=(0,t.BranchApiFetchParamCreator)(e).getBranchByName(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},mergeBranches(r,n,i,s){const u=(0,t.BranchApiFetchParamCreator)(e).mergeBranches(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryBranches(r,n,i,s,u){const p=(0,t.BranchApiFetchParamCreator)(e).queryBranches(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).recoverBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},refreshSnapshot(r,n,i){const s=(0,t.BranchApiFetchParamCreator)(e).refreshSnapshot(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeBranch(r,n){const i=(0,t.BranchApiFetchParamCreator)(e).removeBranch(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateBranch(r,n,i,s){const u=(0,t.BranchApiFetchParamCreator)(e).updateBranch(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.BranchApiFactory=function(e,r,n){return{createBranch:(i,a)=>(0,t.BranchApiFp)(e).createBranch(i,a)(r,n),getBranch:(i,a)=>(0,t.BranchApiFp)(e).getBranch(i,a)(r,n),getBranchByName:(i,a,o)=>(0,t.BranchApiFp)(e).getBranchByName(i,a,o)(r,n),mergeBranches:(i,a,o,s)=>(0,t.BranchApiFp)(e).mergeBranches(i,a,o,s)(r,n),queryBranches:(i,a,o,s,u)=>(0,t.BranchApiFp)(e).queryBranches(i,a,o,s,u)(r,n),recoverBranch:(i,a)=>(0,t.BranchApiFp)(e).recoverBranch(i,a)(r,n),refreshSnapshot:(i,a,o)=>(0,t.BranchApiFp)(e).refreshSnapshot(i,a,o)(r,n),removeBranch:(i,a)=>(0,t.BranchApiFp)(e).removeBranch(i,a)(r,n),updateBranch:(i,a,o,s)=>(0,t.BranchApiFp)(e).updateBranch(i,a,o,s)(r,n)}};t.BranchApi=class extends s{createBranch(e,r){return(0,t.BranchApiFp)(this.configuration).createBranch(e,r)(this.fetch,this.basePath)}getBranch(e,r){return(0,t.BranchApiFp)(this.configuration).getBranch(e,r)(this.fetch,this.basePath)}getBranchByName(e,r,n){return(0,t.BranchApiFp)(this.configuration).getBranchByName(e,r,n)(this.fetch,this.basePath)}mergeBranches(e,r,n,i){return(0,t.BranchApiFp)(this.configuration).mergeBranches(e,r,n,i)(this.fetch,this.basePath)}queryBranches(e,r,n,i,a){return(0,t.BranchApiFp)(this.configuration).queryBranches(e,r,n,i,a)(this.fetch,this.basePath)}recoverBranch(e,r){return(0,t.BranchApiFp)(this.configuration).recoverBranch(e,r)(this.fetch,this.basePath)}refreshSnapshot(e,r,n){return(0,t.BranchApiFp)(this.configuration).refreshSnapshot(e,r,n)(this.fetch,this.basePath)}removeBranch(e,r){return(0,t.BranchApiFp)(this.configuration).removeBranch(e,r)(this.fetch,this.basePath)}updateBranch(e,r,n,i){return(0,t.BranchApiFp)(this.configuration).updateBranch(e,r,n,i)(this.fetch,this.basePath)}};t.CompanyApiFetchParamCreator=function(e){return{createCompany(t,r={}){if(null==t)throw new u("companyUpdateRequest","Required parameter companyUpdateRequest was null or undefined when calling createCompany.");const a=n.parse("/companies",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCompany(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCompany.");const a="/companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanyRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanyRoles.");const a="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCompanies(t,r,a={}){const o=n.parse("/companies",!0),s=Object.assign({method:"GET"},a),u={},p={};if(e&&(e.username||e.password)&&(u.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;u.Authorization=t}return void 0!==t&&(p.limit=t),void 0!==r&&(p.cursor=r),o.query=Object.assign({},o.query,p,a.query),delete o.search,s.headers=Object.assign({},u,a.headers),{url:n.format(o),options:s}},recoverCompany(t,r={}){if(null==t)throw new u("companyId","Required parameter companyId was null or undefined when calling recoverCompany.");const a="/recover/companies/{companyId}".replace("{companyId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeCompany(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCompany.");const a="/companies/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCompany(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCompany.");if(null==r)throw new u("companyUpdateRequest","Required parameter companyUpdateRequest was null or undefined when calling updateCompany.");const o="/companies/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},updateCompanySessionTimeout(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCompanySessionTimeout.");if(null==r)throw new u("companySessionTimeoutUpdateRequest","Required parameter companySessionTimeoutUpdateRequest was null or undefined when calling updateCompanySessionTimeout.");const o="/companies/{id}/sessionTimeout".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},updateUserCompanyRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserCompanyRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserCompanyRoles.");const s="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.CompanyApiFp=function(e){return{createCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).createCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).getCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserCompanyRoles(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).getUserCompanyRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCompanies(r,n,i){const s=(0,t.CompanyApiFetchParamCreator)(e).queryCompanies(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).recoverCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCompany(r,n){const i=(0,t.CompanyApiFetchParamCreator)(e).removeCompany(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCompany(r,n,i){const s=(0,t.CompanyApiFetchParamCreator)(e).updateCompany(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCompanySessionTimeout(r,n,i){const s=(0,t.CompanyApiFetchParamCreator)(e).updateCompanySessionTimeout(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserCompanyRoles(r,n,i,s){const u=(0,t.CompanyApiFetchParamCreator)(e).updateUserCompanyRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CompanyApiFactory=function(e,r,n){return{createCompany:(i,a)=>(0,t.CompanyApiFp)(e).createCompany(i,a)(r,n),getCompany:(i,a)=>(0,t.CompanyApiFp)(e).getCompany(i,a)(r,n),getUserCompanyRoles:(i,a)=>(0,t.CompanyApiFp)(e).getUserCompanyRoles(i,a)(r,n),queryCompanies:(i,a,o)=>(0,t.CompanyApiFp)(e).queryCompanies(i,a,o)(r,n),recoverCompany:(i,a)=>(0,t.CompanyApiFp)(e).recoverCompany(i,a)(r,n),removeCompany:(i,a)=>(0,t.CompanyApiFp)(e).removeCompany(i,a)(r,n),updateCompany:(i,a,o)=>(0,t.CompanyApiFp)(e).updateCompany(i,a,o)(r,n),updateCompanySessionTimeout:(i,a,o)=>(0,t.CompanyApiFp)(e).updateCompanySessionTimeout(i,a,o)(r,n),updateUserCompanyRoles:(i,a,o,s)=>(0,t.CompanyApiFp)(e).updateUserCompanyRoles(i,a,o,s)(r,n)}};t.CompanyApi=class extends s{createCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).createCompany(e,r)(this.fetch,this.basePath)}getCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).getCompany(e,r)(this.fetch,this.basePath)}getUserCompanyRoles(e,r){return(0,t.CompanyApiFp)(this.configuration).getUserCompanyRoles(e,r)(this.fetch,this.basePath)}queryCompanies(e,r,n){return(0,t.CompanyApiFp)(this.configuration).queryCompanies(e,r,n)(this.fetch,this.basePath)}recoverCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).recoverCompany(e,r)(this.fetch,this.basePath)}removeCompany(e,r){return(0,t.CompanyApiFp)(this.configuration).removeCompany(e,r)(this.fetch,this.basePath)}updateCompany(e,r,n){return(0,t.CompanyApiFp)(this.configuration).updateCompany(e,r,n)(this.fetch,this.basePath)}updateCompanySessionTimeout(e,r,n){return(0,t.CompanyApiFp)(this.configuration).updateCompanySessionTimeout(e,r,n)(this.fetch,this.basePath)}updateUserCompanyRoles(e,r,n,i){return(0,t.CompanyApiFp)(this.configuration).updateUserCompanyRoles(e,r,n,i)(this.fetch,this.basePath)}};t.CompanyDomainApiFetchParamCreator=function(e){return{createCompanyDomain(t,r={}){if(null==t)throw new u("companyDomain","Required parameter companyDomain was null or undefined when calling createCompanyDomain.");const a=n.parse("/company-domains",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCompanyDomain(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCompanyDomain.");const a="/company-domains/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCompanyDomains(t,r,a,o,s={}){const u=n.parse("/company-domains",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.companyId=t),void 0!==r&&(l.domainName=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},removeCompanyDomain(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCompanyDomain.");const a="/company-domains/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCompanyDomain(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCompanyDomain.");if(null==r)throw new u("companyDomainUpdateRequest","Required parameter companyDomainUpdateRequest was null or undefined when calling updateCompanyDomain.");const o="/company-domains/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.CompanyDomainApiFp=function(e){return{createCompanyDomain(r,n){const i=(0,t.CompanyDomainApiFetchParamCreator)(e).createCompanyDomain(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCompanyDomain(r,n){const i=(0,t.CompanyDomainApiFetchParamCreator)(e).getCompanyDomain(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCompanyDomains(r,n,i,s,u){const p=(0,t.CompanyDomainApiFetchParamCreator)(e).queryCompanyDomains(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCompanyDomain(r,n){const i=(0,t.CompanyDomainApiFetchParamCreator)(e).removeCompanyDomain(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCompanyDomain(r,n,i){const s=(0,t.CompanyDomainApiFetchParamCreator)(e).updateCompanyDomain(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CompanyDomainApiFactory=function(e,r,n){return{createCompanyDomain:(i,a)=>(0,t.CompanyDomainApiFp)(e).createCompanyDomain(i,a)(r,n),getCompanyDomain:(i,a)=>(0,t.CompanyDomainApiFp)(e).getCompanyDomain(i,a)(r,n),queryCompanyDomains:(i,a,o,s,u)=>(0,t.CompanyDomainApiFp)(e).queryCompanyDomains(i,a,o,s,u)(r,n),removeCompanyDomain:(i,a)=>(0,t.CompanyDomainApiFp)(e).removeCompanyDomain(i,a)(r,n),updateCompanyDomain:(i,a,o)=>(0,t.CompanyDomainApiFp)(e).updateCompanyDomain(i,a,o)(r,n)}};t.CompanyDomainApi=class extends s{createCompanyDomain(e,r){return(0,t.CompanyDomainApiFp)(this.configuration).createCompanyDomain(e,r)(this.fetch,this.basePath)}getCompanyDomain(e,r){return(0,t.CompanyDomainApiFp)(this.configuration).getCompanyDomain(e,r)(this.fetch,this.basePath)}queryCompanyDomains(e,r,n,i,a){return(0,t.CompanyDomainApiFp)(this.configuration).queryCompanyDomains(e,r,n,i,a)(this.fetch,this.basePath)}removeCompanyDomain(e,r){return(0,t.CompanyDomainApiFp)(this.configuration).removeCompanyDomain(e,r)(this.fetch,this.basePath)}updateCompanyDomain(e,r,n){return(0,t.CompanyDomainApiFp)(this.configuration).updateCompanyDomain(e,r,n)(this.fetch,this.basePath)}};t.CopyApiFetchParamCreator=function(e){return{copyOrganization(t,r,a={}){if(null==t)throw new u("source_workspace_id","Required parameter source_workspace_id was null or undefined when calling copyOrganization.");if(null==r)throw new u("destination_workspace_id","Required parameter destination_workspace_id was null or undefined when calling copyOrganization.");const o=n.parse("/copy/organizations",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.source_workspace_id=t),void 0!==r&&(c.destination_workspace_id=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.CopyApiFp=function(e){return{copyOrganization(r,n,i){const s=(0,t.CopyApiFetchParamCreator)(e).copyOrganization(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.CopyApiFactory=function(e,r,n){return{copyOrganization:(i,a,o)=>(0,t.CopyApiFp)(e).copyOrganization(i,a,o)(r,n)}};t.CopyApi=class extends s{copyOrganization(e,r,n){return(0,t.CopyApiFp)(this.configuration).copyOrganization(e,r,n)(this.fetch,this.basePath)}};t.CoverageApiFetchParamCreator=function(e){return{createOrUpdateExclusion(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createOrUpdateExclusion.");if(null==r)throw new u("coverage_exclusion","Required parameter coverage_exclusion was null or undefined when calling createOrUpdateExclusion.");const o="/test/coverage/workspace/{workspace_id}/exclusions".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},createOrUpdatePageGroup(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createOrUpdatePageGroup.");if(null==r)throw new u("application_id","Required parameter application_id was null or undefined when calling createOrUpdatePageGroup.");if(null==a)throw new u("coverage_page_group","Required parameter coverage_page_group was null or undefined when calling createOrUpdatePageGroup.");const s="/test/coverage/workspace/{workspace_id}/application/{application_id}/pageGroups".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{application_id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"POST"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(a||{}),{url:n.format(p),options:c}},getAllExclusions(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getAllExclusions.");const s="/test/coverage/workspace/{workspace_id}/exclusions".replace("{workspace_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},getExclusion(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getExclusion.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling getExclusion.");const o="/test/coverage/workspace/{workspace_id}/exclusions/{id}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getPageGroup(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getPageGroup.");if(null==r)throw new u("application_id","Required parameter application_id was null or undefined when calling getPageGroup.");const p="/test/coverage/workspace/{workspace_id}/application/{application_id}/pageGroups".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{application_id}",encodeURIComponent(String(r))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryCoverage(t,r,a,o,s,p,c,l,d,h,y,m,f={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverage.");const g=n.parse("/test/coverage",!0),w=Object.assign({method:"GET"},f),A={},b={};if(e&&(e.username||e.password)&&(A.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;A.Authorization=t}return void 0!==t&&(b.workspace_id=t),void 0!==r&&(b.environment_id=r),void 0!==a&&(b.application_id=a),void 0!==o&&(b.url_host_filter=o),void 0!==s&&(b.url_path_filter=s),void 0!==p&&(b.coverage_days=p),void 0!==c&&(b.sort_by=c),void 0!==l&&(b.sort_order=l),void 0!==d&&(b.kms_unsupported=d),void 0!==h&&(b.use_cache=h),void 0!==y&&(b.limit=y),void 0!==m&&(b.cursor=m),g.query=Object.assign({},g.query,b,f.query),delete g.search,w.headers=Object.assign({},A,f.headers),{url:n.format(g),options:w}},queryCoverageByJourney(t,r,a,o={}){if(null==t)throw new u("journey_invariant_id","Required parameter journey_invariant_id was null or undefined when calling queryCoverageByJourney.");const s="/test/coverage/journey/{journey_invariant_id}".replace("{journey_invariant_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryCoverageDetail(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverageDetail.");if(null==r)throw new u("path_pattern","Required parameter path_pattern was null or undefined when calling queryCoverageDetail.");const p=n.parse("/test/coverage/place",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.workspace_id=t),void 0!==r&&(d.path_pattern=r),void 0!==a&&(d.host_pattern=a),void 0!==o&&(d.kms_unsupported=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},queryCoverageSources(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverageSources.");const a="/test/coverage/workspace/{workspace_id}/sources".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCoverageSummary(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCoverageSummary.");const p="/test/coverage/workspace/{workspace_id}/summary".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.application_id=r),void 0!==a&&(h.coverage_days=a),void 0!==o&&(h.use_cache=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},refreshCoverage(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling refreshCoverage.");const a=n.parse("/test/coverage/refresh",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},updateExclusion(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling updateExclusion.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling updateExclusion.");if(null==a)throw new u("coverage_exclusion","Required parameter coverage_exclusion was null or undefined when calling updateExclusion.");const s="/test/coverage/workspace/{workspace_id}/exclusions/{id}".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(a||{}),{url:n.format(p),options:c}}}};t.CoverageApiFp=function(e){return{createOrUpdateExclusion(r,n,i){const s=(0,t.CoverageApiFetchParamCreator)(e).createOrUpdateExclusion(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createOrUpdatePageGroup(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).createOrUpdatePageGroup(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getAllExclusions(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).getAllExclusions(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExclusion(r,n,i){const s=(0,t.CoverageApiFetchParamCreator)(e).getExclusion(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getPageGroup(r,n,i,s,u){const p=(0,t.CoverageApiFetchParamCreator)(e).getPageGroup(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverage(r,n,i,s,u,p,c,l,d,h,y,m,f){const g=(0,t.CoverageApiFetchParamCreator)(e).queryCoverage(r,n,i,s,u,p,c,l,d,h,y,m,f);return(e=a,t=o)=>e(t+g.url,g.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageByJourney(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageByJourney(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageDetail(r,n,i,s,u){const p=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageDetail(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageSources(r,n){const i=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageSources(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCoverageSummary(r,n,i,s,u){const p=(0,t.CoverageApiFetchParamCreator)(e).queryCoverageSummary(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},refreshCoverage(r,n){const i=(0,t.CoverageApiFetchParamCreator)(e).refreshCoverage(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateExclusion(r,n,i,s){const u=(0,t.CoverageApiFetchParamCreator)(e).updateExclusion(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CoverageApiFactory=function(e,r,n){return{createOrUpdateExclusion:(i,a,o)=>(0,t.CoverageApiFp)(e).createOrUpdateExclusion(i,a,o)(r,n),createOrUpdatePageGroup:(i,a,o,s)=>(0,t.CoverageApiFp)(e).createOrUpdatePageGroup(i,a,o,s)(r,n),getAllExclusions:(i,a,o,s)=>(0,t.CoverageApiFp)(e).getAllExclusions(i,a,o,s)(r,n),getExclusion:(i,a,o)=>(0,t.CoverageApiFp)(e).getExclusion(i,a,o)(r,n),getPageGroup:(i,a,o,s,u)=>(0,t.CoverageApiFp)(e).getPageGroup(i,a,o,s,u)(r,n),queryCoverage:(i,a,o,s,u,p,c,l,d,h,y,m,f)=>(0,t.CoverageApiFp)(e).queryCoverage(i,a,o,s,u,p,c,l,d,h,y,m,f)(r,n),queryCoverageByJourney:(i,a,o,s)=>(0,t.CoverageApiFp)(e).queryCoverageByJourney(i,a,o,s)(r,n),queryCoverageDetail:(i,a,o,s,u)=>(0,t.CoverageApiFp)(e).queryCoverageDetail(i,a,o,s,u)(r,n),queryCoverageSources:(i,a)=>(0,t.CoverageApiFp)(e).queryCoverageSources(i,a)(r,n),queryCoverageSummary:(i,a,o,s,u)=>(0,t.CoverageApiFp)(e).queryCoverageSummary(i,a,o,s,u)(r,n),refreshCoverage:(i,a)=>(0,t.CoverageApiFp)(e).refreshCoverage(i,a)(r,n),updateExclusion:(i,a,o,s)=>(0,t.CoverageApiFp)(e).updateExclusion(i,a,o,s)(r,n)}};t.CoverageApi=class extends s{createOrUpdateExclusion(e,r,n){return(0,t.CoverageApiFp)(this.configuration).createOrUpdateExclusion(e,r,n)(this.fetch,this.basePath)}createOrUpdatePageGroup(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).createOrUpdatePageGroup(e,r,n,i)(this.fetch,this.basePath)}getAllExclusions(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).getAllExclusions(e,r,n,i)(this.fetch,this.basePath)}getExclusion(e,r,n){return(0,t.CoverageApiFp)(this.configuration).getExclusion(e,r,n)(this.fetch,this.basePath)}getPageGroup(e,r,n,i,a){return(0,t.CoverageApiFp)(this.configuration).getPageGroup(e,r,n,i,a)(this.fetch,this.basePath)}queryCoverage(e,r,n,i,a,o,s,u,p,c,l,d,h){return(0,t.CoverageApiFp)(this.configuration).queryCoverage(e,r,n,i,a,o,s,u,p,c,l,d,h)(this.fetch,this.basePath)}queryCoverageByJourney(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).queryCoverageByJourney(e,r,n,i)(this.fetch,this.basePath)}queryCoverageDetail(e,r,n,i,a){return(0,t.CoverageApiFp)(this.configuration).queryCoverageDetail(e,r,n,i,a)(this.fetch,this.basePath)}queryCoverageSources(e,r){return(0,t.CoverageApiFp)(this.configuration).queryCoverageSources(e,r)(this.fetch,this.basePath)}queryCoverageSummary(e,r,n,i,a){return(0,t.CoverageApiFp)(this.configuration).queryCoverageSummary(e,r,n,i,a)(this.fetch,this.basePath)}refreshCoverage(e,r){return(0,t.CoverageApiFp)(this.configuration).refreshCoverage(e,r)(this.fetch,this.basePath)}updateExclusion(e,r,n,i){return(0,t.CoverageApiFp)(this.configuration).updateExclusion(e,r,n,i)(this.fetch,this.basePath)}};t.CredentialsApiFetchParamCreator=function(e){return{createCredentials(t,r={}){if(null==t)throw new u("credentials","Required parameter credentials was null or undefined when calling createCredentials.");const a=n.parse("/credentials",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCredentials(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCredentials.");const a="/credentials/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCredentials(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryCredentials.");const p=n.parse("/credentials",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.with_secrets=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},removeCredentials(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCredentials.");const a="/credentials/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCredentials(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCredentials.");if(null==r)throw new u("credentials","Required parameter credentials was null or undefined when calling updateCredentials.");const s="/credentials/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.CredentialsApiFp=function(e){return{createCredentials(r,n){const i=(0,t.CredentialsApiFetchParamCreator)(e).createCredentials(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCredentials(r,n){const i=(0,t.CredentialsApiFetchParamCreator)(e).getCredentials(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCredentials(r,n,i,s,u){const p=(0,t.CredentialsApiFetchParamCreator)(e).queryCredentials(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCredentials(r,n){const i=(0,t.CredentialsApiFetchParamCreator)(e).removeCredentials(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateCredentials(r,n,i,s){const u=(0,t.CredentialsApiFetchParamCreator)(e).updateCredentials(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CredentialsApiFactory=function(e,r,n){return{createCredentials:(i,a)=>(0,t.CredentialsApiFp)(e).createCredentials(i,a)(r,n),getCredentials:(i,a)=>(0,t.CredentialsApiFp)(e).getCredentials(i,a)(r,n),queryCredentials:(i,a,o,s,u)=>(0,t.CredentialsApiFp)(e).queryCredentials(i,a,o,s,u)(r,n),removeCredentials:(i,a)=>(0,t.CredentialsApiFp)(e).removeCredentials(i,a)(r,n),updateCredentials:(i,a,o,s)=>(0,t.CredentialsApiFp)(e).updateCredentials(i,a,o,s)(r,n)}};t.CredentialsApi=class extends s{createCredentials(e,r){return(0,t.CredentialsApiFp)(this.configuration).createCredentials(e,r)(this.fetch,this.basePath)}getCredentials(e,r){return(0,t.CredentialsApiFp)(this.configuration).getCredentials(e,r)(this.fetch,this.basePath)}queryCredentials(e,r,n,i,a){return(0,t.CredentialsApiFp)(this.configuration).queryCredentials(e,r,n,i,a)(this.fetch,this.basePath)}removeCredentials(e,r){return(0,t.CredentialsApiFp)(this.configuration).removeCredentials(e,r)(this.fetch,this.basePath)}updateCredentials(e,r,n,i){return(0,t.CredentialsApiFp)(this.configuration).updateCredentials(e,r,n,i)(this.fetch,this.basePath)}};t.CustomFilterApiFetchParamCreator=function(e){return{createCustomFilter(t,r={}){if(null==t)throw new u("entity","Required parameter entity was null or undefined when calling createCustomFilter.");const a=n.parse("/workspaces/filters",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getCustomFilter(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getCustomFilter.");const a="/workspaces/filters/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryCustomFilters(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryCustomFilters.");if(null==r)throw new u("user_id","Required parameter user_id was null or undefined when calling queryCustomFilters.");const p="/workspaces/{workspace_id}/user/{user_id}/filters".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{user_id}",encodeURIComponent(String(r))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},removeCustomFilter(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeCustomFilter.");const a="/workspaces/filters/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCustomFilter(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateCustomFilter.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling updateCustomFilter.");const s="/workspaces/filters/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.CustomFilterApiFp=function(e){return{createCustomFilter(r,n){const i=(0,t.CustomFilterApiFetchParamCreator)(e).createCustomFilter(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getCustomFilter(r,n){const i=(0,t.CustomFilterApiFetchParamCreator)(e).getCustomFilter(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryCustomFilters(r,n,i,s,u){const p=(0,t.CustomFilterApiFetchParamCreator)(e).queryCustomFilters(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeCustomFilter(r,n){const i=(0,t.CustomFilterApiFetchParamCreator)(e).removeCustomFilter(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateCustomFilter(r,n,i,s){const u=(0,t.CustomFilterApiFetchParamCreator)(e).updateCustomFilter(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.CustomFilterApiFactory=function(e,r,n){return{createCustomFilter:(i,a)=>(0,t.CustomFilterApiFp)(e).createCustomFilter(i,a)(r,n),getCustomFilter:(i,a)=>(0,t.CustomFilterApiFp)(e).getCustomFilter(i,a)(r,n),queryCustomFilters:(i,a,o,s,u)=>(0,t.CustomFilterApiFp)(e).queryCustomFilters(i,a,o,s,u)(r,n),removeCustomFilter:(i,a)=>(0,t.CustomFilterApiFp)(e).removeCustomFilter(i,a)(r,n),updateCustomFilter:(i,a,o,s)=>(0,t.CustomFilterApiFp)(e).updateCustomFilter(i,a,o,s)(r,n)}};t.CustomFilterApi=class extends s{createCustomFilter(e,r){return(0,t.CustomFilterApiFp)(this.configuration).createCustomFilter(e,r)(this.fetch,this.basePath)}getCustomFilter(e,r){return(0,t.CustomFilterApiFp)(this.configuration).getCustomFilter(e,r)(this.fetch,this.basePath)}queryCustomFilters(e,r,n,i,a){return(0,t.CustomFilterApiFp)(this.configuration).queryCustomFilters(e,r,n,i,a)(this.fetch,this.basePath)}removeCustomFilter(e,r){return(0,t.CustomFilterApiFp)(this.configuration).removeCustomFilter(e,r)(this.fetch,this.basePath)}updateCustomFilter(e,r,n,i){return(0,t.CustomFilterApiFp)(this.configuration).updateCustomFilter(e,r,n,i)(this.fetch,this.basePath)}};t.DeploymentApiFetchParamCreator=function(e){return{createDeployment(t,r={}){if(null==t)throw new u("deployment","Required parameter deployment was null or undefined when calling createDeployment.");const a=n.parse("/deployments",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},findOrCreateDeployment(t,r={}){if(null==t)throw new u("deployment","Required parameter deployment was null or undefined when calling findOrCreateDeployment.");const a=n.parse("/deployments",!0),o=Object.assign({method:"PUT"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getDeployment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getDeployment.");const a="/deployments/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryDeployments(t,r,a,o,s,p={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryDeployments.");const c=n.parse("/deployments",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.organization_id=t),void 0!==r&&(h.environment_id=r),void 0!==a&&(h.application_id=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},removeDeployment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeDeployment.");const a="/deployments/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateDeployment(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateDeployment.");if(null==r)throw new u("deployment","Required parameter deployment was null or undefined when calling updateDeployment.");const s="/deployments/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.DeploymentApiFp=function(e){return{createDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).createDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},findOrCreateDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).findOrCreateDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).getDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryDeployments(r,n,i,s,u,p){const c=(0,t.DeploymentApiFetchParamCreator)(e).queryDeployments(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeDeployment(r,n){const i=(0,t.DeploymentApiFetchParamCreator)(e).removeDeployment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateDeployment(r,n,i,s){const u=(0,t.DeploymentApiFetchParamCreator)(e).updateDeployment(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.DeploymentApiFactory=function(e,r,n){return{createDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).createDeployment(i,a)(r,n),findOrCreateDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).findOrCreateDeployment(i,a)(r,n),getDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).getDeployment(i,a)(r,n),queryDeployments:(i,a,o,s,u,p)=>(0,t.DeploymentApiFp)(e).queryDeployments(i,a,o,s,u,p)(r,n),removeDeployment:(i,a)=>(0,t.DeploymentApiFp)(e).removeDeployment(i,a)(r,n),updateDeployment:(i,a,o,s)=>(0,t.DeploymentApiFp)(e).updateDeployment(i,a,o,s)(r,n)}};t.DeploymentApi=class extends s{createDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).createDeployment(e,r)(this.fetch,this.basePath)}findOrCreateDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).findOrCreateDeployment(e,r)(this.fetch,this.basePath)}getDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).getDeployment(e,r)(this.fetch,this.basePath)}queryDeployments(e,r,n,i,a,o){return(0,t.DeploymentApiFp)(this.configuration).queryDeployments(e,r,n,i,a,o)(this.fetch,this.basePath)}removeDeployment(e,r){return(0,t.DeploymentApiFp)(this.configuration).removeDeployment(e,r)(this.fetch,this.basePath)}updateDeployment(e,r,n,i){return(0,t.DeploymentApiFp)(this.configuration).updateDeployment(e,r,n,i)(this.fetch,this.basePath)}};t.EnvironmentApiFetchParamCreator=function(e){return{createEnvironment(t,r={}){if(null==t)throw new u("environment","Required parameter environment was null or undefined when calling createEnvironment.");const a=n.parse("/environments",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getEnvironment(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getEnvironment.");const o="/environments/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.decrypt=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryEnvironments(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryEnvironments.");const s=n.parse("/environments",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeEnvironment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeEnvironment.");const a="/environments/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateEnvironment(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateEnvironment.");if(null==r)throw new u("environment","Required parameter environment was null or undefined when calling updateEnvironment.");const s="/environments/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.EnvironmentApiFp=function(e){return{createEnvironment(r,n){const i=(0,t.EnvironmentApiFetchParamCreator)(e).createEnvironment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getEnvironment(r,n,i){const s=(0,t.EnvironmentApiFetchParamCreator)(e).getEnvironment(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryEnvironments(r,n,i,s){const u=(0,t.EnvironmentApiFetchParamCreator)(e).queryEnvironments(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeEnvironment(r,n){const i=(0,t.EnvironmentApiFetchParamCreator)(e).removeEnvironment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateEnvironment(r,n,i,s){const u=(0,t.EnvironmentApiFetchParamCreator)(e).updateEnvironment(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.EnvironmentApiFactory=function(e,r,n){return{createEnvironment:(i,a)=>(0,t.EnvironmentApiFp)(e).createEnvironment(i,a)(r,n),getEnvironment:(i,a,o)=>(0,t.EnvironmentApiFp)(e).getEnvironment(i,a,o)(r,n),queryEnvironments:(i,a,o,s)=>(0,t.EnvironmentApiFp)(e).queryEnvironments(i,a,o,s)(r,n),removeEnvironment:(i,a)=>(0,t.EnvironmentApiFp)(e).removeEnvironment(i,a)(r,n),updateEnvironment:(i,a,o,s)=>(0,t.EnvironmentApiFp)(e).updateEnvironment(i,a,o,s)(r,n)}};t.EnvironmentApi=class extends s{createEnvironment(e,r){return(0,t.EnvironmentApiFp)(this.configuration).createEnvironment(e,r)(this.fetch,this.basePath)}getEnvironment(e,r,n){return(0,t.EnvironmentApiFp)(this.configuration).getEnvironment(e,r,n)(this.fetch,this.basePath)}queryEnvironments(e,r,n,i){return(0,t.EnvironmentApiFp)(this.configuration).queryEnvironments(e,r,n,i)(this.fetch,this.basePath)}removeEnvironment(e,r){return(0,t.EnvironmentApiFp)(this.configuration).removeEnvironment(e,r)(this.fetch,this.basePath)}updateEnvironment(e,r,n,i){return(0,t.EnvironmentApiFp)(this.configuration).updateEnvironment(e,r,n,i)(this.fetch,this.basePath)}};t.EventApiFetchParamCreator=function(e){return{getDeploymentEvent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getDeploymentEvent.");const a="/events/deployment/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getEvent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getEvent.");const a="/events/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},onDeploy(t,r,a={}){if(null==t)throw new u("event","Required parameter event was null or undefined when calling onDeploy.");const o=n.parse("/events/deployment",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.preview=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},queryDeploymentEvents(t,r,a,o,s={}){const u=n.parse("/events/deployment",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.workspace_id=t),void 0!==r&&(l.environment_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},queryEvents(t,r,a,o,s,u={}){const p=n.parse("/events",!0),c=Object.assign({method:"GET"},u),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.workspace_id=t),void 0!==r&&(d.environment_id=r),void 0!==a&&(d.application_id=a),void 0!==o&&(d.limit=o),void 0!==s&&(d.cursor=s),p.query=Object.assign({},p.query,d,u.query),delete p.search,c.headers=Object.assign({},l,u.headers),{url:n.format(p),options:c}},removeEvent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeEvent.");const a="/events/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateDeploymentEvent(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateDeploymentEvent.");if(null==r)throw new u("event","Required parameter event was null or undefined when calling updateDeploymentEvent.");const s="/events/deployment/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.EventApiFp=function(e){return{getDeploymentEvent(r,n){const i=(0,t.EventApiFetchParamCreator)(e).getDeploymentEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getEvent(r,n){const i=(0,t.EventApiFetchParamCreator)(e).getEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},onDeploy(r,n,i){const s=(0,t.EventApiFetchParamCreator)(e).onDeploy(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryDeploymentEvents(r,n,i,s,u){const p=(0,t.EventApiFetchParamCreator)(e).queryDeploymentEvents(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryEvents(r,n,i,s,u,p){const c=(0,t.EventApiFetchParamCreator)(e).queryEvents(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeEvent(r,n){const i=(0,t.EventApiFetchParamCreator)(e).removeEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateDeploymentEvent(r,n,i,s){const u=(0,t.EventApiFetchParamCreator)(e).updateDeploymentEvent(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.EventApiFactory=function(e,r,n){return{getDeploymentEvent:(i,a)=>(0,t.EventApiFp)(e).getDeploymentEvent(i,a)(r,n),getEvent:(i,a)=>(0,t.EventApiFp)(e).getEvent(i,a)(r,n),onDeploy:(i,a,o)=>(0,t.EventApiFp)(e).onDeploy(i,a,o)(r,n),queryDeploymentEvents:(i,a,o,s,u)=>(0,t.EventApiFp)(e).queryDeploymentEvents(i,a,o,s,u)(r,n),queryEvents:(i,a,o,s,u,p)=>(0,t.EventApiFp)(e).queryEvents(i,a,o,s,u,p)(r,n),removeEvent:(i,a)=>(0,t.EventApiFp)(e).removeEvent(i,a)(r,n),updateDeploymentEvent:(i,a,o,s)=>(0,t.EventApiFp)(e).updateDeploymentEvent(i,a,o,s)(r,n)}};t.EventApi=class extends s{getDeploymentEvent(e,r){return(0,t.EventApiFp)(this.configuration).getDeploymentEvent(e,r)(this.fetch,this.basePath)}getEvent(e,r){return(0,t.EventApiFp)(this.configuration).getEvent(e,r)(this.fetch,this.basePath)}onDeploy(e,r,n){return(0,t.EventApiFp)(this.configuration).onDeploy(e,r,n)(this.fetch,this.basePath)}queryDeploymentEvents(e,r,n,i,a){return(0,t.EventApiFp)(this.configuration).queryDeploymentEvents(e,r,n,i,a)(this.fetch,this.basePath)}queryEvents(e,r,n,i,a,o){return(0,t.EventApiFp)(this.configuration).queryEvents(e,r,n,i,a,o)(this.fetch,this.basePath)}removeEvent(e,r){return(0,t.EventApiFp)(this.configuration).removeEvent(e,r)(this.fetch,this.basePath)}updateDeploymentEvent(e,r,n,i){return(0,t.EventApiFp)(this.configuration).updateDeploymentEvent(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionApiFetchParamCreator=function(e){return{createRunPolicyExecution(t,r,a={}){if(null==t)throw new u("policy_id","Required parameter policy_id was null or undefined when calling createRunPolicyExecution.");const o="/execution/runPolicy/{policy_id}/runPolicyExecution".replace("{policy_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getRunPolicyExecution(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getRunPolicyExecution.");const a="/execution/runPolicyExecution/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getTestScriptExecution(t,r,a={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling getTestScriptExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling getTestScriptExecution.");const o="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},putTestScriptExecution(t,r,a,o={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling putTestScriptExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling putTestScriptExecution.");if(null==a)throw new u("test_script_execution","Required parameter test_script_execution was null or undefined when calling putTestScriptExecution.");const s="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(a||{}),{url:n.format(p),options:c}},queryInsightsByTypeAndJourneyExecution(t,r,a,o,s,p={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling queryInsightsByTypeAndJourneyExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling queryInsightsByTypeAndJourneyExecution.");if(null==a)throw new u("insight_type","Required parameter insight_type was null or undefined when calling queryInsightsByTypeAndJourneyExecution.");const c="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}/insights".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==a&&(y.insight_type=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}},queryRunPolicyExecutions(t,r,a,o,s,p={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryRunPolicyExecutions.");const c=n.parse("/execution/runPolicyExecution",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.organization_id=t),void 0!==r&&(h.status=r),void 0!==a&&(h.policy_id=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},queryTestScriptExecutions(t,r,a,o,s={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling queryTestScriptExecutions.");const p="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution".replace("{run_policy_execution_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryTestScriptExecutionsByOrganization(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryTestScriptExecutionsByOrganization.");const p="/execution/organization/{organization_id}/testScriptExecution".replace("{organization_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryTestScriptExecutionsByRunPolicy(t,r,a,o,s,p,c={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryTestScriptExecutionsByRunPolicy.");if(null==r)throw new u("run_policy_id","Required parameter run_policy_id was null or undefined when calling queryTestScriptExecutionsByRunPolicy.");if(null==a)throw new u("test_script_id","Required parameter test_script_id was null or undefined when calling queryTestScriptExecutionsByRunPolicy.");const l="/execution/organization/{organization_id}/runPolicy/{run_policy_id}/testScript/{test_script_id}".replace("{organization_id}",encodeURIComponent(String(t))).replace("{run_policy_id}",encodeURIComponent(String(r))).replace("{test_script_id}",encodeURIComponent(String(a))),d=n.parse(l,!0),h=Object.assign({method:"GET"},c),y={},m={};if(e&&(e.username||e.password)&&(y.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;y.Authorization=t}return void 0!==o&&(m.status=o),void 0!==s&&(m.limit=s),void 0!==p&&(m.cursor=p),d.query=Object.assign({},d.query,m,c.query),delete d.search,h.headers=Object.assign({},y,c.headers),{url:n.format(d),options:h}},terminateRunPolicyExecution(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminateRunPolicyExecution.");const a="/execution/runPolicyExecution/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},terminateTestScriptExecution(t,r,a={}){if(null==t)throw new u("run_policy_execution_id","Required parameter run_policy_execution_id was null or undefined when calling terminateTestScriptExecution.");if(null==r)throw new u("id","Required parameter id was null or undefined when calling terminateTestScriptExecution.");const o="/execution/runPolicyExecution/{run_policy_execution_id}/testScriptExecution/{id}/terminate".replace("{run_policy_execution_id}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},updateRunPolicyExecution(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateRunPolicyExecution.");if(null==r)throw new u("runPolicyExecution","Required parameter runPolicyExecution was null or undefined when calling updateRunPolicyExecution.");const s="/execution/runPolicyExecution/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ExecutionApiFp=function(e){return{createRunPolicyExecution(r,n,i){const s=(0,t.ExecutionApiFetchParamCreator)(e).createRunPolicyExecution(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getRunPolicyExecution(r,n){const i=(0,t.ExecutionApiFetchParamCreator)(e).getRunPolicyExecution(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getTestScriptExecution(r,n,i){const s=(0,t.ExecutionApiFetchParamCreator)(e).getTestScriptExecution(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putTestScriptExecution(r,n,i,s){const u=(0,t.ExecutionApiFetchParamCreator)(e).putTestScriptExecution(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryInsightsByTypeAndJourneyExecution(r,n,i,s,u,p){const c=(0,t.ExecutionApiFetchParamCreator)(e).queryInsightsByTypeAndJourneyExecution(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRunPolicyExecutions(r,n,i,s,u,p){const c=(0,t.ExecutionApiFetchParamCreator)(e).queryRunPolicyExecutions(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestScriptExecutions(r,n,i,s,u){const p=(0,t.ExecutionApiFetchParamCreator)(e).queryTestScriptExecutions(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestScriptExecutionsByOrganization(r,n,i,s,u){const p=(0,t.ExecutionApiFetchParamCreator)(e).queryTestScriptExecutionsByOrganization(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestScriptExecutionsByRunPolicy(r,n,i,s,u,p,c){const l=(0,t.ExecutionApiFetchParamCreator)(e).queryTestScriptExecutionsByRunPolicy(r,n,i,s,u,p,c);return(e=a,t=o)=>e(t+l.url,l.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},terminateRunPolicyExecution(r,n){const i=(0,t.ExecutionApiFetchParamCreator)(e).terminateRunPolicyExecution(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},terminateTestScriptExecution(r,n,i){const s=(0,t.ExecutionApiFetchParamCreator)(e).terminateTestScriptExecution(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateRunPolicyExecution(r,n,i,s){const u=(0,t.ExecutionApiFetchParamCreator)(e).updateRunPolicyExecution(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionApiFactory=function(e,r,n){return{createRunPolicyExecution:(i,a,o)=>(0,t.ExecutionApiFp)(e).createRunPolicyExecution(i,a,o)(r,n),getRunPolicyExecution:(i,a)=>(0,t.ExecutionApiFp)(e).getRunPolicyExecution(i,a)(r,n),getTestScriptExecution:(i,a,o)=>(0,t.ExecutionApiFp)(e).getTestScriptExecution(i,a,o)(r,n),putTestScriptExecution:(i,a,o,s)=>(0,t.ExecutionApiFp)(e).putTestScriptExecution(i,a,o,s)(r,n),queryInsightsByTypeAndJourneyExecution:(i,a,o,s,u,p)=>(0,t.ExecutionApiFp)(e).queryInsightsByTypeAndJourneyExecution(i,a,o,s,u,p)(r,n),queryRunPolicyExecutions:(i,a,o,s,u,p)=>(0,t.ExecutionApiFp)(e).queryRunPolicyExecutions(i,a,o,s,u,p)(r,n),queryTestScriptExecutions:(i,a,o,s,u)=>(0,t.ExecutionApiFp)(e).queryTestScriptExecutions(i,a,o,s,u)(r,n),queryTestScriptExecutionsByOrganization:(i,a,o,s,u)=>(0,t.ExecutionApiFp)(e).queryTestScriptExecutionsByOrganization(i,a,o,s,u)(r,n),queryTestScriptExecutionsByRunPolicy:(i,a,o,s,u,p,c)=>(0,t.ExecutionApiFp)(e).queryTestScriptExecutionsByRunPolicy(i,a,o,s,u,p,c)(r,n),terminateRunPolicyExecution:(i,a)=>(0,t.ExecutionApiFp)(e).terminateRunPolicyExecution(i,a)(r,n),terminateTestScriptExecution:(i,a,o)=>(0,t.ExecutionApiFp)(e).terminateTestScriptExecution(i,a,o)(r,n),updateRunPolicyExecution:(i,a,o,s)=>(0,t.ExecutionApiFp)(e).updateRunPolicyExecution(i,a,o,s)(r,n)}};t.ExecutionApi=class extends s{createRunPolicyExecution(e,r,n){return(0,t.ExecutionApiFp)(this.configuration).createRunPolicyExecution(e,r,n)(this.fetch,this.basePath)}getRunPolicyExecution(e,r){return(0,t.ExecutionApiFp)(this.configuration).getRunPolicyExecution(e,r)(this.fetch,this.basePath)}getTestScriptExecution(e,r,n){return(0,t.ExecutionApiFp)(this.configuration).getTestScriptExecution(e,r,n)(this.fetch,this.basePath)}putTestScriptExecution(e,r,n,i){return(0,t.ExecutionApiFp)(this.configuration).putTestScriptExecution(e,r,n,i)(this.fetch,this.basePath)}queryInsightsByTypeAndJourneyExecution(e,r,n,i,a,o){return(0,t.ExecutionApiFp)(this.configuration).queryInsightsByTypeAndJourneyExecution(e,r,n,i,a,o)(this.fetch,this.basePath)}queryRunPolicyExecutions(e,r,n,i,a,o){return(0,t.ExecutionApiFp)(this.configuration).queryRunPolicyExecutions(e,r,n,i,a,o)(this.fetch,this.basePath)}queryTestScriptExecutions(e,r,n,i,a){return(0,t.ExecutionApiFp)(this.configuration).queryTestScriptExecutions(e,r,n,i,a)(this.fetch,this.basePath)}queryTestScriptExecutionsByOrganization(e,r,n,i,a){return(0,t.ExecutionApiFp)(this.configuration).queryTestScriptExecutionsByOrganization(e,r,n,i,a)(this.fetch,this.basePath)}queryTestScriptExecutionsByRunPolicy(e,r,n,i,a,o,s){return(0,t.ExecutionApiFp)(this.configuration).queryTestScriptExecutionsByRunPolicy(e,r,n,i,a,o,s)(this.fetch,this.basePath)}terminateRunPolicyExecution(e,r){return(0,t.ExecutionApiFp)(this.configuration).terminateRunPolicyExecution(e,r)(this.fetch,this.basePath)}terminateTestScriptExecution(e,r,n){return(0,t.ExecutionApiFp)(this.configuration).terminateTestScriptExecution(e,r,n)(this.fetch,this.basePath)}updateRunPolicyExecution(e,r,n,i){return(0,t.ExecutionApiFp)(this.configuration).updateRunPolicyExecution(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionInputApiFetchParamCreator=function(e){return{createExecutionInput(t,r={}){if(null==t)throw new u("executionInput","Required parameter executionInput was null or undefined when calling createExecutionInput.");const a=n.parse("/execution/inputs",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getExecutionInput(t,r={}){if(null==t)throw new u("executionInputId","Required parameter executionInputId was null or undefined when calling getExecutionInput.");const a="/execution/inputs/{executionInputId}".replace("{executionInputId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryExecutionInputs(t,r,a,o={}){if(null==t)throw new u("context_id","Required parameter context_id was null or undefined when calling queryExecutionInputs.");const s=n.parse("/execution/inputs",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.context_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}}}};t.ExecutionInputApiFp=function(e){return{createExecutionInput(r,n){const i=(0,t.ExecutionInputApiFetchParamCreator)(e).createExecutionInput(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExecutionInput(r,n){const i=(0,t.ExecutionInputApiFetchParamCreator)(e).getExecutionInput(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryExecutionInputs(r,n,i,s){const u=(0,t.ExecutionInputApiFetchParamCreator)(e).queryExecutionInputs(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionInputApiFactory=function(e,r,n){return{createExecutionInput:(i,a)=>(0,t.ExecutionInputApiFp)(e).createExecutionInput(i,a)(r,n),getExecutionInput:(i,a)=>(0,t.ExecutionInputApiFp)(e).getExecutionInput(i,a)(r,n),queryExecutionInputs:(i,a,o,s)=>(0,t.ExecutionInputApiFp)(e).queryExecutionInputs(i,a,o,s)(r,n)}};t.ExecutionInputApi=class extends s{createExecutionInput(e,r){return(0,t.ExecutionInputApiFp)(this.configuration).createExecutionInput(e,r)(this.fetch,this.basePath)}getExecutionInput(e,r){return(0,t.ExecutionInputApiFp)(this.configuration).getExecutionInput(e,r)(this.fetch,this.basePath)}queryExecutionInputs(e,r,n,i){return(0,t.ExecutionInputApiFp)(this.configuration).queryExecutionInputs(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionNotificationApiFetchParamCreator=function(e){return{createExecutionNotification(t,r={}){if(null==t)throw new u("payload","Required parameter payload was null or undefined when calling createExecutionNotification.");const a=n.parse("/executionNotifications",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getExecutionNotification(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getExecutionNotification.");const a="/executionNotifications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryExecutionNotifications(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryExecutionNotifications.");const c=n.parse("/executionNotifications",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.notification_type=r),void 0!==a&&(h["lifecycle_trigger,"]=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},removeExecutionNotification(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeExecutionNotification.");const a="/executionNotifications/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateExecutionNotification(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateExecutionNotification.");if(null==r)throw new u("payload","Required parameter payload was null or undefined when calling updateExecutionNotification.");const s="/executionNotifications/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ExecutionNotificationApiFp=function(e){return{createExecutionNotification(r,n){const i=(0,t.ExecutionNotificationApiFetchParamCreator)(e).createExecutionNotification(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExecutionNotification(r,n){const i=(0,t.ExecutionNotificationApiFetchParamCreator)(e).getExecutionNotification(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryExecutionNotifications(r,n,i,s,u,p){const c=(0,t.ExecutionNotificationApiFetchParamCreator)(e).queryExecutionNotifications(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeExecutionNotification(r,n){const i=(0,t.ExecutionNotificationApiFetchParamCreator)(e).removeExecutionNotification(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateExecutionNotification(r,n,i,s){const u=(0,t.ExecutionNotificationApiFetchParamCreator)(e).updateExecutionNotification(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionNotificationApiFactory=function(e,r,n){return{createExecutionNotification:(i,a)=>(0,t.ExecutionNotificationApiFp)(e).createExecutionNotification(i,a)(r,n),getExecutionNotification:(i,a)=>(0,t.ExecutionNotificationApiFp)(e).getExecutionNotification(i,a)(r,n),queryExecutionNotifications:(i,a,o,s,u,p)=>(0,t.ExecutionNotificationApiFp)(e).queryExecutionNotifications(i,a,o,s,u,p)(r,n),removeExecutionNotification:(i,a)=>(0,t.ExecutionNotificationApiFp)(e).removeExecutionNotification(i,a)(r,n),updateExecutionNotification:(i,a,o,s)=>(0,t.ExecutionNotificationApiFp)(e).updateExecutionNotification(i,a,o,s)(r,n)}};t.ExecutionNotificationApi=class extends s{createExecutionNotification(e,r){return(0,t.ExecutionNotificationApiFp)(this.configuration).createExecutionNotification(e,r)(this.fetch,this.basePath)}getExecutionNotification(e,r){return(0,t.ExecutionNotificationApiFp)(this.configuration).getExecutionNotification(e,r)(this.fetch,this.basePath)}queryExecutionNotifications(e,r,n,i,a,o){return(0,t.ExecutionNotificationApiFp)(this.configuration).queryExecutionNotifications(e,r,n,i,a,o)(this.fetch,this.basePath)}removeExecutionNotification(e,r){return(0,t.ExecutionNotificationApiFp)(this.configuration).removeExecutionNotification(e,r)(this.fetch,this.basePath)}updateExecutionNotification(e,r,n,i){return(0,t.ExecutionNotificationApiFp)(this.configuration).updateExecutionNotification(e,r,n,i)(this.fetch,this.basePath)}};t.ExecutionResultApiFetchParamCreator=function(e){return{getExecutionResultForEvent(t,r={}){if(null==t)throw new u("event_id","Required parameter event_id was null or undefined when calling getExecutionResultForEvent.");const a="/execution/result/event/{event_id}".replace("{event_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getExecutionResultForEventAndPlan(t,r,a={}){if(null==t)throw new u("event_id","Required parameter event_id was null or undefined when calling getExecutionResultForEventAndPlan.");if(null==r)throw new u("plan_id","Required parameter plan_id was null or undefined when calling getExecutionResultForEventAndPlan.");const o="/execution/result/event/{event_id}/plan/{plan_id}".replace("{event_id}",encodeURIComponent(String(t))).replace("{plan_id}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}}}};t.ExecutionResultApiFp=function(e){return{getExecutionResultForEvent(r,n){const i=(0,t.ExecutionResultApiFetchParamCreator)(e).getExecutionResultForEvent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExecutionResultForEventAndPlan(r,n,i){const s=(0,t.ExecutionResultApiFetchParamCreator)(e).getExecutionResultForEventAndPlan(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExecutionResultApiFactory=function(e,r,n){return{getExecutionResultForEvent:(i,a)=>(0,t.ExecutionResultApiFp)(e).getExecutionResultForEvent(i,a)(r,n),getExecutionResultForEventAndPlan:(i,a,o)=>(0,t.ExecutionResultApiFp)(e).getExecutionResultForEventAndPlan(i,a,o)(r,n)}};t.ExecutionResultApi=class extends s{getExecutionResultForEvent(e,r){return(0,t.ExecutionResultApiFp)(this.configuration).getExecutionResultForEvent(e,r)(this.fetch,this.basePath)}getExecutionResultForEventAndPlan(e,r,n){return(0,t.ExecutionResultApiFp)(this.configuration).getExecutionResultForEventAndPlan(e,r,n)(this.fetch,this.basePath)}};t.ExportApiFetchParamCreator=function(e){return{exportPlanRuns(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling exportPlanRuns.");if(null==r)throw new u("plan_id","Required parameter plan_id was null or undefined when calling exportPlanRuns.");if(null==a)throw new u("data_format","Required parameter data_format was null or undefined when calling exportPlanRuns.");const c="/exports/workspaces/{workspace_id}/planRuns".replace("{workspace_id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==r&&(y.plan_id=r),void 0!==a&&(y.data_format=a),void 0!==o&&(y.status=o),void 0!==s&&(y.limit=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}}}};t.ExportApiFp=function(e){return{exportPlanRuns(r,n,i,s,u,p){const c=(0,t.ExportApiFetchParamCreator)(e).exportPlanRuns(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExportApiFactory=function(e,r,n){return{exportPlanRuns:(i,a,o,s,u,p)=>(0,t.ExportApiFp)(e).exportPlanRuns(i,a,o,s,u,p)(r,n)}};t.ExportApi=class extends s{exportPlanRuns(e,r,n,i,a,o){return(0,t.ExportApiFp)(this.configuration).exportPlanRuns(e,r,n,i,a,o)(this.fetch,this.basePath)}};t.ExportRequestApiFetchParamCreator=function(e){return{exportJourneyRun(t,r,a={}){if(null==t)throw new u("journey_run_id","Required parameter journey_run_id was null or undefined when calling exportJourneyRun.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling exportJourneyRun.");const o="/exports/journeyRuns/{journey_run_id}".replace("{journey_run_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getExportJourney(t,r={}){if(null==t)throw new u("export_id","Required parameter export_id was null or undefined when calling getExportJourney.");const a="/exports/{export_id}".replace("{export_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeExportJourneyRun(t,r={}){if(null==t)throw new u("export_id","Required parameter export_id was null or undefined when calling removeExportJourneyRun.");const a="/exports/{export_id}".replace("{export_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateExportJourney(t,r,a,o={}){if(null==t)throw new u("export_id","Required parameter export_id was null or undefined when calling updateExportJourney.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling updateExportJourney.");const s="/exports/{export_id}".replace("{export_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ExportRequestApiFp=function(e){return{exportJourneyRun(r,n,i){const s=(0,t.ExportRequestApiFetchParamCreator)(e).exportJourneyRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getExportJourney(r,n){const i=(0,t.ExportRequestApiFetchParamCreator)(e).getExportJourney(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeExportJourneyRun(r,n){const i=(0,t.ExportRequestApiFetchParamCreator)(e).removeExportJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateExportJourney(r,n,i,s){const u=(0,t.ExportRequestApiFetchParamCreator)(e).updateExportJourney(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ExportRequestApiFactory=function(e,r,n){return{exportJourneyRun:(i,a,o)=>(0,t.ExportRequestApiFp)(e).exportJourneyRun(i,a,o)(r,n),getExportJourney:(i,a)=>(0,t.ExportRequestApiFp)(e).getExportJourney(i,a)(r,n),removeExportJourneyRun:(i,a)=>(0,t.ExportRequestApiFp)(e).removeExportJourneyRun(i,a)(r,n),updateExportJourney:(i,a,o,s)=>(0,t.ExportRequestApiFp)(e).updateExportJourney(i,a,o,s)(r,n)}};t.ExportRequestApi=class extends s{exportJourneyRun(e,r,n){return(0,t.ExportRequestApiFp)(this.configuration).exportJourneyRun(e,r,n)(this.fetch,this.basePath)}getExportJourney(e,r){return(0,t.ExportRequestApiFp)(this.configuration).getExportJourney(e,r)(this.fetch,this.basePath)}removeExportJourneyRun(e,r){return(0,t.ExportRequestApiFp)(this.configuration).removeExportJourneyRun(e,r)(this.fetch,this.basePath)}updateExportJourney(e,r,n,i){return(0,t.ExportRequestApiFp)(this.configuration).updateExportJourney(e,r,n,i)(this.fetch,this.basePath)}};t.FileUploadApiFetchParamCreator=function(e){return{createFileUpload(r,a,o,s,p,c,l,d={}){if(null==r)throw new u("organization_id","Required parameter organization_id was null or undefined when calling createFileUpload.");if(null==a)throw new u("name","Required parameter name was null or undefined when calling createFileUpload.");if(null==o)throw new u("file","Required parameter file was null or undefined when calling createFileUpload.");const h=n.parse("/files/fileUpload",!0),y=Object.assign({method:"POST"},d),m={},f=new n.URLSearchParams;if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==r&&f.set("organization_id",r),void 0!==a&&f.set("name",a),void 0!==s&&f.set("extension",s),void 0!==p&&f.set("content_type",p),void 0!==o&&f.set("file",o),void 0!==c&&f.set("file_size",c),l&&f.set("journeys",l.join(t.COLLECTION_FORMATS.csv)),m["Content-Type"]="application/x-www-form-urlencoded",h.query=Object.assign({},h.query,{},d.query),delete h.search,y.headers=Object.assign({},m,d.headers),y.body=f.toString(),{url:n.format(h),options:y}},downloadFileUpload(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling downloadFileUpload.");const a="/files/fileUpload/download/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getFileUpload(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFileUpload.");const a="/files/fileUpload/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryFileUploads(t,r,a,o,s={}){const u=n.parse("/files/fileUpload",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.journey_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},removeFileUpload(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeFileUpload.");const a="/files/fileUpload/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},signedFileUploadUrl(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling signedFileUploadUrl.");const a="/files/fileUpload/url/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateFileUpload(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateFileUpload.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateFileUpload.");const p="/files/fileUpload/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}null!=a&&(d.ifMatch=String(a)),null!=o&&(d["If-Match"]=String(o)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.FileUploadApiFp=function(e){return{createFileUpload(r,n,i,s,u,p,c,l){const d=(0,t.FileUploadApiFetchParamCreator)(e).createFileUpload(r,n,i,s,u,p,c,l);return(e=a,t=o)=>e(t+d.url,d.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},downloadFileUpload(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).downloadFileUpload(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFileUpload(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).getFileUpload(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryFileUploads(r,n,i,s,u){const p=(0,t.FileUploadApiFetchParamCreator)(e).queryFileUploads(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeFileUpload(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).removeFileUpload(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},signedFileUploadUrl(r,n){const i=(0,t.FileUploadApiFetchParamCreator)(e).signedFileUploadUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateFileUpload(r,n,i,s,u){const p=(0,t.FileUploadApiFetchParamCreator)(e).updateFileUpload(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FileUploadApiFactory=function(e,r,n){return{createFileUpload:(i,a,o,s,u,p,c,l)=>(0,t.FileUploadApiFp)(e).createFileUpload(i,a,o,s,u,p,c,l)(r,n),downloadFileUpload:(i,a)=>(0,t.FileUploadApiFp)(e).downloadFileUpload(i,a)(r,n),getFileUpload:(i,a)=>(0,t.FileUploadApiFp)(e).getFileUpload(i,a)(r,n),queryFileUploads:(i,a,o,s,u)=>(0,t.FileUploadApiFp)(e).queryFileUploads(i,a,o,s,u)(r,n),removeFileUpload:(i,a)=>(0,t.FileUploadApiFp)(e).removeFileUpload(i,a)(r,n),signedFileUploadUrl:(i,a)=>(0,t.FileUploadApiFp)(e).signedFileUploadUrl(i,a)(r,n),updateFileUpload:(i,a,o,s,u)=>(0,t.FileUploadApiFp)(e).updateFileUpload(i,a,o,s,u)(r,n)}};t.FileUploadApi=class extends s{createFileUpload(e,r,n,i,a,o,s,u){return(0,t.FileUploadApiFp)(this.configuration).createFileUpload(e,r,n,i,a,o,s,u)(this.fetch,this.basePath)}downloadFileUpload(e,r){return(0,t.FileUploadApiFp)(this.configuration).downloadFileUpload(e,r)(this.fetch,this.basePath)}getFileUpload(e,r){return(0,t.FileUploadApiFp)(this.configuration).getFileUpload(e,r)(this.fetch,this.basePath)}queryFileUploads(e,r,n,i,a){return(0,t.FileUploadApiFp)(this.configuration).queryFileUploads(e,r,n,i,a)(this.fetch,this.basePath)}removeFileUpload(e,r){return(0,t.FileUploadApiFp)(this.configuration).removeFileUpload(e,r)(this.fetch,this.basePath)}signedFileUploadUrl(e,r){return(0,t.FileUploadApiFp)(this.configuration).signedFileUploadUrl(e,r)(this.fetch,this.basePath)}updateFileUpload(e,r,n,i,a){return(0,t.FileUploadApiFp)(this.configuration).updateFileUpload(e,r,n,i,a)(this.fetch,this.basePath)}};t.FindModelApiFetchParamCreator=function(e){return{getTestFindModels(t,r,a={}){if(null==t)throw new u("test_id","Required parameter test_id was null or undefined when calling getTestFindModels.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getTestFindModels.");const o="/findModel/test/{test_id}".replace("{test_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.environment_id=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}}}};t.FindModelApiFp=function(e){return{getTestFindModels(r,n,i){const s=(0,t.FindModelApiFetchParamCreator)(e).getTestFindModels(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FindModelApiFactory=function(e,r,n){return{getTestFindModels:(i,a,o)=>(0,t.FindModelApiFp)(e).getTestFindModels(i,a,o)(r,n)}};t.FindModelApi=class extends s{getTestFindModels(e,r,n){return(0,t.FindModelApiFp)(this.configuration).getTestFindModels(e,r,n)(this.fetch,this.basePath)}};t.FindSummaryApiFetchParamCreator=function(e){return{createFindSummary(t,r={}){if(null==t)throw new u("findsummary","Required parameter findsummary was null or undefined when calling createFindSummary.");const a=n.parse("/findSummary",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getJourneyFindSummaries(t,r,a={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling getJourneyFindSummaries.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getJourneyFindSummaries.");const o=n.parse("/findSummary",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.journey_id=t),void 0!==r&&(c.environment_id=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.FindSummaryApiFp=function(e){return{createFindSummary(r,n){const i=(0,t.FindSummaryApiFetchParamCreator)(e).createFindSummary(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJourneyFindSummaries(r,n,i){const s=(0,t.FindSummaryApiFetchParamCreator)(e).getJourneyFindSummaries(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FindSummaryApiFactory=function(e,r,n){return{createFindSummary:(i,a)=>(0,t.FindSummaryApiFp)(e).createFindSummary(i,a)(r,n),getJourneyFindSummaries:(i,a,o)=>(0,t.FindSummaryApiFp)(e).getJourneyFindSummaries(i,a,o)(r,n)}};t.FindSummaryApi=class extends s{createFindSummary(e,r){return(0,t.FindSummaryApiFp)(this.configuration).createFindSummary(e,r)(this.fetch,this.basePath)}getJourneyFindSummaries(e,r,n){return(0,t.FindSummaryApiFp)(this.configuration).getJourneyFindSummaries(e,r,n)(this.fetch,this.basePath)}};t.FlowApiFetchParamCreator=function(e){return{batchPutFlows(t,r,a,o={}){if(null==t)throw new u("update","Required parameter update was null or undefined when calling batchPutFlows.");const s=n.parse("/flows",!0),p=Object.assign({method:"PUT"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}void 0!==r&&(l.branch=r),void 0!==a&&(l.force=a),c["Content-Type"]="application/json",s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers);return p.body=JSON.stringify(t||{}),{url:n.format(s),options:p}},createFlow(t,r,a={}){if(null==t)throw new u("flow","Required parameter flow was null or undefined when calling createFlow.");const o=n.parse("/flows",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.branch=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},getFlow(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFlow.");const o="/flows/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.sourceControlTag=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getFlowElements(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFlowElements.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getFlowElements.");const o="/flows/{id}/elements".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.environment_id=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getFlowVersion(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getFlowVersion.");if(null==r)throw new u("version","Required parameter version was null or undefined when calling getFlowVersion.");const o="/flows/{id}/{version}".replace("{id}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},listVersions(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling listVersions.");const a="/flows/{id}/version".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryFlows(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryFlows.");const h=n.parse("/flows",!0),y=Object.assign({method:"GET"},d),m={},f={};if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==t&&(f.organization_id=t),void 0!==r&&(f.flow_type=r),void 0!==a&&(f.reusable=a),void 0!==o&&(f.has_snippet=o),void 0!==s&&(f.snippetId=s),void 0!==p&&(f.branch=p),void 0!==c&&(f.limit=c),void 0!==l&&(f.cursor=l),h.query=Object.assign({},h.query,f,d.query),delete h.search,y.headers=Object.assign({},m,d.headers),{url:n.format(h),options:y}},recoverFlow(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverFlow.");const a="/recover/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeFlow(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeFlow.");const a="/flows/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateFlow(t,r,a,o,s,p={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateFlow.");if(null==r)throw new u("flow","Required parameter flow was null or undefined when calling updateFlow.");const c="/flows/{id}".replace("{id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"PATCH"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}void 0!==a&&(y.branch=a),void 0!==s&&(y.force=s),null!=o&&(h["If-Match"]=String(o)),h["Content-Type"]="application/json",l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers);return d.body=JSON.stringify(r||{}),{url:n.format(l),options:d}}}};t.FlowApiFp=function(e){return{batchPutFlows(r,n,i,s){const u=(0,t.FlowApiFetchParamCreator)(e).batchPutFlows(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createFlow(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).createFlow(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFlow(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).getFlow(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFlowElements(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).getFlowElements(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getFlowVersion(r,n,i){const s=(0,t.FlowApiFetchParamCreator)(e).getFlowVersion(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},listVersions(r,n){const i=(0,t.FlowApiFetchParamCreator)(e).listVersions(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryFlows(r,n,i,s,u,p,c,l,d){const h=(0,t.FlowApiFetchParamCreator)(e).queryFlows(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverFlow(r,n){const i=(0,t.FlowApiFetchParamCreator)(e).recoverFlow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeFlow(r,n){const i=(0,t.FlowApiFetchParamCreator)(e).removeFlow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateFlow(r,n,i,s,u,p){const c=(0,t.FlowApiFetchParamCreator)(e).updateFlow(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.FlowApiFactory=function(e,r,n){return{batchPutFlows:(i,a,o,s)=>(0,t.FlowApiFp)(e).batchPutFlows(i,a,o,s)(r,n),createFlow:(i,a,o)=>(0,t.FlowApiFp)(e).createFlow(i,a,o)(r,n),getFlow:(i,a,o)=>(0,t.FlowApiFp)(e).getFlow(i,a,o)(r,n),getFlowElements:(i,a,o)=>(0,t.FlowApiFp)(e).getFlowElements(i,a,o)(r,n),getFlowVersion:(i,a,o)=>(0,t.FlowApiFp)(e).getFlowVersion(i,a,o)(r,n),listVersions:(i,a)=>(0,t.FlowApiFp)(e).listVersions(i,a)(r,n),queryFlows:(i,a,o,s,u,p,c,l,d)=>(0,t.FlowApiFp)(e).queryFlows(i,a,o,s,u,p,c,l,d)(r,n),recoverFlow:(i,a)=>(0,t.FlowApiFp)(e).recoverFlow(i,a)(r,n),removeFlow:(i,a)=>(0,t.FlowApiFp)(e).removeFlow(i,a)(r,n),updateFlow:(i,a,o,s,u,p)=>(0,t.FlowApiFp)(e).updateFlow(i,a,o,s,u,p)(r,n)}};t.FlowApi=class extends s{batchPutFlows(e,r,n,i){return(0,t.FlowApiFp)(this.configuration).batchPutFlows(e,r,n,i)(this.fetch,this.basePath)}createFlow(e,r,n){return(0,t.FlowApiFp)(this.configuration).createFlow(e,r,n)(this.fetch,this.basePath)}getFlow(e,r,n){return(0,t.FlowApiFp)(this.configuration).getFlow(e,r,n)(this.fetch,this.basePath)}getFlowElements(e,r,n){return(0,t.FlowApiFp)(this.configuration).getFlowElements(e,r,n)(this.fetch,this.basePath)}getFlowVersion(e,r,n){return(0,t.FlowApiFp)(this.configuration).getFlowVersion(e,r,n)(this.fetch,this.basePath)}listVersions(e,r){return(0,t.FlowApiFp)(this.configuration).listVersions(e,r)(this.fetch,this.basePath)}queryFlows(e,r,n,i,a,o,s,u,p){return(0,t.FlowApiFp)(this.configuration).queryFlows(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}recoverFlow(e,r){return(0,t.FlowApiFp)(this.configuration).recoverFlow(e,r)(this.fetch,this.basePath)}removeFlow(e,r){return(0,t.FlowApiFp)(this.configuration).removeFlow(e,r)(this.fetch,this.basePath)}updateFlow(e,r,n,i,a,o){return(0,t.FlowApiFp)(this.configuration).updateFlow(e,r,n,i,a,o)(this.fetch,this.basePath)}};t.HealthApiFetchParamCreator=function(e){return{isAlive(t={}){const r=n.parse("/health/live",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},isHealthy(t={}){const r=n.parse("/health",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},isHealthyVerbose(t={}){const r=n.parse("/health/verbose",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}}}};t.HealthApiFp=function(e){return{isAlive(r){const n=(0,t.HealthApiFetchParamCreator)(e).isAlive(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},isHealthy(r){const n=(0,t.HealthApiFetchParamCreator)(e).isHealthy(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},isHealthyVerbose(r){const n=(0,t.HealthApiFetchParamCreator)(e).isHealthyVerbose(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.HealthApiFactory=function(e,r,n){return{isAlive:i=>(0,t.HealthApiFp)(e).isAlive(i)(r,n),isHealthy:i=>(0,t.HealthApiFp)(e).isHealthy(i)(r,n),isHealthyVerbose:i=>(0,t.HealthApiFp)(e).isHealthyVerbose(i)(r,n)}};t.HealthApi=class extends s{isAlive(e){return(0,t.HealthApiFp)(this.configuration).isAlive(e)(this.fetch,this.basePath)}isHealthy(e){return(0,t.HealthApiFp)(this.configuration).isHealthy(e)(this.fetch,this.basePath)}isHealthyVerbose(e){return(0,t.HealthApiFp)(this.configuration).isHealthyVerbose(e)(this.fetch,this.basePath)}};t.InsightApiFetchParamCreator=function(e){return{createInsight(t,r={}){if(null==t)throw new u("insight","Required parameter insight was null or undefined when calling createInsight.");const a=n.parse("/insights",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getInsight(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getInsight.");const a="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},putInsight(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling putInsight.");if(null==r)throw new u("insight","Required parameter insight was null or undefined when calling putInsight.");const o="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},queryInsights(t,r,a,o,s,u,p,c,l={}){const d=n.parse("/insights",!0),h=Object.assign({method:"GET"},l),y={},m={};if(e&&(e.username||e.password)&&(y.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;y.Authorization=t}return void 0!==t&&(m.organization_id=t),void 0!==r&&(m.workspace_id=r),void 0!==a&&(m.environment_id=a),void 0!==o&&(m.application_id=o),void 0!==s&&(m.archived=s),void 0!==u&&(m.insight_type=u),void 0!==p&&(m.limit=p),void 0!==c&&(m.cursor=c),d.query=Object.assign({},d.query,m,l.query),delete d.search,h.headers=Object.assign({},y,l.headers),{url:n.format(d),options:h}},removeInsight(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeInsight.");const a="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateInsight(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateInsight.");if(null==r)throw new u("insight","Required parameter insight was null or undefined when calling updateInsight.");const s="/insights/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.InsightApiFp=function(e){return{createInsight(r,n){const i=(0,t.InsightApiFetchParamCreator)(e).createInsight(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getInsight(r,n){const i=(0,t.InsightApiFetchParamCreator)(e).getInsight(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putInsight(r,n,i){const s=(0,t.InsightApiFetchParamCreator)(e).putInsight(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryInsights(r,n,i,s,u,p,c,l,d){const h=(0,t.InsightApiFetchParamCreator)(e).queryInsights(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeInsight(r,n){const i=(0,t.InsightApiFetchParamCreator)(e).removeInsight(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateInsight(r,n,i,s){const u=(0,t.InsightApiFetchParamCreator)(e).updateInsight(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.InsightApiFactory=function(e,r,n){return{createInsight:(i,a)=>(0,t.InsightApiFp)(e).createInsight(i,a)(r,n),getInsight:(i,a)=>(0,t.InsightApiFp)(e).getInsight(i,a)(r,n),putInsight:(i,a,o)=>(0,t.InsightApiFp)(e).putInsight(i,a,o)(r,n),queryInsights:(i,a,o,s,u,p,c,l,d)=>(0,t.InsightApiFp)(e).queryInsights(i,a,o,s,u,p,c,l,d)(r,n),removeInsight:(i,a)=>(0,t.InsightApiFp)(e).removeInsight(i,a)(r,n),updateInsight:(i,a,o,s)=>(0,t.InsightApiFp)(e).updateInsight(i,a,o,s)(r,n)}};t.InsightApi=class extends s{createInsight(e,r){return(0,t.InsightApiFp)(this.configuration).createInsight(e,r)(this.fetch,this.basePath)}getInsight(e,r){return(0,t.InsightApiFp)(this.configuration).getInsight(e,r)(this.fetch,this.basePath)}putInsight(e,r,n){return(0,t.InsightApiFp)(this.configuration).putInsight(e,r,n)(this.fetch,this.basePath)}queryInsights(e,r,n,i,a,o,s,u,p){return(0,t.InsightApiFp)(this.configuration).queryInsights(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}removeInsight(e,r){return(0,t.InsightApiFp)(this.configuration).removeInsight(e,r)(this.fetch,this.basePath)}updateInsight(e,r,n,i){return(0,t.InsightApiFp)(this.configuration).updateInsight(e,r,n,i)(this.fetch,this.basePath)}};t.IssueApiFetchParamCreator=function(e){return{commit(t,r,a={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling commit.");if(null==r)throw new u("If_Match","Required parameter If_Match was null or undefined when calling commit.");const o="/issues/{issueId}/commit".replace("{issueId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return null!=r&&(c["If-Match"]=String(r)),s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},createIssue(t,r,a={}){if(null==t)throw new u("issue","Required parameter issue was null or undefined when calling createIssue.");const o=n.parse("/issues",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.issue_tracker_id=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},getIssue(t,r={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling getIssue.");const a="/issues/{issueId}".replace("{issueId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getIssueSuggestions(t,r,a,o={}){if(null==t)throw new u("integrationId","Required parameter integrationId was null or undefined when calling getIssueSuggestions.");if(null==r)throw new u("project_id","Required parameter project_id was null or undefined when calling getIssueSuggestions.");const s="/integrations/{integrationId}/issues/suggestions".replace("{integrationId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.project_id=r),void 0!==a&&(d.query=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryIssuesByWorkspaceId(t,r,a,o,s,p={}){if(null==t)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling queryIssuesByWorkspaceId.");const c="/workspaces/{workspaceId}/issues".replace("{workspaceId}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==r&&(y.open=r),void 0!==a&&(y.linkedTo=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}},queryUncommittedByIntegrationId(t,r,a,o={}){if(null==t)throw new u("integrationId","Required parameter integrationId was null or undefined when calling queryUncommittedByIntegrationId.");const s="/integrations/{integrationId}/issues/uncommitted".replace("{integrationId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},removeIssue(t,r={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling removeIssue.");const a="/issues/{issueId}".replace("{issueId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateCommitted(t,r,a,o={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling updateCommitted.");const s="/issues/{issueId}/committed".replace("{issueId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateIssue(t,r,a,o={}){if(null==t)throw new u("issueId","Required parameter issueId was null or undefined when calling updateIssue.");const s="/issues/{issueId}".replace("{issueId}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.IssueApiFp=function(e){return{commit(r,n,i){const s=(0,t.IssueApiFetchParamCreator)(e).commit(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},createIssue(r,n,i){const s=(0,t.IssueApiFetchParamCreator)(e).createIssue(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssue(r,n){const i=(0,t.IssueApiFetchParamCreator)(e).getIssue(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssueSuggestions(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).getIssueSuggestions(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryIssuesByWorkspaceId(r,n,i,s,u,p){const c=(0,t.IssueApiFetchParamCreator)(e).queryIssuesByWorkspaceId(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryUncommittedByIntegrationId(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).queryUncommittedByIntegrationId(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeIssue(r,n){const i=(0,t.IssueApiFetchParamCreator)(e).removeIssue(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateCommitted(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).updateCommitted(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateIssue(r,n,i,s){const u=(0,t.IssueApiFetchParamCreator)(e).updateIssue(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.IssueApiFactory=function(e,r,n){return{commit:(i,a,o)=>(0,t.IssueApiFp)(e).commit(i,a,o)(r,n),createIssue:(i,a,o)=>(0,t.IssueApiFp)(e).createIssue(i,a,o)(r,n),getIssue:(i,a)=>(0,t.IssueApiFp)(e).getIssue(i,a)(r,n),getIssueSuggestions:(i,a,o,s)=>(0,t.IssueApiFp)(e).getIssueSuggestions(i,a,o,s)(r,n),queryIssuesByWorkspaceId:(i,a,o,s,u,p)=>(0,t.IssueApiFp)(e).queryIssuesByWorkspaceId(i,a,o,s,u,p)(r,n),queryUncommittedByIntegrationId:(i,a,o,s)=>(0,t.IssueApiFp)(e).queryUncommittedByIntegrationId(i,a,o,s)(r,n),removeIssue:(i,a)=>(0,t.IssueApiFp)(e).removeIssue(i,a)(r,n),updateCommitted:(i,a,o,s)=>(0,t.IssueApiFp)(e).updateCommitted(i,a,o,s)(r,n),updateIssue:(i,a,o,s)=>(0,t.IssueApiFp)(e).updateIssue(i,a,o,s)(r,n)}};t.IssueApi=class extends s{commit(e,r,n){return(0,t.IssueApiFp)(this.configuration).commit(e,r,n)(this.fetch,this.basePath)}createIssue(e,r,n){return(0,t.IssueApiFp)(this.configuration).createIssue(e,r,n)(this.fetch,this.basePath)}getIssue(e,r){return(0,t.IssueApiFp)(this.configuration).getIssue(e,r)(this.fetch,this.basePath)}getIssueSuggestions(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).getIssueSuggestions(e,r,n,i)(this.fetch,this.basePath)}queryIssuesByWorkspaceId(e,r,n,i,a,o){return(0,t.IssueApiFp)(this.configuration).queryIssuesByWorkspaceId(e,r,n,i,a,o)(this.fetch,this.basePath)}queryUncommittedByIntegrationId(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).queryUncommittedByIntegrationId(e,r,n,i)(this.fetch,this.basePath)}removeIssue(e,r){return(0,t.IssueApiFp)(this.configuration).removeIssue(e,r)(this.fetch,this.basePath)}updateCommitted(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).updateCommitted(e,r,n,i)(this.fetch,this.basePath)}updateIssue(e,r,n,i){return(0,t.IssueApiFp)(this.configuration).updateIssue(e,r,n,i)(this.fetch,this.basePath)}};t.JourneyApiFetchParamCreator=function(e){return{addLabelsToJourneys(t,r,a={}){if(null==t)throw new u("ids","Required parameter ids was null or undefined when calling addLabelsToJourneys.");if(null==r)throw new u("labels","Required parameter labels was null or undefined when calling addLabelsToJourneys.");const o=n.parse("/test/journeys/addLabels",!0),s=Object.assign({method:"PATCH"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}t&&(c.ids=t),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(r||{}),{url:n.format(o),options:s}},createJourney(t,r,a={}){if(null==t)throw new u("journey","Required parameter journey was null or undefined when calling createJourney.");const o=n.parse("/test/journeys",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==r&&(c.branch=r),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(t||{}),{url:n.format(o),options:s}},duplicateJourneyWithCustomLoginFlow(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling duplicateJourneyWithCustomLoginFlow.");if(null==r)throw new u("flow_id","Required parameter flow_id was null or undefined when calling duplicateJourneyWithCustomLoginFlow.");const o="/test/journey/{id}/duplicateCustomLogin".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);const l="application/json"===p.headers["Content-Type"];return p.body=l?JSON.stringify(r||{}):r||"",{url:n.format(s),options:p}},getJourney(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getJourney.");const o="/test/journey/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.sourceControlTag=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},listVersions(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling listVersions.");const a="/test/journey/{id}/version".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryJourneys(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryJourneys.");const h=n.parse("/test/journeys",!0),y=Object.assign({method:"GET"},d),m={},f={};if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==t&&(f.organization_id=t),r&&(f.include_labels=r),a&&(f.exclude_labels=a),o&&(f.include_test_case_ids=o),void 0!==s&&(f.branch=s),void 0!==p&&(f.branch_changes_only=p),void 0!==c&&(f.limit=c),void 0!==l&&(f.cursor=l),h.query=Object.assign({},h.query,f,d.query),delete h.search,y.headers=Object.assign({},m,d.headers),{url:n.format(h),options:y}},recoverJourney(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverJourney.");const a="/recover/test/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeJourney(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeJourney.");const a="/test/journey/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeJourneys(t,r={}){if(null==t)throw new u("journey_ids","Required parameter journey_ids was null or undefined when calling removeJourneys.");const a=n.parse("/test/journeys/removeMultiple",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},updateJourney(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateJourney.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateJourney.");const p="/test/journey/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==a&&(h.branch=a),null!=o&&(d["If-Match"]=String(o)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.JourneyApiFp=function(e){return{addLabelsToJourneys(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).addLabelsToJourneys(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createJourney(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).createJourney(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},duplicateJourneyWithCustomLoginFlow(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).duplicateJourneyWithCustomLoginFlow(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJourney(r,n,i){const s=(0,t.JourneyApiFetchParamCreator)(e).getJourney(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},listVersions(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).listVersions(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneys(r,n,i,s,u,p,c,l,d){const h=(0,t.JourneyApiFetchParamCreator)(e).queryJourneys(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverJourney(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).recoverJourney(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeJourney(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).removeJourney(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeJourneys(r,n){const i=(0,t.JourneyApiFetchParamCreator)(e).removeJourneys(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateJourney(r,n,i,s,u){const p=(0,t.JourneyApiFetchParamCreator)(e).updateJourney(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.JourneyApiFactory=function(e,r,n){return{addLabelsToJourneys:(i,a,o)=>(0,t.JourneyApiFp)(e).addLabelsToJourneys(i,a,o)(r,n),createJourney:(i,a,o)=>(0,t.JourneyApiFp)(e).createJourney(i,a,o)(r,n),duplicateJourneyWithCustomLoginFlow:(i,a,o)=>(0,t.JourneyApiFp)(e).duplicateJourneyWithCustomLoginFlow(i,a,o)(r,n),getJourney:(i,a,o)=>(0,t.JourneyApiFp)(e).getJourney(i,a,o)(r,n),listVersions:(i,a)=>(0,t.JourneyApiFp)(e).listVersions(i,a)(r,n),queryJourneys:(i,a,o,s,u,p,c,l,d)=>(0,t.JourneyApiFp)(e).queryJourneys(i,a,o,s,u,p,c,l,d)(r,n),recoverJourney:(i,a)=>(0,t.JourneyApiFp)(e).recoverJourney(i,a)(r,n),removeJourney:(i,a)=>(0,t.JourneyApiFp)(e).removeJourney(i,a)(r,n),removeJourneys:(i,a)=>(0,t.JourneyApiFp)(e).removeJourneys(i,a)(r,n),updateJourney:(i,a,o,s,u)=>(0,t.JourneyApiFp)(e).updateJourney(i,a,o,s,u)(r,n)}};t.JourneyApi=class extends s{addLabelsToJourneys(e,r,n){return(0,t.JourneyApiFp)(this.configuration).addLabelsToJourneys(e,r,n)(this.fetch,this.basePath)}createJourney(e,r,n){return(0,t.JourneyApiFp)(this.configuration).createJourney(e,r,n)(this.fetch,this.basePath)}duplicateJourneyWithCustomLoginFlow(e,r,n){return(0,t.JourneyApiFp)(this.configuration).duplicateJourneyWithCustomLoginFlow(e,r,n)(this.fetch,this.basePath)}getJourney(e,r,n){return(0,t.JourneyApiFp)(this.configuration).getJourney(e,r,n)(this.fetch,this.basePath)}listVersions(e,r){return(0,t.JourneyApiFp)(this.configuration).listVersions(e,r)(this.fetch,this.basePath)}queryJourneys(e,r,n,i,a,o,s,u,p){return(0,t.JourneyApiFp)(this.configuration).queryJourneys(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}recoverJourney(e,r){return(0,t.JourneyApiFp)(this.configuration).recoverJourney(e,r)(this.fetch,this.basePath)}removeJourney(e,r){return(0,t.JourneyApiFp)(this.configuration).removeJourney(e,r)(this.fetch,this.basePath)}removeJourneys(e,r){return(0,t.JourneyApiFp)(this.configuration).removeJourneys(e,r)(this.fetch,this.basePath)}updateJourney(e,r,n,i,a){return(0,t.JourneyApiFp)(this.configuration).updateJourney(e,r,n,i,a)(this.fetch,this.basePath)}};t.JourneyRunApiFetchParamCreator=function(e){return{createJourneyRun(t,r={}){if(null==t)throw new u("journeyRun","Required parameter journeyRun was null or undefined when calling createJourneyRun.");const a=n.parse("/journeyRuns",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},deleteJourneyRunFailureCategorization(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling deleteJourneyRunFailureCategorization.");const o="/journeyRun/{id}/failureCategorization".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"DELETE"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return null!=r&&(c["If-Match"]=String(r)),s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},duplicateTestRun(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling duplicateTestRun.");if(null==r)throw new u("testRunDuplicationRequest","Required parameter testRunDuplicationRequest was null or undefined when calling duplicateTestRun.");const o="/journeyRuns/{id}/duplicate".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getJourneyRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getJourneyRun.");const a="/journeyRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryJourneyRunInsights(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling queryJourneyRunInsights.");if(null==r)throw new u("insight_type","Required parameter insight_type was null or undefined when calling queryJourneyRunInsights.");const p="/journeyRun/{id}/insights".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.insight_type=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryJourneyRunStateDetections(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling queryJourneyRunStateDetections.");if(null==r)throw new u("category","Required parameter category was null or undefined when calling queryJourneyRunStateDetections.");const h="/journeyRun/{id}/stateDetections".replace("{id}",encodeURIComponent(String(t))),y=n.parse(h,!0),m=Object.assign({method:"GET"},d),f={},g={};if(e&&(e.username||e.password)&&(f.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;f.Authorization=t}return void 0!==r&&(g.category=r),void 0!==a&&(g.group_id=a),void 0!==o&&(g.start=o),void 0!==s&&(g.end=s),void 0!==p&&(g.current_state=p),void 0!==c&&(g.limit=c),void 0!==l&&(g.cursor=l),y.query=Object.assign({},y.query,g,d.query),delete y.search,m.headers=Object.assign({},f,d.headers),{url:n.format(y),options:m}},queryJourneyRunsByPlanAndJourney(t,r,a,o,s,p={}){if(null==t)throw new u("plan_id","Required parameter plan_id was null or undefined when calling queryJourneyRunsByPlanAndJourney.");if(null==r)throw new u("journey_id","Required parameter journey_id was null or undefined when calling queryJourneyRunsByPlanAndJourney.");const c="/journeyRuns/plan/{plan_id}/journey/{journey_id}".replace("{plan_id}",encodeURIComponent(String(t))).replace("{journey_id}",encodeURIComponent(String(r))),l=n.parse(c,!0),d=Object.assign({method:"GET"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==a&&(y.status=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers),{url:n.format(l),options:d}},queryJourneyRunsByPlanRun(t,r,a,o,s={}){if(null==t)throw new u("plan_run_id","Required parameter plan_run_id was null or undefined when calling queryJourneyRunsByPlanRun.");const p="/journeyRuns/planRun/{plan_run_id}".replace("{plan_run_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryJourneyRunsByWorkspace(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryJourneyRunsByWorkspace.");const p="/journeyRuns/workspace/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.status=r),void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryLatestJourneyRunByVmIdAndName(t,r,a={}){if(null==t)throw new u("virtual_machine_id","Required parameter virtual_machine_id was null or undefined when calling queryLatestJourneyRunByVmIdAndName.");if(null==r)throw new u("virtual_machine_name","Required parameter virtual_machine_name was null or undefined when calling queryLatestJourneyRunByVmIdAndName.");const o="/journeyRuns/virtualMachine/{virtual_machine_id}/{virtual_machine_name}".replace("{virtual_machine_id}",encodeURIComponent(String(t))).replace("{virtual_machine_name}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryRecentJourneyRunsByJourney(t,r,a,o={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling queryRecentJourneyRunsByJourney.");const s="/journeyRuns/journey/{journey_id}".replace("{journey_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryRecentJourneyRunsByJourneyAndPlan(t,r,a={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling queryRecentJourneyRunsByJourneyAndPlan.");if(null==r)throw new u("maxRunsPerJourney","Required parameter maxRunsPerJourney was null or undefined when calling queryRecentJourneyRunsByJourneyAndPlan.");const o="/journeyRuns/journey/{journey_id}/byPlan".replace("{journey_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.maxRunsPerJourney=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryRecentJourneyRunsByJourneyAndWorkspace(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryRecentJourneyRunsByJourneyAndWorkspace.");if(null==r)throw new u("maxRunsPerJourney","Required parameter maxRunsPerJourney was null or undefined when calling queryRecentJourneyRunsByJourneyAndWorkspace.");const o="/journeyRuns/workspace/{workspace_id}/byJourney".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.maxRunsPerJourney=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryTestRunSummaryByWorkspace(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestRunSummaryByWorkspace.");if(null==r)throw new u("testRunSummaryFilterOptions","Required parameter testRunSummaryFilterOptions was null or undefined when calling queryTestRunSummaryByWorkspace.");const o="/journeyRuns/workspace/{workspace_id}/querySummarys".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},removeJourneyRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeJourneyRun.");const a="/journeyRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},terminateJourneyRun(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminateJourneyRun.");const o="/journeyRun/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.terminationReason=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},updateJourneyRun(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateJourneyRun.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateJourneyRun.");const s="/journeyRuns/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateJourneyRunFailureCategorization(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateJourneyRunFailureCategorization.");if(null==r)throw new u("failure_category_id","Required parameter failure_category_id was null or undefined when calling updateJourneyRunFailureCategorization.");const s="/journeyRun/{id}/failureCategorization/{failure_category_id}".replace("{id}",encodeURIComponent(String(t))).replace("{failure_category_id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return null!=a&&(l["If-Match"]=String(a)),p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}}}};t.JourneyRunApiFp=function(e){return{createJourneyRun(r,n){const i=(0,t.JourneyRunApiFetchParamCreator)(e).createJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},deleteJourneyRunFailureCategorization(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).deleteJourneyRunFailureCategorization(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},duplicateTestRun(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).duplicateTestRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJourneyRun(r,n){const i=(0,t.JourneyRunApiFetchParamCreator)(e).getJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunInsights(r,n,i,s,u){const p=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunInsights(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunStateDetections(r,n,i,s,u,p,c,l,d){const h=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunStateDetections(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunsByPlanAndJourney(r,n,i,s,u,p){const c=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunsByPlanAndJourney(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunsByPlanRun(r,n,i,s,u){const p=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunsByPlanRun(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunsByWorkspace(r,n,i,s,u){const p=(0,t.JourneyRunApiFetchParamCreator)(e).queryJourneyRunsByWorkspace(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryLatestJourneyRunByVmIdAndName(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryLatestJourneyRunByVmIdAndName(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRecentJourneyRunsByJourney(r,n,i,s){const u=(0,t.JourneyRunApiFetchParamCreator)(e).queryRecentJourneyRunsByJourney(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRecentJourneyRunsByJourneyAndPlan(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryRecentJourneyRunsByJourneyAndPlan(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRecentJourneyRunsByJourneyAndWorkspace(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryRecentJourneyRunsByJourneyAndWorkspace(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestRunSummaryByWorkspace(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).queryTestRunSummaryByWorkspace(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeJourneyRun(r,n){const i=(0,t.JourneyRunApiFetchParamCreator)(e).removeJourneyRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},terminateJourneyRun(r,n,i){const s=(0,t.JourneyRunApiFetchParamCreator)(e).terminateJourneyRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateJourneyRun(r,n,i,s){const u=(0,t.JourneyRunApiFetchParamCreator)(e).updateJourneyRun(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateJourneyRunFailureCategorization(r,n,i,s){const u=(0,t.JourneyRunApiFetchParamCreator)(e).updateJourneyRunFailureCategorization(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.JourneyRunApiFactory=function(e,r,n){return{createJourneyRun:(i,a)=>(0,t.JourneyRunApiFp)(e).createJourneyRun(i,a)(r,n),deleteJourneyRunFailureCategorization:(i,a,o)=>(0,t.JourneyRunApiFp)(e).deleteJourneyRunFailureCategorization(i,a,o)(r,n),duplicateTestRun:(i,a,o)=>(0,t.JourneyRunApiFp)(e).duplicateTestRun(i,a,o)(r,n),getJourneyRun:(i,a)=>(0,t.JourneyRunApiFp)(e).getJourneyRun(i,a)(r,n),queryJourneyRunInsights:(i,a,o,s,u)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunInsights(i,a,o,s,u)(r,n),queryJourneyRunStateDetections:(i,a,o,s,u,p,c,l,d)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunStateDetections(i,a,o,s,u,p,c,l,d)(r,n),queryJourneyRunsByPlanAndJourney:(i,a,o,s,u,p)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunsByPlanAndJourney(i,a,o,s,u,p)(r,n),queryJourneyRunsByPlanRun:(i,a,o,s,u)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunsByPlanRun(i,a,o,s,u)(r,n),queryJourneyRunsByWorkspace:(i,a,o,s,u)=>(0,t.JourneyRunApiFp)(e).queryJourneyRunsByWorkspace(i,a,o,s,u)(r,n),queryLatestJourneyRunByVmIdAndName:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryLatestJourneyRunByVmIdAndName(i,a,o)(r,n),queryRecentJourneyRunsByJourney:(i,a,o,s)=>(0,t.JourneyRunApiFp)(e).queryRecentJourneyRunsByJourney(i,a,o,s)(r,n),queryRecentJourneyRunsByJourneyAndPlan:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryRecentJourneyRunsByJourneyAndPlan(i,a,o)(r,n),queryRecentJourneyRunsByJourneyAndWorkspace:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryRecentJourneyRunsByJourneyAndWorkspace(i,a,o)(r,n),queryTestRunSummaryByWorkspace:(i,a,o)=>(0,t.JourneyRunApiFp)(e).queryTestRunSummaryByWorkspace(i,a,o)(r,n),removeJourneyRun:(i,a)=>(0,t.JourneyRunApiFp)(e).removeJourneyRun(i,a)(r,n),terminateJourneyRun:(i,a,o)=>(0,t.JourneyRunApiFp)(e).terminateJourneyRun(i,a,o)(r,n),updateJourneyRun:(i,a,o,s)=>(0,t.JourneyRunApiFp)(e).updateJourneyRun(i,a,o,s)(r,n),updateJourneyRunFailureCategorization:(i,a,o,s)=>(0,t.JourneyRunApiFp)(e).updateJourneyRunFailureCategorization(i,a,o,s)(r,n)}};t.JourneyRunApi=class extends s{createJourneyRun(e,r){return(0,t.JourneyRunApiFp)(this.configuration).createJourneyRun(e,r)(this.fetch,this.basePath)}deleteJourneyRunFailureCategorization(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).deleteJourneyRunFailureCategorization(e,r,n)(this.fetch,this.basePath)}duplicateTestRun(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).duplicateTestRun(e,r,n)(this.fetch,this.basePath)}getJourneyRun(e,r){return(0,t.JourneyRunApiFp)(this.configuration).getJourneyRun(e,r)(this.fetch,this.basePath)}queryJourneyRunInsights(e,r,n,i,a){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunInsights(e,r,n,i,a)(this.fetch,this.basePath)}queryJourneyRunStateDetections(e,r,n,i,a,o,s,u,p){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunStateDetections(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryJourneyRunsByPlanAndJourney(e,r,n,i,a,o){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunsByPlanAndJourney(e,r,n,i,a,o)(this.fetch,this.basePath)}queryJourneyRunsByPlanRun(e,r,n,i,a){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunsByPlanRun(e,r,n,i,a)(this.fetch,this.basePath)}queryJourneyRunsByWorkspace(e,r,n,i,a){return(0,t.JourneyRunApiFp)(this.configuration).queryJourneyRunsByWorkspace(e,r,n,i,a)(this.fetch,this.basePath)}queryLatestJourneyRunByVmIdAndName(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryLatestJourneyRunByVmIdAndName(e,r,n)(this.fetch,this.basePath)}queryRecentJourneyRunsByJourney(e,r,n,i){return(0,t.JourneyRunApiFp)(this.configuration).queryRecentJourneyRunsByJourney(e,r,n,i)(this.fetch,this.basePath)}queryRecentJourneyRunsByJourneyAndPlan(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryRecentJourneyRunsByJourneyAndPlan(e,r,n)(this.fetch,this.basePath)}queryRecentJourneyRunsByJourneyAndWorkspace(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryRecentJourneyRunsByJourneyAndWorkspace(e,r,n)(this.fetch,this.basePath)}queryTestRunSummaryByWorkspace(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).queryTestRunSummaryByWorkspace(e,r,n)(this.fetch,this.basePath)}removeJourneyRun(e,r){return(0,t.JourneyRunApiFp)(this.configuration).removeJourneyRun(e,r)(this.fetch,this.basePath)}terminateJourneyRun(e,r,n){return(0,t.JourneyRunApiFp)(this.configuration).terminateJourneyRun(e,r,n)(this.fetch,this.basePath)}updateJourneyRun(e,r,n,i){return(0,t.JourneyRunApiFp)(this.configuration).updateJourneyRun(e,r,n,i)(this.fetch,this.basePath)}updateJourneyRunFailureCategorization(e,r,n,i){return(0,t.JourneyRunApiFp)(this.configuration).updateJourneyRunFailureCategorization(e,r,n,i)(this.fetch,this.basePath)}};t.LinkAgentApiFetchParamCreator=function(e){return{cleanupLinkAgents(t={}){const r=n.parse("/cron/link/agents/cleanup",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getLinkServerForAgent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getLinkServerForAgent.");const a="/link/agents/{id}/server".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},linkAgentHeartbeat(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling linkAgentHeartbeat.");const o="/link/agents/{id}/heartbeat".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},onLinkAgentStartup(t,r={}){if(null==t)throw new u("agent","Required parameter agent was null or undefined when calling onLinkAgentStartup.");const a=n.parse("/link/agents",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},queryLinkAgents(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryLinkAgents.");const c=n.parse("/link/agents",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.label=r),void 0!==a&&(h.max_heartbeat_age_sec=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},redirectToLatestDistribution(t,r,a,o={}){const s=n.parse("/link/agents/distribution-redirect",!0),u=Object.assign({method:"GET"},o),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.branch=t),void 0!==r&&(c.format=r),void 0!==a&&(c.auto_update=a),s.query=Object.assign({},s.query,c,o.query),delete s.search,u.headers=Object.assign({},p,o.headers),{url:n.format(s),options:u}},removeLinkAgent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeLinkAgent.");const a="/link/agents/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},terminateLinkAgent(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminateLinkAgent.");const a="/link/agents/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.LinkAgentApiFp=function(e){return{cleanupLinkAgents(r){const n=(0,t.LinkAgentApiFetchParamCreator)(e).cleanupLinkAgents(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getLinkServerForAgent(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).getLinkServerForAgent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},linkAgentHeartbeat(r,n,i){const s=(0,t.LinkAgentApiFetchParamCreator)(e).linkAgentHeartbeat(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},onLinkAgentStartup(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).onLinkAgentStartup(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryLinkAgents(r,n,i,s,u,p){const c=(0,t.LinkAgentApiFetchParamCreator)(e).queryLinkAgents(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},redirectToLatestDistribution(r,n,i,s){const u=(0,t.LinkAgentApiFetchParamCreator)(e).redirectToLatestDistribution(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeLinkAgent(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).removeLinkAgent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},terminateLinkAgent(r,n){const i=(0,t.LinkAgentApiFetchParamCreator)(e).terminateLinkAgent(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.LinkAgentApiFactory=function(e,r,n){return{cleanupLinkAgents:i=>(0,t.LinkAgentApiFp)(e).cleanupLinkAgents(i)(r,n),getLinkServerForAgent:(i,a)=>(0,t.LinkAgentApiFp)(e).getLinkServerForAgent(i,a)(r,n),linkAgentHeartbeat:(i,a,o)=>(0,t.LinkAgentApiFp)(e).linkAgentHeartbeat(i,a,o)(r,n),onLinkAgentStartup:(i,a)=>(0,t.LinkAgentApiFp)(e).onLinkAgentStartup(i,a)(r,n),queryLinkAgents:(i,a,o,s,u,p)=>(0,t.LinkAgentApiFp)(e).queryLinkAgents(i,a,o,s,u,p)(r,n),redirectToLatestDistribution:(i,a,o,s)=>(0,t.LinkAgentApiFp)(e).redirectToLatestDistribution(i,a,o,s)(r,n),removeLinkAgent:(i,a)=>(0,t.LinkAgentApiFp)(e).removeLinkAgent(i,a)(r,n),terminateLinkAgent:(i,a)=>(0,t.LinkAgentApiFp)(e).terminateLinkAgent(i,a)(r,n)}};t.LinkAgentApi=class extends s{cleanupLinkAgents(e){return(0,t.LinkAgentApiFp)(this.configuration).cleanupLinkAgents(e)(this.fetch,this.basePath)}getLinkServerForAgent(e,r){return(0,t.LinkAgentApiFp)(this.configuration).getLinkServerForAgent(e,r)(this.fetch,this.basePath)}linkAgentHeartbeat(e,r,n){return(0,t.LinkAgentApiFp)(this.configuration).linkAgentHeartbeat(e,r,n)(this.fetch,this.basePath)}onLinkAgentStartup(e,r){return(0,t.LinkAgentApiFp)(this.configuration).onLinkAgentStartup(e,r)(this.fetch,this.basePath)}queryLinkAgents(e,r,n,i,a,o){return(0,t.LinkAgentApiFp)(this.configuration).queryLinkAgents(e,r,n,i,a,o)(this.fetch,this.basePath)}redirectToLatestDistribution(e,r,n,i){return(0,t.LinkAgentApiFp)(this.configuration).redirectToLatestDistribution(e,r,n,i)(this.fetch,this.basePath)}removeLinkAgent(e,r){return(0,t.LinkAgentApiFp)(this.configuration).removeLinkAgent(e,r)(this.fetch,this.basePath)}terminateLinkAgent(e,r){return(0,t.LinkAgentApiFp)(this.configuration).terminateLinkAgent(e,r)(this.fetch,this.basePath)}};t.LinkLabelApiFetchParamCreator=function(e){return{deleteLinkStack(t,r,a={}){if(null==t)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling deleteLinkStack.");if(null==r)throw new u("label","Required parameter label was null or undefined when calling deleteLinkStack.");const o="/link/{workspaceId}/label/{label}".replace("{workspaceId}",encodeURIComponent(String(t))).replace("{label}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"DELETE"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getLinkLabel(t,r,a={}){if(null==t)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling getLinkLabel.");if(null==r)throw new u("label","Required parameter label was null or undefined when calling getLinkLabel.");const o="/link/{workspaceId}/label/{label}".replace("{workspaceId}",encodeURIComponent(String(t))).replace("{label}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},queryLinkLabels(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryLinkLabels.");const a=n.parse("/link/labels",!0),o=Object.assign({method:"GET"},r),s={},p={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}return void 0!==t&&(p.workspace_id=t),a.query=Object.assign({},a.query,p,r.query),delete a.search,o.headers=Object.assign({},s,r.headers),{url:n.format(a),options:o}}}};t.LinkLabelApiFp=function(e){return{deleteLinkStack(r,n,i){const s=(0,t.LinkLabelApiFetchParamCreator)(e).deleteLinkStack(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getLinkLabel(r,n,i){const s=(0,t.LinkLabelApiFetchParamCreator)(e).getLinkLabel(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryLinkLabels(r,n){const i=(0,t.LinkLabelApiFetchParamCreator)(e).queryLinkLabels(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.LinkLabelApiFactory=function(e,r,n){return{deleteLinkStack:(i,a,o)=>(0,t.LinkLabelApiFp)(e).deleteLinkStack(i,a,o)(r,n),getLinkLabel:(i,a,o)=>(0,t.LinkLabelApiFp)(e).getLinkLabel(i,a,o)(r,n),queryLinkLabels:(i,a)=>(0,t.LinkLabelApiFp)(e).queryLinkLabels(i,a)(r,n)}};t.LinkLabelApi=class extends s{deleteLinkStack(e,r,n){return(0,t.LinkLabelApiFp)(this.configuration).deleteLinkStack(e,r,n)(this.fetch,this.basePath)}getLinkLabel(e,r,n){return(0,t.LinkLabelApiFp)(this.configuration).getLinkLabel(e,r,n)(this.fetch,this.basePath)}queryLinkLabels(e,r){return(0,t.LinkLabelApiFp)(this.configuration).queryLinkLabels(e,r)(this.fetch,this.basePath)}};t.LinkServerApiFetchParamCreator=function(e){return{cleanupLinkServers(t={}){const r=n.parse("/cron/link/servers/cleanup",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getLinkServer(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getLinkServer.");const a="/link/servers/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},linkServerHeartbeat(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling linkServerHeartbeat.");const o="/link/servers/{id}/heartbeat".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},onLinkServerStartup(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling onLinkServerStartup.");if(null==r)throw new u("If_Match","Required parameter If_Match was null or undefined when calling onLinkServerStartup.");const o="/link/servers/{id}/startup".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return null!=r&&(c["If-Match"]=String(r)),s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},removeLinkServer(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeLinkServer.");const a="/link/servers/{id}/heartbeat".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},selectLinkServer(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling selectLinkServer.");if(null==r)throw new u("label","Required parameter label was null or undefined when calling selectLinkServer.");const o=n.parse("/link/servers/select",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.workspace_id=t),void 0!==r&&(c.label=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.LinkServerApiFp=function(e){return{cleanupLinkServers(r){const n=(0,t.LinkServerApiFetchParamCreator)(e).cleanupLinkServers(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getLinkServer(r,n){const i=(0,t.LinkServerApiFetchParamCreator)(e).getLinkServer(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},linkServerHeartbeat(r,n,i){const s=(0,t.LinkServerApiFetchParamCreator)(e).linkServerHeartbeat(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},onLinkServerStartup(r,n,i){const s=(0,t.LinkServerApiFetchParamCreator)(e).onLinkServerStartup(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeLinkServer(r,n){const i=(0,t.LinkServerApiFetchParamCreator)(e).removeLinkServer(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},selectLinkServer(r,n,i){const s=(0,t.LinkServerApiFetchParamCreator)(e).selectLinkServer(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.LinkServerApiFactory=function(e,r,n){return{cleanupLinkServers:i=>(0,t.LinkServerApiFp)(e).cleanupLinkServers(i)(r,n),getLinkServer:(i,a)=>(0,t.LinkServerApiFp)(e).getLinkServer(i,a)(r,n),linkServerHeartbeat:(i,a,o)=>(0,t.LinkServerApiFp)(e).linkServerHeartbeat(i,a,o)(r,n),onLinkServerStartup:(i,a,o)=>(0,t.LinkServerApiFp)(e).onLinkServerStartup(i,a,o)(r,n),removeLinkServer:(i,a)=>(0,t.LinkServerApiFp)(e).removeLinkServer(i,a)(r,n),selectLinkServer:(i,a,o)=>(0,t.LinkServerApiFp)(e).selectLinkServer(i,a,o)(r,n)}};t.LinkServerApi=class extends s{cleanupLinkServers(e){return(0,t.LinkServerApiFp)(this.configuration).cleanupLinkServers(e)(this.fetch,this.basePath)}getLinkServer(e,r){return(0,t.LinkServerApiFp)(this.configuration).getLinkServer(e,r)(this.fetch,this.basePath)}linkServerHeartbeat(e,r,n){return(0,t.LinkServerApiFp)(this.configuration).linkServerHeartbeat(e,r,n)(this.fetch,this.basePath)}onLinkServerStartup(e,r,n){return(0,t.LinkServerApiFp)(this.configuration).onLinkServerStartup(e,r,n)(this.fetch,this.basePath)}removeLinkServer(e,r){return(0,t.LinkServerApiFp)(this.configuration).removeLinkServer(e,r)(this.fetch,this.basePath)}selectLinkServer(e,r,n){return(0,t.LinkServerApiFp)(this.configuration).selectLinkServer(e,r,n)(this.fetch,this.basePath)}};t.LoginApiFetchParamCreator=function(e){return{determineLoginProvider(t,r={}){if(null==t)throw new u("login_provider_query","Required parameter login_provider_query was null or undefined when calling determineLoginProvider.");const a=n.parse("/login/provider",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},emailLoginLink(t,r={}){if(null==t)throw new u("email_login_request","Required parameter email_login_request was null or undefined when calling emailLoginLink.");const a=n.parse("/login/email",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},generateJwt(t={}){const r=n.parse("/login/jwt",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getJwks(t={}){const r=n.parse("/.well-known/jwks.json",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}}}};t.LoginApiFp=function(e){return{determineLoginProvider(r,n){const i=(0,t.LoginApiFetchParamCreator)(e).determineLoginProvider(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},emailLoginLink(r,n){const i=(0,t.LoginApiFetchParamCreator)(e).emailLoginLink(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},generateJwt(r){const n=(0,t.LoginApiFetchParamCreator)(e).generateJwt(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getJwks(r){const n=(0,t.LoginApiFetchParamCreator)(e).getJwks(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.LoginApiFactory=function(e,r,n){return{determineLoginProvider:(i,a)=>(0,t.LoginApiFp)(e).determineLoginProvider(i,a)(r,n),emailLoginLink:(i,a)=>(0,t.LoginApiFp)(e).emailLoginLink(i,a)(r,n),generateJwt:i=>(0,t.LoginApiFp)(e).generateJwt(i)(r,n),getJwks:i=>(0,t.LoginApiFp)(e).getJwks(i)(r,n)}};t.LoginApi=class extends s{determineLoginProvider(e,r){return(0,t.LoginApiFp)(this.configuration).determineLoginProvider(e,r)(this.fetch,this.basePath)}emailLoginLink(e,r){return(0,t.LoginApiFp)(this.configuration).emailLoginLink(e,r)(this.fetch,this.basePath)}generateJwt(e){return(0,t.LoginApiFp)(this.configuration).generateJwt(e)(this.fetch,this.basePath)}getJwks(e){return(0,t.LoginApiFp)(this.configuration).getJwks(e)(this.fetch,this.basePath)}};t.MablscriptOverrideApiFetchParamCreator=function(e){return{createSelectorOverride(t,r,a={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling createSelectorOverride.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling createSelectorOverride.");const o="/tests/testScripts/{journey_id}/overrides".replace("{journey_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},getTestScriptOverrides(t,r,a,o={}){if(null==t)throw new u("journey_id","Required parameter journey_id was null or undefined when calling getTestScriptOverrides.");if(null==r)throw new u("environment_id","Required parameter environment_id was null or undefined when calling getTestScriptOverrides.");const s="/tests/testScripts/{journey_id}/overrides".replace("{journey_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.environment_id=r),void 0!==a&&(d.selector_override_limit=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},rollbackMablscriptOverride(t,r,a={}){if(null==t)throw new u("mablscript_override_id","Required parameter mablscript_override_id was null or undefined when calling rollbackMablscriptOverride.");if(null==r)throw new u("rollback_time","Required parameter rollback_time was null or undefined when calling rollbackMablscriptOverride.");const o="/selector/overrides/{mablscript_override_id}/rollback/{rollback_time}".replace("{mablscript_override_id}",encodeURIComponent(String(t))).replace("{rollback_time}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},rollbackMablscriptOverridesFromTestRun(t,r={}){if(null==t)throw new u("test_run_id","Required parameter test_run_id was null or undefined when calling rollbackMablscriptOverridesFromTestRun.");const a="/tests/testScripts/overrides/{test_run_id}".replace("{test_run_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.MablscriptOverrideApiFp=function(e){return{createSelectorOverride(r,n,i){const s=(0,t.MablscriptOverrideApiFetchParamCreator)(e).createSelectorOverride(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getTestScriptOverrides(r,n,i,s){const u=(0,t.MablscriptOverrideApiFetchParamCreator)(e).getTestScriptOverrides(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},rollbackMablscriptOverride(r,n,i){const s=(0,t.MablscriptOverrideApiFetchParamCreator)(e).rollbackMablscriptOverride(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},rollbackMablscriptOverridesFromTestRun(r,n){const i=(0,t.MablscriptOverrideApiFetchParamCreator)(e).rollbackMablscriptOverridesFromTestRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.MablscriptOverrideApiFactory=function(e,r,n){return{createSelectorOverride:(i,a,o)=>(0,t.MablscriptOverrideApiFp)(e).createSelectorOverride(i,a,o)(r,n),getTestScriptOverrides:(i,a,o,s)=>(0,t.MablscriptOverrideApiFp)(e).getTestScriptOverrides(i,a,o,s)(r,n),rollbackMablscriptOverride:(i,a,o)=>(0,t.MablscriptOverrideApiFp)(e).rollbackMablscriptOverride(i,a,o)(r,n),rollbackMablscriptOverridesFromTestRun:(i,a)=>(0,t.MablscriptOverrideApiFp)(e).rollbackMablscriptOverridesFromTestRun(i,a)(r,n)}};t.MablscriptOverrideApi=class extends s{createSelectorOverride(e,r,n){return(0,t.MablscriptOverrideApiFp)(this.configuration).createSelectorOverride(e,r,n)(this.fetch,this.basePath)}getTestScriptOverrides(e,r,n,i){return(0,t.MablscriptOverrideApiFp)(this.configuration).getTestScriptOverrides(e,r,n,i)(this.fetch,this.basePath)}rollbackMablscriptOverride(e,r,n){return(0,t.MablscriptOverrideApiFp)(this.configuration).rollbackMablscriptOverride(e,r,n)(this.fetch,this.basePath)}rollbackMablscriptOverridesFromTestRun(e,r){return(0,t.MablscriptOverrideApiFp)(this.configuration).rollbackMablscriptOverridesFromTestRun(e,r)(this.fetch,this.basePath)}};t.MabltronDistributionApiFetchParamCreator=function(e){return{downloadInstaller(t,r,a={}){if(null==t)throw new u("platform","Required parameter platform was null or undefined when calling downloadInstaller.");const o=n.parse("/mabltron/download",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.platform=t),void 0!==r&&(c.packaging=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getLatestInstallerInfo(t,r,a={}){if(null==t)throw new u("platform","Required parameter platform was null or undefined when calling getLatestInstallerInfo.");const o=n.parse("/mabltron/latest",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.platform=t),void 0!==r&&(c.packaging=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}}}};t.MabltronDistributionApiFp=function(e){return{downloadInstaller(r,n,i){const s=(0,t.MabltronDistributionApiFetchParamCreator)(e).downloadInstaller(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getLatestInstallerInfo(r,n,i){const s=(0,t.MabltronDistributionApiFetchParamCreator)(e).getLatestInstallerInfo(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.MabltronDistributionApiFactory=function(e,r,n){return{downloadInstaller:(i,a,o)=>(0,t.MabltronDistributionApiFp)(e).downloadInstaller(i,a,o)(r,n),getLatestInstallerInfo:(i,a,o)=>(0,t.MabltronDistributionApiFp)(e).getLatestInstallerInfo(i,a,o)(r,n)}};t.MabltronDistributionApi=class extends s{downloadInstaller(e,r,n){return(0,t.MabltronDistributionApiFp)(this.configuration).downloadInstaller(e,r,n)(this.fetch,this.basePath)}getLatestInstallerInfo(e,r,n){return(0,t.MabltronDistributionApiFp)(this.configuration).getLatestInstallerInfo(e,r,n)(this.fetch,this.basePath)}};t.MailboxApiFetchParamCreator=function(e){return{createMailboxAddress(t,r={}){if(null==t)throw new u("mailbox","Required parameter mailbox was null or undefined when calling createMailboxAddress.");const a=n.parse("/mailbox/address",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},deleteMailboxAddress(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling deleteMailboxAddress.");const a="/mailbox/address/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getMailboxAddress(t,r={}){if(null==t)throw new u("email_address","Required parameter email_address was null or undefined when calling getMailboxAddress.");const a="/mailbox/address/{email_address}".replace("{email_address}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.MailboxApiFp=function(e){return{createMailboxAddress(r,n){const i=(0,t.MailboxApiFetchParamCreator)(e).createMailboxAddress(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},deleteMailboxAddress(r,n){const i=(0,t.MailboxApiFetchParamCreator)(e).deleteMailboxAddress(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getMailboxAddress(r,n){const i=(0,t.MailboxApiFetchParamCreator)(e).getMailboxAddress(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.MailboxApiFactory=function(e,r,n){return{createMailboxAddress:(i,a)=>(0,t.MailboxApiFp)(e).createMailboxAddress(i,a)(r,n),deleteMailboxAddress:(i,a)=>(0,t.MailboxApiFp)(e).deleteMailboxAddress(i,a)(r,n),getMailboxAddress:(i,a)=>(0,t.MailboxApiFp)(e).getMailboxAddress(i,a)(r,n)}};t.MailboxApi=class extends s{createMailboxAddress(e,r){return(0,t.MailboxApiFp)(this.configuration).createMailboxAddress(e,r)(this.fetch,this.basePath)}deleteMailboxAddress(e,r){return(0,t.MailboxApiFp)(this.configuration).deleteMailboxAddress(e,r)(this.fetch,this.basePath)}getMailboxAddress(e,r){return(0,t.MailboxApiFp)(this.configuration).getMailboxAddress(e,r)(this.fetch,this.basePath)}};t.NoteApiFetchParamCreator=function(e){return{createNote(t,r={}){if(null==t)throw new u("note","Required parameter note was null or undefined when calling createNote.");const a=n.parse("/note",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getNote(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getNote.");const a="/note/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryNotes(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryNotes.");if(null==r)throw new u("resource_type","Required parameter resource_type was null or undefined when calling queryNotes.");if(null==a)throw new u("resource_id","Required parameter resource_id was null or undefined when calling queryNotes.");const c=n.parse("/note",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.resource_type=r),void 0!==a&&(h.resource_id=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},recoverNote(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverNote.");const a="/recover/note/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeNote(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeNote.");const a="/note/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.NoteApiFp=function(e){return{createNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).createNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).getNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryNotes(r,n,i,s,u,p){const c=(0,t.NoteApiFetchParamCreator)(e).queryNotes(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).recoverNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeNote(r,n){const i=(0,t.NoteApiFetchParamCreator)(e).removeNote(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.NoteApiFactory=function(e,r,n){return{createNote:(i,a)=>(0,t.NoteApiFp)(e).createNote(i,a)(r,n),getNote:(i,a)=>(0,t.NoteApiFp)(e).getNote(i,a)(r,n),queryNotes:(i,a,o,s,u,p)=>(0,t.NoteApiFp)(e).queryNotes(i,a,o,s,u,p)(r,n),recoverNote:(i,a)=>(0,t.NoteApiFp)(e).recoverNote(i,a)(r,n),removeNote:(i,a)=>(0,t.NoteApiFp)(e).removeNote(i,a)(r,n)}};t.NoteApi=class extends s{createNote(e,r){return(0,t.NoteApiFp)(this.configuration).createNote(e,r)(this.fetch,this.basePath)}getNote(e,r){return(0,t.NoteApiFp)(this.configuration).getNote(e,r)(this.fetch,this.basePath)}queryNotes(e,r,n,i,a,o){return(0,t.NoteApiFp)(this.configuration).queryNotes(e,r,n,i,a,o)(this.fetch,this.basePath)}recoverNote(e,r){return(0,t.NoteApiFp)(this.configuration).recoverNote(e,r)(this.fetch,this.basePath)}removeNote(e,r){return(0,t.NoteApiFp)(this.configuration).removeNote(e,r)(this.fetch,this.basePath)}};t.OauthTokenApiFetchParamCreator=function(e){return{createOauthToken(t,r={}){if(null==t)throw new u("oauthToken","Required parameter oauthToken was null or undefined when calling createOauthToken.");const a=n.parse("/oauth",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},exchangeOauthCode(t,r={}){if(null==t)throw new u("oauthCode","Required parameter oauthCode was null or undefined when calling exchangeOauthCode.");const a=n.parse("/oauth/exchange",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getOauthToken(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getOauthToken.");const a="/oauth/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOauthTokens(t,r,a,o,s={}){const u=n.parse("/oauth",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.token_type=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},removeOauthToken(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeOauthToken.");const a="/oauth/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateOauthToken(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateOauthToken.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateOauthToken.");const s="/oauth/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.OauthTokenApiFp=function(e){return{createOauthToken(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).createOauthToken(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},exchangeOauthCode(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).exchangeOauthCode(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getOauthToken(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).getOauthToken(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryOauthTokens(r,n,i,s,u){const p=(0,t.OauthTokenApiFetchParamCreator)(e).queryOauthTokens(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeOauthToken(r,n){const i=(0,t.OauthTokenApiFetchParamCreator)(e).removeOauthToken(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateOauthToken(r,n,i,s){const u=(0,t.OauthTokenApiFetchParamCreator)(e).updateOauthToken(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.OauthTokenApiFactory=function(e,r,n){return{createOauthToken:(i,a)=>(0,t.OauthTokenApiFp)(e).createOauthToken(i,a)(r,n),exchangeOauthCode:(i,a)=>(0,t.OauthTokenApiFp)(e).exchangeOauthCode(i,a)(r,n),getOauthToken:(i,a)=>(0,t.OauthTokenApiFp)(e).getOauthToken(i,a)(r,n),queryOauthTokens:(i,a,o,s,u)=>(0,t.OauthTokenApiFp)(e).queryOauthTokens(i,a,o,s,u)(r,n),removeOauthToken:(i,a)=>(0,t.OauthTokenApiFp)(e).removeOauthToken(i,a)(r,n),updateOauthToken:(i,a,o,s)=>(0,t.OauthTokenApiFp)(e).updateOauthToken(i,a,o,s)(r,n)}};t.OauthTokenApi=class extends s{createOauthToken(e,r){return(0,t.OauthTokenApiFp)(this.configuration).createOauthToken(e,r)(this.fetch,this.basePath)}exchangeOauthCode(e,r){return(0,t.OauthTokenApiFp)(this.configuration).exchangeOauthCode(e,r)(this.fetch,this.basePath)}getOauthToken(e,r){return(0,t.OauthTokenApiFp)(this.configuration).getOauthToken(e,r)(this.fetch,this.basePath)}queryOauthTokens(e,r,n,i,a){return(0,t.OauthTokenApiFp)(this.configuration).queryOauthTokens(e,r,n,i,a)(this.fetch,this.basePath)}removeOauthToken(e,r){return(0,t.OauthTokenApiFp)(this.configuration).removeOauthToken(e,r)(this.fetch,this.basePath)}updateOauthToken(e,r,n,i){return(0,t.OauthTokenApiFp)(this.configuration).updateOauthToken(e,r,n,i)(this.fetch,this.basePath)}};t.OrganizationApiFetchParamCreator=function(e){return{acknowledgeWorkspaceRole(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling acknowledgeWorkspaceRole.");const a="/user-roles/acknowledge/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},copyOrganization(t,r,a={}){if(null==t)throw new u("source_workspace_id","Required parameter source_workspace_id was null or undefined when calling copyOrganization.");if(null==r)throw new u("destination_workspace_id","Required parameter destination_workspace_id was null or undefined when calling copyOrganization.");const o=n.parse("/copy/organizations",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.source_workspace_id=t),void 0!==r&&(c.destination_workspace_id=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},createOrganization(t,r={}){if(null==t)throw new u("organization","Required parameter organization was null or undefined when calling createOrganization.");const a=n.parse("/organizations",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getOrganization(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getOrganization.");const a="/organizations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getTombstonedOrganization(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getTombstonedOrganization.");const a="/organizations/tombstoned/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserRoles.");const a="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOrganizations(t,r,a,o={}){const s=n.parse("/organizations",!0),u=Object.assign({method:"GET"},o),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.account_id=t),void 0!==r&&(c.limit=r),void 0!==a&&(c.cursor=a),s.query=Object.assign({},s.query,c,o.query),delete s.search,u.headers=Object.assign({},p,o.headers),{url:n.format(s),options:u}},removeOrganization(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeOrganization.");const a="/organizations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateOrganization(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateOrganization.");if(null==r)throw new u("organization","Required parameter organization was null or undefined when calling updateOrganization.");const s="/organizations/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserRoles.");const s="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.OrganizationApiFp=function(e){return{acknowledgeWorkspaceRole(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).acknowledgeWorkspaceRole(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},copyOrganization(r,n,i){const s=(0,t.OrganizationApiFetchParamCreator)(e).copyOrganization(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},createOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).createOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).getOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getTombstonedOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).getTombstonedOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserRoles(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).getUserRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryOrganizations(r,n,i,s){const u=(0,t.OrganizationApiFetchParamCreator)(e).queryOrganizations(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeOrganization(r,n){const i=(0,t.OrganizationApiFetchParamCreator)(e).removeOrganization(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateOrganization(r,n,i,s){const u=(0,t.OrganizationApiFetchParamCreator)(e).updateOrganization(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserRoles(r,n,i,s){const u=(0,t.OrganizationApiFetchParamCreator)(e).updateUserRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.OrganizationApiFactory=function(e,r,n){return{acknowledgeWorkspaceRole:(i,a)=>(0,t.OrganizationApiFp)(e).acknowledgeWorkspaceRole(i,a)(r,n),copyOrganization:(i,a,o)=>(0,t.OrganizationApiFp)(e).copyOrganization(i,a,o)(r,n),createOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).createOrganization(i,a)(r,n),getOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).getOrganization(i,a)(r,n),getTombstonedOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).getTombstonedOrganization(i,a)(r,n),getUserRoles:(i,a)=>(0,t.OrganizationApiFp)(e).getUserRoles(i,a)(r,n),queryOrganizations:(i,a,o,s)=>(0,t.OrganizationApiFp)(e).queryOrganizations(i,a,o,s)(r,n),removeOrganization:(i,a)=>(0,t.OrganizationApiFp)(e).removeOrganization(i,a)(r,n),updateOrganization:(i,a,o,s)=>(0,t.OrganizationApiFp)(e).updateOrganization(i,a,o,s)(r,n),updateUserRoles:(i,a,o,s)=>(0,t.OrganizationApiFp)(e).updateUserRoles(i,a,o,s)(r,n)}};t.OrganizationApi=class extends s{acknowledgeWorkspaceRole(e,r){return(0,t.OrganizationApiFp)(this.configuration).acknowledgeWorkspaceRole(e,r)(this.fetch,this.basePath)}copyOrganization(e,r,n){return(0,t.OrganizationApiFp)(this.configuration).copyOrganization(e,r,n)(this.fetch,this.basePath)}createOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).createOrganization(e,r)(this.fetch,this.basePath)}getOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).getOrganization(e,r)(this.fetch,this.basePath)}getTombstonedOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).getTombstonedOrganization(e,r)(this.fetch,this.basePath)}getUserRoles(e,r){return(0,t.OrganizationApiFp)(this.configuration).getUserRoles(e,r)(this.fetch,this.basePath)}queryOrganizations(e,r,n,i){return(0,t.OrganizationApiFp)(this.configuration).queryOrganizations(e,r,n,i)(this.fetch,this.basePath)}removeOrganization(e,r){return(0,t.OrganizationApiFp)(this.configuration).removeOrganization(e,r)(this.fetch,this.basePath)}updateOrganization(e,r,n,i){return(0,t.OrganizationApiFp)(this.configuration).updateOrganization(e,r,n,i)(this.fetch,this.basePath)}updateUserRoles(e,r,n,i){return(0,t.OrganizationApiFp)(this.configuration).updateUserRoles(e,r,n,i)(this.fetch,this.basePath)}};t.OrganizationInvitationApiFetchParamCreator=function(e){return{acceptOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling acceptOrganizationInvitation.");const a="/organizations/invitations/{id}/accept".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},createOrganizationInvitation(t,r={}){if(null==t)throw new u("organizationInvitation","Required parameter organizationInvitation was null or undefined when calling createOrganizationInvitation.");const a=n.parse("/organizations/invitations",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getOrganizationInvitation.");const a="/organizations/invitations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOrganizationInvitations(t,r,a,o,s,u={}){const p=n.parse("/organizations/invitations",!0),c=Object.assign({method:"GET"},u),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.invitation_type=r),void 0!==a&&(d.invitee_email=a),void 0!==o&&(d.limit=o),void 0!==s&&(d.cursor=s),p.query=Object.assign({},p.query,d,u.query),delete p.search,c.headers=Object.assign({},l,u.headers),{url:n.format(p),options:c}},removeOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeOrganizationInvitation.");const a="/organizations/invitations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},resendOrganizationInvitation(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling resendOrganizationInvitation.");const a="/organizations/invitations/{id}/resend".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateAcceptUriAndResendOrganizationInvitation(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateAcceptUriAndResendOrganizationInvitation.");if(null==r)throw new u("invitationAcceptUriTemplate","Required parameter invitationAcceptUriTemplate was null or undefined when calling updateAcceptUriAndResendOrganizationInvitation.");const o="/organizations/invitations/{id}/resend".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.OrganizationInvitationApiFp=function(e){return{acceptOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).acceptOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).createOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).getOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryOrganizationInvitations(r,n,i,s,u,p){const c=(0,t.OrganizationInvitationApiFetchParamCreator)(e).queryOrganizationInvitations(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).removeOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},resendOrganizationInvitation(r,n){const i=(0,t.OrganizationInvitationApiFetchParamCreator)(e).resendOrganizationInvitation(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateAcceptUriAndResendOrganizationInvitation(r,n,i){const s=(0,t.OrganizationInvitationApiFetchParamCreator)(e).updateAcceptUriAndResendOrganizationInvitation(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.OrganizationInvitationApiFactory=function(e,r,n){return{acceptOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).acceptOrganizationInvitation(i,a)(r,n),createOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).createOrganizationInvitation(i,a)(r,n),getOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).getOrganizationInvitation(i,a)(r,n),queryOrganizationInvitations:(i,a,o,s,u,p)=>(0,t.OrganizationInvitationApiFp)(e).queryOrganizationInvitations(i,a,o,s,u,p)(r,n),removeOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).removeOrganizationInvitation(i,a)(r,n),resendOrganizationInvitation:(i,a)=>(0,t.OrganizationInvitationApiFp)(e).resendOrganizationInvitation(i,a)(r,n),updateAcceptUriAndResendOrganizationInvitation:(i,a,o)=>(0,t.OrganizationInvitationApiFp)(e).updateAcceptUriAndResendOrganizationInvitation(i,a,o)(r,n)}};t.OrganizationInvitationApi=class extends s{acceptOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).acceptOrganizationInvitation(e,r)(this.fetch,this.basePath)}createOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).createOrganizationInvitation(e,r)(this.fetch,this.basePath)}getOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).getOrganizationInvitation(e,r)(this.fetch,this.basePath)}queryOrganizationInvitations(e,r,n,i,a,o){return(0,t.OrganizationInvitationApiFp)(this.configuration).queryOrganizationInvitations(e,r,n,i,a,o)(this.fetch,this.basePath)}removeOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).removeOrganizationInvitation(e,r)(this.fetch,this.basePath)}resendOrganizationInvitation(e,r){return(0,t.OrganizationInvitationApiFp)(this.configuration).resendOrganizationInvitation(e,r)(this.fetch,this.basePath)}updateAcceptUriAndResendOrganizationInvitation(e,r,n){return(0,t.OrganizationInvitationApiFp)(this.configuration).updateAcceptUriAndResendOrganizationInvitation(e,r,n)(this.fetch,this.basePath)}};t.PlanRunApiFetchParamCreator=function(e){return{categorizeAllFailures(t,r,a,o={}){if(null==t)throw new u("plan_run_id","Required parameter plan_run_id was null or undefined when calling categorizeAllFailures.");if(null==r)throw new u("failure_categorization","Required parameter failure_categorization was null or undefined when calling categorizeAllFailures.");const s="/planRun/{plan_run_id}/failureCategorization".replace("{plan_run_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}void 0!==a&&(d.override_existing_failure_categorizations=a),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},categorizeFailuresForDeploymentEvent(t,r,a,o={}){if(null==t)throw new u("deployment_event_id","Required parameter deployment_event_id was null or undefined when calling categorizeFailuresForDeploymentEvent.");if(null==r)throw new u("failure_categorization","Required parameter failure_categorization was null or undefined when calling categorizeFailuresForDeploymentEvent.");const s="/planRun/deployment/{deployment_event_id}/failureCategorization".replace("{deployment_event_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}void 0!==a&&(d.override_existing_failure_categorizations=a),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},createPlanRun(t,r={}){if(null==t)throw new u("planRunOptions","Required parameter planRunOptions was null or undefined when calling createPlanRun.");const a=n.parse("/planRuns",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},duplicatePlanRun(t,r={}){if(null==t)throw new u("planRunDuplicationRequest","Required parameter planRunDuplicationRequest was null or undefined when calling duplicatePlanRun.");const a=n.parse("/planRuns/duplicate",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getPlanRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getPlanRun.");const a="/planRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryPlanRuns(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryPlanRuns.");const h="/planRuns/workspace/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),y=n.parse(h,!0),m=Object.assign({method:"GET"},d),f={},g={};if(e&&(e.username||e.password)&&(f.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;f.Authorization=t}return void 0!==r&&(g.environment_id=r),void 0!==a&&(g.status=a),void 0!==o&&(g.plan_id=o),void 0!==s&&(g.limit=s),void 0!==p&&(g.cursor=p),void 0!==c&&(g.populate_test_script_executions=c),void 0!==l&&(g.min_created_time=l),y.query=Object.assign({},y.query,g,d.query),delete y.search,m.headers=Object.assign({},f,d.headers),{url:n.format(y),options:m}},queryPlanRunsByEventId(t,r,a,o={}){if(null==t)throw new u("deployment_id","Required parameter deployment_id was null or undefined when calling queryPlanRunsByEventId.");const s="/planRuns/deployment/{deployment_id}".replace("{deployment_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},removePlanRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removePlanRun.");const a="/planRuns/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},rerunPlanRun(t,r,a={}){if(null==t)throw new u("planRunId","Required parameter planRunId was null or undefined when calling rerunPlanRun.");const o="/planRun/{planRunId}/rerun".replace("{planRunId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.failedJourneysOnly=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},terminatePlanRun(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling terminatePlanRun.");const a="/planRun/{id}/terminate".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updatePlanRun(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updatePlanRun.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updatePlanRun.");const s="/planRuns/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},webhookExecutionComplete(t,r,a={}){if(null==t)throw new u("planRunId","Required parameter planRunId was null or undefined when calling webhookExecutionComplete.");if(null==r)throw new u("status","Required parameter status was null or undefined when calling webhookExecutionComplete.");const o="/planRun/{planRunId}/webhooks".replace("{planRunId}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.PlanRunApiFp=function(e){return{categorizeAllFailures(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).categorizeAllFailures(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},categorizeFailuresForDeploymentEvent(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).categorizeFailuresForDeploymentEvent(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},createPlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).createPlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},duplicatePlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).duplicatePlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getPlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).getPlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryPlanRuns(r,n,i,s,u,p,c,l,d){const h=(0,t.PlanRunApiFetchParamCreator)(e).queryPlanRuns(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryPlanRunsByEventId(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).queryPlanRunsByEventId(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removePlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).removePlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},rerunPlanRun(r,n,i){const s=(0,t.PlanRunApiFetchParamCreator)(e).rerunPlanRun(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},terminatePlanRun(r,n){const i=(0,t.PlanRunApiFetchParamCreator)(e).terminatePlanRun(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updatePlanRun(r,n,i,s){const u=(0,t.PlanRunApiFetchParamCreator)(e).updatePlanRun(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},webhookExecutionComplete(r,n,i){const s=(0,t.PlanRunApiFetchParamCreator)(e).webhookExecutionComplete(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.PlanRunApiFactory=function(e,r,n){return{categorizeAllFailures:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).categorizeAllFailures(i,a,o,s)(r,n),categorizeFailuresForDeploymentEvent:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).categorizeFailuresForDeploymentEvent(i,a,o,s)(r,n),createPlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).createPlanRun(i,a)(r,n),duplicatePlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).duplicatePlanRun(i,a)(r,n),getPlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).getPlanRun(i,a)(r,n),queryPlanRuns:(i,a,o,s,u,p,c,l,d)=>(0,t.PlanRunApiFp)(e).queryPlanRuns(i,a,o,s,u,p,c,l,d)(r,n),queryPlanRunsByEventId:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).queryPlanRunsByEventId(i,a,o,s)(r,n),removePlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).removePlanRun(i,a)(r,n),rerunPlanRun:(i,a,o)=>(0,t.PlanRunApiFp)(e).rerunPlanRun(i,a,o)(r,n),terminatePlanRun:(i,a)=>(0,t.PlanRunApiFp)(e).terminatePlanRun(i,a)(r,n),updatePlanRun:(i,a,o,s)=>(0,t.PlanRunApiFp)(e).updatePlanRun(i,a,o,s)(r,n),webhookExecutionComplete:(i,a,o)=>(0,t.PlanRunApiFp)(e).webhookExecutionComplete(i,a,o)(r,n)}};t.PlanRunApi=class extends s{categorizeAllFailures(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).categorizeAllFailures(e,r,n,i)(this.fetch,this.basePath)}categorizeFailuresForDeploymentEvent(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).categorizeFailuresForDeploymentEvent(e,r,n,i)(this.fetch,this.basePath)}createPlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).createPlanRun(e,r)(this.fetch,this.basePath)}duplicatePlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).duplicatePlanRun(e,r)(this.fetch,this.basePath)}getPlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).getPlanRun(e,r)(this.fetch,this.basePath)}queryPlanRuns(e,r,n,i,a,o,s,u,p){return(0,t.PlanRunApiFp)(this.configuration).queryPlanRuns(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryPlanRunsByEventId(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).queryPlanRunsByEventId(e,r,n,i)(this.fetch,this.basePath)}removePlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).removePlanRun(e,r)(this.fetch,this.basePath)}rerunPlanRun(e,r,n){return(0,t.PlanRunApiFp)(this.configuration).rerunPlanRun(e,r,n)(this.fetch,this.basePath)}terminatePlanRun(e,r){return(0,t.PlanRunApiFp)(this.configuration).terminatePlanRun(e,r)(this.fetch,this.basePath)}updatePlanRun(e,r,n,i){return(0,t.PlanRunApiFp)(this.configuration).updatePlanRun(e,r,n,i)(this.fetch,this.basePath)}webhookExecutionComplete(e,r,n){return(0,t.PlanRunApiFp)(this.configuration).webhookExecutionComplete(e,r,n)(this.fetch,this.basePath)}};t.ReportApiFetchParamCreator=function(e){return{createArtifactUploadAndRetrievalUrls(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createArtifactUploadAndRetrievalUrls.");const o="/workspaces/{workspace_id}/artifacts/urls".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.kms_unsupported=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},createReportSetting(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling createReportSetting.");if(null==r)throw new u("report_setting","Required parameter report_setting was null or undefined when calling createReportSetting.");const o=n.parse("/report/settings",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==t&&(c.workspace_id=t),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(r||{}),{url:n.format(o),options:s}},deleteReportSetting(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling deleteReportSetting.");const a="/report/settings/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getArtifact(t,r,a={}){if(null==t)throw new u("path","Required parameter path was null or undefined when calling getArtifact.");const o=n.parse("/artifact",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.path=t),void 0!==r&&(c.kms_unsupported=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getArtifactUrl(t,r,a={}){if(null==t)throw new u("path","Required parameter path was null or undefined when calling getArtifactUrl.");const o=n.parse("/artifact/url",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.path=t),void 0!==r&&(c.kms_unsupported=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getImageUrls(t,r,a={}){if(null==t)throw new u("artifact_uri","Required parameter artifact_uri was null or undefined when calling getImageUrls.");const o=n.parse("/artifact/image/url",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.artifact_uri=t),void 0!==r&&(c.kms_unsupported=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getReportSettings(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getReportSettings.");const o=n.parse("/report/settings",!0),s=Object.assign({method:"GET"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return void 0!==t&&(c.workspace_id=t),void 0!==r&&(c.cursor=r),o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers),{url:n.format(o),options:s}},getStepRunScreenshotUrls(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getStepRunScreenshotUrls.");if(null==r)throw new u("step_run_id","Required parameter step_run_id was null or undefined when calling getStepRunScreenshotUrls.");const s="/workspaces/{workspace_id}/reports/stepRuns/{step_run_id}/screenshot".replace("{workspace_id}",encodeURIComponent(String(t))).replace("{step_run_id}",encodeURIComponent(String(r))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==a&&(d.kms_unsupported=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},putMetrics(t,r={}){if(null==t)throw new u("metrics","Required parameter metrics was null or undefined when calling putMetrics.");const a=n.parse("/report/metrics",!0),o=Object.assign({method:"PUT"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},queryAggregateDaily(t,r,a,o,s,p,c,l,d={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryAggregateDaily.");if(null==r)throw new u("start_time","Required parameter start_time was null or undefined when calling queryAggregateDaily.");if(null==a)throw new u("metric_type","Required parameter metric_type was null or undefined when calling queryAggregateDaily.");if(null==o)throw new u("aggregation_invariant_id","Required parameter aggregation_invariant_id was null or undefined when calling queryAggregateDaily.");const h="/workspaces/{workspace_id}/reports/qualityMetrics/metricDailyTrend".replace("{workspace_id}",encodeURIComponent(String(t))),y=n.parse(h,!0),m=Object.assign({method:"GET"},d),f={},g={};if(e&&(e.username||e.password)&&(f.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;f.Authorization=t}return void 0!==r&&(g.start_time=r),void 0!==s&&(g.end_time=s),void 0!==p&&(g.timezone=p),void 0!==a&&(g.metric_type=a),void 0!==o&&(g.aggregation_invariant_id=o),void 0!==c&&(g.limit=c),void 0!==l&&(g.cursor=l),y.query=Object.assign({},y.query,g,d.query),delete y.search,m.headers=Object.assign({},f,d.headers),{url:n.format(y),options:m}},queryJourneyRunFailureCategoryHistory(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryJourneyRunFailureCategoryHistory.");const p="/workspaces/{workspace_id}/reports/failureCategoryHistory".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.history_days=r),void 0!==a&&(h.environment_id=a),void 0!==o&&(h.application_id=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryJourneyRunStatusHistory(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryJourneyRunStatusHistory.");const p="/workspaces/{workspace_id}/reports/runStatusHistory".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.history_days=r),void 0!==a&&(h.environment_id=a),void 0!==o&&(h.application_id=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryQualityMetric(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryQualityMetric.");if(null==r)throw new u("aggregation_run_id","Required parameter aggregation_run_id was null or undefined when calling queryQualityMetric.");if(null==a)throw new u("group_id","Required parameter group_id was null or undefined when calling queryQualityMetric.");if(null==o)throw new u("metric_types","Required parameter metric_types was null or undefined when calling queryQualityMetric.");const p="/workspaces/{workspace_id}/reports/qualityMetricsSummary".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"GET"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==r&&(h.aggregation_run_id=r),void 0!==a&&(h.group_id=a),o&&(h.metric_types=o),c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers),{url:n.format(c),options:l}},queryTestSuitePerformanceOverTime(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestSuitePerformanceOverTime.");if(null==r)throw new u("test_suite_filter_options","Required parameter test_suite_filter_options was null or undefined when calling queryTestSuitePerformanceOverTime.");const c="/workspaces/{workspace_id}/reports/testSuitePerformanceOverTime".replace("{workspace_id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"POST"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}void 0!==a&&(y.timezone=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),h["Content-Type"]="application/json",l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers);return d.body=JSON.stringify(r||{}),{url:n.format(l),options:d}},queryTestSuiteStatus(t,r,a,o,s={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestSuiteStatus.");const p="/workspaces/{workspace_id}/reports/testSuiteStatus".replace("{workspace_id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"POST"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==a&&(h.limit=a),void 0!==o&&(h.cursor=o),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}},queryTestSuiteStatusOverTime(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryTestSuiteStatusOverTime.");if(null==r)throw new u("test_suite_filter_options","Required parameter test_suite_filter_options was null or undefined when calling queryTestSuiteStatusOverTime.");const c="/workspaces/{workspace_id}/reports/testSuiteStatusOverTime".replace("{workspace_id}",encodeURIComponent(String(t))),l=n.parse(c,!0),d=Object.assign({method:"POST"},p),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}void 0!==a&&(y.timezone=a),void 0!==o&&(y.limit=o),void 0!==s&&(y.cursor=s),h["Content-Type"]="application/json",l.query=Object.assign({},l.query,y,p.query),delete l.search,d.headers=Object.assign({},h,p.headers);return d.body=JSON.stringify(r||{}),{url:n.format(l),options:d}},queryWorkspaceActivity(t,r,a,o,s,p,c,l,d,h={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryWorkspaceActivity.");const y="/workspaces/{workspace_id}/reports/activityLog".replace("{workspace_id}",encodeURIComponent(String(t))),m=n.parse(y,!0),f=Object.assign({method:"GET"},h),g={},w={};if(e&&(e.username||e.password)&&(g.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;g.Authorization=t}return void 0!==r&&(w.action_type=r),void 0!==a&&(w.entity_type=a),void 0!==o&&(w.entity_name=o),void 0!==s&&(w.actor_id=s),void 0!==p&&(w.start_time=p),void 0!==c&&(w.end_time=c),void 0!==l&&(w.limit=l),void 0!==d&&(w.cursor=d),m.query=Object.assign({},m.query,w,h.query),delete m.search,f.headers=Object.assign({},g,h.headers),{url:n.format(m),options:f}},queryWorkspaceArtifacts(t,r,a,o={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryWorkspaceArtifacts.");if(null==r)throw new u("query","Required parameter query was null or undefined when calling queryWorkspaceArtifacts.");const s="/workspaces/{workspace_id}/reports/artifacts".replace("{workspace_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"POST"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}void 0!==a&&(d.kms_unsupported=a),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},retrieveMetrics(t,r,a,o,s,p={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling retrieveMetrics.");if(null==r)throw new u("metric_type","Required parameter metric_type was null or undefined when calling retrieveMetrics.");if(null==a)throw new u("metric_id","Required parameter metric_id was null or undefined when calling retrieveMetrics.");if(null==o)throw new u("start","Required parameter start was null or undefined when calling retrieveMetrics.");const c=n.parse("/report/metrics",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.organization_id=t),void 0!==r&&(h.metric_type=r),void 0!==a&&(h.metric_id=a),void 0!==o&&(h.start=o),void 0!==s&&(h.end=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},updateReportSetting(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateReportSetting.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateReportSetting.");const o="/report/settings/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PATCH"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.ReportApiFp=function(e){return{createArtifactUploadAndRetrievalUrls(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).createArtifactUploadAndRetrievalUrls(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createReportSetting(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).createReportSetting(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},deleteReportSetting(r,n){const i=(0,t.ReportApiFetchParamCreator)(e).deleteReportSetting(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getArtifact(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getArtifact(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getArtifactUrl(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getArtifactUrl(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getImageUrls(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getImageUrls(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getReportSettings(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).getReportSettings(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getStepRunScreenshotUrls(r,n,i,s){const u=(0,t.ReportApiFetchParamCreator)(e).getStepRunScreenshotUrls(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putMetrics(r,n){const i=(0,t.ReportApiFetchParamCreator)(e).putMetrics(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryAggregateDaily(r,n,i,s,u,p,c,l,d){const h=(0,t.ReportApiFetchParamCreator)(e).queryAggregateDaily(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunFailureCategoryHistory(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryJourneyRunFailureCategoryHistory(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryJourneyRunStatusHistory(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryJourneyRunStatusHistory(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryQualityMetric(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryQualityMetric(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestSuitePerformanceOverTime(r,n,i,s,u,p){const c=(0,t.ReportApiFetchParamCreator)(e).queryTestSuitePerformanceOverTime(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestSuiteStatus(r,n,i,s,u){const p=(0,t.ReportApiFetchParamCreator)(e).queryTestSuiteStatus(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryTestSuiteStatusOverTime(r,n,i,s,u,p){const c=(0,t.ReportApiFetchParamCreator)(e).queryTestSuiteStatusOverTime(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryWorkspaceActivity(r,n,i,s,u,p,c,l,d,h){const y=(0,t.ReportApiFetchParamCreator)(e).queryWorkspaceActivity(r,n,i,s,u,p,c,l,d,h);return(e=a,t=o)=>e(t+y.url,y.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryWorkspaceArtifacts(r,n,i,s){const u=(0,t.ReportApiFetchParamCreator)(e).queryWorkspaceArtifacts(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},retrieveMetrics(r,n,i,s,u,p){const c=(0,t.ReportApiFetchParamCreator)(e).retrieveMetrics(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateReportSetting(r,n,i){const s=(0,t.ReportApiFetchParamCreator)(e).updateReportSetting(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ReportApiFactory=function(e,r,n){return{createArtifactUploadAndRetrievalUrls:(i,a,o)=>(0,t.ReportApiFp)(e).createArtifactUploadAndRetrievalUrls(i,a,o)(r,n),createReportSetting:(i,a,o)=>(0,t.ReportApiFp)(e).createReportSetting(i,a,o)(r,n),deleteReportSetting:(i,a)=>(0,t.ReportApiFp)(e).deleteReportSetting(i,a)(r,n),getArtifact:(i,a,o)=>(0,t.ReportApiFp)(e).getArtifact(i,a,o)(r,n),getArtifactUrl:(i,a,o)=>(0,t.ReportApiFp)(e).getArtifactUrl(i,a,o)(r,n),getImageUrls:(i,a,o)=>(0,t.ReportApiFp)(e).getImageUrls(i,a,o)(r,n),getReportSettings:(i,a,o)=>(0,t.ReportApiFp)(e).getReportSettings(i,a,o)(r,n),getStepRunScreenshotUrls:(i,a,o,s)=>(0,t.ReportApiFp)(e).getStepRunScreenshotUrls(i,a,o,s)(r,n),putMetrics:(i,a)=>(0,t.ReportApiFp)(e).putMetrics(i,a)(r,n),queryAggregateDaily:(i,a,o,s,u,p,c,l,d)=>(0,t.ReportApiFp)(e).queryAggregateDaily(i,a,o,s,u,p,c,l,d)(r,n),queryJourneyRunFailureCategoryHistory:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryJourneyRunFailureCategoryHistory(i,a,o,s,u)(r,n),queryJourneyRunStatusHistory:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryJourneyRunStatusHistory(i,a,o,s,u)(r,n),queryQualityMetric:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryQualityMetric(i,a,o,s,u)(r,n),queryTestSuitePerformanceOverTime:(i,a,o,s,u,p)=>(0,t.ReportApiFp)(e).queryTestSuitePerformanceOverTime(i,a,o,s,u,p)(r,n),queryTestSuiteStatus:(i,a,o,s,u)=>(0,t.ReportApiFp)(e).queryTestSuiteStatus(i,a,o,s,u)(r,n),queryTestSuiteStatusOverTime:(i,a,o,s,u,p)=>(0,t.ReportApiFp)(e).queryTestSuiteStatusOverTime(i,a,o,s,u,p)(r,n),queryWorkspaceActivity:(i,a,o,s,u,p,c,l,d,h)=>(0,t.ReportApiFp)(e).queryWorkspaceActivity(i,a,o,s,u,p,c,l,d,h)(r,n),queryWorkspaceArtifacts:(i,a,o,s)=>(0,t.ReportApiFp)(e).queryWorkspaceArtifacts(i,a,o,s)(r,n),retrieveMetrics:(i,a,o,s,u,p)=>(0,t.ReportApiFp)(e).retrieveMetrics(i,a,o,s,u,p)(r,n),updateReportSetting:(i,a,o)=>(0,t.ReportApiFp)(e).updateReportSetting(i,a,o)(r,n)}};t.ReportApi=class extends s{createArtifactUploadAndRetrievalUrls(e,r,n){return(0,t.ReportApiFp)(this.configuration).createArtifactUploadAndRetrievalUrls(e,r,n)(this.fetch,this.basePath)}createReportSetting(e,r,n){return(0,t.ReportApiFp)(this.configuration).createReportSetting(e,r,n)(this.fetch,this.basePath)}deleteReportSetting(e,r){return(0,t.ReportApiFp)(this.configuration).deleteReportSetting(e,r)(this.fetch,this.basePath)}getArtifact(e,r,n){return(0,t.ReportApiFp)(this.configuration).getArtifact(e,r,n)(this.fetch,this.basePath)}getArtifactUrl(e,r,n){return(0,t.ReportApiFp)(this.configuration).getArtifactUrl(e,r,n)(this.fetch,this.basePath)}getImageUrls(e,r,n){return(0,t.ReportApiFp)(this.configuration).getImageUrls(e,r,n)(this.fetch,this.basePath)}getReportSettings(e,r,n){return(0,t.ReportApiFp)(this.configuration).getReportSettings(e,r,n)(this.fetch,this.basePath)}getStepRunScreenshotUrls(e,r,n,i){return(0,t.ReportApiFp)(this.configuration).getStepRunScreenshotUrls(e,r,n,i)(this.fetch,this.basePath)}putMetrics(e,r){return(0,t.ReportApiFp)(this.configuration).putMetrics(e,r)(this.fetch,this.basePath)}queryAggregateDaily(e,r,n,i,a,o,s,u,p){return(0,t.ReportApiFp)(this.configuration).queryAggregateDaily(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryJourneyRunFailureCategoryHistory(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryJourneyRunFailureCategoryHistory(e,r,n,i,a)(this.fetch,this.basePath)}queryJourneyRunStatusHistory(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryJourneyRunStatusHistory(e,r,n,i,a)(this.fetch,this.basePath)}queryQualityMetric(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryQualityMetric(e,r,n,i,a)(this.fetch,this.basePath)}queryTestSuitePerformanceOverTime(e,r,n,i,a,o){return(0,t.ReportApiFp)(this.configuration).queryTestSuitePerformanceOverTime(e,r,n,i,a,o)(this.fetch,this.basePath)}queryTestSuiteStatus(e,r,n,i,a){return(0,t.ReportApiFp)(this.configuration).queryTestSuiteStatus(e,r,n,i,a)(this.fetch,this.basePath)}queryTestSuiteStatusOverTime(e,r,n,i,a,o){return(0,t.ReportApiFp)(this.configuration).queryTestSuiteStatusOverTime(e,r,n,i,a,o)(this.fetch,this.basePath)}queryWorkspaceActivity(e,r,n,i,a,o,s,u,p,c){return(0,t.ReportApiFp)(this.configuration).queryWorkspaceActivity(e,r,n,i,a,o,s,u,p,c)(this.fetch,this.basePath)}queryWorkspaceArtifacts(e,r,n,i){return(0,t.ReportApiFp)(this.configuration).queryWorkspaceArtifacts(e,r,n,i)(this.fetch,this.basePath)}retrieveMetrics(e,r,n,i,a,o){return(0,t.ReportApiFp)(this.configuration).retrieveMetrics(e,r,n,i,a,o)(this.fetch,this.basePath)}updateReportSetting(e,r,n){return(0,t.ReportApiFp)(this.configuration).updateReportSetting(e,r,n)(this.fetch,this.basePath)}};t.RoleApiFetchParamCreator=function(e){return{acknowledgeWorkspaceRole(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling acknowledgeWorkspaceRole.");const a="/user-roles/acknowledge/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanyRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanyRoles.");const a="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserRoles.");const a="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateUserCompanyRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserCompanyRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserCompanyRoles.");const s="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserRoles.");const s="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.RoleApiFp=function(e){return{acknowledgeWorkspaceRole(r,n){const i=(0,t.RoleApiFetchParamCreator)(e).acknowledgeWorkspaceRole(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getUserCompanyRoles(r,n){const i=(0,t.RoleApiFetchParamCreator)(e).getUserCompanyRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserRoles(r,n){const i=(0,t.RoleApiFetchParamCreator)(e).getUserRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserCompanyRoles(r,n,i,s){const u=(0,t.RoleApiFetchParamCreator)(e).updateUserCompanyRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserRoles(r,n,i,s){const u=(0,t.RoleApiFetchParamCreator)(e).updateUserRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.RoleApiFactory=function(e,r,n){return{acknowledgeWorkspaceRole:(i,a)=>(0,t.RoleApiFp)(e).acknowledgeWorkspaceRole(i,a)(r,n),getUserCompanyRoles:(i,a)=>(0,t.RoleApiFp)(e).getUserCompanyRoles(i,a)(r,n),getUserRoles:(i,a)=>(0,t.RoleApiFp)(e).getUserRoles(i,a)(r,n),updateUserCompanyRoles:(i,a,o,s)=>(0,t.RoleApiFp)(e).updateUserCompanyRoles(i,a,o,s)(r,n),updateUserRoles:(i,a,o,s)=>(0,t.RoleApiFp)(e).updateUserRoles(i,a,o,s)(r,n)}};t.RoleApi=class extends s{acknowledgeWorkspaceRole(e,r){return(0,t.RoleApiFp)(this.configuration).acknowledgeWorkspaceRole(e,r)(this.fetch,this.basePath)}getUserCompanyRoles(e,r){return(0,t.RoleApiFp)(this.configuration).getUserCompanyRoles(e,r)(this.fetch,this.basePath)}getUserRoles(e,r){return(0,t.RoleApiFp)(this.configuration).getUserRoles(e,r)(this.fetch,this.basePath)}updateUserCompanyRoles(e,r,n,i){return(0,t.RoleApiFp)(this.configuration).updateUserCompanyRoles(e,r,n,i)(this.fetch,this.basePath)}updateUserRoles(e,r,n,i){return(0,t.RoleApiFp)(this.configuration).updateUserRoles(e,r,n,i)(this.fetch,this.basePath)}};t.SamlApiFetchParamCreator=function(e){return{configurePreviewEnvironment(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling configurePreviewEnvironment.");const a="/preview/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},configureSaml(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling configureSaml.");if(null==r)throw new u("identity_provider","Required parameter identity_provider was null or undefined when calling configureSaml.");const o="/saml/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},initializeSaml(t,r,a={}){const o=n.parse("/saml",!0),s=Object.assign({method:"POST"},a),u={},p={};if(e&&(e.username||e.password)&&(u.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;u.Authorization=t}return void 0!==t&&(p.company_id=t),void 0!==r&&(p.name=r),o.query=Object.assign({},o.query,p,a.query),delete o.search,s.headers=Object.assign({},u,a.headers),{url:n.format(o),options:s}}}};t.SamlApiFp=function(e){return{configurePreviewEnvironment(r,n){const i=(0,t.SamlApiFetchParamCreator)(e).configurePreviewEnvironment(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},configureSaml(r,n,i){const s=(0,t.SamlApiFetchParamCreator)(e).configureSaml(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},initializeSaml(r,n,i){const s=(0,t.SamlApiFetchParamCreator)(e).initializeSaml(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.SamlApiFactory=function(e,r,n){return{configurePreviewEnvironment:(i,a)=>(0,t.SamlApiFp)(e).configurePreviewEnvironment(i,a)(r,n),configureSaml:(i,a,o)=>(0,t.SamlApiFp)(e).configureSaml(i,a,o)(r,n),initializeSaml:(i,a,o)=>(0,t.SamlApiFp)(e).initializeSaml(i,a,o)(r,n)}};t.SamlApi=class extends s{configurePreviewEnvironment(e,r){return(0,t.SamlApiFp)(this.configuration).configurePreviewEnvironment(e,r)(this.fetch,this.basePath)}configureSaml(e,r,n){return(0,t.SamlApiFp)(this.configuration).configureSaml(e,r,n)(this.fetch,this.basePath)}initializeSaml(e,r,n){return(0,t.SamlApiFp)(this.configuration).initializeSaml(e,r,n)(this.fetch,this.basePath)}};t.ScheduleApiFetchParamCreator=function(e){return{createDefaultRunPolicies(t,r={}){if(null==t)throw new u("defaultRunPolicy","Required parameter defaultRunPolicy was null or undefined when calling createDefaultRunPolicies.");const a=n.parse("/schedule/runPolicy/default",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},createReport(t,r={}){if(null==t)throw new u("report","Required parameter report was null or undefined when calling createReport.");const a=n.parse("/schedule/report",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},createRunPolicy(t,r={}){if(null==t)throw new u("runPolicy","Required parameter runPolicy was null or undefined when calling createRunPolicy.");const a=n.parse("/schedule/runPolicy",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getReport(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getReport.");const a="/schedule/report/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getRunPolicy(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getRunPolicy.");const a="/schedule/runPolicy/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},maybeOnlyEncryptOnce(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling maybeOnlyEncryptOnce.");const a="/schedule/runPolicy/{id}/migrate/maybeOnlyEncryptOnce".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryOwnReports(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryOwnReports.");if(null==r)throw new u("report_type","Required parameter report_type was null or undefined when calling queryOwnReports.");const p=n.parse("/schedule/report/own",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.report_type=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},queryReports(t,r,a,o,s,p,c={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryReports.");const l=n.parse("/schedule/report",!0),d=Object.assign({method:"GET"},c),h={},y={};if(e&&(e.username||e.password)&&(h.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;h.Authorization=t}return void 0!==t&&(y.organization_id=t),void 0!==r&&(y.plan_id=r),void 0!==a&&(y.journey_id=a),void 0!==o&&(y.report_type=o),void 0!==s&&(y.limit=s),void 0!==p&&(y.cursor=p),l.query=Object.assign({},l.query,y,c.query),delete l.search,d.headers=Object.assign({},h,c.headers),{url:n.format(l),options:d}},queryRunPolicies(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryRunPolicies.");const p=n.parse("/schedule/runPolicy",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.deployment_id=r),void 0!==a&&(d.limit=a),void 0!==o&&(d.cursor=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},queryRunPolicyLabels(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryRunPolicyLabels.");const s=n.parse("/schedule/runPolicy/labels",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},recoverRunPolicy(t,r={}){if(null==t)throw new u("runPolicyId","Required parameter runPolicyId was null or undefined when calling recoverRunPolicy.");const a="/schedule/runPolicy/{runPolicyId}/recover".replace("{runPolicyId}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeReport(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeReport.");const a="/schedule/report/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeRunPolicy(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeRunPolicy.");const a="/schedule/runPolicy/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},runScheduledPolicies(t,r={}){if(null==t)throw new u("shard","Required parameter shard was null or undefined when calling runScheduledPolicies.");const a="/cron/scheduledPolicies/{shard}".replace("{shard}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateReport(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateReport.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateReport.");const s="/schedule/report/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateRunPolicy(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateRunPolicy.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateRunPolicy.");const s="/schedule/runPolicy/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ScheduleApiFp=function(e){return{createDefaultRunPolicies(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).createDefaultRunPolicies(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createReport(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).createReport(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).createRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getReport(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).getReport(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).getRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},maybeOnlyEncryptOnce(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).maybeOnlyEncryptOnce(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},queryOwnReports(r,n,i,s,u){const p=(0,t.ScheduleApiFetchParamCreator)(e).queryOwnReports(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryReports(r,n,i,s,u,p,c){const l=(0,t.ScheduleApiFetchParamCreator)(e).queryReports(r,n,i,s,u,p,c);return(e=a,t=o)=>e(t+l.url,l.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRunPolicies(r,n,i,s,u){const p=(0,t.ScheduleApiFetchParamCreator)(e).queryRunPolicies(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryRunPolicyLabels(r,n,i,s){const u=(0,t.ScheduleApiFetchParamCreator)(e).queryRunPolicyLabels(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).recoverRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeReport(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).removeReport(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeRunPolicy(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).removeRunPolicy(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},runScheduledPolicies(r,n){const i=(0,t.ScheduleApiFetchParamCreator)(e).runScheduledPolicies(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateReport(r,n,i,s){const u=(0,t.ScheduleApiFetchParamCreator)(e).updateReport(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateRunPolicy(r,n,i,s){const u=(0,t.ScheduleApiFetchParamCreator)(e).updateRunPolicy(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ScheduleApiFactory=function(e,r,n){return{createDefaultRunPolicies:(i,a)=>(0,t.ScheduleApiFp)(e).createDefaultRunPolicies(i,a)(r,n),createReport:(i,a)=>(0,t.ScheduleApiFp)(e).createReport(i,a)(r,n),createRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).createRunPolicy(i,a)(r,n),getReport:(i,a)=>(0,t.ScheduleApiFp)(e).getReport(i,a)(r,n),getRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).getRunPolicy(i,a)(r,n),maybeOnlyEncryptOnce:(i,a)=>(0,t.ScheduleApiFp)(e).maybeOnlyEncryptOnce(i,a)(r,n),queryOwnReports:(i,a,o,s,u)=>(0,t.ScheduleApiFp)(e).queryOwnReports(i,a,o,s,u)(r,n),queryReports:(i,a,o,s,u,p,c)=>(0,t.ScheduleApiFp)(e).queryReports(i,a,o,s,u,p,c)(r,n),queryRunPolicies:(i,a,o,s,u)=>(0,t.ScheduleApiFp)(e).queryRunPolicies(i,a,o,s,u)(r,n),queryRunPolicyLabels:(i,a,o,s)=>(0,t.ScheduleApiFp)(e).queryRunPolicyLabels(i,a,o,s)(r,n),recoverRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).recoverRunPolicy(i,a)(r,n),removeReport:(i,a)=>(0,t.ScheduleApiFp)(e).removeReport(i,a)(r,n),removeRunPolicy:(i,a)=>(0,t.ScheduleApiFp)(e).removeRunPolicy(i,a)(r,n),runScheduledPolicies:(i,a)=>(0,t.ScheduleApiFp)(e).runScheduledPolicies(i,a)(r,n),updateReport:(i,a,o,s)=>(0,t.ScheduleApiFp)(e).updateReport(i,a,o,s)(r,n),updateRunPolicy:(i,a,o,s)=>(0,t.ScheduleApiFp)(e).updateRunPolicy(i,a,o,s)(r,n)}};t.ScheduleApi=class extends s{createDefaultRunPolicies(e,r){return(0,t.ScheduleApiFp)(this.configuration).createDefaultRunPolicies(e,r)(this.fetch,this.basePath)}createReport(e,r){return(0,t.ScheduleApiFp)(this.configuration).createReport(e,r)(this.fetch,this.basePath)}createRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).createRunPolicy(e,r)(this.fetch,this.basePath)}getReport(e,r){return(0,t.ScheduleApiFp)(this.configuration).getReport(e,r)(this.fetch,this.basePath)}getRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).getRunPolicy(e,r)(this.fetch,this.basePath)}maybeOnlyEncryptOnce(e,r){return(0,t.ScheduleApiFp)(this.configuration).maybeOnlyEncryptOnce(e,r)(this.fetch,this.basePath)}queryOwnReports(e,r,n,i,a){return(0,t.ScheduleApiFp)(this.configuration).queryOwnReports(e,r,n,i,a)(this.fetch,this.basePath)}queryReports(e,r,n,i,a,o,s){return(0,t.ScheduleApiFp)(this.configuration).queryReports(e,r,n,i,a,o,s)(this.fetch,this.basePath)}queryRunPolicies(e,r,n,i,a){return(0,t.ScheduleApiFp)(this.configuration).queryRunPolicies(e,r,n,i,a)(this.fetch,this.basePath)}queryRunPolicyLabels(e,r,n,i){return(0,t.ScheduleApiFp)(this.configuration).queryRunPolicyLabels(e,r,n,i)(this.fetch,this.basePath)}recoverRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).recoverRunPolicy(e,r)(this.fetch,this.basePath)}removeReport(e,r){return(0,t.ScheduleApiFp)(this.configuration).removeReport(e,r)(this.fetch,this.basePath)}removeRunPolicy(e,r){return(0,t.ScheduleApiFp)(this.configuration).removeRunPolicy(e,r)(this.fetch,this.basePath)}runScheduledPolicies(e,r){return(0,t.ScheduleApiFp)(this.configuration).runScheduledPolicies(e,r)(this.fetch,this.basePath)}updateReport(e,r,n,i){return(0,t.ScheduleApiFp)(this.configuration).updateReport(e,r,n,i)(this.fetch,this.basePath)}updateRunPolicy(e,r,n,i){return(0,t.ScheduleApiFp)(this.configuration).updateRunPolicy(e,r,n,i)(this.fetch,this.basePath)}};t.SnippetApiFetchParamCreator=function(e){return{createSnippet(t,r={}){if(null==t)throw new u("snippet","Required parameter snippet was null or undefined when calling createSnippet.");const a=n.parse("/snippets",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getSnippet(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getSnippet.");const o="/snippets/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==r&&(l.preferLatestIfReusable=r),s.query=Object.assign({},s.query,l,a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},querySnippets(t,r,a,o,s,p={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling querySnippets.");const c=n.parse("/snippets",!0),l=Object.assign({method:"GET"},p),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}return void 0!==t&&(h.workspace_id=t),void 0!==r&&(h.snippet_type=r),void 0!==a&&(h.includeNonReusable=a),void 0!==o&&(h.limit=o),void 0!==s&&(h.cursor=s),c.query=Object.assign({},c.query,h,p.query),delete c.search,l.headers=Object.assign({},d,p.headers),{url:n.format(c),options:l}},recoverSnippet(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling recoverSnippet.");const a="/recover/snippet/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeSnippet(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeSnippet.");const a="/snippets/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateSnippet(t,r,a,o,s={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateSnippet.");if(null==r)throw new u("snippet","Required parameter snippet was null or undefined when calling updateSnippet.");const p="/snippets/{id}".replace("{id}",encodeURIComponent(String(t))),c=n.parse(p,!0),l=Object.assign({method:"PATCH"},s),d={},h={};if(e&&(e.username||e.password)&&(d.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;d.Authorization=t}void 0!==o&&(h.force=o),null!=a&&(d["If-Match"]=String(a)),d["Content-Type"]="application/json",c.query=Object.assign({},c.query,h,s.query),delete c.search,l.headers=Object.assign({},d,s.headers);return l.body=JSON.stringify(r||{}),{url:n.format(c),options:l}}}};t.SnippetApiFp=function(e){return{createSnippet(r,n){const i=(0,t.SnippetApiFetchParamCreator)(e).createSnippet(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getSnippet(r,n,i){const s=(0,t.SnippetApiFetchParamCreator)(e).getSnippet(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},querySnippets(r,n,i,s,u,p){const c=(0,t.SnippetApiFetchParamCreator)(e).querySnippets(r,n,i,s,u,p);return(e=a,t=o)=>e(t+c.url,c.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},recoverSnippet(r,n){const i=(0,t.SnippetApiFetchParamCreator)(e).recoverSnippet(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeSnippet(r,n){const i=(0,t.SnippetApiFetchParamCreator)(e).removeSnippet(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateSnippet(r,n,i,s,u){const p=(0,t.SnippetApiFetchParamCreator)(e).updateSnippet(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.SnippetApiFactory=function(e,r,n){return{createSnippet:(i,a)=>(0,t.SnippetApiFp)(e).createSnippet(i,a)(r,n),getSnippet:(i,a,o)=>(0,t.SnippetApiFp)(e).getSnippet(i,a,o)(r,n),querySnippets:(i,a,o,s,u,p)=>(0,t.SnippetApiFp)(e).querySnippets(i,a,o,s,u,p)(r,n),recoverSnippet:(i,a)=>(0,t.SnippetApiFp)(e).recoverSnippet(i,a)(r,n),removeSnippet:(i,a)=>(0,t.SnippetApiFp)(e).removeSnippet(i,a)(r,n),updateSnippet:(i,a,o,s,u)=>(0,t.SnippetApiFp)(e).updateSnippet(i,a,o,s,u)(r,n)}};t.SnippetApi=class extends s{createSnippet(e,r){return(0,t.SnippetApiFp)(this.configuration).createSnippet(e,r)(this.fetch,this.basePath)}getSnippet(e,r,n){return(0,t.SnippetApiFp)(this.configuration).getSnippet(e,r,n)(this.fetch,this.basePath)}querySnippets(e,r,n,i,a,o){return(0,t.SnippetApiFp)(this.configuration).querySnippets(e,r,n,i,a,o)(this.fetch,this.basePath)}recoverSnippet(e,r){return(0,t.SnippetApiFp)(this.configuration).recoverSnippet(e,r)(this.fetch,this.basePath)}removeSnippet(e,r){return(0,t.SnippetApiFp)(this.configuration).removeSnippet(e,r)(this.fetch,this.basePath)}updateSnippet(e,r,n,i,a){return(0,t.SnippetApiFp)(this.configuration).updateSnippet(e,r,n,i,a)(this.fetch,this.basePath)}};t.StateDetectionApiFetchParamCreator=function(e){return{createStateDetection(t,r={}){if(null==t)throw new u("stateDetection","Required parameter stateDetection was null or undefined when calling createStateDetection.");const a=n.parse("/stateDetections",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getStateDetection(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getStateDetection.");const a="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},putStateDetection(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling putStateDetection.");if(null==r)throw new u("stateDetection","Required parameter stateDetection was null or undefined when calling putStateDetection.");const o="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},queryStateDetections(t,r,a,o,s,p,c,l,d,h,y={}){if(null==t)throw new u("category","Required parameter category was null or undefined when calling queryStateDetections.");const m=n.parse("/stateDetections",!0),f=Object.assign({method:"GET"},y),g={},w={};if(e&&(e.username||e.password)&&(g.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;g.Authorization=t}return void 0!==t&&(w.category=t),void 0!==r&&(w.run_policy_execution_id=r),void 0!==a&&(w.test_script_id=a),void 0!==o&&(w.group_id=o),void 0!==s&&(w.start=s),void 0!==p&&(w.end=p),void 0!==c&&(w.current_state=c),void 0!==l&&(w.organization_id=l),void 0!==d&&(w.limit=d),void 0!==h&&(w.cursor=h),m.query=Object.assign({},m.query,w,y.query),delete m.search,f.headers=Object.assign({},g,y.headers),{url:n.format(m),options:f}},queryStateDetectionsByCategory(t,r,a,o,s,p,c,l={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling queryStateDetectionsByCategory.");if(null==r)throw new u("category","Required parameter category was null or undefined when calling queryStateDetectionsByCategory.");const d="/stateDetections/workspace/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),h=n.parse(d,!0),y=Object.assign({method:"GET"},l),m={},f={};if(e&&(e.username||e.password)&&(m.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;m.Authorization=t}return void 0!==r&&(f.category=r),void 0!==a&&(f.current_state=a),void 0!==o&&(f.start=o),void 0!==s&&(f.end=s),void 0!==p&&(f.limit=p),void 0!==c&&(f.cursor=c),h.query=Object.assign({},h.query,f,l.query),delete h.search,y.headers=Object.assign({},m,l.headers),{url:n.format(h),options:y}},removeStateDetection(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeStateDetection.");const a="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateStateDetection(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateStateDetection.");if(null==r)throw new u("stateDetection","Required parameter stateDetection was null or undefined when calling updateStateDetection.");const s="/stateDetections/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.StateDetectionApiFp=function(e){return{createStateDetection(r,n){const i=(0,t.StateDetectionApiFetchParamCreator)(e).createStateDetection(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getStateDetection(r,n){const i=(0,t.StateDetectionApiFetchParamCreator)(e).getStateDetection(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},putStateDetection(r,n,i){const s=(0,t.StateDetectionApiFetchParamCreator)(e).putStateDetection(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryStateDetections(r,n,i,s,u,p,c,l,d,h,y){const m=(0,t.StateDetectionApiFetchParamCreator)(e).queryStateDetections(r,n,i,s,u,p,c,l,d,h,y);return(e=a,t=o)=>e(t+m.url,m.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryStateDetectionsByCategory(r,n,i,s,u,p,c,l){const d=(0,t.StateDetectionApiFetchParamCreator)(e).queryStateDetectionsByCategory(r,n,i,s,u,p,c,l);return(e=a,t=o)=>e(t+d.url,d.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeStateDetection(r,n){const i=(0,t.StateDetectionApiFetchParamCreator)(e).removeStateDetection(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateStateDetection(r,n,i,s){const u=(0,t.StateDetectionApiFetchParamCreator)(e).updateStateDetection(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.StateDetectionApiFactory=function(e,r,n){return{createStateDetection:(i,a)=>(0,t.StateDetectionApiFp)(e).createStateDetection(i,a)(r,n),getStateDetection:(i,a)=>(0,t.StateDetectionApiFp)(e).getStateDetection(i,a)(r,n),putStateDetection:(i,a,o)=>(0,t.StateDetectionApiFp)(e).putStateDetection(i,a,o)(r,n),queryStateDetections:(i,a,o,s,u,p,c,l,d,h,y)=>(0,t.StateDetectionApiFp)(e).queryStateDetections(i,a,o,s,u,p,c,l,d,h,y)(r,n),queryStateDetectionsByCategory:(i,a,o,s,u,p,c,l)=>(0,t.StateDetectionApiFp)(e).queryStateDetectionsByCategory(i,a,o,s,u,p,c,l)(r,n),removeStateDetection:(i,a)=>(0,t.StateDetectionApiFp)(e).removeStateDetection(i,a)(r,n),updateStateDetection:(i,a,o,s)=>(0,t.StateDetectionApiFp)(e).updateStateDetection(i,a,o,s)(r,n)}};t.StateDetectionApi=class extends s{createStateDetection(e,r){return(0,t.StateDetectionApiFp)(this.configuration).createStateDetection(e,r)(this.fetch,this.basePath)}getStateDetection(e,r){return(0,t.StateDetectionApiFp)(this.configuration).getStateDetection(e,r)(this.fetch,this.basePath)}putStateDetection(e,r,n){return(0,t.StateDetectionApiFp)(this.configuration).putStateDetection(e,r,n)(this.fetch,this.basePath)}queryStateDetections(e,r,n,i,a,o,s,u,p,c,l){return(0,t.StateDetectionApiFp)(this.configuration).queryStateDetections(e,r,n,i,a,o,s,u,p,c,l)(this.fetch,this.basePath)}queryStateDetectionsByCategory(e,r,n,i,a,o,s,u){return(0,t.StateDetectionApiFp)(this.configuration).queryStateDetectionsByCategory(e,r,n,i,a,o,s,u)(this.fetch,this.basePath)}removeStateDetection(e,r){return(0,t.StateDetectionApiFp)(this.configuration).removeStateDetection(e,r)(this.fetch,this.basePath)}updateStateDetection(e,r,n,i){return(0,t.StateDetectionApiFp)(this.configuration).updateStateDetection(e,r,n,i)(this.fetch,this.basePath)}};t.UsageApiFetchParamCreator=function(e){return{putDailyExecutionUsage(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling putDailyExecutionUsage.");if(null==r)throw new u("dailyExecutionStats","Required parameter dailyExecutionStats was null or undefined when calling putDailyExecutionUsage.");const o="/usage/daily/executions/{id}".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},retrieveDailyExecutionUsage(t,r,a,o,s={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling retrieveDailyExecutionUsage.");if(null==r)throw new u("day","Required parameter day was null or undefined when calling retrieveDailyExecutionUsage.");if(null==a)throw new u("month","Required parameter month was null or undefined when calling retrieveDailyExecutionUsage.");if(null==o)throw new u("year","Required parameter year was null or undefined when calling retrieveDailyExecutionUsage.");const p=n.parse("/usage/daily/executions",!0),c=Object.assign({method:"GET"},s),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==t&&(d.organization_id=t),void 0!==r&&(d.day=r),void 0!==a&&(d.month=a),void 0!==o&&(d.year=o),p.query=Object.assign({},p.query,d,s.query),delete p.search,c.headers=Object.assign({},l,s.headers),{url:n.format(p),options:c}},retrieveExecutionUsage(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling retrieveExecutionUsage.");if(null==r)throw new u("month","Required parameter month was null or undefined when calling retrieveExecutionUsage.");if(null==a)throw new u("year","Required parameter year was null or undefined when calling retrieveExecutionUsage.");const s=n.parse("/usage/executions",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.month=r),void 0!==a&&(l.year=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}}}};t.UsageApiFp=function(e){return{putDailyExecutionUsage(r,n,i){const s=(0,t.UsageApiFetchParamCreator)(e).putDailyExecutionUsage(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},retrieveDailyExecutionUsage(r,n,i,s,u){const p=(0,t.UsageApiFetchParamCreator)(e).retrieveDailyExecutionUsage(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},retrieveExecutionUsage(r,n,i,s){const u=(0,t.UsageApiFetchParamCreator)(e).retrieveExecutionUsage(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.UsageApiFactory=function(e,r,n){return{putDailyExecutionUsage:(i,a,o)=>(0,t.UsageApiFp)(e).putDailyExecutionUsage(i,a,o)(r,n),retrieveDailyExecutionUsage:(i,a,o,s,u)=>(0,t.UsageApiFp)(e).retrieveDailyExecutionUsage(i,a,o,s,u)(r,n),retrieveExecutionUsage:(i,a,o,s)=>(0,t.UsageApiFp)(e).retrieveExecutionUsage(i,a,o,s)(r,n)}};t.UsageApi=class extends s{putDailyExecutionUsage(e,r,n){return(0,t.UsageApiFp)(this.configuration).putDailyExecutionUsage(e,r,n)(this.fetch,this.basePath)}retrieveDailyExecutionUsage(e,r,n,i,a){return(0,t.UsageApiFp)(this.configuration).retrieveDailyExecutionUsage(e,r,n,i,a)(this.fetch,this.basePath)}retrieveExecutionUsage(e,r,n,i){return(0,t.UsageApiFp)(this.configuration).retrieveExecutionUsage(e,r,n,i)(this.fetch,this.basePath)}};t.UserApiFetchParamCreator=function(e){return{acknowledgeWorkspaceRole(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling acknowledgeWorkspaceRole.");const a="/user-roles/acknowledge/{workspace_id}".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"POST"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getSelf(t={}){const r=n.parse("/self",!0),a=Object.assign({method:"GET"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},getUser(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUser.");const a="/users/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanies(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanies.");const a="/users/{id}/companies".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserCompanyRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserCompanyRoles.");const a="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserOrganizations(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserOrganizations.");const a="/users/{id}/organizations".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserRoles(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserRoles.");const a="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getUserWithAllAttributes(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getUserWithAllAttributes.");const a="/users/withAllAttributes/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryUsers(t,r,a,o,s={}){const u=n.parse("/users",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.email=t),void 0!==r&&(l.organization_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},queryUsersWithAllAttributes(t,r,a,o,s={}){const u=n.parse("/users/withAllAttributes",!0),p=Object.assign({method:"GET"},s),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.email=t),void 0!==r&&(l.organization_id=r),void 0!==a&&(l.limit=a),void 0!==o&&(l.cursor=o),u.query=Object.assign({},u.query,l,s.query),delete u.search,p.headers=Object.assign({},c,s.headers),{url:n.format(u),options:p}},reactivateUser(t,r={}){if(null==t)throw new u("request","Required parameter request was null or undefined when calling reactivateUser.");const a=n.parse("/users/reactivate",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},registerUser(t,r={}){if(null==t)throw new u("request","Required parameter request was null or undefined when calling registerUser.");const a=n.parse("/users",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},removeUser(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeUser.");const a="/users/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},sendUserVerificationEmail(t={}){const r=n.parse("/user-verification/email",!0),a=Object.assign({method:"POST"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},updateSelf(t={}){const r=n.parse("/self",!0),a=Object.assign({method:"PATCH"},t),o={};if(e&&(e.username||e.password)&&(o.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;o.Authorization=t}return r.query=Object.assign({},r.query,{},t.query),delete r.search,a.headers=Object.assign({},o,t.headers),{url:n.format(r),options:a}},updateUser(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUser.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUser.");const s="/users/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserCompanyRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserCompanyRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserCompanyRoles.");const s="/user-company-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},updateUserRoles(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateUserRoles.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateUserRoles.");const s="/user-roles/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.UserApiFp=function(e){return{acknowledgeWorkspaceRole(r,n){const i=(0,t.UserApiFetchParamCreator)(e).acknowledgeWorkspaceRole(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},getSelf(r){const n=(0,t.UserApiFetchParamCreator)(e).getSelf(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserCompanies(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserCompanies(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserCompanyRoles(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserCompanyRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserOrganizations(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserOrganizations(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserRoles(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserRoles(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getUserWithAllAttributes(r,n){const i=(0,t.UserApiFetchParamCreator)(e).getUserWithAllAttributes(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryUsers(r,n,i,s,u){const p=(0,t.UserApiFetchParamCreator)(e).queryUsers(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryUsersWithAllAttributes(r,n,i,s,u){const p=(0,t.UserApiFetchParamCreator)(e).queryUsersWithAllAttributes(r,n,i,s,u);return(e=a,t=o)=>e(t+p.url,p.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},reactivateUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).reactivateUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},registerUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).registerUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},removeUser(r,n){const i=(0,t.UserApiFetchParamCreator)(e).removeUser(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},sendUserVerificationEmail(r){const n=(0,t.UserApiFetchParamCreator)(e).sendUserVerificationEmail(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateSelf(r){const n=(0,t.UserApiFetchParamCreator)(e).updateSelf(r);return(e=a,t=o)=>e(t+n.url,n.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUser(r,n,i,s){const u=(0,t.UserApiFetchParamCreator)(e).updateUser(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserCompanyRoles(r,n,i,s){const u=(0,t.UserApiFetchParamCreator)(e).updateUserCompanyRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateUserRoles(r,n,i,s){const u=(0,t.UserApiFetchParamCreator)(e).updateUserRoles(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.UserApiFactory=function(e,r,n){return{acknowledgeWorkspaceRole:(i,a)=>(0,t.UserApiFp)(e).acknowledgeWorkspaceRole(i,a)(r,n),getSelf:i=>(0,t.UserApiFp)(e).getSelf(i)(r,n),getUser:(i,a)=>(0,t.UserApiFp)(e).getUser(i,a)(r,n),getUserCompanies:(i,a)=>(0,t.UserApiFp)(e).getUserCompanies(i,a)(r,n),getUserCompanyRoles:(i,a)=>(0,t.UserApiFp)(e).getUserCompanyRoles(i,a)(r,n),getUserOrganizations:(i,a)=>(0,t.UserApiFp)(e).getUserOrganizations(i,a)(r,n),getUserRoles:(i,a)=>(0,t.UserApiFp)(e).getUserRoles(i,a)(r,n),getUserWithAllAttributes:(i,a)=>(0,t.UserApiFp)(e).getUserWithAllAttributes(i,a)(r,n),queryUsers:(i,a,o,s,u)=>(0,t.UserApiFp)(e).queryUsers(i,a,o,s,u)(r,n),queryUsersWithAllAttributes:(i,a,o,s,u)=>(0,t.UserApiFp)(e).queryUsersWithAllAttributes(i,a,o,s,u)(r,n),reactivateUser:(i,a)=>(0,t.UserApiFp)(e).reactivateUser(i,a)(r,n),registerUser:(i,a)=>(0,t.UserApiFp)(e).registerUser(i,a)(r,n),removeUser:(i,a)=>(0,t.UserApiFp)(e).removeUser(i,a)(r,n),sendUserVerificationEmail:i=>(0,t.UserApiFp)(e).sendUserVerificationEmail(i)(r,n),updateSelf:i=>(0,t.UserApiFp)(e).updateSelf(i)(r,n),updateUser:(i,a,o,s)=>(0,t.UserApiFp)(e).updateUser(i,a,o,s)(r,n),updateUserCompanyRoles:(i,a,o,s)=>(0,t.UserApiFp)(e).updateUserCompanyRoles(i,a,o,s)(r,n),updateUserRoles:(i,a,o,s)=>(0,t.UserApiFp)(e).updateUserRoles(i,a,o,s)(r,n)}};t.UserApi=class extends s{acknowledgeWorkspaceRole(e,r){return(0,t.UserApiFp)(this.configuration).acknowledgeWorkspaceRole(e,r)(this.fetch,this.basePath)}getSelf(e){return(0,t.UserApiFp)(this.configuration).getSelf(e)(this.fetch,this.basePath)}getUser(e,r){return(0,t.UserApiFp)(this.configuration).getUser(e,r)(this.fetch,this.basePath)}getUserCompanies(e,r){return(0,t.UserApiFp)(this.configuration).getUserCompanies(e,r)(this.fetch,this.basePath)}getUserCompanyRoles(e,r){return(0,t.UserApiFp)(this.configuration).getUserCompanyRoles(e,r)(this.fetch,this.basePath)}getUserOrganizations(e,r){return(0,t.UserApiFp)(this.configuration).getUserOrganizations(e,r)(this.fetch,this.basePath)}getUserRoles(e,r){return(0,t.UserApiFp)(this.configuration).getUserRoles(e,r)(this.fetch,this.basePath)}getUserWithAllAttributes(e,r){return(0,t.UserApiFp)(this.configuration).getUserWithAllAttributes(e,r)(this.fetch,this.basePath)}queryUsers(e,r,n,i,a){return(0,t.UserApiFp)(this.configuration).queryUsers(e,r,n,i,a)(this.fetch,this.basePath)}queryUsersWithAllAttributes(e,r,n,i,a){return(0,t.UserApiFp)(this.configuration).queryUsersWithAllAttributes(e,r,n,i,a)(this.fetch,this.basePath)}reactivateUser(e,r){return(0,t.UserApiFp)(this.configuration).reactivateUser(e,r)(this.fetch,this.basePath)}registerUser(e,r){return(0,t.UserApiFp)(this.configuration).registerUser(e,r)(this.fetch,this.basePath)}removeUser(e,r){return(0,t.UserApiFp)(this.configuration).removeUser(e,r)(this.fetch,this.basePath)}sendUserVerificationEmail(e){return(0,t.UserApiFp)(this.configuration).sendUserVerificationEmail(e)(this.fetch,this.basePath)}updateSelf(e){return(0,t.UserApiFp)(this.configuration).updateSelf(e)(this.fetch,this.basePath)}updateUser(e,r,n,i){return(0,t.UserApiFp)(this.configuration).updateUser(e,r,n,i)(this.fetch,this.basePath)}updateUserCompanyRoles(e,r,n,i){return(0,t.UserApiFp)(this.configuration).updateUserCompanyRoles(e,r,n,i)(this.fetch,this.basePath)}updateUserRoles(e,r,n,i){return(0,t.UserApiFp)(this.configuration).updateUserRoles(e,r,n,i)(this.fetch,this.basePath)}};t.ValidateUrlApiFetchParamCreator=function(e){return{createValidateUrl(t,r={}){if(null==t)throw new u("entity","Required parameter entity was null or undefined when calling createValidateUrl.");const a=n.parse("/validations/url",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getValidateUrl(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getValidateUrl.");const a="/validations/url/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeValidateUrl(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeValidateUrl.");const a="/validations/url/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateValidateUrl(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateValidateUrl.");if(null==r)throw new u("entity","Required parameter entity was null or undefined when calling updateValidateUrl.");const s="/validations/url/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.ValidateUrlApiFp=function(e){return{createValidateUrl(r,n){const i=(0,t.ValidateUrlApiFetchParamCreator)(e).createValidateUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getValidateUrl(r,n){const i=(0,t.ValidateUrlApiFetchParamCreator)(e).getValidateUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeValidateUrl(r,n){const i=(0,t.ValidateUrlApiFetchParamCreator)(e).removeValidateUrl(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateValidateUrl(r,n,i,s){const u=(0,t.ValidateUrlApiFetchParamCreator)(e).updateValidateUrl(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.ValidateUrlApiFactory=function(e,r,n){return{createValidateUrl:(i,a)=>(0,t.ValidateUrlApiFp)(e).createValidateUrl(i,a)(r,n),getValidateUrl:(i,a)=>(0,t.ValidateUrlApiFp)(e).getValidateUrl(i,a)(r,n),removeValidateUrl:(i,a)=>(0,t.ValidateUrlApiFp)(e).removeValidateUrl(i,a)(r,n),updateValidateUrl:(i,a,o,s)=>(0,t.ValidateUrlApiFp)(e).updateValidateUrl(i,a,o,s)(r,n)}};t.ValidateUrlApi=class extends s{createValidateUrl(e,r){return(0,t.ValidateUrlApiFp)(this.configuration).createValidateUrl(e,r)(this.fetch,this.basePath)}getValidateUrl(e,r){return(0,t.ValidateUrlApiFp)(this.configuration).getValidateUrl(e,r)(this.fetch,this.basePath)}removeValidateUrl(e,r){return(0,t.ValidateUrlApiFp)(this.configuration).removeValidateUrl(e,r)(this.fetch,this.basePath)}updateValidateUrl(e,r,n,i){return(0,t.ValidateUrlApiFp)(this.configuration).updateValidateUrl(e,r,n,i)(this.fetch,this.basePath)}};t.VariableRowApiFetchParamCreator=function(e){return{createVariableRow(t,r={}){if(null==t)throw new u("prototype","Required parameter prototype was null or undefined when calling createVariableRow.");const a=n.parse("/variables/rows",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getVariableRow(t,r={}){if(null==t)throw new u("variable_row_id","Required parameter variable_row_id was null or undefined when calling getVariableRow.");const a="/variables/rows/{variable_row_id}".replace("{variable_row_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},removeVariableRow(t,r={}){if(null==t)throw new u("variable_row_id","Required parameter variable_row_id was null or undefined when calling removeVariableRow.");const a="/variables/rows/{variable_row_id}".replace("{variable_row_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateVariableRow(t,r,a,o={}){if(null==t)throw new u("variable_row_id","Required parameter variable_row_id was null or undefined when calling updateVariableRow.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateVariableRow.");const s="/variables/rows/{variable_row_id}".replace("{variable_row_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.VariableRowApiFp=function(e){return{createVariableRow(r,n){const i=(0,t.VariableRowApiFetchParamCreator)(e).createVariableRow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getVariableRow(r,n){const i=(0,t.VariableRowApiFetchParamCreator)(e).getVariableRow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeVariableRow(r,n){const i=(0,t.VariableRowApiFetchParamCreator)(e).removeVariableRow(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateVariableRow(r,n,i,s){const u=(0,t.VariableRowApiFetchParamCreator)(e).updateVariableRow(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.VariableRowApiFactory=function(e,r,n){return{createVariableRow:(i,a)=>(0,t.VariableRowApiFp)(e).createVariableRow(i,a)(r,n),getVariableRow:(i,a)=>(0,t.VariableRowApiFp)(e).getVariableRow(i,a)(r,n),removeVariableRow:(i,a)=>(0,t.VariableRowApiFp)(e).removeVariableRow(i,a)(r,n),updateVariableRow:(i,a,o,s)=>(0,t.VariableRowApiFp)(e).updateVariableRow(i,a,o,s)(r,n)}};t.VariableRowApi=class extends s{createVariableRow(e,r){return(0,t.VariableRowApiFp)(this.configuration).createVariableRow(e,r)(this.fetch,this.basePath)}getVariableRow(e,r){return(0,t.VariableRowApiFp)(this.configuration).getVariableRow(e,r)(this.fetch,this.basePath)}removeVariableRow(e,r){return(0,t.VariableRowApiFp)(this.configuration).removeVariableRow(e,r)(this.fetch,this.basePath)}updateVariableRow(e,r,n,i){return(0,t.VariableRowApiFp)(this.configuration).updateVariableRow(e,r,n,i)(this.fetch,this.basePath)}};t.VariableTableApiFetchParamCreator=function(e){return{createVariableTable(t,r,a={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling createVariableTable.");const o=n.parse("/variables/tables",!0),s=Object.assign({method:"POST"},a),p={},c={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}void 0!==t&&(c.organization_id=t),p["Content-Type"]="application/json",o.query=Object.assign({},o.query,c,a.query),delete o.search,s.headers=Object.assign({},p,a.headers);return s.body=JSON.stringify(r||{}),{url:n.format(o),options:s}},getVariableTable(t,r={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling getVariableTable.");const a="/variables/tables/{variable_table_id}".replace("{variable_table_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryVariableRowsForTable(t,r,a,o={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling queryVariableRowsForTable.");const s="/variables/tables/{variable_table_id}/rows".replace("{variable_table_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"GET"},o),l={},d={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}return void 0!==r&&(d.limit=r),void 0!==a&&(d.cursor=a),p.query=Object.assign({},p.query,d,o.query),delete p.search,c.headers=Object.assign({},l,o.headers),{url:n.format(p),options:c}},queryVariableTables(t,r,a,o={}){if(null==t)throw new u("organization_id","Required parameter organization_id was null or undefined when calling queryVariableTables.");const s=n.parse("/variables/tables",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.organization_id=t),void 0!==r&&(l.limit=r),void 0!==a&&(l.cursor=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeVariableTable(t,r={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling removeVariableTable.");const a="/variables/tables/{variable_table_id}".replace("{variable_table_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},updateVariableTable(t,r,a,o={}){if(null==t)throw new u("variable_table_id","Required parameter variable_table_id was null or undefined when calling updateVariableTable.");if(null==r)throw new u("update","Required parameter update was null or undefined when calling updateVariableTable.");const s="/variables/tables/{variable_table_id}".replace("{variable_table_id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PATCH"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}}}};t.VariableTableApiFp=function(e){return{createVariableTable(r,n,i){const s=(0,t.VariableTableApiFetchParamCreator)(e).createVariableTable(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getVariableTable(r,n){const i=(0,t.VariableTableApiFetchParamCreator)(e).getVariableTable(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryVariableRowsForTable(r,n,i,s){const u=(0,t.VariableTableApiFetchParamCreator)(e).queryVariableRowsForTable(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryVariableTables(r,n,i,s){const u=(0,t.VariableTableApiFetchParamCreator)(e).queryVariableTables(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeVariableTable(r,n){const i=(0,t.VariableTableApiFetchParamCreator)(e).removeVariableTable(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},updateVariableTable(r,n,i,s){const u=(0,t.VariableTableApiFetchParamCreator)(e).updateVariableTable(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.VariableTableApiFactory=function(e,r,n){return{createVariableTable:(i,a,o)=>(0,t.VariableTableApiFp)(e).createVariableTable(i,a,o)(r,n),getVariableTable:(i,a)=>(0,t.VariableTableApiFp)(e).getVariableTable(i,a)(r,n),queryVariableRowsForTable:(i,a,o,s)=>(0,t.VariableTableApiFp)(e).queryVariableRowsForTable(i,a,o,s)(r,n),queryVariableTables:(i,a,o,s)=>(0,t.VariableTableApiFp)(e).queryVariableTables(i,a,o,s)(r,n),removeVariableTable:(i,a)=>(0,t.VariableTableApiFp)(e).removeVariableTable(i,a)(r,n),updateVariableTable:(i,a,o,s)=>(0,t.VariableTableApiFp)(e).updateVariableTable(i,a,o,s)(r,n)}};t.VariableTableApi=class extends s{createVariableTable(e,r,n){return(0,t.VariableTableApiFp)(this.configuration).createVariableTable(e,r,n)(this.fetch,this.basePath)}getVariableTable(e,r){return(0,t.VariableTableApiFp)(this.configuration).getVariableTable(e,r)(this.fetch,this.basePath)}queryVariableRowsForTable(e,r,n,i){return(0,t.VariableTableApiFp)(this.configuration).queryVariableRowsForTable(e,r,n,i)(this.fetch,this.basePath)}queryVariableTables(e,r,n,i){return(0,t.VariableTableApiFp)(this.configuration).queryVariableTables(e,r,n,i)(this.fetch,this.basePath)}removeVariableTable(e,r){return(0,t.VariableTableApiFp)(this.configuration).removeVariableTable(e,r)(this.fetch,this.basePath)}updateVariableTable(e,r,n,i){return(0,t.VariableTableApiFp)(this.configuration).updateVariableTable(e,r,n,i)(this.fetch,this.basePath)}};t.WorkspaceInfrastructureApiFetchParamCreator=function(e){return{getWorkspaceNetworkingConfig(t,r={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling getWorkspaceNetworkingConfig.");const a="/workspaces/{workspace_id}/networking".replace("{workspace_id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}}}};t.WorkspaceInfrastructureApiFp=function(e){return{getWorkspaceNetworkingConfig(r,n){const i=(0,t.WorkspaceInfrastructureApiFetchParamCreator)(e).getWorkspaceNetworkingConfig(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})}}};t.WorkspaceInfrastructureApiFactory=function(e,r,n){return{getWorkspaceNetworkingConfig:(i,a)=>(0,t.WorkspaceInfrastructureApiFp)(e).getWorkspaceNetworkingConfig(i,a)(r,n)}};t.WorkspaceInfrastructureApi=class extends s{getWorkspaceNetworkingConfig(e,r){return(0,t.WorkspaceInfrastructureApiFp)(this.configuration).getWorkspaceNetworkingConfig(e,r)(this.fetch,this.basePath)}};t.WorkspaceIntegrationApiFetchParamCreator=function(e){return{claimIntegration(t,r,a={}){if(null==t)throw new u("workspace_id","Required parameter workspace_id was null or undefined when calling claimIntegration.");if(null==r)throw new u("claim_request","Required parameter claim_request was null or undefined when calling claimIntegration.");const o="/workspaces/{workspace_id}/integrations/claim".replace("{workspace_id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"POST"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},createWorkspaceIntegration(t,r={}){if(null==t)throw new u("integration","Required parameter integration was null or undefined when calling createWorkspaceIntegration.");const a=n.parse("/integrations",!0),o=Object.assign({method:"POST"},r),s={};if(e&&(e.username||e.password)&&(s.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;s.Authorization=t}s["Content-Type"]="application/json",a.query=Object.assign({},a.query,{},r.query),delete a.search,o.headers=Object.assign({},s,r.headers);return o.body=JSON.stringify(t||{}),{url:n.format(a),options:o}},getIssueTrackerSchema(t,r,a={}){if(null==t)throw new u("integrationId","Required parameter integrationId was null or undefined when calling getIssueTrackerSchema.");if(null==r)throw new u("schemaId","Required parameter schemaId was null or undefined when calling getIssueTrackerSchema.");const o="/integrations/{integrationId}/issueTracker/schemas/{schemaId}".replace("{integrationId}",encodeURIComponent(String(t))).replace("{schemaId}",encodeURIComponent(String(r))),s=n.parse(o,!0),p=Object.assign({method:"GET"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers),{url:n.format(s),options:p}},getIssueTrackerSchemaKeyFields(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getIssueTrackerSchemaKeyFields.");const a="/integrations/{id}/issueTracker/schemaKeyFields".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},getWorkspaceIntegration(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling getWorkspaceIntegration.");const a="/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"GET"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},queryByWorkspaceId(r,a,o,s,p,c,l,d,h={}){if(null==r)throw new u("workspaceId","Required parameter workspaceId was null or undefined when calling queryByWorkspaceId.");const y="/workspaces/{workspaceId}/integrations".replace("{workspaceId}",encodeURIComponent(String(r))),m=n.parse(y,!0),f=Object.assign({method:"GET"},h),g={},w={};if(e&&(e.username||e.password)&&(g.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;g.Authorization=t}return void 0!==a&&(w.integration_type=a),void 0!==o&&(w.oauth_token_id=o),void 0!==s&&(w.user_id=s),void 0!==p&&(w.enabled=p),void 0!==c&&(w.limit=c),void 0!==l&&(w.cursor=l),d&&(w.integration_types=d.join(t.COLLECTION_FORMATS.csv)),m.query=Object.assign({},m.query,w,h.query),delete m.search,f.headers=Object.assign({},g,h.headers),{url:n.format(m),options:f}},queryWorkspaceIntegrations(t,r,a,o={}){if(null==t)throw new u("integration_type","Required parameter integration_type was null or undefined when calling queryWorkspaceIntegrations.");const s=n.parse("/integrations",!0),p=Object.assign({method:"GET"},o),c={},l={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}return void 0!==t&&(l.integration_type=t),void 0!==r&&(l.installation_id=r),void 0!==a&&(l.github_installation_id=a),s.query=Object.assign({},s.query,l,o.query),delete s.search,p.headers=Object.assign({},c,o.headers),{url:n.format(s),options:p}},removeWorkspaceIntegration(t,r={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling removeWorkspaceIntegration.");const a="/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),o=n.parse(a,!0),s=Object.assign({method:"DELETE"},r),p={};if(e&&(e.username||e.password)&&(p.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;p.Authorization=t}return o.query=Object.assign({},o.query,{},r.query),delete o.search,s.headers=Object.assign({},p,r.headers),{url:n.format(o),options:s}},setIssueTrackerSchemaIds(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling setIssueTrackerSchemaIds.");if(null==r)throw new u("schemaIds","Required parameter schemaIds was null or undefined when calling setIssueTrackerSchemaIds.");const o="/integrations/{id}/issueTracker/schemaIds".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}},updateWorkspaceIntegration(t,r,a,o={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling updateWorkspaceIntegration.");if(null==r)throw new u("integration","Required parameter integration was null or undefined when calling updateWorkspaceIntegration.");const s="/integrations/{id}".replace("{id}",encodeURIComponent(String(t))),p=n.parse(s,!0),c=Object.assign({method:"PUT"},o),l={};if(e&&(e.username||e.password)&&(l.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;l.Authorization=t}null!=a&&(l["If-Match"]=String(a)),l["Content-Type"]="application/json",p.query=Object.assign({},p.query,{},o.query),delete p.search,c.headers=Object.assign({},l,o.headers);return c.body=JSON.stringify(r||{}),{url:n.format(p),options:c}},upsertIssueTrackerSchemas(t,r,a={}){if(null==t)throw new u("id","Required parameter id was null or undefined when calling upsertIssueTrackerSchemas.");if(null==r)throw new u("schemas","Required parameter schemas was null or undefined when calling upsertIssueTrackerSchemas.");const o="/integrations/{id}/issueTracker/schemas".replace("{id}",encodeURIComponent(String(t))),s=n.parse(o,!0),p=Object.assign({method:"PUT"},a),c={};if(e&&(e.username||e.password)&&(c.Authorization="Basic "+i(e.username+":"+e.password)),e&&e.apiKey){const t="function"==typeof e.apiKey?e.apiKey("Authorization"):e.apiKey;c.Authorization=t}c["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},a.query),delete s.search,p.headers=Object.assign({},c,a.headers);return p.body=JSON.stringify(r||{}),{url:n.format(s),options:p}}}};t.WorkspaceIntegrationApiFp=function(e){return{claimIntegration(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).claimIntegration(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},createWorkspaceIntegration(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).createWorkspaceIntegration(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssueTrackerSchema(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).getIssueTrackerSchema(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getIssueTrackerSchemaKeyFields(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).getIssueTrackerSchemaKeyFields(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},getWorkspaceIntegration(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).getWorkspaceIntegration(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryByWorkspaceId(r,n,i,s,u,p,c,l,d){const h=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).queryByWorkspaceId(r,n,i,s,u,p,c,l,d);return(e=a,t=o)=>e(t+h.url,h.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},queryWorkspaceIntegrations(r,n,i,s){const u=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).queryWorkspaceIntegrations(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},removeWorkspaceIntegration(r,n){const i=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).removeWorkspaceIntegration(r,n);return(e=a,t=o)=>e(t+i.url,i.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},setIssueTrackerSchemaIds(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).setIssueTrackerSchemaIds(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})},updateWorkspaceIntegration(r,n,i,s){const u=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).updateWorkspaceIntegration(r,n,i,s);return(e=a,t=o)=>e(t+u.url,u.options).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw e})},upsertIssueTrackerSchemas(r,n,i){const s=(0,t.WorkspaceIntegrationApiFetchParamCreator)(e).upsertIssueTrackerSchemas(r,n,i);return(e=a,t=o)=>e(t+s.url,s.options).then(e=>{if(e.status>=200&&e.status<300)return e;throw e})}}};t.WorkspaceIntegrationApiFactory=function(e,r,n){return{claimIntegration:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).claimIntegration(i,a,o)(r,n),createWorkspaceIntegration:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).createWorkspaceIntegration(i,a)(r,n),getIssueTrackerSchema:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).getIssueTrackerSchema(i,a,o)(r,n),getIssueTrackerSchemaKeyFields:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).getIssueTrackerSchemaKeyFields(i,a)(r,n),getWorkspaceIntegration:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).getWorkspaceIntegration(i,a)(r,n),queryByWorkspaceId:(i,a,o,s,u,p,c,l,d)=>(0,t.WorkspaceIntegrationApiFp)(e).queryByWorkspaceId(i,a,o,s,u,p,c,l,d)(r,n),queryWorkspaceIntegrations:(i,a,o,s)=>(0,t.WorkspaceIntegrationApiFp)(e).queryWorkspaceIntegrations(i,a,o,s)(r,n),removeWorkspaceIntegration:(i,a)=>(0,t.WorkspaceIntegrationApiFp)(e).removeWorkspaceIntegration(i,a)(r,n),setIssueTrackerSchemaIds:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).setIssueTrackerSchemaIds(i,a,o)(r,n),updateWorkspaceIntegration:(i,a,o,s)=>(0,t.WorkspaceIntegrationApiFp)(e).updateWorkspaceIntegration(i,a,o,s)(r,n),upsertIssueTrackerSchemas:(i,a,o)=>(0,t.WorkspaceIntegrationApiFp)(e).upsertIssueTrackerSchemas(i,a,o)(r,n)}};t.WorkspaceIntegrationApi=class extends s{claimIntegration(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).claimIntegration(e,r,n)(this.fetch,this.basePath)}createWorkspaceIntegration(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).createWorkspaceIntegration(e,r)(this.fetch,this.basePath)}getIssueTrackerSchema(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).getIssueTrackerSchema(e,r,n)(this.fetch,this.basePath)}getIssueTrackerSchemaKeyFields(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).getIssueTrackerSchemaKeyFields(e,r)(this.fetch,this.basePath)}getWorkspaceIntegration(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).getWorkspaceIntegration(e,r)(this.fetch,this.basePath)}queryByWorkspaceId(e,r,n,i,a,o,s,u,p){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).queryByWorkspaceId(e,r,n,i,a,o,s,u,p)(this.fetch,this.basePath)}queryWorkspaceIntegrations(e,r,n,i){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).queryWorkspaceIntegrations(e,r,n,i)(this.fetch,this.basePath)}removeWorkspaceIntegration(e,r){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).removeWorkspaceIntegration(e,r)(this.fetch,this.basePath)}setIssueTrackerSchemaIds(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).setIssueTrackerSchemaIds(e,r,n)(this.fetch,this.basePath)}updateWorkspaceIntegration(e,r,n,i){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).updateWorkspaceIntegration(e,r,n,i)(this.fetch,this.basePath)}upsertIssueTrackerSchemas(e,r,n){return(0,t.WorkspaceIntegrationApiFp)(this.configuration).upsertIssueTrackerSchemas(e,r,n)(this.fetch,this.basePath)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;t.Configuration=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MablApiWrapper=void 0;const n=r(15),i=r(5),a=r(6);class o extends i.AbstractMablApiWrapper{constructor(e){super(o.createSwaggerConfig(e),o.createWrappedFetch(e)),this.integrations=this.workspaceIntegrations,this.oauth=this.oauthTokens,this.plans=this.schedules,this.workspaces=this.organizations}static createWrappedFetch(e){const t={};return e.userAgent&&(t["user-agent"]=e.userAgent),new n.RetryHelper(t,e.maxTryCount,e.debugLogging,e.retryBackoffStepMillis).wrappedFetchWithRetry}static createSwaggerConfig(e){let t;switch(e.authType){case"public":t=new a.Configuration({basePath:e.apiBaseUrl});break;case"api_key":t=new a.Configuration({username:"key",password:e.authToken,basePath:e.apiBaseUrl});break;case"id_token":t=new a.Configuration({apiKey:"Bearer "+e.authToken,basePath:e.apiBaseUrl});break;default:throw new Error(`Unsupported API auth type [${e.authType}]`)}return t}}t.MablApiWrapper=o},function(e,t){e.exports=require("https")},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(10),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(5),t),i(r(6),t),i(r(7),t),i(r(7),t)},function(e,t,r){"use strict";r.r(t),r.d(t,"parse",(function(){return A})),r.d(t,"format",(function(){return a})),r.d(t,"resolve",(function(){return l})),r.d(t,"resolveObject",(function(){return d})),r.d(t,"Url",(function(){return h}));var n=r(3),i=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=A(e));var t=function(e,t,r){var n=e.auth,i=e.hostname,a=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",p=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?p=n+e.host:i&&(p=n+(~i.indexOf(":")?"["+i+"]":i),e.port&&(p+=":"+e.port)),u&&"object"==typeof u&&(u=t.encode(u));var c=e.search||u&&"?"+u||"";return a&&":"!==a.substr(-1)&&(a+=":"),e.slashes||(!a||r.test(a))&&!1!==p?(p="//"+(p||""),o&&"/"!==o[0]&&(o="/"+o)):p||(p=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),{protocol:a,host:p,pathname:o=o.replace(/[?#]/g,encodeURIComponent),search:c=c.replace("#","%23"),hash:s}}(e,n,i);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var o="http://",s="w.w",u=o+s,p=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function l(e,t){var r="string"==typeof e?A(e):e;e="object"==typeof e?a(e):e;var n=A(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&n.protocol&&(i="",n.slashes||(i=n.protocol,t=t.replace(n.protocol,"")));var s=e.match(p);s&&!n.protocol&&(e=e.substr((i=s[1]+(s[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var l=new URL(e,u+"/"),d=new URL(t,l).toString().replace(u,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!i&&h?d=d.replace(o,h):i&&(d=d.replace(o,"")),c.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),i&&(d=i+("/"===d[0]?d.substr(1):d)),d}function d(e,t){return A(l(e,t))}function h(){}h.prototype.parse=A,h.prototype.format=a,h.prototype.resolve=l,h.prototype.resolveObject=l;var y=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,w=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function A(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e&&"object"==typeof e&&e instanceof h)return e;var i=(e=e.trim()).match(m);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),w.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(f),p=g.test(e),c="";o&&(y.test(o[1])||(c=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(p=!1,y.test(o[1])?(c=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(c=o[1],e="/"+o[3]));var l,d=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),A=d&&d[1],b=new h,q="",R="";try{l=new URL(e)}catch(F){q=F,c||r||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(R="/",e=e.substr(1));try{l=new URL(e,u)}catch(F){return b.protocol=c,b.href=c,b}}b.slashes=p&&!R,b.host=l.host===s?"":l.host,b.hostname=l.hostname===s?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=q?c||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var F,O=e.split("#");!b.search&&~O[0].indexOf("?")&&(b.search="?"),b.hash||""!==O[1]||(b.hash="#"),b.query=t?n.decode(l.search.substr(1)):b.search.substr(1),b.pathname=R+(o?(F=l.pathname).replace(/['^|`]/g,(function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(e,t){try{return decodeURIComponent(t).split("").map((function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()})).join("")}catch(e){return t}})):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),q&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),c&&!y.test(c)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=l.port,A&&!b.host.endsWith(A)&&(b.host+=A,b.port=A.slice(1)),b.href=R?""+b.pathname+b.search+b.hash:a(b);var v=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach((function(e){~v.indexOf(e)||(b[e]=b[e]||null)})),b}},function(e,t){!function(){"use strict";e.exports=function(e){return(e instanceof Buffer?e:Buffer.from(e.toString(),"binary")).toString("base64")}}()},function(e,t,r){"use strict";var n=r(14);e.exports=function(e,t){return/^\/\//.test(e)&&(e="https:"+e),n.call(this,e,t)},global.fetch||(global.fetch=e.exports,global.Response=n.Response,global.Headers=n.Headers,global.Request=n.Request)},function(e,t,r){"use strict";r.r(t),r.d(t,"Headers",(function(){return C})),r.d(t,"Request",(function(){return N})),r.d(t,"Response",(function(){return x})),r.d(t,"FetchError",(function(){return d}));var n=r(0),i=r(4),a=r(2),o=r(8),s=r(1);const u=n.Readable,p=Symbol("buffer"),c=Symbol("type");class l{constructor(){this[c]="";const e=arguments[0],t=arguments[1],r=[];let n=0;if(e){const t=e,i=Number(t.length);for(let e=0;e<i;e++){const i=t[e];let a;a=i instanceof Buffer?i:ArrayBuffer.isView(i)?Buffer.from(i.buffer,i.byteOffset,i.byteLength):i instanceof ArrayBuffer?Buffer.from(i):i instanceof l?i[p]:Buffer.from("string"==typeof i?i:String(i)),n+=a.length,r.push(a)}}this[p]=Buffer.concat(r);let i=t&&void 0!==t.type&&String(t.type).toLowerCase();i&&!/[^\u0020-\u007E]/.test(i)&&(this[c]=i)}get size(){return this[p].length}get type(){return this[c]}text(){return Promise.resolve(this[p].toString())}arrayBuffer(){const e=this[p],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new u;return e._read=function(){},e.push(this[p]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],r=arguments[1];let n,i;n=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),i=void 0===r?e:r<0?Math.max(e+r,0):Math.min(r,e);const a=Math.max(i-n,0),o=this[p].slice(n,n+a),s=new l([],{type:arguments[2]});return s[p]=o,s}}function d(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}let h;Object.defineProperties(l.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="FetchError";try{h=require("encoding").convert}catch(e){}const y=Symbol("Body internals"),m=n.PassThrough;function f(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let a=void 0===i?0:i;var o=r.timeout;let s=void 0===o?0:o;null==e?e=null:w(e)?e=Buffer.from(e.toString()):A(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[y]={body:e,disturbed:!1,error:null},this.size=a,this.timeout=s,e instanceof n&&e.on("error",(function(e){const r="AbortError"===e.name?e:new d(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[y].error=r}))}function g(){var e=this;if(this[y].disturbed)return f.Promise.reject(new TypeError("body used already for: "+this.url));if(this[y].disturbed=!0,this[y].error)return f.Promise.reject(this[y].error);let t=this.body;if(null===t)return f.Promise.resolve(Buffer.alloc(0));if(A(t)&&(t=t.stream()),Buffer.isBuffer(t))return f.Promise.resolve(t);if(!(t instanceof n))return f.Promise.resolve(Buffer.alloc(0));let r=[],i=0,a=!1;return new f.Promise((function(n,o){let s;e.timeout&&(s=setTimeout((function(){a=!0,o(new d(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(a=!0,o(t)):o(new d(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!a&&null!==t){if(e.size&&i+t.length>e.size)return a=!0,void o(new d(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}})),t.on("end",(function(){if(!a){clearTimeout(s);try{n(Buffer.concat(r,i))}catch(t){o(new d(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function w(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function A(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function b(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof n&&"function"!=typeof i.getBoundary&&(t=new m,r=new m,i.pipe(t),i.pipe(r),e[y].body=t,i=r),i}function q(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":w(e)?"application/x-www-form-urlencoded;charset=UTF-8":A(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?"multipart/form-data;boundary="+e.getBoundary():e instanceof n?null:"text/plain;charset=UTF-8"}function R(e){const t=e.body;return null===t?0:A(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}f.prototype={get body(){return this[y].body},get bodyUsed(){return this[y].disturbed},arrayBuffer(){return g.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return g.call(this).then((function(t){return Object.assign(new l([],{type:e.toLowerCase()}),{[p]:t})}))},json(){var e=this;return g.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return f.Promise.reject(new d(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return g.call(this).then((function(e){return e.toString()}))},buffer(){return g.call(this)},textConverted(){var e=this;return g.call(this).then((function(t){return function(e,t){if("function"!=typeof h)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,i,a="utf-8";r&&(n=/charset=([^;]*)/i.exec(r));i=e.slice(0,1024).toString(),!n&&i&&(n=/<meta.+?charset=(['"])(.+?)\1/i.exec(i));!n&&i&&(n=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(i),n||(n=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(i),n&&n.pop()),n&&(n=/charset=(.*)/i.exec(n.pop())));!n&&i&&(n=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(i));n&&(a=n.pop(),"gb2312"!==a&&"gbk"!==a||(a="gb18030"));return h(e,"UTF-8",a).toString()}(t,e.headers)}))}},Object.defineProperties(f.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),f.mixIn=function(e){for(const t of Object.getOwnPropertyNames(f.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(f.prototype,t);Object.defineProperty(e,t,r)}},f.Promise=global.Promise;const F=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,O=/[^\t\x20-\x7e\x80-\xff]/;function v(e){if(e=""+e,F.test(e)||""===e)throw new TypeError(e+" is not a legal HTTP header name")}function P(e){if(e=""+e,O.test(e))throw new TypeError(e+" is not a legal HTTP header value")}function S(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const j=Symbol("map");class C{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[j]=Object.create(null),e instanceof C){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}}get(e){v(e=""+e);const t=S(this[j],e);return void 0===t?null:this[j][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=K(this),n=0;for(;n<r.length;){var i=r[n];const a=i[0],o=i[1];e.call(t,o,a,this),r=K(this),n++}}set(e,t){t=""+t,v(e=""+e),P(t);const r=S(this[j],e);this[j][void 0!==r?r:e]=[t]}append(e,t){t=""+t,v(e=""+e),P(t);const r=S(this[j],e);void 0!==r?this[j][r].push(t):this[j][e]=[t]}has(e){return v(e=""+e),void 0!==S(this[j],e)}delete(e){v(e=""+e);const t=S(this[j],e);void 0!==t&&delete this[j][t]}raw(){return this[j]}keys(){return z(this,"key")}values(){return z(this,"value")}[Symbol.iterator](){return z(this,"key+value")}}function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[j]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[j][t].join(", ")}:function(t){return[t.toLowerCase(),e[j][t].join(", ")]})}C.prototype.entries=C.prototype[Symbol.iterator],Object.defineProperty(C.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(C.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const E=Symbol("internal");function z(e,t){const r=Object.create(T);return r[E]={target:e,kind:t,index:0},r}const T=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==T)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[E];const t=e.target,r=e.kind,n=e.index,i=K(t,r);return n>=i.length?{value:void 0,done:!0}:(this[E].index=n+1,{value:i[n],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function I(e){const t=Object.assign({__proto__:null},e[j]),r=S(e[j],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(T,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const _=Symbol("Response internals"),k=i.STATUS_CODES;class x{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f.call(this,e,t);const r=t.status||200,n=new C(t.headers);if(null!=e&&!n.has("Content-Type")){const t=q(e);t&&n.append("Content-Type",t)}this[_]={url:t.url,status:r,statusText:t.statusText||k[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new x(b(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}f.mixIn(x.prototype),Object.defineProperties(x.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(x.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const U=Symbol("Request internals"),B=a.parse,J=a.format,L="destroy"in n.Readable.prototype;function D(e){return"object"==typeof e&&"object"==typeof e[U]}class N{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D(e)?t=B(e.url):(t=e&&e.href?B(e.href):B(""+e),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||D(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=r.body?r.body:D(e)&&null!==e.body?b(e):null;f.call(this,i,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const a=new C(r.headers||e.headers||{});if(null!=i&&!a.has("Content-Type")){const e=q(i);e&&a.append("Content-Type",e)}let o=D(e)?e.signal:null;if("signal"in r&&(o=r.signal),null!=o&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[U]={method:n,redirect:r.redirect||e.redirect||"follow",headers:a,parsedURL:t,signal:o},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[U].method}get url(){return J(this[U].parsedURL)}get headers(){return this[U].headers}get redirect(){return this[U].redirect}get signal(){return this[U].signal}clone(){return new N(this)}}function M(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}f.mixIn(N.prototype),Object.defineProperty(N.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(N.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M.prototype.name="AbortError";const W=n.PassThrough,V=a.resolve;function G(e,t){if(!G.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return f.Promise=G.Promise,new G.Promise((function(r,a){const u=new N(e,t),p=function(e){const t=e[U].parsedURL,r=new C(e[U].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!L)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=R(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let a=e.agent;return"function"==typeof a&&(a=a(t)),r.has("Connection")||a||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:I(r),agent:a})}(u),c=("https:"===p.protocol?o:i).request,l=u.signal;let h=null;const y=function(){let e=new M("The user aborted a request.");a(e),u.body&&u.body instanceof n.Readable&&u.body.destroy(e),h&&h.body&&h.body.emit("error",e)};if(l&&l.aborted)return void y();const m=function(){y(),w()},f=c(p);let g;function w(){f.abort(),l&&l.removeEventListener("abort",m),clearTimeout(g)}l&&l.addEventListener("abort",m),u.timeout&&f.once("socket",(function(e){g=setTimeout((function(){a(new d("network timeout at: "+u.url,"request-timeout")),w()}),u.timeout)})),f.on("error",(function(e){a(new d(`request to ${u.url} failed, reason: ${e.message}`,"system",e)),w()})),f.on("response",(function(e){clearTimeout(g);const t=function(e){const t=new C;for(const r of Object.keys(e))if(!F.test(r))if(Array.isArray(e[r]))for(const n of e[r])O.test(n)||(void 0===t[j][r]?t[j][r]=[n]:t[j][r].push(n));else O.test(e[r])||(t[j][r]=[e[r]]);return t}(e.headers);if(G.isRedirect(e.statusCode)){const n=t.get("Location"),i=null===n?null:V(u.url,n);switch(u.redirect){case"error":return a(new d("uri requested responds with a redirect, redirect mode is set to error: "+u.url,"no-redirect")),void w();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){a(e)}break;case"follow":if(null===i)break;if(u.counter>=u.follow)return a(new d("maximum redirect reached at: "+u.url,"max-redirect")),void w();const n={headers:new C(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout,size:u.size};return 303!==e.statusCode&&u.body&&null===R(u)?(a(new d("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void w()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==u.method)||(n.method="GET",n.body=void 0,n.headers.delete("content-length")),r(G(new N(i,n))),void w())}}e.once("end",(function(){l&&l.removeEventListener("abort",m)}));let n=e.pipe(new W);const i={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter},o=t.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===o||204===e.statusCode||304===e.statusCode)return h=new x(n,i),void r(h);const p={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH};if("gzip"==o||"x-gzip"==o)return n=n.pipe(s.createGunzip(p)),h=new x(n,i),void r(h);if("deflate"!=o&&"x-deflate"!=o){if("br"==o&&"function"==typeof s.createBrotliDecompress)return n=n.pipe(s.createBrotliDecompress()),h=new x(n,i),void r(h);h=new x(n,i),r(h)}else{e.pipe(new W).once("data",(function(e){n=8==(15&e[0])?n.pipe(s.createInflate()):n.pipe(s.createInflateRaw()),h=new x(n,i),r(h)}))}})),function(e,t){const r=t.body;null===r?e.end():A(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(f,u)}))}G.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},G.Promise=global.Promise,t.default=G},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.RetryHelper=void 0;const i=["DELETE","GET","HEAD","OPTIONS","PUT"],a=["EAI_AGAIN","ECONNRESET","ENOTFOUND","ENETUNREACH","ETIMEOUT"];t.RetryHelper=class{constructor(e,t=4,r=!1,n=1e3){this.extraHeaders=e,this.maxTryCount=t,this.debugLogging=r,this.retryBackoffStepMillis=n,this.wrappedFetchWithRetry=(e,t)=>{const r=Object.assign({},t);r.headers=Object.assign(Object.assign({},r.headers),this.extraHeaders);return(null==t?void 0:t.method)&&i.includes(null==t?void 0:t.method)?this.retryWithBackoff(e,r,this.maxTryCount-1):(this.debugLogging&&console.debug(`API call [${e}]`),fetch(e,r))}}retryWithBackoff(e,t,r=0){return n(this,void 0,void 0,(function*(){let n;try{this.debugLogging&&console.debug(`API call [${e}]`),n=yield fetch(e,t);const i=n.status;return r>0&&(i>=500&&i<=599||429===i)?(this.debugLogging&&console.debug(`Received error status [${i}], retrying`),yield this.backoff(r),this.retryWithBackoff(e,t,r-1)):n}catch(n){if(r>0&&a.includes(n.code))return this.debugLogging&&console.debug(`Received error [${n.code}], retrying`),yield this.backoff(r),this.retryWithBackoff(e,t,r-1);throw n}}))}backoff(e){const t=1+Math.random()/10,r=Math.floor((this.maxTryCount-e)*this.retryBackoffStepMillis*t);return this.debugLogging&&console.debug(`Sleeping [${r}ms] until next retry`),n=r,new Promise(e=>setTimeout(e,n));var n}}}])}));
|