@northflank/js-client 0.11.0 → 0.12.0-beta.0
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/dist/api-client.d.ts +3186 -919
- package/dist/api-client.js +10 -10
- package/dist/api-client.js.map +1 -1
- package/dist/api-client.mjs +10 -10
- package/dist/api-client.mjs.map +1 -1
- package/package.json +2 -2
package/dist/api-client.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";var zd=Object.create;var yi=Object.defineProperty;var Kd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Yd=Object.getPrototypeOf,Zd=Object.prototype.hasOwnProperty;var Qd=(s,n)=>{for(var e in n)yi(s,e,{get:n[e],enumerable:!0})},sd=(s,n,e,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Wd(n))!Zd.call(s,r)&&r!==e&&yi(s,r,{get:()=>n[r],enumerable:!(t=Kd(n,r))||t.enumerable});return s};var k=(s,n,e)=>(e=s!=null?zd(Yd(s)):{},sd(n||!s||!s.__esModule?yi(e,"default",{value:s,enumerable:!0}):e,s)),Xd=s=>sd(yi({},"__esModule",{value:!0}),s);var Pl={};Qd(Pl,{AbortAddonBackupEndpoint:()=>Yr,AbortAddonRestoreEndpoint:()=>Zr,AbortJobBuildEndpoint:()=>Xn,AbortJobRunEndpoint:()=>ma,AbortPreviewblueprintrunEndpoint:()=>Za,AbortReleaseflowrunEndpoint:()=>$a,AbortServiceBuildEndpoint:()=>jo,AbortTemplaterunEndpoint:()=>li,AbortWorkflowrunEndpoint:()=>vs,AddBackupdestinationEndpoint:()=>Re,AddDomainSubdomainEndpoint:()=>st,AddRegistrycredentialsEndpoint:()=>Zt,AddSshidentitiesEndpoint:()=>rr,AddSubdomainPathEndpoint:()=>It,AddTagEndpoint:()=>Ts,ApiClient:()=>od,ApiClientContextProvider:()=>z,ApiClientEnvironmentContextProvider:()=>nd,ApiClientFileContextProvider:()=>ad,ApiClientInMemoryContextProvider:()=>hi,ApiEndpoint:()=>H,AssignSubdomainPathEndpoint:()=>Pt,AssignSubdomainServiceEndpoint:()=>pt,AttachVolumeEndpoint:()=>is,BackupAddonEndpoint:()=>zr,BackupVolumeEndpoint:()=>us,CopyType:()=>Zi,CordonCloudClusterNodeEndpoint:()=>Ge,CreateAddonBackupscheduleEndpoint:()=>Hr,CreateAddonEndpoint:()=>Nr,CreateCloudClusterEndpoint:()=>Ue,CreateCloudIntegrationEndpoint:()=>Oe,CreateContainersnapshotEndpoint:()=>ts,CreateCustomvcsTokenEndpoint:()=>dr,CreateDomainEndpoint:()=>et,CreateEgressipEndpoint:()=>Et,CreateExternaladdonEndpoint:()=>Rn,CreateGlobalsecretEndpoint:()=>Ss,CreateGradualrolloutstrategyEndpoint:()=>Tt,CreateHarnessEndpoint:()=>wn,CreateJobCronEndpoint:()=>Dn,CreateJobEndpoint:()=>Tn,CreateJobManualEndpoint:()=>Nn,CreateLlmmodeldeploymentEndpoint:()=>Ra,CreateLoadbalancerEndpoint:()=>ur,CreateLogsinkEndpoint:()=>Bt,CreateNetworkpolicyEndpoint:()=>Ir,CreateNotificationEndpoint:()=>Vt,CreateOrgroleEndpoint:()=>vr,CreateOrgrolememberEndpoint:()=>xr,CreatePreviewblueprintEndpoint:()=>Ba,CreateProjectEndpoint:()=>Tr,CreateSecretEndpoint:()=>Xa,CreateServiceBuildEndpoint:()=>po,CreateServiceCombinedEndpoint:()=>co,CreateServiceDeploymentEndpoint:()=>fo,CreateTeamEndpoint:()=>Ns,CreateTeammemberinviteEndpoint:()=>Hs,CreateTeamroleEndpoint:()=>zs,CreateTeamrolememberEndpoint:()=>Xs,CreateTemplateEndpoint:()=>ri,CreateVolumeBackupscheduleEndpoint:()=>ls,CreateVolumeEndpoint:()=>ns,CreateWorkflowEndpoint:()=>Is,CreateWorkloadidentitiesEndpoint:()=>gi,DeleteAddonBackupscheduleEndpoint:()=>Fr,DeleteAddonEndpoint:()=>_r,DeleteApiEndpoint:()=>b,DeleteApitokenkeyEndpoint:()=>ui,DeleteBackupEndpoint:()=>Wr,DeleteBackupdestinationEndpoint:()=>Pe,DeleteBlueprinttemplatepreviewEndpoint:()=>Ha,DeleteCloudClusterEndpoint:()=>qe,DeleteCloudIntegrationEndpoint:()=>He,DeleteContainersnapshotEndpoint:()=>We,DeleteDomainEndpoint:()=>nt,DeleteEgressipEndpoint:()=>jt,DeleteExternaladdonEndpoint:()=>Pn,DeleteGlobalsecretEndpoint:()=>Us,DeleteGradualrolloutstrategyEndpoint:()=>$t,DeleteHarnessEndpoint:()=>kn,DeleteJobEndpoint:()=>Jn,DeleteLlmmodeldeploymentEndpoint:()=>Pa,DeleteLoadbalancerEndpoint:()=>fr,DeleteLogsinkEndpoint:()=>Mt,DeleteNetworkpolicyEndpoint:()=>yr,DeleteNotificationEndpoint:()=>Wt,DeleteOrgroleEndpoint:()=>Er,DeleteOrgrolememberEndpoint:()=>Ur,DeletePipelinetemplatepreviewEndpoint:()=>ka,DeletePreviewblueprintEndpoint:()=>_a,DeleteProjectEndpoint:()=>$r,DeleteRegistrycredentialsEndpoint:()=>er,DeleteSecretEndpoint:()=>no,DeleteSecretlinkEndpoint:()=>io,DeleteServiceEndpoint:()=>yo,DeleteServicePerreplicavolumeEndpoint:()=>Mo,DeleteServicePerreplicavolumegroupEndpoint:()=>Oo,DeleteSshidentitiesEndpoint:()=>sr,DeleteSubdomainEndpoint:()=>lt,DeleteSubdomainPathEndpoint:()=>yt,DeleteTagEndpoint:()=>$s,DeleteTeamEndpoint:()=>_s,DeleteTeammemberEndpoint:()=>Fs,DeleteTeamroleEndpoint:()=>Zs,DeleteTeamrolememberEndpoint:()=>ei,DeleteTemplateEndpoint:()=>oi,DeleteVolumeBackupEndpoint:()=>gs,DeleteVolumeBackupscheduleEndpoint:()=>ps,DeleteVolumeEndpoint:()=>ss,DeleteWorkloadidentitiesEndpoint:()=>Ii,DetachVolumeEndpoint:()=>bs,DisableSubdomainCdnEndpoint:()=>ut,DrainCloudClusterNodeEndpoint:()=>$e,EnableSubdomainCdnEndpoint:()=>ct,ExecCommandStandard:()=>Q,FinaliseAddonSecretrotationEndpoint:()=>gn,GetAddonBackupDownloadEndpoint:()=>Qr,GetAddonBackupEndpoint:()=>Kr,GetAddonBackupRestoresEndpoint:()=>en,GetAddonBackupsEndpoint:()=>Vr,GetAddonBackupschedulesEndpoint:()=>Jr,GetAddonContainersEndpoint:()=>rn,GetAddonCredentialsEndpoint:()=>nn,GetAddonEndpoint:()=>Or,GetAddonRestoresEndpoint:()=>pn,GetAddonTypesEndpoint:()=>fe,GetAddonVersionEndpoint:()=>fn,GetApiEndpoint:()=>m,GetApiEndpointPaginated:()=>u,GetAuthEndpoint:()=>Ie,GetBackupdestinationEndpoint:()=>ye,GetCloudClusterEndpoint:()=>Le,GetCloudIntegrationEndpoint:()=>_e,GetContainersnapshotEndpoint:()=>Ke,GetDnsidEndpoint:()=>Qe,GetDomainEndpoint:()=>tt,GetDomaincertificateEndpoint:()=>at,GetEgressipEndpoint:()=>xt,GetExternaladdonEndpoint:()=>yn,GetGlobalsecretEndpoint:()=>xs,GetGradualrolloutstrategyEndpoint:()=>Dt,GetHarnessEndpoint:()=>Sn,GetInvoiceEndpoint:()=>Ae,GetJobBranchesEndpoint:()=>Hn,GetJobBuildEndpoint:()=>Qn,GetJobBuildargumentdetailsEndpoint:()=>Wn,GetJobBuildargumentsEndpoint:()=>zn,GetJobBuildsEndpoint:()=>Fn,GetJobContainersEndpoint:()=>ea,GetJobDeploymentEndpoint:()=>ta,GetJobEndpoint:()=>Mn,GetJobHealthchecksEndpoint:()=>na,GetJobPullrequestsEndpoint:()=>sa,GetJobRunEndpoint:()=>pa,GetJobRunsEndpoint:()=>da,GetJobRuntimeenvironmentEndpoint:()=>ua,GetJobRuntimeenvironmentdetailsEndpoint:()=>ga,GetLlmmodeldeploymentEndpoint:()=>ya,GetLoadbalancerEndpoint:()=>gr,GetLogsinkEndpoint:()=>Ot,GetNetworkpolicyEndpoint:()=>hr,GetNotificationEndpoint:()=>zt,GetOrgdirectorygroupsEndpoint:()=>Ye,GetOrgroleEndpoint:()=>Ar,GetPipelineEndpoint:()=>wa,GetPreviewblueprintEndpoint:()=>Oa,GetPreviewblueprintrunEndpoint:()=>Ya,GetPreviewtemplateEndpoint:()=>Aa,GetPreviewtemplaterunEndpoint:()=>ja,GetProjectEndpoint:()=>Gr,GetRegistrycredentialsEndpoint:()=>Qt,GetReleaseflowEndpoint:()=>La,GetReleaseflowrunEndpoint:()=>Ga,GetSecretEndpoint:()=>ro,GetSecretdetailsEndpoint:()=>lo,GetSecretlinkEndpoint:()=>so,GetServiceBranchesEndpoint:()=>Co,GetServiceBuildEndpoint:()=>Uo,GetServiceBuildargumentdetailsEndpoint:()=>So,GetServiceBuildargumentsEndpoint:()=>wo,GetServiceBuildsEndpoint:()=>Po,GetServiceContainersEndpoint:()=>Lo,GetServiceDeploymentEndpoint:()=>To,GetServiceEndpoint:()=>Ro,GetServiceHealthchecksEndpoint:()=>Go,GetServicePerreplicavolumesEndpoint:()=>Bo,GetServicePortsEndpoint:()=>_o,GetServicePullrequestsEndpoint:()=>Ho,GetServiceRolloutEndpoint:()=>zo,GetServiceRuntimeenvironmentEndpoint:()=>Zo,GetServiceRuntimeenvironmentdetailsEndpoint:()=>Xo,GetSshidentitiesEndpoint:()=>nr,GetSubdomainEndpoint:()=>dt,GetSubdomainPathEndpoint:()=>Rt,GetTagEndpoint:()=>Ds,GetTeamEndpoint:()=>Os,GetTeamroleEndpoint:()=>Ws,GetTemplateEndpoint:()=>ni,GetTemplaterunEndpoint:()=>di,GetUsageEndpoint:()=>Ee,GetVolumeBackupEndpoint:()=>cs,GetVolumeBackupsEndpoint:()=>ms,GetVolumeBackupschedulesEndpoint:()=>ds,GetVolumeEndpoint:()=>as,GetWorkflowEndpoint:()=>hs,GetWorkflowrunEndpoint:()=>Ps,GetWorkloadidentitiesEndpoint:()=>bi,ImportAddonBackupEndpoint:()=>an,ImportDomaincertificateEndpoint:()=>ot,ImportSubdomaincertificateEndpoint:()=>bt,ListAddonsEndpoint:()=>re,ListApitokensEndpoint:()=>pi,ListBackupdestinationsEndpoint:()=>he,ListBackupdestinationsbackupsEndpoint:()=>ve,ListBlueprinttemplatepreviewsEndpoint:()=>Ja,ListBranchesEndpoint:()=>pr,ListCloudClusterNodesEndpoint:()=>De,ListCloudClustersEndpoint:()=>xe,ListCloudIntegrationsEndpoint:()=>Be,ListCloudNodetypesEndpoint:()=>Fe,ListCloudProvidersEndpoint:()=>ke,ListCloudRegionsEndpoint:()=>Ve,ListContainersnapshotsEndpoint:()=>ze,ListDomainsEndpoint:()=>Xe,ListEgressipsEndpoint:()=>St,ListExternaladdonsEndpoint:()=>hn,ListGlobalsecretsEndpoint:()=>As,ListGradualrolloutstrategiesEndpoint:()=>Lt,ListHarnessesEndpoint:()=>vn,ListInvoicesEndpoint:()=>we,ListJobsEndpoint:()=>Ln,ListLlmmodeldeploymentsEndpoint:()=>ha,ListLoadbalancersEndpoint:()=>mr,ListLogsinksEndpoint:()=>Nt,ListNotificationsEndpoint:()=>Ft,ListOrgdirectorygroupmembersEndpoint:()=>Ze,ListOrgmembersEndpoint:()=>Cr,ListOrgrolemembersEndpoint:()=>kr,ListOrgrolesEndpoint:()=>Pr,ListPipelinesEndpoint:()=>va,ListPipelinetemplatepreviewsEndpoint:()=>Ea,ListPlansEndpoint:()=>jr,ListPreviewblueprintrunsEndpoint:()=>Wa,ListPreviewblueprintsEndpoint:()=>Na,ListPreviewtemplaterunsEndpoint:()=>Ua,ListProjectsEndpoint:()=>Lr,ListRegionsEndpoint:()=>ws,ListRegistrycredentialsEndpoint:()=>Yt,ListReleaseflowrunsEndpoint:()=>Da,ListReposEndpoint:()=>lr,ListSecretsEndpoint:()=>Qa,ListServiceDeploymentsEndpoint:()=>Do,ListServicesEndpoint:()=>ne,ListSshidentitiesEndpoint:()=>tr,ListSubdomainPathEndpoint:()=>ht,ListTagsEndpoint:()=>Ls,ListTeammembersEndpoint:()=>Js,ListTeamrolemembersEndpoint:()=>Qs,ListTeamrolesEndpoint:()=>Vs,ListTeamsEndpoint:()=>Bs,ListTemplaterunsEndpoint:()=>ii,ListTemplatesEndpoint:()=>ti,ListUsageEndpoint:()=>Se,ListVcsEndpoint:()=>ir,ListVolumesEndpoint:()=>rs,ListWorkflowrunsEndpoint:()=>Cs,ListWorkflowsEndpoint:()=>fs,ListWorkloadidentitiesEndpoint:()=>ci,LogType:()=>Qi,MetricType:()=>td,NorthflankApiCallError:()=>X,NorthflankExecCommand:()=>ue,NorthflankFileCopy:()=>ce,NorthflankLogFetch:()=>ge,NorthflankMetricFetch:()=>be,NorthflankPortForwarder:()=>pe,PatchAddonEndpoint:()=>Mr,PatchApiEndpoint:()=>C,PatchBackupdestinationEndpoint:()=>Ce,PatchCloudClusterEndpoint:()=>Te,PatchCloudIntegrationEndpoint:()=>Je,PatchEgressipEndpoint:()=>Ut,PatchGlobalsecretEndpoint:()=>ks,PatchGradualrolloutstrategyEndpoint:()=>Gt,PatchHarnessEndpoint:()=>En,PatchJobCronEndpoint:()=>$n,PatchJobEndpoint:()=>_n,PatchJobManualEndpoint:()=>On,PatchLoadbalancerEndpoint:()=>br,PatchNetworkpolicyEndpoint:()=>Rr,PatchOrgroleEndpoint:()=>Sr,PatchProjectEndpoint:()=>Dr,PatchSecretEndpoint:()=>to,PatchServiceBuildEndpoint:()=>uo,PatchServiceCombinedEndpoint:()=>bo,PatchServiceDeploymentEndpoint:()=>ho,PatchTagEndpoint:()=>Gs,PatchTeamEndpoint:()=>Ms,PatchTeamroleEndpoint:()=>Ys,PauseAddonEndpoint:()=>sn,PauseBlueprinttemplatepreviewEndpoint:()=>Fa,PauseHarnessEndpoint:()=>xn,PauseJobEndpoint:()=>oa,PauseLogsinkEndpoint:()=>_t,PauseServiceEndpoint:()=>No,PostApiEndpoint:()=>i,PromoteServiceRolloutEndpoint:()=>Wo,PurgeSubdomainCdnEndpoint:()=>gt,PutAddonEndpoint:()=>Br,PutApiEndpoint:()=>w,PutCloudClusterEndpoint:()=>je,PutCloudIntegrationEndpoint:()=>Me,PutDomainSubdomainEndpoint:()=>it,PutEgressipEndpoint:()=>kt,PutGlobalsecretEndpoint:()=>Es,PutGradualrolloutstrategyEndpoint:()=>qt,PutHarnessEndpoint:()=>An,PutJobCronEndpoint:()=>Gn,PutJobEndpoint:()=>qn,PutJobManualEndpoint:()=>Bn,PutLoadbalancerEndpoint:()=>cr,PutOrgroleEndpoint:()=>wr,PutProjectEndpoint:()=>qr,PutSecretEndpoint:()=>eo,PutServiceBuildEndpoint:()=>mo,PutServiceCombinedEndpoint:()=>go,PutServiceDeploymentEndpoint:()=>Io,PutSshidentitiesEndpoint:()=>ar,PutTagEndpoint:()=>qs,PutTeamroleEndpoint:()=>Ks,ResetAddonEndpoint:()=>dn,ResetBlueprinttemplatepreviewEndpoint:()=>Va,ResetServiceBuildcacheEndpoint:()=>Eo,RestartAddonEndpoint:()=>ln,RestartHarnessEndpoint:()=>Un,RestartServiceEndpoint:()=>Fo,RestoreAddonBackupEndpoint:()=>Xr,ResumeAddonEndpoint:()=>mn,ResumeBlueprinttemplatepreviewEndpoint:()=>za,ResumeHarnessEndpoint:()=>jn,ResumeJobEndpoint:()=>ia,ResumeLogsinkEndpoint:()=>Jt,ResumeServiceEndpoint:()=>Vo,RetainAddonBackupEndpoint:()=>tn,RollbackServiceRolloutEndpoint:()=>Yo,RotateApitokenkeyEndpoint:()=>mi,RunPreviewblueprintEndpoint:()=>Ka,RunPreviewtemplateEndpoint:()=>xa,RunReleaseflowEndpoint:()=>qa,RunTemplateEndpoint:()=>si,RunWorkflowEndpoint:()=>ys,ScaleAddonEndpoint:()=>un,ScaleJobEndpoint:()=>ba,ScaleServiceEndpoint:()=>es,StartAddonSecretrotationEndpoint:()=>cn,StartJobBuildEndpoint:()=>Vn,StartJobRunEndpoint:()=>la,StartServiceBuildEndpoint:()=>vo,SuspendJobEndpoint:()=>Ia,TriggerGlobalsecretDependentsEndpoint:()=>js,UnassignSubdomainEndpoint:()=>mt,UnassignSubdomainPathEndpoint:()=>vt,UncordonCloudClusterNodeEndpoint:()=>Ne,UpdateAddonNetworksettingsEndpoint:()=>on,UpdateAddonSecurityEndpoint:()=>bn,UpdateAddonVersionEndpoint:()=>In,UpdateDomainEndpoint:()=>rt,UpdateExternaladdonEndpoint:()=>Cn,UpdateJobBuildargumentsEndpoint:()=>Kn,UpdateJobBuildoptionsEndpoint:()=>Yn,UpdateJobBuildsourceEndpoint:()=>Zn,UpdateJobDeploymentEndpoint:()=>ra,UpdateJobHealthchecksEndpoint:()=>aa,UpdateJobRuntimeenvironmentEndpoint:()=>ca,UpdateJobSettingsEndpoint:()=>fa,UpdateLlmmodeldeploymentEndpoint:()=>Ca,UpdateLogsinkEndpoint:()=>Ht,UpdateNotificationEndpoint:()=>Kt,UpdatePreviewblueprintEndpoint:()=>Ma,UpdatePreviewtemplateEndpoint:()=>Sa,UpdateRegistrycredentialsEndpoint:()=>Xt,UpdateReleaseflowEndpoint:()=>Ta,UpdateSecretEndpoint:()=>ao,UpdateSecretlinkEndpoint:()=>oo,UpdateServiceBuildargumentsEndpoint:()=>Ao,UpdateServiceBuildoptionsEndpoint:()=>ko,UpdateServiceBuildsourceEndpoint:()=>xo,UpdateServiceDeploymentEndpoint:()=>qo,UpdateServiceHealthchecksEndpoint:()=>$o,UpdateServicePortsEndpoint:()=>Jo,UpdateServiceRolloutConfigurationEndpoint:()=>Ko,UpdateServiceRuntimeenvironmentEndpoint:()=>Qo,UpdateSshidentitiesEndpoint:()=>or,UpdateSubdomainGeoroutingEndpoint:()=>ft,UpdateSubdomainPathEndpoint:()=>Ct,UpdateTemplateEndpoint:()=>ai,UpdateVolumeEndpoint:()=>os,UpdateWorkflowEndpoint:()=>Rs,UpdateWorkloadidentitiesEndpoint:()=>fi,VerifyDomainEndpoint:()=>At,VerifySubdomainEndpoint:()=>wt});module.exports=Xd(Pl);var kd=require("events");var Fi=require("child_process"),dd=k(require("stream")),N=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Hi,id=!1,G=async()=>{if(N){if(!id&&(id=!0,process.env.HTTP_PROXY??process.env.http_proxy??process.env.HTTPS_PROXY??process.env.https_proxy))try{let{EnvHttpProxyAgent:n}=await import("undici");Hi=new n}catch{Hi=void 0}return Hi}},Ci,Pi=async s=>{if(!s||!N)return fetch;if(!Ci)try{Ci=(await import("undici")).fetch}catch{Ci=fetch}return Ci},ae=(s,n=50)=>e=>{let t=s,r=async()=>{try{return await e()}catch(o){if(t<=0)throw o;return t-=1,await new Promise(a=>setTimeout(()=>a(),n)),r()}};return r()};function ld(){let s=()=>!(process.getuid&&process.getuid()!==0),n=()=>{try{return(0,Fi.execSync)("fsutil dirty query %systemdrive%"),!0}catch(e){if(e.code==="ENOENT")try{return(0,Fi.execSync)("fltmc"),!0}catch{return!1}return!1}};return process.platform!=="win32"?s()?{error:!1,type:"unix-admin"}:{error:!0,message:`You are not running this command with sufficient privileges (uid=${process?.getuid?.()}). Try running with 'sudo -E'.`}:n()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."}}var Vi=s=>Array.isArray(s)?s:[s],vi=async(s,n)=>{let e=Promise.resolve([]);return s.reduce((t,r)=>t.then(o=>n(r).then(a=>(o.push(a),o))),e)},D=class extends dd.default.Writable{constructor(e=8*1024){super();this.bufferDefaultSize=e;this._size=0;this.buffer=Buffer.alloc(this.bufferDefaultSize)}get size(){return this._size}getContentsAsString(e="utf8",t){let r=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),o=Buffer.byteLength(r);return o<this.size&&this.buffer.copy(this.buffer,0,o),this._size-=o,r}adaptBuffer(e){if(this.buffer.length-this.size<e){let t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),r=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(r,0,0,this.size),this.buffer=r}}_write(e,t,r){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,r()}};var wi=class{constructor(n,e){this.contextProvider=n;this.dispatcher=e;this.getTeamScopePrefix=n=>n!==void 0?`teams/${n}/`:""}async getServiceDetails(n,e,t){let r=this.getTeamScopePrefix(t);return this.fetch(`${this.contextProvider.getCurrentBaseUrl()}/v1/port-forwarding/info/${r}projects/${n}/services/${e}`)}async getHarnessDetails(n,e,t){let r=this.getTeamScopePrefix(t);return this.fetch(`${this.contextProvider.getCurrentBaseUrl()}/v1/port-forwarding/info/${r}projects/${n}/harnesses/${e}`)}async getAddonDetails(n,e,t){let r=this.getTeamScopePrefix(t);return this.fetch(`${this.contextProvider.getCurrentBaseUrl()}/v1/port-forwarding/info/${r}projects/${n}/addons/${e}`)}async fetch(n,e){let t="Error while trying to connect, please try again.",r=this.dispatcher??await G(),o={...e,dispatcher:r,headers:{Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`,"Content-Type":"application/json",...e?.headers}},a=await Pi(!!r),l=await ae(2)(async()=>a(n,o)).catch(p=>{let d=p instanceof Error?p.cause?.message??p.message:String(p);throw new Error(`${t} (${d})`)});if(!l.ok){let p=await l.text(),d=t;try{d=JSON.parse(p)}catch(c){d=p??c?.message??t}finally{throw new Error(JSON.stringify(d))}}return await l.json()}};var pd=k(require("os")),md=require("child_process"),ud=async s=>{pd.default.platform()==="darwin"&&await el("lo0","alias",s,"up")},el=async(...s)=>await tl("/sbin/ifconfig",s).resultPromise,Ai=s=>{let n=s.split(".").reverse();if(n.length!==4)throw new Error(`Invalid ip address: ${s}`);let e=0;for(let t=0;t<4;t+=1){let r=Number.parseInt(n[t],10);if(r<0||r>255)throw new Error(`Invalid ip address: ${s}`);e+=r<<8*t}return e},cd=s=>{if(!Number.isSafeInteger(s))throw new Error("Number is not an integer");if(s<0||s>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");let n=[];for(let e=0;e<4;e+=1)n.push(s>>8*e&255);return n.reverse().join(".")},tl=(s,n,e)=>{let t=(0,md.spawn)(s,n,{windowsHide:!0,...e}),r=new Promise((o,a)=>{let l="",p="";(e?.stdio===null||e?.stdio===void 0)&&(t.stdout&&t.stdout.on("data",c=>{l+=c}),t.stderr&&t.stderr.on("data",c=>{p+=c})),t.on("close",c=>{let g={code:c,stdout:l,stderr:p};if(c!==0){let R={message:`Error during execution of command '${s} ${n.join(" ")}': ${p}`,result:g};a(R)}else o(g)})});return{process:t,resultPromise:r}};var x=k(require("fs")),zi=k(require("os")),B=k(require("path")),xi=require("crypto");var oe=k(require("fs")),Si=k(require("path")),gd=async(s,n,e)=>{let t=rl(s,10);await oe.default.promises.writeFile(t,n,e);try{await oe.default.promises.rename(t,s)}catch(r){throw await oe.default.promises.unlink(t).catch(()=>{}),r}},rl=(s,n)=>{let e=o=>[...Array(o)].map(()=>Math.floor(Math.random()*16).toString(16)).join(""),t=Si.default.dirname(s),r=Si.default.basename(s);for(let o=0;o<(n??10);o+=1){let l=`.${e(16)}.${r}`,p=Si.default.join(t,l);if(!oe.default.existsSync(p))return p}throw new Error(`Could not write file to file '${s}'.`)};var al=process.platform==="win32",Id=al?`\r
|
|
1
|
+
"use strict";var gl=Object.create;var Ms=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var fl=Object.getOwnPropertyNames;var Il=Object.getPrototypeOf,hl=Object.prototype.hasOwnProperty;var yl=(i,n)=>{for(var e in n)Ms(i,e,{get:n[e],enumerable:!0})},Ed=(i,n,e,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of fl(n))!hl.call(i,r)&&r!==e&&Ms(i,r,{get:()=>n[r],enumerable:!(t=bl(n,r))||t.enumerable});return i};var x=(i,n,e)=>(e=i!=null?gl(Il(i)):{},Ed(n||!i||!i.__esModule?Ms(e,"default",{value:i,enumerable:!0}):e,i)),Rl=i=>Ed(Ms({},"__esModule",{value:!0}),i);var Hl={};yl(Hl,{AbortAddonBackupEndpoint:()=>In,AbortAddonRestoreEndpoint:()=>hn,AbortJobBuildEndpoint:()=>ya,AbortJobRunEndpoint:()=>ja,AbortPreviewblueprintrunEndpoint:()=>ho,AbortReleaseflowrunEndpoint:()=>no,AbortServiceBuildEndpoint:()=>Zo,AbortTemplaterunEndpoint:()=>Us,AbortWorkflowrunEndpoint:()=>Hi,ActivateEncryptionConfigurationEndpoint:()=>$t,ActivateEncryptionNorthflankmanagedEndpoint:()=>_t,AddBackupdestinationEndpoint:()=>ye,AddDomainSubdomainEndpoint:()=>dt,AddRegistrycredentialsEndpoint:()=>Ir,AddSshidentitiesEndpoint:()=>vr,AddSubdomainPathEndpoint:()=>yt,AddTagEndpoint:()=>Xi,ApiClient:()=>Sd,ApiClientContextProvider:()=>z,ApiClientEnvironmentContextProvider:()=>wd,ApiClientFileContextProvider:()=>Ad,ApiClientInMemoryContextProvider:()=>Bs,ApiEndpoint:()=>J,AssignSubdomainPathEndpoint:()=>wt,AssignSubdomainServiceEndpoint:()=>ut,AttachVolumeEndpoint:()=>Ei,BackupAddonEndpoint:()=>gn,BackupVolumeEndpoint:()=>Li,CopyType:()=>hd,CordonCloudClusterNodeEndpoint:()=>$e,CreateAddonBackupscheduleEndpoint:()=>mn,CreateAddonEndpoint:()=>an,CreateAuditlogsinkEndpoint:()=>Zt,CreateCloudClusterEndpoint:()=>je,CreateCloudIntegrationEndpoint:()=>Me,CreateContainersnapshotEndpoint:()=>Ci,CreateCustomvcsTokenEndpoint:()=>kr,CreateDomainEndpoint:()=>rt,CreateEgressipEndpoint:()=>xt,CreateEncryptionConfigurationEndpoint:()=>Dt,CreateExternaladdonEndpoint:()=>Bn,CreateGlobalsecretEndpoint:()=>Vi,CreateGradualrolloutstrategyEndpoint:()=>Ft,CreateHarnessEndpoint:()=>Jn,CreateJobCronEndpoint:()=>ta,CreateJobEndpoint:()=>Xn,CreateJobManualEndpoint:()=>aa,CreateLlmmodeldeploymentEndpoint:()=>Ba,CreateLoadbalancerEndpoint:()=>Lr,CreateLogsinkEndpoint:()=>or,CreateNetworkpolicyEndpoint:()=>$r,CreateNotificationEndpoint:()=>ur,CreateOrgroleEndpoint:()=>Hr,CreateOrgrolememberEndpoint:()=>Wr,CreatePreviewblueprintEndpoint:()=>oo,CreateProjectEndpoint:()=>Xr,CreateSecretEndpoint:()=>Ro,CreateServiceBuildEndpoint:()=>Uo,CreateServiceCombinedEndpoint:()=>qo,CreateServiceDeploymentEndpoint:()=>Go,CreateTeamEndpoint:()=>as,CreateTeammemberinviteEndpoint:()=>ps,CreateTeamroleEndpoint:()=>cs,CreateTeamrolememberEndpoint:()=>ys,CreateTemplateEndpoint:()=>vs,CreateVolumeBackupscheduleEndpoint:()=>xi,CreateVolumeEndpoint:()=>Pi,CreateWorkflowEndpoint:()=>$i,CreateWorkloadidentitiesEndpoint:()=>Ds,DeactivateEncryptionConfigurationEndpoint:()=>Nt,DeleteAddonBackupscheduleEndpoint:()=>un,DeleteAddonEndpoint:()=>ln,DeleteApiEndpoint:()=>b,DeleteApitokenkeyEndpoint:()=>qs,DeleteAuditlogsinkEndpoint:()=>tr,DeleteBackupEndpoint:()=>fn,DeleteBackupdestinationEndpoint:()=>ve,DeleteBlueprinttemplatepreviewEndpoint:()=>mo,DeleteCloudClusterEndpoint:()=>De,DeleteCloudIntegrationEndpoint:()=>Fe,DeleteContainersnapshotEndpoint:()=>Ze,DeleteDomainEndpoint:()=>ot,DeleteEgressipEndpoint:()=>qt,DeleteExternaladdonEndpoint:()=>_n,DeleteGlobalsecretEndpoint:()=>Yi,DeleteGradualrolloutstrategyEndpoint:()=>Wt,DeleteHarnessEndpoint:()=>Kn,DeleteJobEndpoint:()=>la,DeleteLlmmodeldeploymentEndpoint:()=>_a,DeleteLoadbalancerEndpoint:()=>Gr,DeleteLogsinkEndpoint:()=>sr,DeleteNetworkpolicyEndpoint:()=>Or,DeleteNotificationEndpoint:()=>br,DeleteOrgroleEndpoint:()=>zr,DeleteOrgrolememberEndpoint:()=>Yr,DeletePipelinetemplatepreviewEndpoint:()=>Ka,DeletePreviewblueprintEndpoint:()=>lo,DeleteProjectEndpoint:()=>nn,DeleteRegistrycredentialsEndpoint:()=>Rr,DeleteSecretEndpoint:()=>wo,DeleteSecretlinkEndpoint:()=>ko,DeleteServiceEndpoint:()=>Oo,DeleteServicePerreplicavolumeEndpoint:()=>si,DeleteServicePerreplicavolumegroupEndpoint:()=>ii,DeleteSshidentitiesEndpoint:()=>Sr,DeleteSubdomainEndpoint:()=>mt,DeleteSubdomainPathEndpoint:()=>vt,DeleteTagEndpoint:()=>ns,DeleteTeamEndpoint:()=>ds,DeleteTeammemberEndpoint:()=>ms,DeleteTeamroleEndpoint:()=>Is,DeleteTeamrolememberEndpoint:()=>Rs,DeleteTemplateEndpoint:()=>As,DeleteVolumeBackupEndpoint:()=>Ti,DeleteVolumeBackupscheduleEndpoint:()=>Ui,DeleteVolumeEndpoint:()=>Si,DeleteWorkloadidentitiesEndpoint:()=>Ns,DetachVolumeEndpoint:()=>Di,DisableSubdomainCdnEndpoint:()=>gt,DrainCloudClusterNodeEndpoint:()=>Ne,EnableSubdomainCdnEndpoint:()=>bt,ExecCommandStandard:()=>Q,FinaliseAddonSecretrotationEndpoint:()=>Tn,GetAddonBackupDownloadEndpoint:()=>yn,GetAddonBackupEndpoint:()=>bn,GetAddonBackupRestoresEndpoint:()=>Cn,GetAddonBackupsEndpoint:()=>cn,GetAddonBackupschedulesEndpoint:()=>pn,GetAddonContainersEndpoint:()=>Pn,GetAddonCredentialsEndpoint:()=>wn,GetAddonEndpoint:()=>sn,GetAddonRestoresEndpoint:()=>Un,GetAddonTypesEndpoint:()=>fe,GetAddonVersionEndpoint:()=>Gn,GetApiEndpoint:()=>m,GetApiEndpointPaginated:()=>u,GetAuditlogsinkEndpoint:()=>Qt,GetAuthEndpoint:()=>Ie,GetBackupdestinationEndpoint:()=>Re,GetCloudClusterEndpoint:()=>qe,GetCloudIntegrationEndpoint:()=>He,GetContainersnapshotEndpoint:()=>Ye,GetCreditbalanceEndpoint:()=>we,GetDnsidEndpoint:()=>et,GetDomainEndpoint:()=>nt,GetDomaincertificateEndpoint:()=>it,GetEgressipEndpoint:()=>jt,GetEncryptionConfigurationEndpoint:()=>Gt,GetEncryptionConfigurationsUsageEndpoint:()=>Ht,GetExternaladdonEndpoint:()=>On,GetGlobalsecretEndpoint:()=>Wi,GetGradualrolloutstrategyEndpoint:()=>zt,GetHarnessEndpoint:()=>Vn,GetInvoiceEndpoint:()=>Se,GetJobBranchesEndpoint:()=>pa,GetJobBuildEndpoint:()=>ha,GetJobBuildargumentdetailsEndpoint:()=>ba,GetJobBuildargumentsEndpoint:()=>ca,GetJobBuildsEndpoint:()=>ma,GetJobContainersEndpoint:()=>Ra,GetJobDeploymentEndpoint:()=>Ca,GetJobEndpoint:()=>sa,GetJobHealthchecksEndpoint:()=>Pa,GetJobPullrequestsEndpoint:()=>Sa,GetJobRunEndpoint:()=>Ua,GetJobRunsEndpoint:()=>ka,GetJobRuntimeenvironmentEndpoint:()=>La,GetJobRuntimeenvironmentdetailsEndpoint:()=>Ta,GetLlmmodeldeploymentEndpoint:()=>Oa,GetLoadbalancerEndpoint:()=>Tr,GetLogsinkEndpoint:()=>ir,GetNetworkpolicyEndpoint:()=>Nr,GetNotificationEndpoint:()=>cr,GetOrgdirectorygroupsEndpoint:()=>Qe,GetOrgroleEndpoint:()=>Fr,GetPipelineEndpoint:()=>Ja,GetPreviewblueprintEndpoint:()=>io,GetPreviewblueprintrunEndpoint:()=>Io,GetPreviewtemplateEndpoint:()=>Fa,GetPreviewtemplaterunEndpoint:()=>Za,GetProjectEndpoint:()=>rn,GetRegistrycredentialsEndpoint:()=>hr,GetReleaseflowEndpoint:()=>Qa,GetReleaseflowrunEndpoint:()=>ro,GetSecretEndpoint:()=>Po,GetSecretdetailsEndpoint:()=>xo,GetSecretlinkEndpoint:()=>Eo,GetServiceBranchesEndpoint:()=>Mo,GetServiceBuildEndpoint:()=>Yo,GetServiceBuildargumentdetailsEndpoint:()=>Vo,GetServiceBuildargumentsEndpoint:()=>Jo,GetServiceBuildsEndpoint:()=>_o,GetServiceContainersEndpoint:()=>Qo,GetServiceDeploymentEndpoint:()=>Xo,GetServiceEndpoint:()=>Bo,GetServiceHealthchecksEndpoint:()=>ri,GetServicePerreplicavolumesEndpoint:()=>oi,GetServicePortsEndpoint:()=>di,GetServicePullrequestsEndpoint:()=>pi,GetServiceRolloutEndpoint:()=>ci,GetServiceRuntimeenvironmentEndpoint:()=>Ii,GetServiceRuntimeenvironmentdetailsEndpoint:()=>yi,GetSshidentitiesEndpoint:()=>Pr,GetSubdomainEndpoint:()=>pt,GetSubdomainPathEndpoint:()=>Ct,GetTagEndpoint:()=>ts,GetTeamEndpoint:()=>is,GetTeamroleEndpoint:()=>bs,GetTemplateEndpoint:()=>Ps,GetTemplaterunEndpoint:()=>xs,GetUsageEndpoint:()=>ke,GetVolumeBackupEndpoint:()=>qi,GetVolumeBackupsEndpoint:()=>ji,GetVolumeBackupschedulesEndpoint:()=>ki,GetVolumeEndpoint:()=>wi,GetWorkflowEndpoint:()=>Ni,GetWorkflowrunEndpoint:()=>_i,GetWorkloadidentitiesEndpoint:()=>Gs,ImportAddonBackupEndpoint:()=>An,ImportDomaincertificateEndpoint:()=>st,ImportSubdomaincertificateEndpoint:()=>It,ImportTemplateStateEndpoint:()=>Ss,ListAddonsEndpoint:()=>re,ListApitokensEndpoint:()=>js,ListAuditlogsinksEndpoint:()=>Yt,ListBackupdestinationsEndpoint:()=>he,ListBackupdestinationsbackupsEndpoint:()=>Pe,ListBlueprinttemplatepreviewsEndpoint:()=>po,ListBranchesEndpoint:()=>Ur,ListCloudClusterNodesEndpoint:()=>Ge,ListCloudClustersEndpoint:()=>Ue,ListCloudIntegrationsEndpoint:()=>Oe,ListCloudNodetypesEndpoint:()=>Ve,ListCloudPermissionsEndpoint:()=>ze,ListCloudProvidersEndpoint:()=>xe,ListCloudRegionsEndpoint:()=>Ke,ListContainersnapshotsEndpoint:()=>We,ListDomainsEndpoint:()=>tt,ListEgressipsEndpoint:()=>kt,ListEncryptionConfigurationsEndpoint:()=>Tt,ListExternaladdonsEndpoint:()=>Nn,ListGlobalsecretsEndpoint:()=>Fi,ListGradualrolloutstrategiesEndpoint:()=>Jt,ListHarnessesEndpoint:()=>Hn,ListInvoicesEndpoint:()=>Ae,ListJobsEndpoint:()=>Qn,ListLlmmodeldeploymentsEndpoint:()=>Na,ListLoadbalancersEndpoint:()=>jr,ListLogsinksEndpoint:()=>ar,ListNotificationsEndpoint:()=>mr,ListOrgdirectorygroupmembersEndpoint:()=>Xe,ListOrgmembersEndpoint:()=>Mr,ListOrgrolemembersEndpoint:()=>Kr,ListOrgrolesEndpoint:()=>_r,ListPipelinesEndpoint:()=>Ha,ListPipelinetemplatepreviewsEndpoint:()=>za,ListPlansEndpoint:()=>Zr,ListPreviewblueprintrunsEndpoint:()=>fo,ListPreviewblueprintsEndpoint:()=>ao,ListPreviewtemplaterunsEndpoint:()=>Ya,ListProjectsEndpoint:()=>Qr,ListRegionsEndpoint:()=>Ji,ListRegistrycredentialsEndpoint:()=>fr,ListReleaseflowrunsEndpoint:()=>to,ListReposEndpoint:()=>xr,ListSecretsEndpoint:()=>yo,ListServiceDeploymentsEndpoint:()=>ti,ListServicesEndpoint:()=>ne,ListSshidentitiesEndpoint:()=>Cr,ListSubdomainPathEndpoint:()=>Rt,ListTagsEndpoint:()=>Qi,ListTeammembersEndpoint:()=>ls,ListTeamrolemembersEndpoint:()=>hs,ListTeamrolesEndpoint:()=>us,ListTeamsEndpoint:()=>os,ListTemplaterunsEndpoint:()=>ks,ListTemplatesEndpoint:()=>Cs,ListUsageEndpoint:()=>Ee,ListVcsEndpoint:()=>Er,ListVolumesEndpoint:()=>vi,ListWorkflowrunsEndpoint:()=>Mi,ListWorkflowsEndpoint:()=>Gi,ListWorkloadidentitiesEndpoint:()=>Ts,LogType:()=>yd,MetricType:()=>vd,NorthflankApiCallError:()=>X,NorthflankExecCommand:()=>ue,NorthflankFileCopy:()=>ce,NorthflankLogFetch:()=>ge,NorthflankMetricFetch:()=>be,NorthflankPortForwarder:()=>pe,PatchAddonEndpoint:()=>dn,PatchApiEndpoint:()=>R,PatchAuditlogsinkEndpoint:()=>er,PatchBackupdestinationEndpoint:()=>Ce,PatchCloudClusterEndpoint:()=>Te,PatchCloudIntegrationEndpoint:()=>Je,PatchEgressipEndpoint:()=>Lt,PatchGlobalsecretEndpoint:()=>Ki,PatchGradualrolloutstrategyEndpoint:()=>Kt,PatchHarnessEndpoint:()=>zn,PatchJobCronEndpoint:()=>na,PatchJobEndpoint:()=>da,PatchJobManualEndpoint:()=>ia,PatchLoadbalancerEndpoint:()=>Dr,PatchNetworkpolicyEndpoint:()=>Br,PatchOrgroleEndpoint:()=>Vr,PatchProjectEndpoint:()=>tn,PatchSecretEndpoint:()=>vo,PatchServiceBuildEndpoint:()=>Lo,PatchServiceCombinedEndpoint:()=>Do,PatchServiceDeploymentEndpoint:()=>No,PatchTagEndpoint:()=>rs,PatchTeamEndpoint:()=>ss,PatchTeamroleEndpoint:()=>fs,PauseAddonEndpoint:()=>En,PauseAuditlogsinkEndpoint:()=>rr,PauseBlueprinttemplatepreviewEndpoint:()=>uo,PauseHarnessEndpoint:()=>Wn,PauseJobEndpoint:()=>Aa,PauseLogsinkEndpoint:()=>dr,PauseServiceEndpoint:()=>ai,PostApiEndpoint:()=>s,PromoteServiceRolloutEndpoint:()=>bi,PurgeSubdomainCdnEndpoint:()=>ft,PutAddonEndpoint:()=>on,PutApiEndpoint:()=>v,PutAuditlogsinkEndpoint:()=>Xt,PutCloudClusterEndpoint:()=>Le,PutCloudIntegrationEndpoint:()=>_e,PutDomainSubdomainEndpoint:()=>lt,PutEgressipEndpoint:()=>Ut,PutGlobalsecretEndpoint:()=>zi,PutGradualrolloutstrategyEndpoint:()=>Vt,PutHarnessEndpoint:()=>Fn,PutJobCronEndpoint:()=>ra,PutJobEndpoint:()=>ea,PutJobManualEndpoint:()=>oa,PutLoadbalancerEndpoint:()=>qr,PutOrgroleEndpoint:()=>Jr,PutProjectEndpoint:()=>en,PutSecretEndpoint:()=>Co,PutServiceBuildEndpoint:()=>jo,PutServiceCombinedEndpoint:()=>To,PutServiceDeploymentEndpoint:()=>$o,PutSshidentitiesEndpoint:()=>wr,PutTagEndpoint:()=>es,PutTeamroleEndpoint:()=>gs,ResetAddonEndpoint:()=>kn,ResetBlueprinttemplatepreviewEndpoint:()=>co,ResetServiceBuildcacheEndpoint:()=>zo,RestartAddonEndpoint:()=>xn,RestartHarnessEndpoint:()=>Yn,RestartServiceEndpoint:()=>mi,RestoreAddonBackupEndpoint:()=>Rn,ResumeAddonEndpoint:()=>jn,ResumeAuditlogsinkEndpoint:()=>nr,ResumeBlueprinttemplatepreviewEndpoint:()=>go,ResumeHarnessEndpoint:()=>Zn,ResumeJobEndpoint:()=>Ea,ResumeLogsinkEndpoint:()=>lr,ResumeServiceEndpoint:()=>ui,RetainAddonBackupEndpoint:()=>vn,RollbackServiceRolloutEndpoint:()=>fi,RotateApitokenkeyEndpoint:()=>Ls,RunPreviewblueprintEndpoint:()=>bo,RunPreviewtemplateEndpoint:()=>Wa,RunReleaseflowEndpoint:()=>eo,RunTemplateEndpoint:()=>Es,RunWorkflowEndpoint:()=>Oi,ScaleAddonEndpoint:()=>Ln,ScaleJobEndpoint:()=>Da,ScaleServiceEndpoint:()=>Ri,StartAddonSecretrotationEndpoint:()=>qn,StartJobBuildEndpoint:()=>ua,StartJobRunEndpoint:()=>xa,StartServiceBuildEndpoint:()=>Ho,SuspendJobEndpoint:()=>$a,TriggerGlobalsecretDependentsEndpoint:()=>Zi,UnassignSubdomainEndpoint:()=>ct,UnassignSubdomainPathEndpoint:()=>At,UncordonCloudClusterNodeEndpoint:()=>Be,UpdateAddonNetworksettingsEndpoint:()=>Sn,UpdateAddonSecurityEndpoint:()=>Dn,UpdateAddonVersionEndpoint:()=>$n,UpdateDomainEndpoint:()=>at,UpdateEncryptionConfigurationOptionsEndpoint:()=>Bt,UpdateEncryptionConfigurationSettingsEndpoint:()=>Ot,UpdateExternaladdonEndpoint:()=>Mn,UpdateJobBuildargumentsEndpoint:()=>ga,UpdateJobBuildoptionsEndpoint:()=>fa,UpdateJobBuildsourceEndpoint:()=>Ia,UpdateJobDeploymentEndpoint:()=>va,UpdateJobHealthchecksEndpoint:()=>wa,UpdateJobRuntimeenvironmentEndpoint:()=>qa,UpdateJobSettingsEndpoint:()=>Ga,UpdateLlmmodeldeploymentEndpoint:()=>Ma,UpdateLogsinkEndpoint:()=>pr,UpdateNotificationEndpoint:()=>gr,UpdatePreviewblueprintEndpoint:()=>so,UpdatePreviewtemplateEndpoint:()=>Va,UpdateRegistrycredentialsEndpoint:()=>yr,UpdateReleaseflowEndpoint:()=>Xa,UpdateSecretEndpoint:()=>Ao,UpdateSecretlinkEndpoint:()=>So,UpdateServiceBuildargumentsEndpoint:()=>Fo,UpdateServiceBuildoptionsEndpoint:()=>Ko,UpdateServiceBuildsourceEndpoint:()=>Wo,UpdateServiceDeploymentEndpoint:()=>ei,UpdateServiceHealthchecksEndpoint:()=>ni,UpdateServicePortsEndpoint:()=>li,UpdateServiceRolloutConfigurationEndpoint:()=>gi,UpdateServiceRuntimeenvironmentEndpoint:()=>hi,UpdateSshidentitiesEndpoint:()=>Ar,UpdateSubdomainGeoroutingEndpoint:()=>ht,UpdateSubdomainPathEndpoint:()=>Pt,UpdateTemplateEndpoint:()=>ws,UpdateVolumeEndpoint:()=>Ai,UpdateWorkflowEndpoint:()=>Bi,UpdateWorkloadidentitiesEndpoint:()=>$s,VerifyDomainEndpoint:()=>Et,VerifyEncryptionConfigurationEndpoint:()=>Mt,VerifySubdomainEndpoint:()=>St});module.exports=Rl(Hl);var Wd=require("events");var ud=require("child_process"),xd=x(require("stream")),N=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,md,kd=!1,$=async()=>{if(N){if(!kd&&(kd=!0,process.env.HTTP_PROXY??process.env.http_proxy??process.env.HTTPS_PROXY??process.env.https_proxy))try{let{EnvHttpProxyAgent:n}=await import("undici");md=new n}catch{md=void 0}return md}},_s,Hs=async i=>{if(!i||!N)return fetch;if(!_s)try{_s=(await import("undici")).fetch}catch{_s=fetch}return _s},ae=(i,n=50)=>e=>{let t=i,r=async()=>{try{return await e()}catch(o){if(t<=0)throw o;return t-=1,await new Promise(a=>setTimeout(()=>a(),n)),r()}};return r()};function Ud(){let i=()=>!(process.getuid&&process.getuid()!==0),n=()=>{try{return(0,ud.execSync)("fsutil dirty query %systemdrive%"),!0}catch(e){if(e.code==="ENOENT")try{return(0,ud.execSync)("fltmc"),!0}catch{return!1}return!1}};return process.platform!=="win32"?i()?{error:!1,type:"unix-admin"}:{error:!0,message:`You are not running this command with sufficient privileges (uid=${process?.getuid?.()}). Try running with 'sudo -E'.`}:n()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."}}var cd=i=>Array.isArray(i)?i:[i],Js=async(i,n)=>{let e=Promise.resolve([]);return i.reduce((t,r)=>t.then(o=>n(r).then(a=>(o.push(a),o))),e)},G=class extends xd.default.Writable{constructor(e=8*1024){super();this.bufferDefaultSize=e;this._size=0;this.buffer=Buffer.alloc(this.bufferDefaultSize)}get size(){return this._size}getContentsAsString(e="utf8",t){let r=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),o=Buffer.byteLength(r);return o<this.size&&this.buffer.copy(this.buffer,0,o),this._size-=o,r}adaptBuffer(e){if(this.buffer.length-this.size<e){let t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),r=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(r,0,0,this.size),this.buffer=r}}_write(e,t,r){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,r()}};var Fs=class{constructor(n,e){this.contextProvider=n;this.dispatcher=e;this.getTeamScopePrefix=n=>n!==void 0?`teams/${n}/`:""}async getServiceDetails(n,e,t){let r=this.getTeamScopePrefix(t);return this.fetch(`${this.contextProvider.getCurrentBaseUrl()}/v1/port-forwarding/info/${r}projects/${n}/services/${e}`)}async getHarnessDetails(n,e,t){let r=this.getTeamScopePrefix(t);return this.fetch(`${this.contextProvider.getCurrentBaseUrl()}/v1/port-forwarding/info/${r}projects/${n}/harnesses/${e}`)}async getAddonDetails(n,e,t){let r=this.getTeamScopePrefix(t);return this.fetch(`${this.contextProvider.getCurrentBaseUrl()}/v1/port-forwarding/info/${r}projects/${n}/addons/${e}`)}async fetch(n,e){let t="Error while trying to connect, please try again.",r=this.dispatcher??await $(),o={...e,dispatcher:r,headers:{Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`,"Content-Type":"application/json",...e?.headers}},a=await Hs(!!r),d=await ae(2)(async()=>a(n,o)).catch(p=>{let l=p instanceof Error?p.cause?.message??p.message:String(p);throw new Error(`${t} (${l})`)});if(!d.ok){let p=await d.text(),l=t;try{l=JSON.parse(p)}catch(c){l=p??c?.message??t}finally{throw new Error(JSON.stringify(l))}}return await d.json()}};var jd=x(require("os")),Ld=require("child_process"),qd=async i=>{jd.default.platform()==="darwin"&&await Cl("lo0","alias",i,"up")},Cl=async(...i)=>await vl("/sbin/ifconfig",i).resultPromise,Vs=i=>{let n=i.split(".").reverse();if(n.length!==4)throw new Error(`Invalid ip address: ${i}`);let e=0;for(let t=0;t<4;t+=1){let r=Number.parseInt(n[t],10);if(r<0||r>255)throw new Error(`Invalid ip address: ${i}`);e+=r<<8*t}return e},Td=i=>{if(!Number.isSafeInteger(i))throw new Error("Number is not an integer");if(i<0||i>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");let n=[];for(let e=0;e<4;e+=1)n.push(i>>8*e&255);return n.reverse().join(".")},vl=(i,n,e)=>{let t=(0,Ld.spawn)(i,n,{windowsHide:!0,...e}),r=new Promise((o,a)=>{let d="",p="";(e?.stdio===null||e?.stdio===void 0)&&(t.stdout&&t.stdout.on("data",c=>{d+=c}),t.stderr&&t.stderr.on("data",c=>{p+=c})),t.on("close",c=>{let f={code:c,stdout:d,stderr:p};if(c!==0){let h={message:`Error during execution of command '${i} ${n.join(" ")}': ${p}`,result:f};a(h)}else o(f)})});return{process:t,resultPromise:r}};var U=x(require("fs")),gd=x(require("os")),B=x(require("path")),Ys=require("crypto");var oe=x(require("fs")),zs=x(require("path")),Dd=async(i,n,e)=>{let t=Pl(i,10);await oe.default.promises.writeFile(t,n,e);try{await oe.default.promises.rename(t,i)}catch(r){throw await oe.default.promises.unlink(t).catch(()=>{}),r}},Pl=(i,n)=>{let e=o=>[...Array(o)].map(()=>Math.floor(Math.random()*16).toString(16)).join(""),t=zs.default.dirname(i),r=zs.default.basename(i);for(let o=0;o<(n??10);o+=1){let d=`.${e(16)}.${r}`,p=zs.default.join(t,d);if(!oe.default.existsSync(p))return p}throw new Error(`Could not write file to file '${i}'.`)};var Al=process.platform==="win32",Nd=Al?`\r
|
|
2
2
|
`:`
|
|
3
|
-
`,ol=17,de=class s{constructor(n,e){this.nodes=n;this.config=e}add(n,e,t){if(e.length===0)return this;let r=this.findOrCreateEntry(n,t);return this.addHostsToEntry(r,e),this}addToSection(n,e,t){if(e.length===0)return this;let r=ie(t),o=this.nodes.findIndex((p,d)=>p.type==="comment"&&p.line===r&&this.sectionEnd(d,t)!==void 0);if(o<0){let p=this.nodes.length>0&&this.nodes[this.nodes.length-1].type!=="blank";this.insertAt(this.nodes.length,...p?[bd()]:[],Ei(r),Ei(this.sectionEndMarker(t))),o=this.nodes.length-2}let a=this.sectionEnd(o,t),l=this.nodes.slice(o+1,a).find(p=>p.type==="entry"&&p.ip===n);return l||(l=this.makeEntry(n),this.insertAt(a,l)),this.addHostsToEntry(l,e),this}addHostsToEntry(n,e){e.forEach(t=>{if(n.hosts.find(o=>o.host===t))return;let r=1;n.hosts.length===0&&(r=this.config.indent-`${n.ipPrefixWhitespace}${n.ip}`.length),n.hosts.push({whitespace:" ".repeat(r<1?1:r),host:t})})}remove(n,e){return this.findEntries(n).forEach(t=>{e.forEach(r=>{let o=t.hosts.findIndex(a=>a.host===r);o<0||(o===0&&t.hosts[1]!==void 0&&(t.hosts[1].whitespace=t.hosts[0].whitespace),t.hosts.splice(o,1),t.hosts.length===0&&this.removeEntry(t))})}),this}removeHosts(n){se(this.nodes,"entry").forEach(e=>{this.remove(e.ip,n)})}sectionEndMarker(n){return`# End ${ie(n).slice(2)}`}sectionEnd(n,e){let t=n+1;for(;this.nodes[t]?.type==="entry";)t+=1;let r=this.nodes[t];return r?.type==="comment"&&r.line===this.sectionEndMarker(e)?t:void 0}removeSection(n){let e=ie(n),t=0;for(let r=this.nodes.length-1;r>=0;r-=1){let o=this.nodes[r];if(o.type!=="comment"||o.line!==e)continue;let a=this.sectionEnd(r,n);a!==void 0&&(t+=this.nodes.slice(r+1,a).reduce((l,p)=>l+p.hosts.length,0),this.nodes.splice(r,a-r+1))}return t}removeIps(n){return n.forEach(e=>{this.findEntries(e).forEach(t=>this.removeEntry(t))}),this}resolveHosts(n){return this.findEntries(n).flatMap(e=>e.hosts.map(t=>t.host))}resolveIps(n){return se(this.nodes,"entry").filter(e=>e.hosts.some(t=>t.host===n)).map(e=>e.ip)}toString(){return sl(this.nodes,this.config.eol)}removeEntry(n){let e=typeof n=="number"?n:this.nodes.findIndex(t=>t===n);e<0||this.nodes.splice(e,1)}findEntries(n){return se(this.nodes,"entry").filter(e=>e.ip===n)}findOrCreateEntry(n,e){let t=this.findEntries(n)[0];if(t)return t;let r=this.makeEntry(n);if(e){let o=ie(e),a=this.nodes.findIndex(l=>l.type==="comment"&&l.line===o);if(a>=0)this.insertAt(a+1,r);else{let p=this.nodes[this.nodes.length-1].type!=="blank"?[bd(),Ei(o),r]:[Ei(o),r];this.insertAt(this.nodes.length,...p)}}else this.insertAt(this.nodes.length,r);return r}insertAt(n,...e){this.nodes.splice(n,0,...e)}makeEntry(n,e){let{ipPrefixWhitespace:t}=this.config;return{type:"entry",ip:n,ipPrefixWhitespace:t,hosts:[],...e}}static fromNodes(n,e){let t=()=>{let o=se(n,"eol").map(a=>a.line);return fd(o)??Id},r=()=>{let o=se(n,"entry").flatMap(({ipPrefixWhitespace:a,ip:l,hosts:p})=>{let d=p[0];return d?[`${a}${l}${d.whitespace}`.length]:[]});return fd(o)??ol};return new s(n.filter(o=>o.type!=="eol"),{eol:e?.eol??t(),indent:e?.indent??r(),ipPrefixWhitespace:""})}static parse(n,e){return this.fromNodes(il(n),e)}},bd=()=>({type:"blank",line:""}),Ei=s=>({type:"comment",line:ie(s)}),ie=s=>s.startsWith("#")?s:`# ${s}`,sl=(s,n)=>s.map(t=>{switch(t.type){case"entry":{let r=t.hosts.map(({whitespace:o,host:a})=>`${o}${a}`).join("");return`${t.ipPrefixWhitespace}${t.ip}${r}`}case"blank":return t.line;case"comment":return t.line;case"invalid":return t.line;default:return""}}).join(n??Id),il=s=>{let n=o=>o.match(/^\s*#.*$/),e=o=>o.match(/^\s*$/),t=o=>o.match(/^(\r?\n)$/);return s.split(/(\r?\n)/).map(o=>n(o)?{type:"comment",line:o}:t(o)?{type:"eol",line:o}:e(o)?{type:"blank",line:o}:dl(o))},dl=s=>{let n=s.match(/^(\s*)(\S+)(.+)?$/);if(!n)return{type:"invalid",line:s};let[,e,t,...r]=n,o=!1,l=r.filter(p=>p!==void 0).flatMap(p=>{let d=p.match(/(\s+)(\S+)/g);return d?d.map(c=>{let g=c.match(/^(\s+)(\S+)$/);g||(o=!0);let[,f,R]=g??[];return{whitespace:f,host:R}}):(o=!0,[])});return o?{type:"invalid",line:s}:{type:"entry",ipPrefixWhitespace:e,ip:t,hosts:l}},se=(s,n)=>s.filter(e=>e.type===n),fd=s=>{let n=new Map;s.forEach(t=>{n.set(t,(n.get(t)??0)+1)});let e;for(let t of n.entries())(!e||t[1]>e[1])&&(e=t);if(e)return e[0]};var Ki=process.platform==="win32",Wi=Ki?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Ui="Northflank Proxy",ki=class s{constructor(n){this.ast=de.fromNodes([]);let e={writeMode:"atomic",hostsFile:Wi};this.config={...e,...n}}add(n,...e){if(typeof n!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(t=>{if(typeof t!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof t}.`)}),this.ast.add(n,e,this.config.header),this}addToSection(n,e,t){if(typeof n!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(r=>{if(typeof r!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof r}.`)}),this.ast.addToSection(n,e,t),this}remove(n,...e){if(typeof n!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(t=>{if(typeof t!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof t}.`)}),this.ast.remove(n,e),this}removeHosts(...n){return n.forEach(e=>{if(typeof e!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof e}.`)}),this.ast.removeHosts(n),this}removeSection(n){return this.ast.removeSection(n)}removeIps(...n){return n.forEach(e=>{if(typeof e!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof e}.`)}),this.ast.removeIps(n),this}async read(){let n=await x.default.promises.readFile(this.config.hostsFile);return this.ast=de.parse(n.toString(),this.config),this}async write(n){let{hostsFile:e,writeMode:t}={...this.config,...n},r=this.ast.toString();switch(t){case void 0:case"atomic":await gd(e,r);break;case"standard":await x.default.promises.writeFile(e,r);break;default:break}return this}async backup(n){if(!x.default.existsSync(this.config.hostsFile))return;let e=B.default.dirname(this.config.hostsFile),r=`${B.default.basename(this.config.hostsFile)}${n.suffix}`,o=B.default.resolve(e,r);(!x.default.existsSync(o)||n.rewrite)&&await x.default.promises.copyFile(this.config.hostsFile,o)}static async load(n){return await new s(n).read()}},K=s=>s?.code==="ENOENT",ll=s=>{try{return process.kill(s,0),!0}catch(n){return n?.code!=="ESRCH"}},pl=async s=>{try{return await x.default.promises.realpath(s)}catch(n){if(!K(n))throw n;return B.default.resolve(s)}},ml=async(s,n)=>{let e=await pl(s),t=Ki?e.toLowerCase():e,r=(0,xi.createHash)("sha256").update(t).digest("hex").slice(0,16);return B.default.join(n,`northflank-hosts-${r}.lock`)},ul=async(s,n)=>{let e=n?[n]:Ki?[zi.default.tmpdir()]:["/var/run",zi.default.tmpdir()],t=[...new Set(e.map(r=>B.default.resolve(r)))];return Promise.all(t.map(r=>ml(s,r)))},cl=s=>["EACCES","EPERM","EROFS","ENOENT","ENOTDIR"].includes(s?.code??""),hd=async s=>{let n=await x.default.promises.mkdtemp(`${s}.`),e=`${(0,xi.randomUUID)()}.json`;try{return await x.default.promises.writeFile(B.default.join(n,e),JSON.stringify({pid:process.pid,createdAt:Date.now()}),{mode:384}),await x.default.promises.rename(n,s),e}catch(t){let r=t?.code;throw["EEXIST","ENOTEMPTY","ENOTDIR"].includes(r??"")?Object.assign(new Error("Hosts-file lock exists"),{code:"EEXIST"}):(r==="EPERM"||r==="EACCES")&&await x.default.promises.lstat(s).catch(a=>{if(!K(a))throw a})?Object.assign(new Error("Hosts-file lock exists"),{code:"EEXIST"}):t}finally{await x.default.promises.rm(n,{recursive:!0,force:!0})}},Rd=async(s,n)=>{try{let e=await x.default.promises.stat(s);try{let t=JSON.parse(await x.default.promises.readFile(s,"utf8"));if(Number.isInteger(t?.pid)&&t.pid>0)return!ll(t.pid)}catch{}return Date.now()-e.mtimeMs>=n}catch(e){if(K(e))return!0;throw e}},yd=async s=>{await x.default.promises.rmdir(s).catch(n=>{if(!["ENOENT","ENOTEMPTY","EEXIST"].includes(n.code))throw n})},gl=async(s,n)=>{try{if(!(await x.default.promises.lstat(s)).isDirectory()){await Rd(s,n)&&await x.default.promises.unlink(s).catch(t=>{if(!["ENOENT","EISDIR","EPERM"].includes(t.code))throw t});return}for(let t of await x.default.promises.readdir(s)){let r=B.default.join(s,t);await Rd(r,n)&&await x.default.promises.unlink(r).catch(o=>{if(!K(o))throw o})}await yd(s)}catch(e){if(!K(e))throw e}};async function Cd(s,n,e={}){let t=e.timeoutMs??1e4,r=e.staleMs??3e4,o=e.retryDelayMs??25,a=await ul(s,e.lockDirectory),l=Date.now()+t,p,d;for(let c=0;c<a.length;c+=1){let g=a[c];try{d=await hd(g),p=g;break}catch(f){if(f?.code==="EEXIST"){p=g;break}if(c<a.length-1&&cl(f))continue;throw f}}if(!p)throw new Error(`Could not determine a lock path for '${s}'.`);for(;!d;)try{d=await hd(p)}catch(c){if(c?.code!=="EEXIST")throw c;if(await gl(p,r),Date.now()>=l)throw new Error(`Timed out waiting to update hosts file '${s}'.`);await new Promise(g=>setTimeout(g,o))}try{return await n()}finally{await x.default.promises.unlink(B.default.join(p,d)).catch(c=>{if(!K(c))throw c}),await yd(p)}}var le=class{constructor(){this.previousPromise=Promise.resolve();this._queueLength=0}get queueLength(){return this._queueLength}async enter(n){this._queueLength+=1;let e=this.previousPromise.then(()=>(this._queueLength-=1,n()),()=>(this._queueLength-=1,n()));return this.previousPromise=e,e}};var qi=k(require("pump")),vd=k(require("net")),wd=require("events"),Ad=require("stream");var Pd=require("stream");function W(s,n=1<<20){s.binaryType="arraybuffer";let e=1,t=!1,r=null,o=[],a=(d,c)=>{try{s.send(d)}catch(f){return c(f)}let g=()=>{if(r)return c(r);if(s.bufferedAmount<n)return c();if(s.readyState!==e)return c(new Error("WebSocket closed before write drained"));setTimeout(g,5)};g()},l=d=>{for(let{cb:c}of o.splice(0))c(d)},p=new Pd.Duplex({read(){},write(d,c,g){t?a(d,g):o.push({chunk:d,cb:g})},final(d){try{s.close(1e3)}catch{}d()},destroy(d,c){try{s.close()}catch{}c(d)}});return s.addEventListener("open",()=>{t=!0;for(let{chunk:d,cb:c}of o.splice(0))a(d,c)}),s.addEventListener("message",d=>{let c=d.data;p.push(Buffer.from(c))}),s.addEventListener("close",()=>{l(r??new Error("WebSocket closed before write drained")),p.push(null)}),s.addEventListener("error",d=>{let c=d?.error instanceof Error?d.error:new Error("WebSocket error");r=c,l(c),p.destroy(c)}),p}var M=class extends Error{constructor(n,e){let t=n.code==="EADDRINUSE"?"is already in use":n.code==="EACCES"?"could not be opened because permission was denied":`could not be opened: ${n.message}`;super(`Local binding ${e.address}:${e.port} ${t}.`,{cause:n}),this.name="PortBindingError",this.code=n.code??"PORT_BIND_FAILED",this.binding=e}},Y=class extends Error{constructor(){super("Local port forwarding was skipped by the user.");this.code="PORT_FORWARD_SKIPPED";this.name="PortForwardingSkippedError"}},Z=class extends Error{constructor(){super("Port forwarding was stopped by the user.");this.code="PORT_FORWARD_ABORTED";this.name="PortForwardingAbortedError"}},ji=s=>s?.code==="EADDRINUSE"||s?.code==="EACCES",Li=s=>{if(!s||!["random","use-port","skip","abort"].includes(s.action))throw new Error("Invalid port conflict resolution returned by resolver.");if(s.action==="use-port"&&(!Number.isInteger(s.port)||s.port<1||s.port>65535))throw new Error(`Invalid local port '${s.port}'. Expected an integer from 1 to 65535.`);return s};var Ti=require("undici");function _(s,n={}){let e,t="",r="",o=n.dispatcher??(0,Ti.getGlobalDispatcher)(),a={dispatch(d,c){let g=Object.create(c);return g.onHeaders=(f,R,y,I)=>(e=f,t=I??"",c.onHeaders?c.onHeaders(f,R,y,I):!0),g.onData=f=>(r.length<1e3&&(r+=f.toString()),c.onData?c.onData(f):!0),o.dispatch(d,g)},close:(...d)=>o.close?.(...d),destroy:(...d)=>o.destroy?.(...d)};return{ws:new Ti.WebSocket(s,{...n,dispatcher:a}),upgradeFailure:()=>{if(e===void 0||e===101)return;let d=r.trim().slice(0,300);try{let g=JSON.parse(r),f=[g?.error,g?.message,g?.data?.message],R=f.find(I=>typeof I=="string"&&I.trim()),y=f.map(I=>I&&typeof I=="object"?I.message:void 0).find(I=>typeof I=="string"&&I.trim());d=(R??y??d).toString().trim().slice(0,300)}catch{}let c=e===401||e===403?" (check the token's permissions)":"";return new Error(`server refused the connection: ${e}${t?` ${t}`:""}${d?` - ${d}`:""}${c}`)}}}var bl=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Di=class extends wd.EventEmitter{constructor(e,t,r,o,a,l=5e3){super();this.endpoint=e;this.headers=t;this.rewriteHostHeader=r;this.bindToAssign=o;this.dispatcher=a;this.closeTimeout=l;this.protocol="TCP";this.openConnections=new Set;this.tcpServer=vd.createServer(this.handleConnection.bind(this)),this.tcpServer.on("error",d=>this.emit("connection-error",d));let p=r?.altHostnames.map(d=>bl(d)).join("|");this.hostRegex=new RegExp(`Host: (?:${p})(:.*$|$)`,"im")}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1,t){this.resolvedDispatcher=this.dispatcher??await G();let r=d=>new Promise((c,g)=>{let f=!1,R=I=>{f||(f=!0,this.tcpServer.removeListener("listening",y),this.tcpServer.removeListener("error",R),g(I))},y=()=>{if(f)return;f=!0,this.tcpServer.removeListener("error",R);let I=this.tcpServer.address(),v=I.address==="0.0.0.0"||I.address==="::"?"127.0.0.1":I.address;c({address:v,port:I.port})};this.tcpServer.once("error",R);try{d?this.tcpServer.listen(d.port,d.address,y):this.tcpServer.listen(0,y)}catch(I){R(I)}}),o=this.bindToAssign;if(!o){let d=await r();return this.boundTo=d,this.emit("tunnel-open",d),d}let a=o,l,p=!1;for(;;)try{let d=await r(a);this.boundTo=d,this.emit("tunnel-open",d);let c=d.address!==o.address||d.port!==o.port;return{...d,...c?{fallbackFrom:o,fallbackReason:l}:{}}}catch(d){if(!ji(d))throw new M(d,a);l??=d.code;let c=t?Li(await t({code:d.code,requestedBinding:a})):e&&!p?{action:"random"}:void 0;switch(c?.action){case"random":p=!0,a={address:o.address,port:0};break;case"use-port":a={address:o.address,port:c.port};break;case"skip":throw new Y;case"abort":throw new Z;default:throw new M(d,a)}}}close(){if(this.closePromise)return this.closePromise;let e=new Promise((t,r)=>{let o=!1,a,l=()=>{o||(o=!0,a&&clearTimeout(a),this.emit("tunnel-close"),t())};a=setTimeout(()=>{this.openConnections.forEach(p=>p.destroy()),this.openConnections.clear(),l()},this.closeTimeout),typeof a.unref=="function"&&a.unref();try{this.tcpServer.close(l)}catch(p){clearTimeout(a),p?.code==="ERR_SERVER_NOT_RUNNING"?l():r(p)}});return this.closePromise=e.catch(t=>{throw this.closePromise=void 0,t}),this.closePromise}handleConnection(e){this.openConnections.add(e),e.once("close",()=>this.openConnections.delete(e));let t=this.endpoint.replace("https:","wss:"),{ws:r,upgradeFailure:o}=_(t,{headers:this.headers,dispatcher:this.resolvedDispatcher}),a=W(r),l=this.getHeaderTransform();this.rewriteHostHeader&&l?(0,qi.default)(e,l,a):(0,qi.default)(e,a),(0,qi.default)(a,e),r.addEventListener("close",d=>{this.emit("connection-close",d.code,d.reason)});let p;r.addEventListener("error",d=>{p=o()??(d?.error instanceof Error?d.error:new Error("WebSocket connection failed")),this.emit("connection-error",p),e.destroy()}),a.on("error",d=>{p||this.emit("connection-error",d)}),e.on("error",d=>{this.emit("connection-error",d)}),this.emit("connection-accept")}getHeaderTransform(){let e=(t,r,o)=>{let a=(d,c,g)=>{let f=Buffer.from(c),R=d.indexOf(f);if(R===-1)return d;let y=d.subarray(0,R),I=d.subarray(R+f.length);return Buffer.concat([y,g,I])},l=Buffer.from(o),p=Buffer.from(t);return r.forEach(d=>{p=a(p,d,l)}),p};if(this.rewriteHostHeader){let{targetHostname:t,altHostnames:r}=this.rewriteHostHeader,o=this.hostRegex;return new Ad.Transform({transform(a,l,p){let d=a.toString();if(d.split(`
|
|
4
|
-
`,1)[0].includes("HTTP")&&o.test(d)){let g=r.map(f=>`Host: ${f}`);p(null,e(a,g,`Host: ${t}`))}else p(null,a)}})}}};var Sd=require("events"),Ed=k(require("dgram"));var Gi=class extends Sd.EventEmitter{constructor(e,t,r,o){super();this.endpoint=e;this.headers=t;this.bindToAssign=r;this.dispatcher=o;this.protocol="UDP";this.udpSocket=Ed.default.createSocket("udp4"),this.udpSocket.on("error",a=>this.emit("connection-error",a))}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1,t){await this.handleConnection();let r=d=>new Promise((c,g)=>{let f=!1,R=I=>{f||(f=!0,g(I))},y=()=>{if(f)return;f=!0,this.udpSocket.removeListener("error",R);let I=this.udpSocket.address(),v=I.address==="0.0.0.0"||I.address==="::"?"127.0.0.1":I.address;c({address:v,port:I.port})};this.udpSocket.once("error",R),d?this.udpSocket.bind(d.port,d.address,y):this.udpSocket.bind(0,y)}),o=this.bindToAssign;if(!o){let d=await r();return this.boundTo=d,this.emit("tunnel-open",d),d}let a=o,l,p=!1;for(;;)try{let d=await r(a);this.boundTo=d,this.emit("tunnel-open",d);let c=d.address!==o.address||d.port!==o.port;return{...d,...c?{fallbackFrom:o,fallbackReason:l}:{}}}catch(d){if(!ji(d))throw new M(d,a);l??=d.code;let c=t?Li(await t({code:d.code,requestedBinding:a})):e&&!p?{action:"random"}:void 0;switch(c?.action){case"random":p=!0,a={address:o.address,port:0};break;case"use-port":a={address:o.address,port:c.port};break;case"skip":throw new Y;case"abort":throw new Z;default:throw new M(d,a)}}}close(){if(this.closePromise)return this.closePromise;let e=new Promise((t,r)=>{try{this.duplex?.destroy()}catch{}try{this.remote?.close()}catch{}try{this.udpSocket.close(()=>{this.emit("tunnel-close"),t()})}catch(o){o?.code==="ERR_SOCKET_DGRAM_NOT_RUNNING"?(this.emit("tunnel-close"),t()):r(o)}});return this.closePromise=e.catch(t=>{throw this.closePromise=void 0,t}),this.closePromise}async handleConnection(){let e=this.dispatcher??await G(),t=this.endpoint.replace("https:","wss:"),{ws:r,upgradeFailure:o}=_(t,{headers:this.headers,dispatcher:e}),a=W(r);this.remote=r,this.duplex=a;let l;this.udpSocket.on("message",(d,c)=>{l=c,a.write(d)}),a.on("data",d=>{l&&this.udpSocket.send(d,l.port,l.address,c=>{c&&this.emit("connection-error",c)})});let p;r.addEventListener("error",d=>{p=o()??(d?.error instanceof Error?d.error:new Error("WebSocket connection failed")),this.emit("connection-error",p)}),a.on("error",d=>{p||this.emit("connection-error",d)}),r.addEventListener("close",d=>{this.emit("connection-close",d.code,d.reason)}),this.emit("connection-accept")}};var xd=k(require("os")),Ud=require("crypto"),pe=class extends kd.EventEmitter{constructor(e,t,r,o,a={}){super();this.contextProvider=e;this.listServices=t;this.listAddons=r;this.dispatcher=o;this.options=a;this.connections=[];this.stoppingConnections=new Map;this.pendingForwarding=new Set;this.acceptingForwards=!0;this.hostsFileMutex=new le;this.ipAllocationMutex=new le;this.stopForwarding=e=>{let t=this.stoppingConnections.get(e);if(t)return t;let r=this.stopForwardingOnce(e);return this.stoppingConnections.set(e,r),r};this.stopForwardingOnce=async e=>{let{hostnames:t,ipOnly:r}=e.forwardingContext,o=[];try{if(e.hostsRegistered&&t.length>0&&!r)try{await this.unregisterHostnames(e.forwardingContext.address,t),e.hostsRegistered=!1}catch(l){o.push(l)}try{await e.tunnel.close()}catch(l){o.push(l)}if(o.length>0)throw new AggregateError(o,`Failed to stop forwarding ${e.forwardingContext.id}.`);let a=this.connections.indexOf(e);a>=0&&this.connections.splice(a,1)}finally{this.stoppingConnections.delete(e)}};this.canExecuteWithHostnames=()=>ld();this.assertStartedWithNodejs=()=>{if(!N)throw new Error("Port forwarding only possible when started with nodejs")};this.proxyApiClient=new wi(e,o)}async withProjectForwarding(e,t,r=!0,o={}){try{let a=await this.forwardProject(e,r,o);return await t(a)}finally{await this.stopProjectForwarding(e)}}forwardProject(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.projectId,"project",()=>this.forwardProjectOnce(e,t,r))}async forwardProjectOnce(e,t,r){let{projectId:o,teamId:a,tags:l=[]}=e,p=a===void 0?{projectId:o}:{teamId:a,projectId:o},d=y=>l.every(I=>y.tags?.includes(I)===!0),c=await this.listServices.all({parameters:p}),g=await this.listAddons.all({parameters:p}),f=await Promise.all(c.data.services.filter(d).map(async y=>this.forwardService({teamId:a,projectId:o,serviceId:y.id},t,r))),R=await Promise.all(g.data.addons.filter(d).map(async y=>await this.forwardAddon({teamId:a,projectId:o,addonId:y.id},t,r)));return{services:f,addons:R}}async withServiceForwarding(e,t,r=!0,o={}){try{let a=await this.forwardService(e,r,o);return await t(a)}finally{await this.stopServiceForwarding(e)}}forwardService(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.serviceId,"service",()=>this.forwardServiceOnce(e,t,r))}async forwardServiceOnce(e,t,r){let{teamId:o,projectId:a,serviceId:l,instanceId:p,portsFilter:d}=e,c=await this.proxyApiClient.getServiceDetails(a,l,o),{namespace:g,targetDomain:f,instances:R,ports:y}=c;if(R.length===0)return[];let I=h=>{let P=R.map(F=>F.podName);if(p!==void 0&&!P.includes(p))throw new Error(`Instance id not found: ${p}. Expected one of [${P.join(", ")}]. Ensure that requested instance id is running on service ${l} in project ${a}.`);let A=this.proxyApiClient.getTeamScopePrefix(o),E=p!==void 0?"?directConnect=true":"",S=`https://${f}/tunnel/${A}projects/${a}/services/${l}/instance/${p??R[0].podName}/port/${h.internalPort}${E}`,j=p!==void 0?`${p}.`:"",$=`${j}${l}.${g}.svc.cluster.local`,L=[`${j}${l}`];h.name&&L.push(`${j}${h.name}.${l}`);let T;h.protocol==="HTTP"&&(T={altHostnames:L,targetHostname:$});let O=[$,...L];return this.forwardPort(S,h,O,"service",l,a,t,T,r)},v=d===void 0?y:y.filter(h=>d.includes(h.internalPort));return await vi(v,I)}async withHarnessForwarding(e,t,r=!0,o={}){try{let a=await this.forwardHarness(e,r,o);return await t(a)}finally{await this.stopHarnessForwarding(e)}}forwardHarness(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.harnessId,"harness",()=>this.forwardHarnessOnce(e,t,r))}async forwardHarnessOnce(e,t,r){let{teamId:o,projectId:a,harnessId:l,instanceId:p,portsFilter:d}=e,c=await this.proxyApiClient.getHarnessDetails(a,l,o),{namespace:g,targetDomain:f,instances:R,ports:y}=c;if(R.length===0)throw new Error(`No running instances found for harness ${l} in project ${a}.`);let I=p??R[0].podName,v=P=>{let A=R.map(U=>U.podName);if(!A.includes(I))throw new Error(`Instance id not found: ${I}. Expected one of [${A.join(", ")}]. Ensure that requested instance id is running on harness ${l} in project ${a}.`);let E=this.proxyApiClient.getTeamScopePrefix(o),j=`https://${f}/tunnel/${E}projects/${a}/harnesses/${l}/instance/${I}/port/${P.internalPort}?directConnect=true`,$=`${I}.`,L=`${$}${l}.${g}.svc.cluster.local`,T=[`${$}${l}`];P.name&&T.push(`${$}${P.name}.${l}`);let O;P.protocol==="HTTP"&&(O={altHostnames:T,targetHostname:L});let F=[L,...T];return this.forwardPort(j,P,F,"harness",l,a,t,O,r)},h=d===void 0?y:y.filter(P=>d.includes(P.internalPort));return await vi(h,v)}async withAddonForwarding(e,t,r=!0,o={}){try{let a=await this.forwardAddon(e,r,o);return await t(a)}finally{await this.stopAddonForwarding(e)}}forwardAddon(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.addonId,"addon",()=>this.forwardAddonOnce(e,t,r))}async forwardAddonOnce(e,t,r){let{teamId:o,addonId:a,projectId:l}=e,p=await this.proxyApiClient.getAddonDetails(l,a,o),d=p.instances.map(g=>{let{podName:f,internalHostname:R}=g;return g.ports.map(y=>({podName:f,internalHostname:R,port:y}))}),c=this.proxyApiClient.getTeamScopePrefix(o);return await vi(d.flat(1/0),async({podName:g,internalHostname:f,port:R})=>{let y=`https://${p.targetDomain}/tunnel/${c}projects/${l}/addons/${a}/instance/${g}/port/${R.internalPort}`;return this.forwardPort(y,R,[f],"addon",a,l,t,void 0,r)})}async allocateIpAddress(){return this.ipAllocationMutex.enter(async()=>{let e="127.24.1.1",t="127.24.255.255",r=this.nextIpAddress??e;return await ud(r),this.nextIpAddress=cd(Ai(r)+1),Ai(this.nextIpAddress)>Ai(t)&&(this.nextIpAddress=e),r})}forwardPort(e,t,r,o,a,l,p=!0,d,c={},g=!0){return this.trackPendingForwarding(l,a,o,async()=>{try{return await this.forwardPortOnce(e,t,r,o,a,l,p,d,c,g)}catch(f){if(f?.code==="PORT_FORWARD_SKIPPED")return{error:{code:"PORT_FORWARD_SKIPPED",message:`Skipped ${o} '${a}' remote port ${t.internalPort}.`}};throw f}})}trackPendingForwarding(e,t,r,o){if(!this.acceptingForwards)return Promise.reject(new Error("Port forwarding is stopping."));let a=o(),l={projectId:e,id:t,type:r,operation:a};return this.pendingForwarding.add(l),a.then(()=>this.pendingForwarding.delete(l),()=>this.pendingForwarding.delete(l)),a}async forwardPortOnce(e,t,r,o,a,l,p,d,c,g){let f={Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`};if(!p){let v=this.canExecuteWithHostnames();if(v.error)throw new Error(`${v.message} Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))`)}let R=await this.determineSocketAddress(l,a,r,o,t,p,g);if(!this.acceptingForwards)throw new Error("Port forwarding was stopped during startup.");let y=t.protocol==="UDP"?new Gi(e,f,R,this.dispatcher):new Di(e,f,d,R,this.dispatcher);y.on("connection-accept",()=>this.emit("connection-accept",y)),y.on("connection-close",async()=>this.emit("connection-close",y));let I;try{let v=c.portConflict??"random";if(v!=="random"&&v!=="fail"&&typeof v!="function")throw new Error(`Unknown port conflict policy '${v}'.`);let h=t.protocol??"TCP",P=typeof v=="function"?S=>v({...S,projectId:l,id:a,type:o,remotePort:t.internalPort,protocol:h}):void 0,A=await y.open(v==="random",P);if(!this.acceptingForwards)throw new Error("Port forwarding was stopped during startup.");let E={projectId:l,id:a,type:o,hostnames:r,ipOnly:p,port:A.port,address:A.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort,...A.fallbackFrom?{fallbackFrom:A.fallbackFrom}:{},...A.fallbackReason?{fallbackReason:A.fallbackReason}:{}};if(I={tunnel:y,forwardingContext:E,hostsRegistered:!1},this.connections.push(I),p||(I.hostsRegistered=!0,await this.registerHostnames(A.address,r)),!this.acceptingForwards)throw new Error("Port forwarding was stopped during startup.");return this.emit("tunnel-open",y,E),y.on("connection-error",S=>this.emit("connection-error",y,E,S)),y.on("tunnel-close",()=>this.emit("tunnel-close",y,E)),{data:E}}catch(v){try{I?await this.stopForwarding(I):await y.close()}catch(h){throw new AggregateError([v,h],`Port forwarding setup failed and could not be fully rolled back: ${v?.message??v}`)}throw v}}async determineSocketAddress(e,t,r,o,a,l,p){if(l&&xd.default.platform()==="darwin")if(p&&r?.[0]!==void 0){let g=`${r[0]}:${a.internalPort}/${a.protocol}`;return{address:"127.0.0.1",port:this.consistentHostnameToPortHashing(g)}}else return;let c=this.connections.filter(g=>g.forwardingContext.projectId===e&&g.forwardingContext.id===t&&g.forwardingContext.type===o)?.find(g=>r.find(f=>g.forwardingContext.hostnames.includes(f)));return c?{address:c?.forwardingContext.address,port:a.internalPort}:{address:await this.allocateIpAddress(),port:a.internalPort}}consistentHostnameToPortHashing(e){let a=(0,Ud.createHash)("sha256").update(e).digest("hex");return 3e4+parseInt(a.slice(0,8),16)%3e4}async registerHostnames(e,t){await this.modifyHostsFile(r=>{r.removeHosts(...t),r.addToSection(e,t,Ui)})}async unregisterHostnames(e,t){await this.modifyHostsFile(r=>{r.remove(e,...t)})}async modifyHostsFile(e){return this.hostsFileMutex.enter(async()=>{let t=this.options.hostsFile??Wi;return Cd(t,async()=>{let r=await ki.load({header:Ui,hostsFile:t}),o=e(r);await r.backup({suffix:".backup-pre-northflank"});try{await ae(5)(async()=>{await r.write({writeMode:"atomic"})})}catch{await ae(5)(async()=>{await r.write({writeMode:"standard"})})}return o})})}async cleanupHostsFile(){return this.modifyHostsFile(e=>e.removeSection(Ui))}waitForPending(e=()=>!0){let t=[...this.pendingForwarding].filter(e).map(r=>r.operation);if(t.length!==0)return Promise.allSettled(t).then(()=>{})}async stopConnections(e){let r=(await Promise.allSettled(e.map(o=>this.stopForwarding(o)))).flatMap(o=>o.status==="rejected"?[o.reason]:[]);if(r.length>0)throw new AggregateError(r,`Failed to clean up ${r.length} port-forward connection(s).`)}async stopProjectForwarding(e){let t=this.waitForPending(r=>r.projectId===e.projectId);t&&await t,await this.stopConnections(this.connections.filter(r=>r.forwardingContext.projectId===e.projectId))}async stopServiceForwarding(e){let t=o=>o.type==="service"&&o.projectId===e.projectId&&o.id===e.serviceId,r=this.waitForPending(t);r&&await r,await this.stopConnections(this.connections.filter(o=>t(o.forwardingContext)))}async stopHarnessForwarding(e){let t=o=>o.type==="harness"&&o.projectId===e.projectId&&o.id===e.harnessId,r=this.waitForPending(t);r&&await r,await this.stopConnections(this.connections.filter(o=>t(o.forwardingContext)))}async stopAddonForwarding(e){let t=o=>o.type==="addon"&&o.projectId===e.projectId&&o.id===e.addonId,r=this.waitForPending(t);r&&await r,await this.stopConnections(this.connections.filter(o=>t(o.forwardingContext)))}async stop(){return this.stopAllPromise?this.stopAllPromise:(this.acceptingForwards=!1,this.stopAllPromise=(async()=>{let e=this.waitForPending();e&&await e,await this.stopConnections([...this.connections])})().finally(()=>{this.acceptingForwards=!0,this.stopAllPromise=void 0}),this.stopAllPromise)}};var jd=require("events"),$i=k(require("stream"));var Yi=["us","eu","asia"];var Q=class extends jd.EventEmitter{constructor(e,t,r,o,a=new $i.PassThrough,l=new $i.PassThrough,p=new $i.PassThrough){super();this.baseUrl=e;this.execConfig=t;this.token=r;this.dispatcher=o;this.stdOut=a;this.stdErr=l;this.stdIn=p;this.drainTimeoutMs=3e4;this.waitForCommandResult=async()=>{if(this.currentCommand===void 0)throw new Error("No command is running");return await this.currentCommand};this.sendInputToCurrentCommand=async e=>{if(this.currentCommand===void 0||this.duplex===void 0)throw new Error("No command is running");this.duplex?.write(this.constructPayloadPacket(e))};this.resizeTerminal=async e=>{if(this.currentCommand===void 0||this.duplex===void 0)throw new Error("No command is running, can't resize terminal");this.duplex?.write(JSON.stringify({type:"resize",data:{ttyRows:e?.rows,ttyColumns:e?.columns}}))};this.constructPayloadPacket=e=>JSON.stringify({type:"payload",data:e.toString()});this.stdInEndPacket=JSON.stringify({type:"stdInEnd"})}get execEndpoint(){let{entityId:e,entityType:t,projectId:r,teamId:o}=this.execConfig,a=o!==void 0?`teams/${o}/`:"",l=`${this.baseUrl}/v1/command-exec/${a}projects/${r}/`;function p(){switch(t){case"service":return`services/${e}`;case"job":return`jobs/${e}`;case"addon":return`addons/${e}`;case"build":return`builds/${e}`;default:throw new Error(`Unexpected Northflank entity type received in command exec endpoint generation: ${t}`)}}return`${l}${p()}`}async start(){if(this.currentCommand!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await G(),this.currentCommand=new Promise((e,t)=>{if(this.remote!==void 0){t(Error("Command is already running"));return}let r=!1,o,a=h=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(h));return}r=!0,this.listenerCount("error")>0&&this.emit("error",new Error(h)),this.reset(),t(new Error(h))},l=()=>{r||(r=!0,this.emit("command-completed"),this.reset(),e(o))};try{let h=this.execEndpoint.replace("https:","wss:").replace("http:","ws:"),{ws:P,upgradeFailure:A}=_(h,{dispatcher:this.resolvedDispatcher});this.remote=P,this.remote.addEventListener("error",E=>{let S=A();a(S?`WebSocket error: ${S.message}`:`WebSocket error: ${E?.error?.message??E?.message??"connection failed"}`)}),this.remote.addEventListener("close",E=>{![1e3,1005].includes(E.code)&&!r&&a(`WebSocket closed unexpectedly: ${E.code} ${E.reason||"(no reason)"}`)}),this.duplex=W(this.remote)}catch(h){a(`Failed to establish connection to command execution proxy: ${h.message}`);return}let p=h=>{this.duplex?.writable&&this.duplex.write(this.constructPayloadPacket(h))},d=()=>{this.duplex?.writable&&this.duplex.write(this.stdInEndPacket)};this.stdIn.on("data",p),this.stdIn.on("end",d);let c=!1,g,f=()=>{g&&(clearTimeout(g),g=void 0)},R=()=>{f(),g=setTimeout(()=>{g=void 0,this.duplex?.destroy(new Error(`No output for ${Math.round(this.drainTimeoutMs/1e3)}s after the command reported completion; the output stream stalled and the result may be incomplete`))},this.drainTimeoutMs),typeof g.unref=="function"&&g.unref()},y=h=>{let P;try{P=JSON.parse(h.toString())}catch(A){a(`Failed to parse message: ${A.message}`);return}try{switch(P?.type){case"init":{let A=P.data;A.auth!=="successful"?a(`Command initialization failed: ${A?.message??"Reason unknown"}`):this.emit("auth-success",A);break}case"completion":{o=P.data,this.emit("command-result",o),c=!0,R();break}case"stdOut":{this.emit("std-out-data",P.data),this.stdOut.write(P.data,this.execConfig?.encoding),c&&R();break}case"stdErr":{this.emit("std-err-data",P.data),this.stdErr.write(P.data,this.execConfig?.encoding),c&&R();break}case"error":{a(P.data?.message||"Unknown error");break}default:{let A=`unable to parse message: ${JSON.stringify(P)}`;a(A)}}}catch(A){a(`Failed handling '${P?.type??"unknown"}' frame: ${A?.message??A}`)}},I=()=>{f(),this.stdOut.end(),this.stdErr.end(),this.stdIn.end(),o?l():r||a("Connection closed before receiving command result")},v=h=>{a(`Duplex stream error: ${h.message}`)};this.duplex?.on("data",y),this.duplex?.on("end",I),this.duplex?.on("error",v),this.initialAuth(),this.emit("command-started")}),this.currentCommand}initialAuth(){let{command:e,containerName:t,instanceName:r,shell:o,user:a}=this.execConfig,{group:l,encoding:p,tty:d,ttyColumns:c,ttyRows:g}=this.execConfig,f={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:r,containerName:t,command:e,shell:o,user:a,group:l,encoding:p,tty:d,ttyColumns:c,ttyRows:g}}};this.duplex?.write(JSON.stringify(f))}reset(){this.remote=void 0,this.currentCommand=void 0,this.duplex?.destroy(),this.duplex=void 0}};var Td=require("http2");var Ld=require("events"),Ni=k(require("stream")),me=class extends Ld.EventEmitter{constructor(e,t,r,o=new Ni.PassThrough,a=new Ni.PassThrough,l=new Ni.PassThrough){super();this.execConfig=e;this.token=t;this.session=r;this.stdOut=o;this.stdErr=a;this.stdIn=l;this.drainTimeoutMs=3e4;this.waitForCommandResult=async()=>{if(this.currentCommand===void 0)throw new Error("No command is running");return await this.currentCommand};this.sendInputToCurrentCommand=async e=>{if(this.currentCommand===void 0||this.clientStream===void 0)throw new Error("No command is running");this.clientStream.write(this.constructPayloadPacket(e))};this.resizeTerminal=async e=>{if(this.currentCommand===void 0||this.clientStream===void 0)throw new Error("No command is running, can't resize terminal");let t={type:"resize",data:{ttyRows:e?.rows,ttyColumns:e?.columns}};this.clientStream.write(`${JSON.stringify(t)}
|
|
5
|
-
`)};this.getHashingKey=()=>this.execConfig.entityId+(this.execConfig.instanceName??"na");this.constructPayloadPacket=e
|
|
6
|
-
|
|
7
|
-
`}async start(){if(this.currentCommand!==void 0)throw new Error("Command is already running");return this.currentCommand=new Promise((e,t)=>{if(this.clientStream!==void 0){t(Error("Command is already running"));return}let r=!1,o,a=
|
|
8
|
-
`);
|
|
9
|
-
`)}reset(){this.onStdinData&&(this.stdIn.off("data",this.onStdinData),this.onStdinData=void 0),this.onStdinEnd&&(this.stdIn.off("end",this.onStdinEnd),this.onStdinEnd=void 0),this.currentCommand=void 0,this.clientStream?.destroy(),this.clientStream=void 0}};var ue=class{constructor(n,e,t){this.contextProvider=n;this.dispatcher=e;this.sessionRegistry=new Map;this.assertStartedWithNodejs=()=>{if(!N)throw new Error("Command exec only possible when started with nodejs")};t?.forEach(r=>{this.http2Session({execLocationHint:r})})}http2Session(n){let e=(()=>{if(n.execLocationHint){let{execLocationHint:a}=n;if(!Yi.includes(a))throw new Error(`execLocationHint (${a}) not valid. Must be one of [${Yi.join(",")}].`);let l=(d,c)=>d.replace(/\/\/api\./,`//api-exec-${c}.`),p=this.contextProvider.getCurrentBaseUrl(!0);return l(p,a)}else if(n.execLocationOverride)return n.execLocationOverride;throw new Error("Invalid exec location"+JSON.stringify(n))})(),t=this.sessionRegistry.get(e);if(t)return t;let r=`${e}/exec`,o=(0,Td.connect)(r);return o.on("error",()=>{this.sessionRegistry.delete(e)}),o.on("close",()=>{this.sessionRegistry.delete(e)}),this.sessionRegistry.set(e,o),o}async execServiceCommand(n,e){let{serviceId:t,projectId:r,teamId:o}=n,l={teamId:o,projectId:r,entityId:t,entityType:"service",...e};return this.execCommand(l)}async execServiceSession(n,e,t){let{serviceId:r,projectId:o,teamId:a}=n,p={teamId:a,projectId:o,entityId:r,entityType:"service",...e};return await this.shellSession(p,t)}async execJobCommand(n,e){let{jobId:t,projectId:r,teamId:o}=n,l={teamId:o,projectId:r,entityId:t,entityType:"job",...e};return this.execCommand(l)}async execJobSession(n,e,t){let{jobId:r,projectId:o,teamId:a}=n,p={teamId:a,projectId:o,entityId:r,entityType:"job",...e};return await this.shellSession(p,t)}async execAddonCommand(n,e){let{addonId:t,projectId:r,teamId:o}=n,l={teamId:o,projectId:r,entityId:t,entityType:"addon",...e};return this.execCommand(l)}async execAddonSession(n,e,t){let{addonId:r,projectId:o,teamId:a}=n,p={teamId:a,projectId:o,entityId:r,entityType:"addon",...e};return await this.shellSession(p,t)}async execCommand(n){this.assertStartedWithNodejs();let e=this.getCommandRunner({shell:"none",...n}),t=new D,r=new D;try{e.stdOut.pipe(t),e.stdErr.pipe(r);let o=new Promise((l,p)=>{e.once("error",d=>{p(new Error(`${d.message||d}`))})});return{commandResult:await Promise.race([e.start(),o]),stdOut:t.getContentsAsString(),stdErr:r.getContentsAsString()}}catch(o){throw e.stdOut.unpipe(t),e.stdErr.unpipe(r),new Error(`Command execution failed: ${o instanceof Error?o.message:String(o)}`)}}async shellSession(n,e){this.assertStartedWithNodejs();let t=this.getCommandRunner(n),r=new Promise((o,a)=>{t.once("auth-success",p=>{e?.(p?.context??{}),o()}),t.once("error",p=>{a(new Error(`Shell session failed: ${p.message||p}`))});let l=setTimeout(()=>{a(new Error("Shell session timed out waiting for auth-success"))},3e4);t.once("auth-success",()=>clearTimeout(l))});return t.start().catch(()=>{}),await r,t}getCommandRunner(n){let e=this.contextProvider.getCurrentBaseUrl(!0),t=this.contextProvider.getCurrentToken();if(!t)throw Error("API token not found");let{execLocationHint:r,execLocationOverride:o}=n;return o?new me({shell:"none",...n},t,this.http2Session({execLocationOverride:o})):r?new me({shell:"none",...n},t,this.http2Session({execLocationHint:r})):new Q(e,n,t,this.dispatcher)}};var Nd=k(require("tar")),Bd=k(require("ignore"));var Dd=k(require("tar")),Gd=require("stream");function qd(s){let n=a=>a?.size??0,e=0,t=0,r,o=()=>{let a=n(r),l=r?.remain??a;return a-l};return{track(a){r&&(e+=n(r)),r=a,t+=n(a),s?.(a)},bytes:()=>e+(r?o():0),seen:()=>t}}function $d({cwd:s,encoding:n,onReadEntry:e,singleEntry:t,onProgress:r}){let o=0,a=qd(e),l=()=>{if(!r)return;let I=a.seen();r({received:o,extracted:a.bytes(),total:t&&I>0?I:void 0})},p=Dd.x({cwd:s,gzip:{encoding:n},maxDecompressionRatio:1/0,onReadEntry:a.track}),d,c=I=>{d=d??I};p.on("error",c);let g=new Gd.Writable({write(I,v,h){try{o+=I.length;let P=p.write(I);if(l(),P)return h();p.once("drain",()=>h())}catch(P){h(P)}},final(I){try{p.end()}catch(v){return I(v)}I()}});g.on("error",c);let f=!1,R=()=>{f=!0};return p.on("close",()=>{l(),R()}),p.on("error",R),{sink:g,getError:()=>d,untar:p,whenFinished:(I=12e4)=>new Promise((v,h)=>{if(f)return v();let P,A=()=>{P&&clearTimeout(P),v()};p.once("close",A),p.once("error",A),P=setTimeout(()=>{p.removeListener?.("close",A),p.removeListener?.("error",A),h(new Error(`Timed out after ${Math.round(I/1e3)}s waiting for the downloaded archive to finish extracting.`))},I),typeof P.unref=="function"&&P.unref()}),counts:()=>({received:o,extracted:a.bytes(),expected:a.seen()})}}var Bi=k(require("fs")),q=k(require("path")),Oi=require("stream"),Zi=(r=>(r.DIRECTORY_UPLOAD="directory-upload",r.FILE_UPLOAD="file-upload",r.DIRECTORY_DOWNLOAD="directory-download",r.FILE_DOWNLOAD="file-download",r))(Zi||{}),J=class{constructor(n,e){this.exec=n;this.parameters=e;this.defaultEncoding="base64";this.getFileIgnoreFilter=n=>{if(n===void 0)return;let e=(0,Bd.default)({allowRelativePaths:!0}).add(n);return t=>!e.ignores(t)};this.getTarTransformFn=(n,e)=>t=>{t.path=t.path.replace(n,e)};this.ensureDirRemote=async n=>{let e=["mkdir","-p",n];if((await this.runCommand(e))?.commandResult?.status!=="Success")throw new Error("Failed creating remote directory.")};this.ensureTarCmd=async()=>{let n=["tar","--version"];if((await this.runCommand(n))?.commandResult?.status!=="Success")throw new Error("Tar command not found on remote container. Required for file copy.")};this.pathExistsRemote=async n=>{let e=["test","-e",n];return(await this.runCommand(e)).commandResult.exitCode===0};this.checkIsDirRemote=async n=>{let e=["test","-d",n];return(await this.runCommand(e)).commandResult.exitCode===0};this.checkIsFileRemote=async n=>{let e=["test","-e",n];return(await this.runCommand(e)).commandResult.exitCode===0};this.runCommand=async(n,e="none")=>{let{exec:t,parameters:r}=this,{teamId:o,projectId:a,resourceId:l,resourceType:p,containerName:d,instanceName:c,execLocationHint:g}=r,f={command:n,shell:e,containerName:d,instanceName:c,execLocationHint:g};return p==="service"?await t.execServiceCommand({teamId:o,projectId:a,serviceId:l},f):await t.execJobCommand({teamId:o,projectId:a,jobId:l},f)};this.runSession=async n=>{let{exec:e,parameters:t}=this,{teamId:r,projectId:o,resourceId:a,resourceType:l,containerName:p,instanceName:d,execLocationHint:c}=t,g={command:n,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:p,instanceName:d,execLocationHint:c};return l==="service"?await e.execServiceSession({teamId:r,projectId:o,serviceId:a},g):await e.execJobSession({teamId:r,projectId:o,jobId:a},g)};if(!["service","job"].includes(e.resourceType))throw new Error(`Invalid resource type: ${e.resourceType}, only 'service' and 'job' supported`)}async uploadFiles(n,e,t){if(n===void 0||!Bi.default.existsSync(n))throw new Error(`Local path '${n}' does not exists but is required for uploads.`);let r=Bi.default.lstatSync(n).isFile(),o=r?q.default.dirname(n):n,a=r?q.default.basename(n):".",l=r&&e!==void 0&&q.default.extname(e)!=="",p=l?q.default.dirname(e):e??o,d=e!==void 0?q.default.basename(e):a,c=Nd.c({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(t),preservePaths:!0,onWriteEntry:l?this.getTarTransformFn(a,d):void 0},Vi(a));await this.ensureTarCmd(),await this.ensureDirRemote(p);let f=["tar","-xzvf","-",...["--no-same-owner"],"-C",p],R=await this.runSession(f),y=new D,I=new D;R.stdErr.pipe(y),R.stdOut.pipe(I),c.pipe(R.stdIn);let v=await R.waitForCommandResult();if(v?.status!=="Success")throw new Error(`Failed to upload file to container: ${v?.message}, error details: ${y.getContentsAsString()}; ${I.getContentsAsString()}`);return r?{type:"file-upload",sourceDirectory:o,sourceFile:a,targetDirectory:p,targetFile:d}:{type:"directory-upload",sourceDirectory:o,targetDirectory:p}}async uploadStream(n,e){let t=function(g){let f=new Oi.Transform({transform(I,v,h){this.push(I.toString("base64")),h()}}),R=typeof g=="string",y=Buffer.isBuffer(g);return!R&&!y?g.pipe(f):Oi.Readable.from(g).pipe(f)},r=q.default.dirname(e);await this.ensureTarCmd(),await this.ensureDirRemote(r);let o=["tee",e],a=await this.runSession(o),l=new D,p=new D;a.stdErr.pipe(l),a.stdOut.pipe(p),t(n).pipe(a.stdIn);let c=await a.waitForCommandResult();if(await this.runCommand(["cat",e]),c?.status!=="Success")throw new Error(`Failed to upload file to container: ${c?.message}, error details: ${l.getContentsAsString()}; ${p.getContentsAsString()}`)}async downloadFiles(n,e,t,r){if(n===void 0||!await this.pathExistsRemote(n))throw new Error(`Remote path '${n}' does not exists but is required for downloads.`);let o=await this.checkIsDirRemote(n),a=o?n:q.default.dirname(n),l=o?".":q.default.basename(n),p=e!==void 0&&q.default.extname(e)!=="",d=!o&&p?q.default.basename(e):l,c=e!==void 0?p?q.default.dirname(e):e:".";c&&Bi.default.mkdirSync(c,{recursive:!0});let g=Vi(t??[]).map(F=>`--exclude=${F}`),y=[...["tar","-zcf","-",...["--no-same-owner"],...g],"-C",a,l],I=await this.runSession(y),{sink:v,getError:h,whenFinished:P,counts:A}=$d({cwd:c,encoding:this.defaultEncoding,onReadEntry:d?this.getTarTransformFn(l,d):void 0,singleEntry:!o,onProgress:r}),E=new D;I.stdErr.pipe(E),I.stdOut.pipe(v);let S=await I.waitForCommandResult();if(S?.status!=="Success")throw new Error(`Failed to download file from container: ${S?.message}, error details: ${E.getContentsAsString()}`);await P();let j=h(),{received:$,extracted:L,expected:T}=A(),O=`received ${$} compressed bytes, extracted ${L}`+(T>0?` of ${T} expected`:"");if(j)throw new Error(`Failed to extract downloaded archive: ${j.message} (${O})`);if(T>0&&L<T)throw new Error(`Downloaded archive is incomplete: expected ${T} bytes, extracted ${L} (${O})`);return o?{type:"directory-download",sourceDirectory:a,targetDirectory:c}:{type:"file-download",sourceDirectory:a,sourceFile:l,targetDirectory:c,targetFile:d}}async downloadStream(n){if(!await this.checkIsFileRemote(n))throw new Error(`Remote path '${n}' must be a file.`);let e=q.default.dirname(n);await this.ensureTarCmd(),await this.ensureDirRemote(e);let t=["cat",n],r=await this.runSession(t),o=new D;return r.stdErr.pipe(o),{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(a=>a.exitCode===0)}}};var ce=class{constructor(n,e){this.exec=n;this.stdIgnoreList=["*.*~"];e&&(this.stdIgnoreList=e)}async downloadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"download")}async downloadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await new J(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"upload")}async uploadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await new J(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async downloadJobFiles(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"download")}async downloadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await new J(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadJobFiles(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"upload")}async uploadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await new J(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async copy(n,e,t){let r=new J(this.exec,{...n,instanceName:e.instanceName,containerName:e.containerName,execLocationHint:e.execLocationHint}),o=[...e.ignoreList??[],...this.stdIgnoreList];switch(t){case"download":return await r.downloadFiles(e.remotePath,e.localPath,o,e.onProgress);case"upload":return await r.uploadFiles(e.localPath,e.remotePath,o)}}};var X=class extends Error{constructor(n){super(n.message),this.name="NorthflankApiCallError",this.message=n.message,this.status=n.status,this.id=n.id,this.details=n.details;let e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e}};var Od=require("events");var Qi=(r=>(r.CDN="cdn",r.Mesh="mesh",r.Ingress="ingress",r.Runtime="runtime",r))(Qi||{}),Xi=s=>({containerId:s.containerId,log:s.log,ts:new Date(s.ts)}),ee=class s extends Od.EventEmitter{constructor(e,t,r,o){super();this.baseUrl=e;this.logsConfig=t;this.token=r;this.dispatcher=o;this.stop=async()=>{if(this.logSession===void 0)throw new Error("No command is running");this.remote?.close()}}static getLogsEndpoint(e){let{containerName:t,types:r,entityId:o,entityType:a,buildId:l,runId:p,backupId:d,restoreId:c,deploymentId:g,isBuild:f,lineLimit:R,teamId:y,projectId:I,queryType:v,startTime:h,endTime:P,duration:A,direction:E,textIncludes:S,textNotIncludes:j,regexIncludes:$,regexNotIncludes:L}=e,O=`/v1/${y!==void 0?`teams/${y}/`:""}projects/${I}/`,F=()=>{let V=f?"/build-logs":"/logs";switch(a){case"service":return`services/${o}${V}`;case"job":return`jobs/${o}${V}`;case"addon":return`addons/${o}${V}`;case"addonBackup":return`addons/${o}/backups/${d}${V}`;case"addonRestore":return`addons/${o}/backups/${d}/restores/${c}${V}`;default:throw new Error(`Unexpected Northflank entity type received in logs endpoint generation: ${a}`)}},U=new URLSearchParams;return U.append("queryType",v),h!==void 0&&U.append("startTime",h.toISOString()),P!==void 0&&U.append("endTime",P.toISOString()),R!==void 0&&U.append("lineLimit",R.toString()),t!==void 0&&U.append("containerName",t),g!==void 0&&U.append("deploymentId",g),p!==void 0&&U.append("runId",p),l!==void 0&&U.append("buildId",l),S!==void 0&&U.append("textIncludes",S),j!==void 0&&U.append("textNotIncludes",j),$!==void 0&&U.append("regexIncludes",$),L!==void 0&&U.append("regexNotIncludes",L),E!==void 0&&U.append("direction",E),A!==void 0&&U.append("duration",A.toString()),r!==void 0&&r.forEach(V=>U.append("type",V)),`${O}${F()}?${U.toString()}`}get logsEndpoint(){return`${this.baseUrl}${s.getLogsEndpoint(this.logsConfig)}`}async start(){if(this.logSession!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await G(),this.logSession=new Promise((e,t)=>{this.remote!==void 0&&t(Error("Command is already running"));let r=this.logsEndpoint.replace("https:","wss:").replace("http:","ws:"),{ws:o,upgradeFailure:a}=_(r,{dispatcher:this.resolvedDispatcher});this.remote=o,this.remote.binaryType="arraybuffer",this.remote?.addEventListener("message",p=>{let d=p.data,c=typeof d=="string"?d:Buffer.from(d).toString(),g=JSON.parse(c);switch(g?.type){case"init":{let f=g.data;f.auth!=="successful"&&l(`Log tail initialization failed: ${f?.message??"Reason unknown"}`);break}case"log-lines":{let f=g.data;this.emit("logs-received",f.map(Xi));break}case"error":{l(g.data?.message);break}default:{let f=`unable to parse message: ${JSON.stringify(g)}`;l(f)}}}),this.remote?.addEventListener("close",()=>{this.emit("close"),this.reset(),e()}),this.remote?.addEventListener("open",()=>{this.emit("open")}),this.remote?.addEventListener("error",p=>{this.emit("error",a()??p?.error??new Error("WebSocket error")),this.reset(),e()});let l=p=>{this.emit("error",{message:p}),this.reset(),t(new Error(p))}}),await new Promise(e=>{this.remote?.addEventListener("open",()=>e()),this.remote?.addEventListener("error",()=>e())}),this.initialAuth(),this.logSession}initialAuth(){let e={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};this.remote?.send(JSON.stringify(e))}reset(){this.remote=void 0,this.logSession=void 0}};var Md=k(require("fs")),ed=k(require("path")),_d=require("url");var Rl={},te,fl=()=>{if(te!==void 0)return te??void 0;if(N)try{te=JSON.parse(Md.default.readFileSync(ed.default.join(ed.default.dirname((0,_d.fileURLToPath)(Rl.url)),"../package.json")).toString())?.version??null}catch{te=null}else te=null;return te??void 0},H=class{constructor(n,e){this.opts=e;this.call=async n=>this.executeCall(n);this.contextProvider=n}getDefaultHeaders(){let n=this.contextProvider.getCurrentToken(),e=this.opts?.customUserAgent?` (${this.opts.customUserAgent})`:"";return{...this.withAuth?{Authorization:`Bearer ${n}`}:{},"Content-Type":"application/json","User-Agent":`northflank-js-client/${fl()}${e}`}}async executeCall(n){let t={method:this.method.toUpperCase(),headers:this.getDefaultHeaders()},r=this.contextProvider?.getCurrentBaseUrl();if(!r)throw new Error("Api client context not correctly initialized, please provide a url to the context.");let o=`${r}${this.endpointUrl(n)}`,a=this.body(n),l={url:o,...t,body:a},p=this.opts.dispatcher??await G(),d=await hl(o,{...t,body:a,dispatcher:p}),c=await d.text(),g=()=>{try{return JSON.parse(c)}catch{throw Error(`Failed reading api request result:
|
|
10
|
-
Status: ${
|
|
11
|
-
Message: ${c}`)}},f=()=>{if(d.status!==200){let I=R?.error,v=I?.message||"",h={status:d.status,message:v,id:I?.id,details:I?.details};if(this.opts.throwErrorOnHttpErrorCode)throw new X(h);return h}},R=g(),y=f();return{data:R?.data,rawResponse:d,request:l,error:y,pagination:R?.pagination}}},m=class extends H{constructor(){super(...arguments);this.method="GET";this.body=()=>{}}},u=class extends m{constructor(){super(...arguments);this.all=async e=>new Mi(this,e).getAll();this.call=async e=>{let t=await super.executeCall(e);return{...t,pagination:{...t.pagination,getNextPage:async()=>{if(t.pagination?.cursor===void 0){let r=Object.keys(t.data),o=r.length===1?{[r[0]]:[]}:{},a={...t,pagination:{...t.pagination,count:0},data:o},l=p=>({...p,pagination:{...p.pagination,getNextPage:async()=>l(p)}});return l(a)}return new Mi(this,e,t.pagination?.cursor).getNext()}}}}}},i=class extends H{constructor(){super(...arguments);this.method="POST"}},b=class extends H{constructor(){super(...arguments);this.method="DELETE"}},w=class extends H{constructor(){super(...arguments);this.method="PUT"}},C=class extends H{constructor(){super(...arguments);this.method="PATCH"}},Mi=class{constructor(n,e,t=null){this.endpoint=n;this.opts=e;this._currentOffset=0;this.hasNext=()=>this.cursor!==void 0;this.cursor=t}get currentOffset(){return this._currentOffset}async getNext(){let{data:n,request:e,error:t,pagination:r,rawResponse:o}=await this.endpoint.call({...this.opts,options:{...this.opts?.options,cursor:this.cursor??void 0}});return this.cursor=r?.cursor,this._currentOffset+=r?.count??0,{data:n,request:e,error:t,pagination:r,rawResponse:o}}async getAll(){let n=[];for(;this.hasNext();){let r=await this.getNext();if(r.error)return r;n.push(r)}let e,t=n.flatMap(r=>{let o=Object.keys(r.data);return o.length===1?(e=o[0],r.data[o[0]]):r.data});return{data:e===void 0?t:{[e]:t},request:n[0]?.request,rawResponse:n[0]?.rawResponse}}},Il=s=>new Promise(n=>{setTimeout(()=>{n()},s)}),hl=async(s,n={},e=3,t=500)=>{let r=await Pi(!!n.dispatcher);return new Promise((o,a)=>{let l=p=>r(s,n).then(d=>{o(d)}).catch(async d=>{if(p>0)return await Il(t),l(p-1);if(d instanceof Error&&d.cause instanceof Error){d.message=`${d.message}: ${d.cause.message}`;for(let c of["code","errno","syscall"])if(d[c]===void 0&&d.cause[c]!==void 0)try{d[c]=d.cause[c]}catch{}}return a(d)});return l(e)})};var _i=class extends m{constructor(){super(...arguments);this.description="Fetch log lines over a specific time span";this.withAuth=!0;this.requiredPermissions="Account > Service | Job | Addon > General > Read";this.endpointUrl=e=>ee.getLogsEndpoint(e);this.body=()=>{}}};var ge=class{constructor(n,e={}){this.contextProvider=n;this.clientOpts=e;this.getServiceLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.serviceId,projectId:e.projectId,teamId:e.teamId};return this.logRange(r,t??{},"service")};this.getServiceBuildLogs=async n=>{let{parameters:e,options:t}=n,{projectId:r,serviceId:o,teamId:a}=e,l={entityId:o,projectId:r,teamId:a};return this.logRange(l,{...t,isBuild:!0},"service")};this.getJobLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.jobId,projectId:e.projectId,teamId:e.teamId};return this.logRange(r,t??{},"job")};this.getJobBuildLogs=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o,teamId:a}=e,l={entityId:o,projectId:r,teamId:a};return this.logRange(l,{...t,isBuild:!0},"job")};this.getAddonLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId};return this.logRange(r,t??{},"addon")};this.getAddonBackupLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId,teamId:e.teamId};return this.logRange(r,{...t,backupId:e.backupId},"addonBackup")};this.getAddonRestoresLogs=async n=>{let{parameters:e,options:t}=n,{teamId:r,projectId:o,addonId:a}=e,l={entityId:a,projectId:o,teamId:r},p={backupId:e.backupId,restoreId:e.restoreId};return this.logRange(l,{...t,...p},"addonRestore")};this.logRange=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,l={teamId:a,projectId:o,entityId:r,entityType:t,...e,queryType:"range"},d=await new _i(this.contextProvider,this.clientOpts).call(l);return d.error?d:{...d,data:d?.data?.map(Xi)}};this.tailServiceLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.serviceId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,t??{},"service")};this.tailServiceBuildLogs=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,l={entityId:r,projectId:o,teamId:a};return this.logTail(l,{...t,isBuild:!0},"service")};this.tailJobLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.jobId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,t??{},"job")};this.tailJobBuildLogs=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o}=e,a={entityId:o,projectId:r,teamId:e.teamId};return this.logTail(a,{...t,isBuild:!0},"job")};this.tailAddonLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,t??{},"addon")};this.tailAddonBackupLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,{...t,backupId:e.backupId},"addonBackup")};this.tailAddonRestoresLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId},o={backupId:e.backupId,restoreId:e.restoreId};return this.logTail(r,{...t,...o},"addonRestore")};this.logTail=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,l={queryType:"tail",teamId:a,projectId:o,entityId:r,entityType:t,...e};this.assertStartedWithNodejs();let p=this.contextProvider.getCurrentBaseUrl(!0),d=this.contextProvider.getCurrentToken();if(!d)throw new Error("API token not found");return new ee(p,l,d,this.clientOpts.dispatcher)};this.assertStartedWithNodejs=()=>{if(!N)throw new Error("Command exec only possible when started with nodejs")}}};var Ji=class extends m{constructor(){super(...arguments);this.description="Fetch metrics entries over a specific time span";this.withAuth=!0;this.requiredPermissions="Account > Service | Job | Addon > General > Read";this.endpointUrl=e=>{let{teamId:t,projectId:r,entityId:o,entityType:a,deploymentId:l,runId:p,buildId:d,isBuild:c,queryType:g,metricTypes:f,startTime:R,endTime:y,duration:I,containerName:v,timestamp:h}=e,A=`/v1/${t!==void 0?`teams/${t}/`:""}projects/${r}/`;function E(){let j=c?"/build-metrics":"/metrics";switch(a){case"service":return`services/${o}${j}`;case"job":return`jobs/${o}${j}`;case"addon":return`addons/${o}${j}`;default:throw new Error(`Unexpected Northflank entity type received in metrics endpoint generation: ${a}`)}}let S=new URLSearchParams;return S.append("queryType",g),R!==void 0&&S.append("startTime",R.toISOString()),y!==void 0&&S.append("endTime",y.toISOString()),v!==void 0&&S.append("containerName",v),l!==void 0&&S.append("deploymentId",l),p!==void 0&&S.append("runId",p),d!==void 0&&S.append("buildId",d),h!==void 0&&S.append("timestamp",h.toISOString()),I!==void 0&&S.append("duration",I.toString()),f!==void 0&&f.forEach(j=>S.append("metricTypes",j)),`${A}${E()}?${S.toString()}`};this.body=()=>{}}};var yl=s=>({metadata:s.metadata,data:s.data.map(n=>({value:n.value,ts:new Date(n.ts)}))}),td=(g=>(g.Cpu="cpu",g.Memory="memory",g.NetworkIngress="networkIngress",g.NetworkEgress="networkEgress",g.TcpConnectionOpen="tcpConnectionsOpen",g.PvcUsage="diskUsage",g.Requests="requests",g.Http4xxResponses="http4xxResponses",g.Http5xxResponses="http5xxResponses",g.Bandwidth="bandwidth",g.BandwidthVolume="bandwidthVolume",g))(td||{}),be=class{constructor(n,e={}){this.contextProvider=n;this.opts=e;this.getServiceMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,l={teamId:a,entityId:r,projectId:o};return this.metricsSingle(l,t??{},"service")};this.getServiceBuildMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,l={entityId:r,projectId:o,teamId:a};return this.metricsSingle(l,{...t,isBuild:!0},"service")};this.getJobMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:o,teamId:a}=e,l={entityId:r,projectId:o,teamId:a};return this.metricsSingle(l,t??{},"job")};this.getJobBuildMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:o,teamId:a}=e,l={entityId:r,projectId:o,teamId:a};return this.metricsSingle(l,{...t,isBuild:!0},"job")};this.getAddonMetrics=async n=>{let{parameters:e,options:t}=n,{addonId:r,projectId:o,teamId:a}=e,l={entityId:r,projectId:o,teamId:a};return this.metricsSingle(l,t??{},"addon")};this.metricsSingle=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,l={teamId:a,projectId:o,entityId:r,entityType:t,...e,queryType:"single"};return this.getMetrics(l)};this.getServiceMetricsRange=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,l={entityId:r,projectId:o,teamId:a};return this.metricsRange(l,t??{},"service")};this.getServiceBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,serviceId:o,teamId:a}=e,l={entityId:o,projectId:r,teamId:a};return this.metricsRange(l,{...t,isBuild:!0},"service")};this.getJobMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o,teamId:a}=e,l={entityId:o,projectId:r,teamId:a};return this.metricsRange(l,t??{},"job")};this.getJobBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o,teamId:a}=e,l={entityId:o,projectId:r,teamId:a};return this.metricsRange(l,{...t,isBuild:!0},"job")};this.getAddonMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,addonId:o,teamId:a}=e,l={entityId:o,projectId:r,teamId:a};return this.metricsRange(l,t??{},"addon")};this.metricsRange=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,l={teamId:a,projectId:o,entityId:r,entityType:t,...e,queryType:"range"};return this.getMetrics(l)};this.getMetrics=async n=>{let t=await new Ji(this.contextProvider,this.opts).call(n);return t.error?t:{...t,data:Object.fromEntries(Object.entries(t.data).map(([r,o])=>[r,{...o,values:o.values.map(yl)}]))}}}};var fe=class extends m{constructor(){super(...arguments);this.description="Gets information about the available addon types";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/addon-types";this.body=()=>{}}};var Ie=class extends m{constructor(){super(...arguments);this.description="Returns details about the authentication material used in this request.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/auth";this.body=()=>{}}};var he=class extends u{constructor(){super(...arguments);this.description="Lists the backup destinations saved to this account. Does not display secrets.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations`:t="/v1/backup-destinations";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Re=class extends i{constructor(){super(...arguments);this.description="Adds a new backup destination to this account.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations`:t="/v1/backup-destinations",t};this.body=e=>JSON.stringify(e.data)}};var ye=class extends m{constructor(){super(...arguments);this.description="View a backup destination, including secrets.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ce=class extends C{constructor(){super(...arguments);this.description="Updates a backup destination.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Pe=class extends b{constructor(){super(...arguments);this.description="Delete a backup destination.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ve=class extends u{constructor(){super(...arguments);this.description="Lists the backups associated with a backup destinations.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}/backups`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var we=class extends u{constructor(){super(...arguments);this.description="Lists finalized invoices.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/invoices`:t="/v1/billing/invoices";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ae=class extends u{constructor(){super(...arguments);this.description="Gets details about a given invoice.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/invoices/${encodeURIComponent(e.parameters.invoiceId)}`;else if(e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/billing/invoices/${encodeURIComponent(e.parameters.invoiceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Se=class extends u{constructor(){super(...arguments);this.description="Lists hourly usage entries.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/usage`:t="/v1/billing/usage";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ee=class extends u{constructor(){super(...arguments);this.description="Gets usage details for a given billing hour.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/usage/${encodeURIComponent(e.parameters.timestamp)}`;else if(e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/billing/usage/${encodeURIComponent(e.parameters.timestamp)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ke=class extends m{constructor(){super(...arguments);this.description="Lists supported cloud providers";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/cloud-providers";this.body=()=>{}}};var xe=class extends u{constructor(){super(...arguments);this.description="Lists clusters for the authenticated user or team.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters`:t="/v1/cloud-providers/clusters";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ue=class extends i{constructor(){super(...arguments);this.description="Creates a new cluster.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters`:t="/v1/cloud-providers/clusters",t};this.body=e=>JSON.stringify(e.data)}};var je=class extends w{constructor(){super(...arguments);this.description="Creates or update a cluster.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters`:t="/v1/cloud-providers/clusters",t};this.body=e=>JSON.stringify(e.data)}};var Le=class extends m{constructor(){super(...arguments);this.description="Get information about the given cluster";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Te=class extends C{constructor(){super(...arguments);this.description="Updates a cluster.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qe=class extends b{constructor(){super(...arguments);this.description="Delete the given cluster. Fails if the cluster has associated projects.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var De=class extends u{constructor(){super(...arguments);this.description="Get a list of nodes for the given cluster";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ge=class extends i{constructor(){super(...arguments);this.description="Cordon a node on the cluster to prevent new pods from scheduling on it.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/cordon`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/cordon`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $e=class extends i{constructor(){super(...arguments);this.description="Drain a node by evicting all running pods.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/drain`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/drain`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ne=class extends i{constructor(){super(...arguments);this.description="Uncordon a node on the cluster if it was previously cordoned.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/uncordon`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/uncordon`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Be=class extends u{constructor(){super(...arguments);this.description="Lists integrations for the authenticated user or team.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations`:t="/v1/cloud-providers/integrations";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Oe=class extends i{constructor(){super(...arguments);this.description="Creates a new integration.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations`:t="/v1/cloud-providers/integrations",t};this.body=e=>JSON.stringify(e.data)}};var Me=class extends w{constructor(){super(...arguments);this.description="Creates or updates a integration.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations`:t="/v1/cloud-providers/integrations",t};this.body=e=>JSON.stringify(e.data)}};var _e=class extends m{constructor(){super(...arguments);this.description="Get information about the given integration";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else if(e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Je=class extends C{constructor(){super(...arguments);this.description="Updates a integration.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else if(e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var He=class extends b{constructor(){super(...arguments);this.description="Delete the given integration. Fails if the integration is associated with existing clusters.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else if(e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Fe=class extends u{constructor(){super(...arguments);this.description="Lists supported cloud provider node types";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/cloud-providers/node-types${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Ve=class extends u{constructor(){super(...arguments);this.description="Lists supported cloud provider regions";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/cloud-providers/regions${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var ze=class extends u{constructor(){super(...arguments);this.description="Gets container snapshots belonging to the team.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/container-snapshots`:t="/v1/container-snapshots";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ke=class extends m{constructor(){super(...arguments);this.description="Gets a container snapshot.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else if(e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var We=class extends b{constructor(){super(...arguments);this.description="Soft-deletes an unreferenced terminal container snapshot.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else if(e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ye=class extends m{constructor(){super(...arguments);this.description="Lists the Directory Sync directory groups for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>"/v1/directory-groups";this.body=()=>{}}};var Ze=class extends u{constructor(){super(...arguments);this.description="Lists the users who are members of the org via a specific Directory Sync group.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Members > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/directory-groups/${encodeURIComponent(e.parameters.groupId)}/members${r}`};this.body=()=>{}}};var Qe=class extends m{constructor(){super(...arguments);this.description="Returns the partially random string used when generating host names for the authenticated account.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/dns-id`:t="/v1/dns-id",t};this.body=()=>{}}};var Xe=class extends u{constructor(){super(...arguments);this.description="Lists available domains";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains`:t="/v1/domains";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var et=class extends i{constructor(){super(...arguments);this.description="Registers a new domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains`:t="/v1/domains",t};this.body=e=>JSON.stringify(e.data)}};var tt=class extends m{constructor(){super(...arguments);this.description="Gets details about domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var rt=class extends C{constructor(){super(...arguments);this.description="Update domain options such as minimum TLS protocol version";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var nt=class extends b{constructor(){super(...arguments);this.description="Deletes a domain and each of its registered subdomains.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var at=class extends m{constructor(){super(...arguments);this.description="Retrieve certificate data for a domain to verify its contents.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/certificate`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/certificate`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ot=class extends i{constructor(){super(...arguments);this.description="Import a certificate for the domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/import`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/import`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var st=class extends i{constructor(){super(...arguments);this.description="Adds a new subdomain to the domain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var it=class extends w{constructor(){super(...arguments);this.description="Updates subdomain to the domain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var dt=class extends m{constructor(){super(...arguments);this.description="Gets details about the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var lt=class extends b{constructor(){super(...arguments);this.description="Removes a subdomain from a domain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var pt=class extends i{constructor(){super(...arguments);this.description="Assigns a service port to the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var mt=class extends b{constructor(){super(...arguments);this.description="Removes a subdomain from its assigned service";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ut=class extends i{constructor(){super(...arguments);this.description="Removes the CDN integration from the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/disable`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/disable`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ct=class extends i{constructor(){super(...arguments);this.description="Enables a CDN integration on the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/enable`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/enable`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var gt=class extends i{constructor(){super(...arguments);this.description="Purges the CDN cache for the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/purge`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/purge`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var bt=class extends i{constructor(){super(...arguments);this.description="Import a certificate for a subdomain of a domain using individual certificates.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/certificate/import`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/certificate/import`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ft=class extends C{constructor(){super(...arguments);this.description="Updates the geo routing configuration for a geo-routed subdomain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/geo-routing`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/geo-routing`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var It=class extends i{constructor(){super(...arguments);this.description="Adds a new path to the subdomain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ht=class extends m{constructor(){super(...arguments);this.description="List paths for a given subdomain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Rt=class extends m{constructor(){super(...arguments);this.description="Get subdomain path details.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var yt=class extends b{constructor(){super(...arguments);this.description="Delete a path.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ct=class extends i{constructor(){super(...arguments);this.description="Update a subdomain path.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Pt=class extends i{constructor(){super(...arguments);this.description="Assign a subdomain path to a port.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var vt=class extends b{constructor(){super(...arguments);this.description="Unassign a subdomain path to a port.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var wt=class extends i{constructor(){super(...arguments);this.description="Gets details about the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/verify`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/verify`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var At=class extends i{constructor(){super(...arguments);this.description="Attempts to verify the domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/verify`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/verify`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var St=class extends u{constructor(){super(...arguments);this.description="Gets a list of egress IPs belonging to the team";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips`:t="/v1/egress-ips";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Et=class extends i{constructor(){super(...arguments);this.description="Creates a new egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips`:t="/v1/egress-ips",t};this.body=e=>JSON.stringify(e.data)}};var kt=class extends w{constructor(){super(...arguments);this.description="Creates or updates an egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips`:t="/v1/egress-ips",t};this.body=e=>JSON.stringify(e.data)}};var xt=class extends m{constructor(){super(...arguments);this.description="Gets information about the given egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else if(e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ut=class extends C{constructor(){super(...arguments);this.description="Updates an egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else if(e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var jt=class extends b{constructor(){super(...arguments);this.description="Deletes the given egress IP.";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else if(e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Lt=class extends u{constructor(){super(...arguments);this.description="Lists the gradual rollout strategies belonging to the team, newest first.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies`:t="/v1/gradual-rollout-strategies";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Tt=class extends i{constructor(){super(...arguments);this.description="Creates a new gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies`:t="/v1/gradual-rollout-strategies",t};this.body=e=>JSON.stringify(e.data)}};var qt=class extends w{constructor(){super(...arguments);this.description="Creates or updates a gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies`:t="/v1/gradual-rollout-strategies",t};this.body=e=>JSON.stringify(e.data)}};var Dt=class extends m{constructor(){super(...arguments);this.description="Gets details of the given gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else if(e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Gt=class extends C{constructor(){super(...arguments);this.description="Updates a gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else if(e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var $t=class extends b{constructor(){super(...arguments);this.description="Deletes a gradual rollout strategy. Any services still using it are detached first, which redeploys them without the rollout. Because that redeploys services, this also requires service update permission. Fails if a rollout is in progress on any of those services.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else if(e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Nt=class extends u{constructor(){super(...arguments);this.description="Gets a list of log sinks added to this account.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks`:t="/v1/integrations/log-sinks";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Bt=class extends i{constructor(){super(...arguments);this.description="Creates a new log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks`:t="/v1/integrations/log-sinks",t};this.body=e=>JSON.stringify(e.data)}};var Ot=class extends m{constructor(){super(...arguments);this.description="Gets details about a given log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Mt=class extends b{constructor(){super(...arguments);this.description="Deletes a log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var _t=class extends i{constructor(){super(...arguments);this.description="Pauses a given log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/pause`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Jt=class extends i{constructor(){super(...arguments);this.description="Resumes a paused log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/resume`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ht=class extends i{constructor(){super(...arguments);this.description="Updates the settings for a log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/settings`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ft=class extends u{constructor(){super(...arguments);this.description="Lists notification integrations for the authenticated user, team or org.";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications`:t="/v1/integrations/notifications";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Vt=class extends i{constructor(){super(...arguments);this.description="Create a new notification integration.";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications`:t="/v1/integrations/notifications",t};this.body=e=>JSON.stringify(e.data)}};var zt=class extends m{constructor(){super(...arguments);this.description="Get details about a notification integration.";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else if(e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Kt=class extends i{constructor(){super(...arguments);this.description="Updates a notification integration";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else if(e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Wt=class extends b{constructor(){super(...arguments);this.description="Deletes a notification integration";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else if(e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Yt=class extends u{constructor(){super(...arguments);this.description="Lists the container registry credentials saved to this account. Does not display secrets.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries`:t="/v1/integrations/registries";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Zt=class extends i{constructor(){super(...arguments);this.description="Adds a new set of container registry credentials to this account.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries`:t="/v1/integrations/registries",t};this.body=e=>JSON.stringify(e.data)}};var Qt=class extends m{constructor(){super(...arguments);this.description="Views a set of registry credential data.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else if(e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Xt=class extends C{constructor(){super(...arguments);this.description="Updates a set of registry credential data.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else if(e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var er=class extends b{constructor(){super(...arguments);this.description="Deletes a set of registry credential data.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else if(e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var tr=class extends u{constructor(){super(...arguments);this.description="Lists the SSH identities saved to this account. Does not display SSH public keys.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities`:t="/v1/integrations/ssh-identities";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var rr=class extends i{constructor(){super(...arguments);this.description="Adds a new SSH identity to this account.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities`:t="/v1/integrations/ssh-identities",t};this.body=e=>JSON.stringify(e.data)}};var nr=class extends m{constructor(){super(...arguments);this.description="Views SSH identity data including public keys.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ar=class extends w{constructor(){super(...arguments);this.description="Creates or updates SSH identity data.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var or=class extends C{constructor(){super(...arguments);this.description="Updates SSH identity data.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var sr=class extends b{constructor(){super(...arguments);this.description="Deletes an SSH identity.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ir=class extends m{constructor(){super(...arguments);this.description="Lists linked version control providers";this.withAuth=!0;this.requiredPermissions="Account > Git > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs`:t="/v1/integrations/vcs",t};this.body=()=>{}}};var dr=class extends i{constructor(){super(...arguments);this.description="Generate a token for a specific VCS link.";this.withAuth=!0;this.requiredPermissions="Account > Git > Tokens > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"customVCSId"in e?.parameters&&e?.parameters?.customVCSId!==void 0&&e?.parameters&&"vcsLinkId"in e?.parameters&&e?.parameters?.vcsLinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs/custom/${encodeURIComponent(e.parameters.customVCSId)}/token/${encodeURIComponent(e.parameters.vcsLinkId)}`;else if(e?.parameters&&"customVCSId"in e?.parameters&&e?.parameters?.customVCSId!==void 0&&e?.parameters&&"vcsLinkId"in e?.parameters&&e?.parameters?.vcsLinkId!==void 0)t=`/v1/integrations/vcs/custom/${encodeURIComponent(e.parameters.customVCSId)}/token/${encodeURIComponent(e.parameters.vcsLinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var lr=class extends u{constructor(){super(...arguments);this.description="Gets a list of repositories accessible to this account";this.withAuth=!0;this.requiredPermissions="Account > Git > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs/repos`:t="/v1/integrations/vcs/repos";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var pr=class extends u{constructor(){super(...arguments);this.description="Gets a list of branches for the repo";this.withAuth=!0;this.requiredPermissions="Account > Git > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"vcsService"in e?.parameters&&e?.parameters?.vcsService!==void 0&&e?.parameters&&"repositoryOwner"in e?.parameters&&e?.parameters?.repositoryOwner!==void 0&&e?.parameters&&"repositoryName"in e?.parameters&&e?.parameters?.repositoryName!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs/repos/${encodeURIComponent(e.parameters.vcsService)}/${encodeURIComponent(e.parameters.repositoryOwner)}/${encodeURIComponent(e.parameters.repositoryName)}/branches`;else if(e?.parameters&&"vcsService"in e?.parameters&&e?.parameters?.vcsService!==void 0&&e?.parameters&&"repositoryOwner"in e?.parameters&&e?.parameters?.repositoryOwner!==void 0&&e?.parameters&&"repositoryName"in e?.parameters&&e?.parameters?.repositoryName!==void 0)t=`/v1/integrations/vcs/repos/${encodeURIComponent(e.parameters.vcsService)}/${encodeURIComponent(e.parameters.repositoryOwner)}/${encodeURIComponent(e.parameters.repositoryName)}/branches`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var mr=class extends u{constructor(){super(...arguments);this.description="Gets a list of load balancers belonging to the team";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers`:t="/v1/load-balancers";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ur=class extends i{constructor(){super(...arguments);this.description="Creates a new load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers`:t="/v1/load-balancers",t};this.body=e=>JSON.stringify(e.data)}};var cr=class extends w{constructor(){super(...arguments);this.description="Creates or updates a load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers`:t="/v1/load-balancers",t};this.body=e=>JSON.stringify(e.data)}};var gr=class extends m{constructor(){super(...arguments);this.description="Gets information about the given load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else if(e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var br=class extends C{constructor(){super(...arguments);this.description="Updates a load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else if(e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var fr=class extends b{constructor(){super(...arguments);this.description="Deletes the given load balancer.";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else if(e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ir=class extends i{constructor(){super(...arguments);this.description="Creates a new network policy for this account.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies`:t="/v1/network-policies",t};this.body=e=>JSON.stringify(e.data)}};var hr=class extends m{constructor(){super(...arguments);this.description="Get details of a network policy.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else if(e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Rr=class extends C{constructor(){super(...arguments);this.description="Updates an existing network policy.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else if(e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var yr=class extends b{constructor(){super(...arguments);this.description="Deletes a network policy and removes all associated CNPs from the cluster.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else if(e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Cr=class extends u{constructor(){super(...arguments);this.description="Gets a list of members belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Members > Read";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/org-members${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Pr=class extends u{constructor(){super(...arguments);this.description="Gets a list of platform roles for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/org-roles${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var vr=class extends i{constructor(){super(...arguments);this.description="Creates a new platform role for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>"/v1/org-roles";this.body=e=>JSON.stringify(e.data)}};var wr=class extends w{constructor(){super(...arguments);this.description="Creates role or updates all user-editable fields on a platform role for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>"/v1/org-roles";this.body=e=>JSON.stringify(e.data)}};var Ar=class extends m{constructor(){super(...arguments);this.description="Gets details about a specific org platform role.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var Sr=class extends C{constructor(){super(...arguments);this.description="Partially updates a platform role for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=e=>JSON.stringify(e.data)}};var Er=class extends b{constructor(){super(...arguments);this.description="Deletes a platform role from the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var kr=class extends u{constructor(){super(...arguments);this.description="Gets a list of members assigned to a platform role in the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var xr=class extends i{constructor(){super(...arguments);this.description="Adds a user to a platform role in the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members`);this.body=e=>JSON.stringify(e.data)}};var Ur=class extends b{constructor(){super(...arguments);this.description="Removes a user from a platform role in the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members/${encodeURIComponent(e.parameters.memberId)}`);this.body=()=>{}}};var jr=class extends m{constructor(){super(...arguments);this.description="Lists available billing plans";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/plans";this.body=()=>{}}};var Lr=class extends u{constructor(){super(...arguments);this.description="Lists projects for the authenticated user or team.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects`:t="/v1/projects";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Tr=class extends i{constructor(){super(...arguments);this.description="Creates a new project.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects`:t="/v1/projects",t};this.body=e=>JSON.stringify(e.data)}};var qr=class extends w{constructor(){super(...arguments);this.description="Creates or updates a project.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects`:t="/v1/projects",t};this.body=e=>JSON.stringify(e.data)}};var Dr=class extends C{constructor(){super(...arguments);this.description="Updates a project.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Gr=class extends m{constructor(){super(...arguments);this.description="Get information about the given project";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $r=class extends b{constructor(){super(...arguments);this.description="Delete the given project. Fails if the project isn't empty.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var re=class extends u{constructor(){super(...arguments);this.description="Gets a list of addons belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Nr=class extends i{constructor(){super(...arguments);this.description="Creates a new addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Br=class extends w{constructor(){super(...arguments);this.description="Creates or updates an addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Or=class extends m{constructor(){super(...arguments);this.description="Gets information about the given addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Mr=class extends C{constructor(){super(...arguments);this.description="Updates an addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var _r=class extends b{constructor(){super(...arguments);this.description="Deletes the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Jr=class extends u{constructor(){super(...arguments);this.description="Gets details about an addon's backup schedules";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Hr=class extends i{constructor(){super(...arguments);this.description="Create a new backup schedule for an addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Fr=class extends b{constructor(){super(...arguments);this.description="Deletes a backup schedule for an addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Vr=class extends u{constructor(){super(...arguments);this.description="Returns a list of backups for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var zr=class extends i{constructor(){super(...arguments);this.description="Initiates a backup for the given addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Kr=class extends m{constructor(){super(...arguments);this.description="Gets details about a given backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Wr=class extends b{constructor(){super(...arguments);this.description="Deletes a given backup";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Yr=class extends i{constructor(){super(...arguments);this.description="Aborts the in progress backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Zr=class extends i{constructor(){super(...arguments);this.description="Aborts an in-progress backup restore.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort-restore`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort-restore`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Qr=class extends m{constructor(){super(...arguments);this.description="Generates a temporary download link for downloading the given backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/download-link`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/download-link`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Xr=class extends i{constructor(){super(...arguments);this.description="Restores the given addon to the given backup state.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restore`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restore`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var en=class extends u{constructor(){super(...arguments);this.description="Gets a list of restores for the given backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restores`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restores`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var tn=class extends i{constructor(){super(...arguments);this.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/retain`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/retain`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var rn=class extends u{constructor(){super(...arguments);this.description="Gets a list of containers for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/containers`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/containers`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var nn=class extends m{constructor(){super(...arguments);this.description="Returns the credentials for connecting to the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/credentials`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/credentials`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var an=class extends i{constructor(){super(...arguments);this.description="Imports a database from an external archive or existing live database.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/import`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/import`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var on=class extends i{constructor(){super(...arguments);this.description="Updates the network settings for the addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/network-settings`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/network-settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var sn=class extends i{constructor(){super(...arguments);this.description="Pause the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var dn=class extends i{constructor(){super(...arguments);this.description="Reset the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/reset`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/reset`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ln=class extends i{constructor(){super(...arguments);this.description="Restart the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restart`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restart`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var pn=class extends u{constructor(){super(...arguments);this.description="Returns a list of restores for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restores`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restores`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var mn=class extends i{constructor(){super(...arguments);this.description="Resume the given addon if it is paused.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var un=class extends i{constructor(){super(...arguments);this.description="Modifies the allocated resources for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/scale`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/scale`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var cn=class extends i{constructor(){super(...arguments);this.description="Starts a secret rotation for the given addon. New credentials are created with the same permissions; the old credentials remain valid until the rotation is finalised.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var gn=class extends i{constructor(){super(...arguments);this.description="Finalises an in-progress secret rotation for the given addon. The old credentials are permanently removed.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation/finalise`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation/finalise`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var bn=class extends i{constructor(){super(...arguments);this.description="Updates the security rules for the addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/security`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/security`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var fn=class extends m{constructor(){super(...arguments);this.description="Gets details about the current addon version including available upgrades and upgrade history.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var In=class extends i{constructor(){super(...arguments);this.description="Upgrades the addon to a new version.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var hn=class extends u{constructor(){super(...arguments);this.description="Gets a list of external addons belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Rn=class extends i{constructor(){super(...arguments);this.description="Creates a new external addon (third-party cloud resource provisioned via OpenTofu)";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var yn=class extends m{constructor(){super(...arguments);this.description="Gets information about the given external addon";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Cn=class extends C{constructor(){super(...arguments);this.description="Updates configuration for an external addon";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Pn=class extends b{constructor(){super(...arguments);this.description="Deletes an external addon and destroys the associated cloud resource";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var vn=class extends u{constructor(){super(...arguments);this.description="Gets a list of harnesses belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var wn=class extends i{constructor(){super(...arguments);this.description="Creates a new harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var An=class extends w{constructor(){super(...arguments);this.description="Creates or updates a harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Create";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Sn=class extends m{constructor(){super(...arguments);this.description="Gets information about the given harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var En=class extends C{constructor(){super(...arguments);this.description="Updates a harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var kn=class extends b{constructor(){super(...arguments);this.description="Deletes the given harness.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xn=class extends i{constructor(){super(...arguments);this.description="Pauses the given harness, scaling its deployment to zero.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Un=class extends i{constructor(){super(...arguments);this.description="Restarts the given harness.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/restart`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/restart`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var jn=class extends i{constructor(){super(...arguments);this.description="Resumes the given harness, restoring its deployment.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ln=class extends u{constructor(){super(...arguments);this.description="Gets a list of jobs belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Tn=class extends i{constructor(){super(...arguments);this.description="Creates a new job (manual or cron based on settings.cron presence)";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qn=class extends w{constructor(){super(...arguments);this.description="Creates or updates a job (manual or cron based on settings.cron presence)";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Dn=class extends i{constructor(){super(...arguments);this.description="Creates a new cron job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Gn=class extends w{constructor(){super(...arguments);this.description="Creates or updates a cron job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var $n=class extends C{constructor(){super(...arguments);this.description="Updates a cron job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Nn=class extends i{constructor(){super(...arguments);this.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Bn=class extends w{constructor(){super(...arguments);this.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var On=class extends C{constructor(){super(...arguments);this.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Mn=class extends m{constructor(){super(...arguments);this.description="Gets information about the given job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var _n=class extends C{constructor(){super(...arguments);this.description="Updates a job (manual or cron based on current type and settings.cron)";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Jn=class extends b{constructor(){super(...arguments);this.description="Deletes the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Hn=class extends u{constructor(){super(...arguments);this.description="Gets information about the branches of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/branches`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/branches`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Fn=class extends u{constructor(){super(...arguments);this.description="Lists builds for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Vn=class extends i{constructor(){super(...arguments);this.description="Start a new build for the given job. Given a commit sha, it will build that commit.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var zn=class extends m{constructor(){super(...arguments);this.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Kn=class extends i{constructor(){super(...arguments);this.description="Sets build arguments for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Wn=class extends m{constructor(){super(...arguments);this.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Yn=class extends i{constructor(){super(...arguments);this.description="Updates the build options for a given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-options`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-options`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Zn=class extends i{constructor(){super(...arguments);this.description="Updates the version control source for a given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-source`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-source`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Qn=class extends m{constructor(){super(...arguments);this.description="Gets information about a build for the job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Xn=class extends b{constructor(){super(...arguments);this.description="Aborts the given job build";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ea=class extends u{constructor(){super(...arguments);this.description="Gets a list of containers for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > Deployment > View Observability";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/containers`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/containers`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ta=class extends m{constructor(){super(...arguments);this.description="Gets information about the deployment of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ra=class extends i{constructor(){super(...arguments);this.description="Updates the deployment settings of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var na=class extends m{constructor(){super(...arguments);this.description="Lists the health checks for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var aa=class extends i{constructor(){super(...arguments);this.description="Updates health checks for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var oa=class extends i{constructor(){super(...arguments);this.description="Pause the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var sa=class extends u{constructor(){super(...arguments);this.description="Gets information about the pull-requests of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pull-requests`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pull-requests`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ia=class extends i{constructor(){super(...arguments);this.description="Resumes the given job. Optionally takes several arguments to override resumed settings.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var da=class extends u{constructor(){super(...arguments);this.description="Fetches run history for the given job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var la=class extends i{constructor(){super(...arguments);this.description="Starts a new job run for the given job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Run Job";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var pa=class extends m{constructor(){super(...arguments);this.description="Returns data about the given job run";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ma=class extends b{constructor(){super(...arguments);this.description="Aborts the given job run";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ua=class extends m{constructor(){super(...arguments);this.description="Returns the runtime environment for the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ca=class extends i{constructor(){super(...arguments);this.description="Sets the runtime environment for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ga=class extends m{constructor(){super(...arguments);this.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ba=class extends i{constructor(){super(...arguments);this.description="Modifies the scaling settings for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/scale`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/scale`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var fa=class extends i{constructor(){super(...arguments);this.description="Updates settings for the job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/settings`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ia=class extends i{constructor(){super(...arguments);this.description="Modify cron job to toggle suspending of its schedule.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/suspend`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/suspend`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ha=class extends u{constructor(){super(...arguments);this.description="Lists all AI models for a project";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ra=class extends i{constructor(){super(...arguments);this.description="Create an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ya=class extends m{constructor(){super(...arguments);this.description="Gets details about an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ca=class extends i{constructor(){super(...arguments);this.description="Updates an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Pa=class extends b{constructor(){super(...arguments);this.description="Delete an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var va=class extends u{constructor(){super(...arguments);this.description="Lists all pipelines for a project";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var wa=class extends m{constructor(){super(...arguments);this.description="Get details about a pipeline";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Aa=class extends u{constructor(){super(...arguments);this.description="Get information about the given preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Sa=class extends i{constructor(){super(...arguments);this.description="Update a given preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ea=class extends u{constructor(){super(...arguments);this.description="Get a list of active preview environments for a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ka=class extends b{constructor(){super(...arguments);this.description="Delete a preview environment generated by a preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews/${encodeURIComponent(e.parameters.previewId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews/${encodeURIComponent(e.parameters.previewId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var xa=class extends i{constructor(){super(...arguments);this.description="Run the given preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ua=class extends u{constructor(){super(...arguments);this.description="Get a list of preview template runs";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ja=class extends m{constructor(){super(...arguments);this.description="Get information about the given preview template run.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var La=class extends m{constructor(){super(...arguments);this.description="Gets details about a release flow";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ta=class extends i{constructor(){super(...arguments);this.description="Updates a release flow";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qa=class extends i{constructor(){super(...arguments);this.description="Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Da=class extends u{constructor(){super(...arguments);this.description="Lists runs of a release flow";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ga=class extends m{constructor(){super(...arguments);this.description="Get information about the given release flow run";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $a=class extends i{constructor(){super(...arguments);this.description="Abort the given release flow run";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Na=class extends u{constructor(){super(...arguments);this.description="Lists all preview blueprints for a project";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ba=class extends i{constructor(){super(...arguments);this.description="Create a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Oa=class extends m{constructor(){super(...arguments);this.description="Gets details about a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ma=class extends i{constructor(){super(...arguments);this.description="Updates a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var _a=class extends b{constructor(){super(...arguments);this.description="Delete a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ja=class extends u{constructor(){super(...arguments);this.description="Get a list of active previews for a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ha=class extends b{constructor(){super(...arguments);this.description="Delete a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PipelinesV2 > Previews > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Fa=class extends i{constructor(){super(...arguments);this.description="Pause a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PipelinesV2 > Previews > Pause";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Va=class extends i{constructor(){super(...arguments);this.description="Reset the expiry of a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/reset`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/reset`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var za=class extends i{constructor(){super(...arguments);this.description="Resume a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PipelinesV2 > Previews > Resume";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ka=class extends i{constructor(){super(...arguments);this.description="Runs a given preview blueprint with given arguments. This endpoint can be used as part of a CI pipeline to automatically create a preview environment.";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Start";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Wa=class extends u{constructor(){super(...arguments);this.description="Lists runs of a previewBlueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ya=class extends m{constructor(){super(...arguments);this.description="Get information about the given preview blueprint run";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Za=class extends i{constructor(){super(...arguments);this.description="Abort the given preview blueprint run";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Abort";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Qa=class extends u{constructor(){super(...arguments);this.description="Gets a list of project secrets belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Secrets > SecretGroups > List";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Xa=class extends i{constructor(){super(...arguments);this.description="Creates a project secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Project > Secrets > SecretGroups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var eo=class extends w{constructor(){super(...arguments);this.description="Creates or updates a project secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Project > Secrets > SecretGroups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var to=class extends C{constructor(){super(...arguments);this.description="Updates a project secret with the specified payload";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ro=class extends m{constructor(){super(...arguments);this.description="View a project secret including its contents";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var no=class extends b{constructor(){super(...arguments);this.description="Delete a project secret";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ao=class extends i{constructor(){super(...arguments);this.description="Update a project secret";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var oo=class extends i{constructor(){super(...arguments);this.description="Link an addon to a project secret or edit the settings of the linked addon.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var so=class extends m{constructor(){super(...arguments);this.description="Get details about a given addon link.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var io=class extends b{constructor(){super(...arguments);this.description="Unlinks an addon from the project secret.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var lo=class extends m{constructor(){super(...arguments);this.description="View a project secret with details about its linked addons";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ne=class extends u{constructor(){super(...arguments);this.description="Gets a list of services belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var po=class extends i{constructor(){super(...arguments);this.description="Creates a new build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var mo=class extends w{constructor(){super(...arguments);this.description="Creates or updates a build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var uo=class extends C{constructor(){super(...arguments);this.description="Updates a build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/build/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/build/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var co=class extends i{constructor(){super(...arguments);this.description="Creates a new combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var go=class extends w{constructor(){super(...arguments);this.description="Creates or updates a combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var bo=class extends C{constructor(){super(...arguments);this.description="Updates a combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var fo=class extends i{constructor(){super(...arguments);this.description="Creates a new deployment service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Io=class extends w{constructor(){super(...arguments);this.description="Creates or updates a deployment service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ho=class extends C{constructor(){super(...arguments);this.description="Updates a deployment service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ro=class extends m{constructor(){super(...arguments);this.description="Gets information about the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var yo=class extends b{constructor(){super(...arguments);this.description="Deletes the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Co=class extends u{constructor(){super(...arguments);this.description="Gets information about the branches of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/branches`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/branches`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Po=class extends u{constructor(){super(...arguments);this.description="Lists the builds for the service";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var vo=class extends i{constructor(){super(...arguments);this.description="Start a new build for the given combined or build service. Git build services require a branch or pull request. Bundle build services require a bundle URL and accept an optional branch and revision.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var wo=class extends m{constructor(){super(...arguments);this.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ao=class extends i{constructor(){super(...arguments);this.description="Sets the build arguments for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var So=class extends m{constructor(){super(...arguments);this.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Eo=class extends b{constructor(){super(...arguments);this.description="Clears the build cache of a given combined or build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-cache`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-cache`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ko=class extends i{constructor(){super(...arguments);this.description="Updates the build options for a given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-options`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-options`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var xo=class extends i{constructor(){super(...arguments);this.description="Updates the version control source for a given build or combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-source`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-source`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Uo=class extends m{constructor(){super(...arguments);this.description="Gets information about a build for the service";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var jo=class extends b{constructor(){super(...arguments);this.description="Aborts the given service build";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Lo=class extends u{constructor(){super(...arguments);this.description="Gets a list of containers for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/containers`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/containers`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var To=class extends m{constructor(){super(...arguments);this.description="Gets information about the deployment of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var qo=class extends i{constructor(){super(...arguments);this.description="Updates the deployment settings of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Do=class extends u{constructor(){super(...arguments);this.description="Lists the deployments of the given service, newest first. For services using a gradual rollout strategy each deployment also reports the release type it was created as.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Go=class extends m{constructor(){super(...arguments);this.description="Lists the health checks for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $o=class extends i{constructor(){super(...arguments);this.description="Updates health checks for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var No=class extends i{constructor(){super(...arguments);this.description="Pause the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Bo=class extends m{constructor(){super(...arguments);this.description="Lists the per-replica statefulSet volumes for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Oo=class extends b{constructor(){super(...arguments);this.description="Fully deletes a removed per-replica statefulSet volume for the given service: all of its orphaned PVCs and the volume definition. The volume must first be removed from the service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Mo=class extends b{constructor(){super(...arguments);this.description="Deletes one orphaned per-replica statefulSet volume PVC \u2014 a scaled-down ordinal, or a replica of a removed volume. Replicas still bound to a running instance are refused with 409.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"ordinal"in e?.parameters&&e?.parameters?.ordinal!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}/replica/${encodeURIComponent(e.parameters.ordinal)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"ordinal"in e?.parameters&&e?.parameters?.ordinal!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}/replica/${encodeURIComponent(e.parameters.ordinal)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var _o=class extends m{constructor(){super(...arguments);this.description="Lists the ports for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Jo=class extends i{constructor(){super(...arguments);this.description="Updates the list of ports for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ho=class extends u{constructor(){super(...arguments);this.description="Gets information about the pull-requests of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pull-requests`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pull-requests`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Fo=class extends i{constructor(){super(...arguments);this.description="Restarts the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/restart`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/restart`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Vo=class extends i{constructor(){super(...arguments);this.description="Resumes the given service. Optionally takes several arguments to override resumed settings.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var zo=class extends m{constructor(){super(...arguments);this.description="Gets the active gradual rollout of the given service, including the traffic configuration, the stable and canary deployments, and previous traffic configurations.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ko=class extends i{constructor(){super(...arguments);this.description="Updates the traffic split of the active gradual rollout. Only percentage based rollouts can be reconfigured. Setting the canary to 100% promotes the rollout.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/configuration`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/configuration`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Wo=class extends i{constructor(){super(...arguments);this.description="Promotes the canary deployment of the active gradual rollout to stable, routing all traffic to it. This is idempotent: promoting an already promoted rollout succeeds without changing anything.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/promote`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/promote`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Yo=class extends i{constructor(){super(...arguments);this.description="Ends the active gradual rollout and redeploys the service from a previous deployment. Use the list service deployments endpoint to find the deployment to roll back to.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/rollback`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/rollback`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Zo=class extends m{constructor(){super(...arguments);this.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Qo=class extends i{constructor(){super(...arguments);this.description="Sets the runtime environment for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Xo=class extends m{constructor(){super(...arguments);this.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var es=class extends i{constructor(){super(...arguments);this.description="Modifies the scaling settings for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/scale`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/scale`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ts=class extends i{constructor(){super(...arguments);this.description="Schedules a snapshot of a running deployment service pod. When no pod is provided, the service must have exactly one eligible pod. Repeated requests for an active pod return the existing snapshot.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/snapshots`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/snapshots`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var rs=class extends u{constructor(){super(...arguments);this.description="Gets a list of volumes belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ns=class extends i{constructor(){super(...arguments);this.description="Creates a volume with the specified payload";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var as=class extends m{constructor(){super(...arguments);this.description="Retrieve a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var os=class extends i{constructor(){super(...arguments);this.description="Update volume mounts and storage size";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ss=class extends b{constructor(){super(...arguments);this.description="Deletes this volume and its associated data.";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var is=class extends i{constructor(){super(...arguments);this.description="Attach a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/attach`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/attach`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ds=class extends u{constructor(){super(...arguments);this.description="Gets details about a volume's backup schedules";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ls=class extends i{constructor(){super(...arguments);this.description="Create a new snapshot backup schedule for a volume.";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ps=class extends b{constructor(){super(...arguments);this.description="Deletes a snapshot backup schedule for a volume.";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ms=class extends u{constructor(){super(...arguments);this.description="Get list of backups associated with a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var us=class extends i{constructor(){super(...arguments);this.description="Initiates a backup for a given volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var cs=class extends m{constructor(){super(...arguments);this.description="Get details for a specific volume backup";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var gs=class extends b{constructor(){super(...arguments);this.description="Delete the volume backup";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var bs=class extends i{constructor(){super(...arguments);this.description="Detach a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/detach`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/detach`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var fs=class extends u{constructor(){super(...arguments);this.description="Lists all workflows for a project";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Is=class extends i{constructor(){super(...arguments);this.description="Create a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var hs=class extends m{constructor(){super(...arguments);this.description="Gets details about a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Rs=class extends i{constructor(){super(...arguments);this.description="Updates a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ys=class extends i{constructor(){super(...arguments);this.description="Runs a given workflow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Start";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Cs=class extends u{constructor(){super(...arguments);this.description="Lists runs of a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ps=class extends m{constructor(){super(...arguments);this.description="Get information about the given workflow run";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var vs=class extends i{constructor(){super(...arguments);this.description="Abort the given workflow run";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Abort";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ws=class extends m{constructor(){super(...arguments);this.description="Lists available project regions";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/regions";this.body=()=>{}}};var As=class extends u{constructor(){super(...arguments);this.description="Gets a list of global secrets";this.withAuth=!0;this.requiredPermissions="Account > GlobalSecrets > Secrets > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets`:t="/v1/secrets";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ss=class extends i{constructor(){super(...arguments);this.description="Creates a global secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Account > GlobalSecrets > Secrets > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets`:t="/v1/secrets",t};this.body=e=>JSON.stringify(e.data)}};var Es=class extends w{constructor(){super(...arguments);this.description="Creates or updates a global secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Account > GlobalSecrets > Secrets > Create";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets`:t="/v1/secrets";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var ks=class extends C{constructor(){super(...arguments);this.description="Updates a global secret with the specified payload";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var xs=class extends m{constructor(){super(...arguments);this.description="Get a global secret including its contents";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Us=class extends b{constructor(){super(...arguments);this.description="Delete a global secret";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var js=class extends i{constructor(){super(...arguments);this.description="Runs the templates configured under the global secret\u2019s dependents (when enabled).";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Run";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/trigger-dependents`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}/trigger-dependents`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ls=class extends u{constructor(){super(...arguments);this.description="List the resource tags for this entity.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags`:t="/v1/tags";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ts=class extends i{constructor(){super(...arguments);this.description="Add a new resource tag for this entity.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags`:t="/v1/tags",t};this.body=e=>JSON.stringify(e.data)}};var qs=class extends w{constructor(){super(...arguments);this.description="Update or create a resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags`:t="/v1/tags",t};this.body=e=>JSON.stringify(e.data)}};var Ds=class extends m{constructor(){super(...arguments);this.description="View details for a given resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else if(e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Gs=class extends C{constructor(){super(...arguments);this.description="Patch a resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else if(e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var $s=class extends b{constructor(){super(...arguments);this.description="Delete a resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else if(e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ns=class extends i{constructor(){super(...arguments);this.description="Creates a new team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Create";this.endpointUrl=e=>"/v1/teams";this.body=e=>JSON.stringify(e.data)}};var Bs=class extends u{constructor(){super(...arguments);this.description="Gets a list of teams belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Read";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/teams${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Os=class extends m{constructor(){super(...arguments);this.description="Gets information about a team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Read";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}`);this.body=()=>{}}};var Ms=class extends C{constructor(){super(...arguments);this.description="Updates the description of a team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Update";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}`);this.body=e=>JSON.stringify(e.data)}};var _s=class extends b{constructor(){super(...arguments);this.description="Deletes a team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Delete";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}`);this.body=()=>{}}};var Js=class extends u{constructor(){super(...arguments);this.description="Gets a list of members belonging to a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Members > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members${r}`};this.body=()=>{}}};var Hs=class extends i{constructor(){super(...arguments);this.description="Invites a user to a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Members > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members`);this.body=e=>JSON.stringify(e.data)}};var Fs=class extends b{constructor(){super(...arguments);this.description="Removes a member from a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Members > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members/${encodeURIComponent(e.parameters.memberId)}`);this.body=()=>{}}};var Vs=class extends u{constructor(){super(...arguments);this.description="Gets a list of platform roles for a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles${r}`};this.body=()=>{}}};var zs=class extends i{constructor(){super(...arguments);this.description="Creates a new platform role for a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles`);this.body=e=>JSON.stringify(e.data)}};var Ks=class extends w{constructor(){super(...arguments);this.description="Creates role or updates all user-editable fields on a platform role.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles`);this.body=e=>JSON.stringify(e.data)}};var Ws=class extends m{constructor(){super(...arguments);this.description="Gets details about a specific platform role.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Read";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var Ys=class extends C{constructor(){super(...arguments);this.description="Updates a platform role for a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=e=>JSON.stringify(e.data)}};var Zs=class extends b{constructor(){super(...arguments);this.description="Deletes a platform role from a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var Qs=class extends u{constructor(){super(...arguments);this.description="Gets a list of members assigned to a platform role in a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var Xs=class extends i{constructor(){super(...arguments);this.description="Adds a user to a platform role in a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members`);this.body=e=>JSON.stringify(e.data)}};var ei=class extends b{constructor(){super(...arguments);this.description="Removes a user from a platform role in a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members/${encodeURIComponent(e.parameters.memberId)}`);this.body=()=>{}}};var ti=class extends u{constructor(){super(...arguments);this.description="Get a list of templates";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates`:t="/v1/templates";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ri=class extends i{constructor(){super(...arguments);this.description="Create a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates`:t="/v1/templates",t};this.body=e=>JSON.stringify(e.data)}};var ni=class extends u{constructor(){super(...arguments);this.description="Get information about the given template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ai=class extends i{constructor(){super(...arguments);this.description="Update a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var oi=class extends b{constructor(){super(...arguments);this.description="Delete a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var si=class extends i{constructor(){super(...arguments);this.description="Run a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Run";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ii=class extends u{constructor(){super(...arguments);this.description="Get a list of template runs";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var di=class extends m{constructor(){super(...arguments);this.description="Get information about the given template run.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var li=class extends i{constructor(){super(...arguments);this.description="Abort the given template run.";this.withAuth=!0;this.requiredPermissions="Account > Templates > Runs > Abort";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}/abort`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var pi=class extends u{constructor(){super(...arguments);this.description="Lists API tokens belonging to the authenticated org or team, newest first. Only active tokens are returned unless the `all` query parameter is set.";this.withAuth=!0;this.requiredPermissions="Account > Admin > ApiTokens > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tokens`:t="/v1/tokens";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var mi=class extends i{constructor(){super(...arguments);this.description="Creates a new key for an API token and sets all other keys to expire.";this.withAuth=!0;this.requiredPermissions="Account > Admin > ApiTokens > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys`;else if(e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0)t=`/v1/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ui=class extends b{constructor(){super(...arguments);this.description="Removes a key from an API token.";this.withAuth=!0;this.requiredPermissions="Account > Admin > ApiTokens > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0&&e?.parameters&&"keyId"in e?.parameters&&e?.parameters?.keyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys/${encodeURIComponent(e.parameters.keyId)}`;else if(e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0&&e?.parameters&&"keyId"in e?.parameters&&e?.parameters?.keyId!==void 0)t=`/v1/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys/${encodeURIComponent(e.parameters.keyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ci=class extends u{constructor(){super(...arguments);this.description="Lists the workload identities saved to this account.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities`:t="/v1/workload-identities";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var gi=class extends i{constructor(){super(...arguments);this.description="Creates a new workload identity on this account. For managed roles using automatic provider setup, installation of the cloud resources is triggered automatically unless `noInstall=true` is passed.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Create";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities`:t="/v1/workload-identities";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var bi=class extends m{constructor(){super(...arguments);this.description="Retrieves a workload identity by ID.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else if(e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var fi=class extends C{constructor(){super(...arguments);this.description="Updates a workload identity. For managed roles using automatic provider setup, installation of the cloud resources is triggered automatically unless `noInstall=true` is passed.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else if(e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Ii=class extends b{constructor(){super(...arguments);this.description="Deletes a workload identity.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else if(e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var z=class{constructor(){this.resourceContext={};this.hasResourceContext=!1}loadContext(){this.contextWrapper=this.loadContextWrapper()}getInfo(){return""}storeContext(n){this.writeContext(n),this.contextWrapper=n}addContext(n,e=!0){if(this.loadContext(),!e&&this.findContext(n.name)!==void 0)throw new Error(`Context with name ${n.name} already exists`);this.removeContext(n.name);let t={host:"https://api.northflank.com",...n},{contextWrapper:r}=this,o={current:t.name,contexts:[...r.contexts,t],lastUpdateCheck:r.lastUpdateCheck};this.storeContext(o)}removeContext(n){this.loadContext();let{contextWrapper:e}=this,t=e.contexts.filter(a=>a.name!==n),o={current:e.current===n?void 0:e.current,contexts:[...t],lastUpdateCheck:e.lastUpdateCheck};this.storeContext(o)}getCurrentContext(){let n=this.contextWrapper?.current;return n===void 0?n:this.findContext(n)}findContext(n){return this.contextWrapper.contexts.find(e=>e.name===n)}getCurrentBaseUrl(n){let e=this.getCurrentContext();if(n===!0&&!e?.host)throw new Error(`Context (${e?.name}) doesn't have a target API host. Please login again.`);return e?.host}getCurrentProjectName(){return this.hasResourceContext?this.resourceContext.project:this.getCurrentContext()?.project}getCurrentTeamName(){return this.hasResourceContext?this.resourceContext.team:this.getCurrentContext()?.team}getCurrentName(){return this.getCurrentContext()?.name}getCurrentToken(){return this.getCurrentContext()?.token}getCurrentServiceName(){return this.hasResourceContext?this.resourceContext.service:this.getCurrentContext()?.service}getCurrentJobName(){return this.hasResourceContext?this.resourceContext.job:this.getCurrentContext()?.job}getCurrentAddonName(){return this.hasResourceContext?this.resourceContext.addon:this.getCurrentContext()?.addon}getCurrentVolumeName(){return this.hasResourceContext?this.resourceContext.volume:this.getCurrentContext()?.volume}getCurrentHarnessName(){return this.hasResourceContext?this.resourceContext.harness:this.getCurrentContext()?.harness}setResourceContext(n,e){this.resourceContext={...n},this.resourceContextSource=e,this.hasResourceContext=!0}getResourceContext(){return{...this.resourceContext}}getResourceContextSource(){return this.resourceContextSource}getTokenScope(){let n=this.getCurrentContext();if(n===void 0)return;let e=n?.tokenScope;if(e!==void 0)return e;let t=a=>{try{let p=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(Buffer.from(p,"base64").toString("utf8"))}catch{return}};if(n?.token===void 0)return;let o=t(n.token)?.entityType??"team";return this.updateContext({...n,tokenScope:o}),o}getCurrentPlanId(){return this.getCurrentContext()?.plan}getCurrentRegion(){return this.getCurrentContext()?.region}useContext(n){if(this.loadContext(),!this.findContext(n))throw new Error(`Context with name ${n} doesn't exist`);let{contextWrapper:e}=this,t={...e,current:n};this.storeContext(t)}updateContext(n){if(this.loadContext(),!this.findContext(n.name))throw new Error(`Context with name ${n.name} doesn't exist`);let e=this.contextWrapper.contexts.map(r=>r.name===n.name?{...r,...n}:r),t={...this.contextWrapper,contexts:e};this.storeContext(t)}updateToken(n,e){this.loadContext();let t=e??this.getCurrentName(),r=this.findContext(t);if(!r)throw new Error(`Context with name ${e} doesn't exist`);this.updateContext({...r,token:n})}useProjectId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set project id to current context, current context not defined");let t={...e,project:n};this.addContext(t)}useServiceId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set service id to current context, current context not defined");let t={...e,service:n};this.addContext(t)}useJobId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set job id to current context, current context not defined");let t={...e,job:n};this.addContext(t)}usePlanId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set plan id to current context, current context not defined");let t={...e,plan:n};this.addContext(t)}useRegion(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set region id to current context, current context not defined");let t={...e,region:n};this.addContext(t)}getLastUpdateCheck(){return this.contextWrapper.lastUpdateCheck||new Date}setLastUpdateCheck(n){this.loadContext();let{contextWrapper:e}=this,t={...e,lastUpdateCheck:n};this.storeContext(t)}};var hi=class extends z{constructor(){super();this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)};this.loadContext()}loadContextWrapper(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper}writeContext(e){this.inMemoryContextWrapper=e}};var Jd=["NF_API_TOKEN","NORTHFLANK_API_TOKEN"],Hd=["NF_API_BASE_URL","NORTHFLANK_API_BASE_URL","NF_API_ENDPOINT","NORTHFLANK_API_ENDPOINT","NF_API_HOST","NORTHFLANK_API_HOST"],rd=()=>typeof process>"u"?{}:process.env;function Fd(s,n,e){let t=n.map(o=>({name:o,value:s[o]?.trim()})).filter(o=>!!o.value);if(new Set(t.map(({value:o})=>o)).size>1)throw new Error(`Conflicting ${e} environment variables are set: ${t.map(({name:o})=>o).join(", ")}`);return t[0]?.value}function Cl(s){let e=/^[a-z][a-z\d+.-]*:\/\//i.test(s)?s:`https://${s}`,t;try{t=new URL(e)}catch{throw new Error("Invalid Northflank API endpoint configured in the environment")}if(t.protocol!=="https:"&&t.protocol!=="http:")throw new Error("Northflank API endpoint must use http or https");if(t.username||t.password)throw new Error("Northflank API endpoint must not contain credentials");if(t.search||t.hash)throw new Error("Northflank API endpoint must not contain a query string or fragment");return t.toString().replace(/\/+$/,"")}var nd=class extends hi{static hasEnvironmentToken(n=rd()){return Jd.some(e=>!!n[e]?.trim())}static hasEnvironmentHost(n=rd()){return Hd.some(e=>!!n[e]?.trim())}constructor(n={}){super();let e=n.environment??rd(),t=Fd(e,Jd,"API token");if(!t)throw new Error("ApiClientEnvironmentContextProvider requires NF_API_TOKEN or NORTHFLANK_API_TOKEN");let r=Fd(e,Hd,"API endpoint"),o=Cl(r??n.defaultHost??"https://api.northflank.com");this.addContext({name:n.contextName?.trim()||"environment",token:t,host:o})}getInfo(){return"API context loaded from environment variables; changes are not persisted."}};var Ri=k(require("fs")),Vd=k(require("os"));var ad=class extends z{constructor(e){super();this.assertDir=e=>{try{Ri.default.existsSync(e)||Ri.default.mkdirSync(e,{recursive:!0})}catch(t){throw console.log(`Failed to login, local files could not be created: ${e}, error: ${t.message}`),t}};this.configPath=e||`${Vd.default.homedir()}/.northflank`,this.configFile=`${this.configPath}/config.json`,this.loadContext()}loadContextWrapper(){let e;try{e=Ri.default.readFileSync(this.configFile,"utf8")}catch(t){if(t.code==="ENOENT")return{contexts:[],lastUpdateCheck:new Date(0)};throw new Error(`Failed to read config file ${this.configFile}: ${t.message}`)}try{return JSON.parse(e)}catch(t){throw new Error(`Config file ${this.configFile} contains invalid JSON: ${t.message}`)}}writeContext(e){this.assertConfigDir();try{Ri.default.writeFileSync(this.configFile,JSON.stringify(e,null," "),{mode:416})}catch(t){throw console.log(`Failed to persist api context, local files could not be created, error: ${t.message}`),t}}assertConfigDir(){this.assertDir(this.configPath)}getInfo(){return`Cli config stored in: ${this.configPath}`}};var od=class{constructor(n,e={}){this.baseUrl=()=>this.contextProvider.getCurrentBaseUrl();this.contextProvider=n,this.forwarding=new pe(n,new ne(n,e),new re(n,e),e.dispatcher),this.exec=new ue(n,e.dispatcher),this.logs=new ge(n,e),this.metrics=new be(n,e),this.fileCopy=new ce(this.exec),this.endpoints={get:(()=>{let t={};return t.addon=(()=>{let r=new Or(n,e);return r.types=new fe(n,e),r.backupSchedules=new Jr(n,e),r.backups=new Vr(n,e),r.backup=(()=>{let o=new Kr(n,e);return o.download=new Qr(n,e),o.restores=new en(n,e),o})(),r.containers=new rn(n,e),r.credentials=new nn(n,e),r.restores=new pn(n,e),r.version=new fn(n,e),r})(),t.auth=new Ie(n,e),t.backupDestination=new ye(n,e),t.invoice=new Ae(n,e),t.usage=new Ee(n,e),t.cloud=(()=>{let r={};return r.cluster=new Le(n,e),r.integration=new _e(n,e),r})(),t.containerSnapshot=new Ke(n,e),t.orgDirectoryGroups=new Ye(n,e),t.dnsId=new Qe(n,e),t.domain=new tt(n,e),t.domainCertificate=new at(n,e),t.subdomain=(()=>{let r=new dt(n,e);return r.path=new Rt(n,e),r})(),t.egressIp=new xt(n,e),t.gradualRolloutStrategy=new Dt(n,e),t.logSink=new Ot(n,e),t.notification=new zt(n,e),t.registryCredentials=new Qt(n,e),t.sshIdentities=new nr(n,e),t.loadBalancer=new gr(n,e),t.networkPolicy=new hr(n,e),t.orgRole=new Ar(n,e),t.project=new Gr(n,e),t.externalAddon=new yn(n,e),t.harness=new Sn(n,e),t.job=(()=>{let r=new Mn(n,e);return r.branches=new Hn(n,e),r.builds=new Fn(n,e),r.buildArguments=new zn(n,e),r.buildArgumentDetails=new Wn(n,e),r.build=new Qn(n,e),r.containers=new ea(n,e),r.deployment=new ta(n,e),r.healthChecks=new na(n,e),r.pullRequests=new sa(n,e),r.runs=new da(n,e),r.run=new pa(n,e),r.runtimeEnvironment=new ua(n,e),r.runtimeEnvironmentDetails=new ga(n,e),r})(),t.llmModelDeployment=new ya(n,e),t.pipeline=new wa(n,e),t.previewTemplate=new Aa(n,e),t.previewTemplateRun=new ja(n,e),t.releaseFlow=new La(n,e),t.releaseFlowRun=new Ga(n,e),t.previewBlueprint=new Oa(n,e),t.previewBlueprintRun=new Ya(n,e),t.secret=new ro(n,e),t.secretLink=new so(n,e),t.secretDetails=new lo(n,e),t.service=(()=>{let r=new Ro(n,e);return r.branches=new Co(n,e),r.builds=new Po(n,e),r.buildArguments=new wo(n,e),r.buildArgumentDetails=new So(n,e),r.build=new Uo(n,e),r.containers=new Lo(n,e),r.deployment=new To(n,e),r.healthChecks=new Go(n,e),r.perReplicaVolumes=new Bo(n,e),r.ports=new _o(n,e),r.pullRequests=new Ho(n,e),r.rollout=new zo(n,e),r.runtimeEnvironment=new Zo(n,e),r.runtimeEnvironmentDetails=new Xo(n,e),r})(),t.volume=(()=>{let r=new as(n,e);return r.backupSchedules=new ds(n,e),r.backups=new ms(n,e),r.backup=new cs(n,e),r})(),t.workflow=new hs(n,e),t.workflowRun=new Ps(n,e),t.globalSecret=new xs(n,e),t.tag=new Ds(n,e),t.team=new Os(n,e),t.teamRole=new Ws(n,e),t.template=new ni(n,e),t.templateRun=new di(n,e),t.workloadIdentities=new bi(n,e),t})(),list:(()=>{let t={};return t.backupDestinations=new he(n,e),t.backupDestinationsBackups=new ve(n,e),t.invoices=new we(n,e),t.usage=new Se(n,e),t.cloud=(()=>{let r={};return r.providers=new ke(n,e),r.clusters=new xe(n,e),r.cluster=(()=>{let o={};return o.nodes=new De(n,e),o})(),r.integrations=new Be(n,e),r.nodeTypes=new Fe(n,e),r.regions=new Ve(n,e),r})(),t.containerSnapshots=new ze(n,e),t.orgDirectoryGroupMembers=new Ze(n,e),t.domains=new Xe(n,e),t.subdomain=(()=>{let r={};return r.path=new ht(n,e),r})(),t.egressIps=new St(n,e),t.gradualRolloutStrategies=new Lt(n,e),t.logSinks=new Nt(n,e),t.notifications=new Ft(n,e),t.registryCredentials=new Yt(n,e),t.sshIdentities=new tr(n,e),t.vcs=new ir(n,e),t.repos=new lr(n,e),t.branches=new pr(n,e),t.loadBalancers=new mr(n,e),t.orgMembers=new Cr(n,e),t.orgRoles=new Pr(n,e),t.orgRoleMembers=new kr(n,e),t.plans=new jr(n,e),t.projects=new Lr(n,e),t.addons=new re(n,e),t.externalAddons=new hn(n,e),t.harnesses=new vn(n,e),t.jobs=new Ln(n,e),t.llmModelDeployments=new ha(n,e),t.pipelines=new va(n,e),t.pipelineTemplatePreviews=new Ea(n,e),t.previewTemplateRuns=new Ua(n,e),t.releaseFlowRuns=new Da(n,e),t.previewBlueprints=new Na(n,e),t.blueprintTemplatePreviews=new Ja(n,e),t.previewBlueprintRuns=new Wa(n,e),t.secrets=new Qa(n,e),t.services=new ne(n,e),t.service=(()=>{let r={};return r.deployments=new Do(n,e),r})(),t.volumes=new rs(n,e),t.workflows=new fs(n,e),t.workflowRuns=new Cs(n,e),t.regions=new ws(n,e),t.globalSecrets=new As(n,e),t.tags=new Ls(n,e),t.teams=new Bs(n,e),t.teamMembers=new Js(n,e),t.teamRoles=new Vs(n,e),t.teamRoleMembers=new Qs(n,e),t.templates=new ti(n,e),t.templateRuns=new ii(n,e),t.apiTokens=new pi(n,e),t.workloadIdentities=new ci(n,e),t})(),add:(()=>{let t={};return t.backupDestination=new Re(n,e),t.domain=(()=>{let r={};return r.subdomain=new st(n,e),r})(),t.subdomain=(()=>{let r={};return r.path=new It(n,e),r})(),t.registryCredentials=new Zt(n,e),t.sshIdentities=new rr(n,e),t.tag=new Ts(n,e),t})(),patch:(()=>{let t={};return t.backupDestination=new Ce(n,e),t.cloud=(()=>{let r={};return r.cluster=new Te(n,e),r.integration=new Je(n,e),r})(),t.egressIp=new Ut(n,e),t.gradualRolloutStrategy=new Gt(n,e),t.loadBalancer=new br(n,e),t.networkPolicy=new Rr(n,e),t.orgRole=new Sr(n,e),t.project=new Dr(n,e),t.addon=new Mr(n,e),t.harness=new En(n,e),t.job=(()=>{let r=new _n(n,e);return r.cron=new $n(n,e),r.manual=new On(n,e),r})(),t.secret=new to(n,e),t.service=(()=>{let r={};return r.build=new uo(n,e),r.combined=new bo(n,e),r.deployment=new ho(n,e),r})(),t.globalSecret=new ks(n,e),t.tag=new Gs(n,e),t.team=new Ms(n,e),t.teamRole=new Ys(n,e),t})(),delete:(()=>{let t={};return t.backupDestination=new Pe(n,e),t.cloud=(()=>{let r={};return r.cluster=new qe(n,e),r.integration=new He(n,e),r})(),t.containerSnapshot=new We(n,e),t.domain=new nt(n,e),t.subdomain=(()=>{let r=new lt(n,e);return r.path=new yt(n,e),r})(),t.egressIp=new jt(n,e),t.gradualRolloutStrategy=new $t(n,e),t.logSink=new Mt(n,e),t.notification=new Wt(n,e),t.registryCredentials=new er(n,e),t.sshIdentities=new sr(n,e),t.loadBalancer=new fr(n,e),t.networkPolicy=new yr(n,e),t.orgRole=new Er(n,e),t.orgRoleMember=new Ur(n,e),t.project=new $r(n,e),t.addon=(()=>{let r=new _r(n,e);return r.backupSchedule=new Fr(n,e),r})(),t.backup=new Wr(n,e),t.externalAddon=new Pn(n,e),t.harness=new kn(n,e),t.job=new Jn(n,e),t.llmModelDeployment=new Pa(n,e),t.pipelineTemplatePreview=new ka(n,e),t.previewBlueprint=new _a(n,e),t.blueprintTemplatePreview=new Ha(n,e),t.secret=new no(n,e),t.secretLink=new io(n,e),t.service=(()=>{let r=new yo(n,e);return r.perReplicaVolumeGroup=new Oo(n,e),r.perReplicaVolume=new Mo(n,e),r})(),t.volume=(()=>{let r=new ss(n,e);return r.backupSchedule=new ps(n,e),r.backup=new gs(n,e),r})(),t.globalSecret=new Us(n,e),t.tag=new $s(n,e),t.team=new _s(n,e),t.teamMember=new Fs(n,e),t.teamRole=new Zs(n,e),t.teamRoleMember=new ei(n,e),t.template=new oi(n,e),t.apiTokenKey=new ui(n,e),t.workloadIdentities=new Ii(n,e),t})(),create:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new Ue(n,e),r.integration=new Oe(n,e),r})(),t.domain=new et(n,e),t.egressIp=new Et(n,e),t.gradualRolloutStrategy=new Tt(n,e),t.logSink=new Bt(n,e),t.notification=new Vt(n,e),t.customVcs=(()=>{let r={};return r.token=new dr(n,e),r})(),t.loadBalancer=new ur(n,e),t.networkPolicy=new Ir(n,e),t.orgRole=new vr(n,e),t.orgRoleMember=new xr(n,e),t.project=new Tr(n,e),t.addon=(()=>{let r=new Nr(n,e);return r.backupSchedule=new Hr(n,e),r})(),t.externalAddon=new Rn(n,e),t.harness=new wn(n,e),t.job=(()=>{let r=new Tn(n,e);return r.cron=new Dn(n,e),r.manual=new Nn(n,e),r})(),t.llmModelDeployment=new Ra(n,e),t.previewBlueprint=new Ba(n,e),t.secret=new Xa(n,e),t.service=(()=>{let r={};return r.build=new po(n,e),r.combined=new co(n,e),r.deployment=new fo(n,e),r})(),t.containerSnapshot=new ts(n,e),t.volume=(()=>{let r=new ns(n,e);return r.backupSchedule=new ls(n,e),r})(),t.workflow=new Is(n,e),t.globalSecret=new Ss(n,e),t.team=new Ns(n,e),t.teamMemberInvite=new Hs(n,e),t.teamRole=new zs(n,e),t.teamRoleMember=new Xs(n,e),t.template=new ri(n,e),t.workloadIdentities=new gi(n,e),t})(),put:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new je(n,e),r.integration=new Me(n,e),r})(),t.domain=(()=>{let r={};return r.subdomain=new it(n,e),r})(),t.egressIp=new kt(n,e),t.gradualRolloutStrategy=new qt(n,e),t.sshIdentities=new ar(n,e),t.loadBalancer=new cr(n,e),t.orgRole=new wr(n,e),t.project=new qr(n,e),t.addon=new Br(n,e),t.harness=new An(n,e),t.job=(()=>{let r=new qn(n,e);return r.cron=new Gn(n,e),r.manual=new Bn(n,e),r})(),t.secret=new eo(n,e),t.service=(()=>{let r={};return r.build=new mo(n,e),r.combined=new go(n,e),r.deployment=new Io(n,e),r})(),t.globalSecret=new Es(n,e),t.tag=new qs(n,e),t.teamRole=new Ks(n,e),t})(),cordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=new Ge(n,e),o})(),r})(),t})(),drain:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=new $e(n,e),o})(),r})(),t})(),uncordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=new Ne(n,e),o})(),r})(),t})(),update:(()=>{let t={};return t.domain=new rt(n,e),t.subdomain=(()=>{let r={};return r.geoRouting=new ft(n,e),r.path=new Ct(n,e),r})(),t.logSink=new Ht(n,e),t.notification=new Kt(n,e),t.registryCredentials=new Xt(n,e),t.sshIdentities=new or(n,e),t.addon=(()=>{let r={};return r.networkSettings=new on(n,e),r.security=new bn(n,e),r.version=new In(n,e),r})(),t.externalAddon=new Cn(n,e),t.job=(()=>{let r={};return r.buildArguments=new Kn(n,e),r.buildOptions=new Yn(n,e),r.buildSource=new Zn(n,e),r.deployment=new ra(n,e),r.healthChecks=new aa(n,e),r.runtimeEnvironment=new ca(n,e),r.settings=new fa(n,e),r})(),t.llmModelDeployment=new Ca(n,e),t.previewTemplate=new Sa(n,e),t.releaseFlow=new Ta(n,e),t.previewBlueprint=new Ma(n,e),t.secret=new ao(n,e),t.secretLink=new oo(n,e),t.service=(()=>{let r={};return r.buildArguments=new Ao(n,e),r.buildOptions=new ko(n,e),r.buildSource=new xo(n,e),r.deployment=new qo(n,e),r.healthChecks=new $o(n,e),r.ports=new Jo(n,e),r.rollout=(()=>{let o={};return o.configuration=new Ko(n,e),o})(),r.runtimeEnvironment=new Qo(n,e),r})(),t.volume=new os(n,e),t.workflow=new Rs(n,e),t.template=new ai(n,e),t.workloadIdentities=new fi(n,e),t})(),import:(()=>{let t={};return t.domainCertificate=new ot(n,e),t.subdomainCertificate=new bt(n,e),t.addon=(()=>{let r={};return r.backup=new an(n,e),r})(),t})(),assign:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.service=new pt(n,e),r.path=new Pt(n,e),r})(),t})(),unassign:(()=>{let t={};return t.subdomain=(()=>{let r=new mt(n,e);return r.path=new vt(n,e),r})(),t})(),disable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new ut(n,e),r})(),t})(),enable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new ct(n,e),r})(),t})(),purge:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new gt(n,e),r})(),t})(),verify:(()=>{let t={};return t.subdomain=new wt(n,e),t.domain=new At(n,e),t})(),pause:(()=>{let t={};return t.logSink=new _t(n,e),t.addon=new sn(n,e),t.harness=new xn(n,e),t.job=new oa(n,e),t.blueprintTemplatePreview=new Fa(n,e),t.service=new No(n,e),t})(),resume:(()=>{let t={};return t.logSink=new Jt(n,e),t.addon=new mn(n,e),t.harness=new jn(n,e),t.job=new ia(n,e),t.blueprintTemplatePreview=new za(n,e),t.service=new Vo(n,e),t})(),backup:(()=>{let t={};return t.addon=new zr(n,e),t.volume=new us(n,e),t})(),abort:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Yr(n,e),r.restore=new Zr(n,e),r})(),t.job=(()=>{let r={};return r.build=new Xn(n,e),r.run=new ma(n,e),r})(),t.releaseFlowRun=new $a(n,e),t.previewBlueprintRun=new Za(n,e),t.service=(()=>{let r={};return r.build=new jo(n,e),r})(),t.workflowRun=new vs(n,e),t.templateRun=new li(n,e),t})(),restore:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Xr(n,e),r})(),t})(),retain:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new tn(n,e),r})(),t})(),reset:(()=>{let t={};return t.addon=new dn(n,e),t.blueprintTemplatePreview=new Va(n,e),t.service=(()=>{let r={};return r.buildCache=new Eo(n,e),r})(),t})(),restart:(()=>{let t={};return t.addon=new ln(n,e),t.harness=new Un(n,e),t.service=new Fo(n,e),t})(),scale:(()=>{let t={};return t.addon=new un(n,e),t.job=new ba(n,e),t.service=new es(n,e),t})(),start:(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=new cn(n,e),r})(),t.job=(()=>{let r={};return r.build=new Vn(n,e),r.run=new la(n,e),r})(),t.service=(()=>{let r={};return r.build=new vo(n,e),r})(),t})(),finalise:(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=new gn(n,e),r})(),t})(),suspend:(()=>{let t={};return t.job=new Ia(n,e),t})(),run:(()=>{let t={};return t.previewTemplate=new xa(n,e),t.releaseFlow=new qa(n,e),t.previewBlueprint=new Ka(n,e),t.workflow=new ys(n,e),t.template=new si(n,e),t})(),promote:(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=new Wo(n,e),r})(),t})(),rollback:(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=new Yo(n,e),r})(),t})(),attach:(()=>{let t={};return t.volume=new is(n,e),t})(),detach:(()=>{let t={};return t.volume=new bs(n,e),t})(),trigger:(()=>{let t={};return t.globalSecret=(()=>{let r={};return r.dependents=new js(n,e),r})(),t})(),rotate:(()=>{let t={};return t.apiTokenKey=new mi(n,e),t})(),download:(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.fileCopy.downloadServiceFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.downloadServiceFileStream.bind(this.fileCopy),r})(),t.job=(()=>{let r={};return r.files=this.fileCopy.downloadJobFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.downloadJobFileStream.bind(this.fileCopy),r})(),t})(),upload:(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.fileCopy.uploadServiceFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.uploadServiceFileStream.bind(this.fileCopy),r})(),t.job=(()=>{let r={};return r.files=this.fileCopy.uploadJobFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.uploadJobFileStream.bind(this.fileCopy),r})(),t})()},this.download=(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.endpoints.download.service.files,r})(),t.job=(()=>{let r={};return r.files=this.endpoints.download.job.files,r})(),t})(),this.upload=(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.endpoints.upload.service.files,r})(),t.job=(()=>{let r={};return r.files=this.endpoints.upload.job.files,r})(),t})(),this.get=(()=>{let t={};return t.addon=(()=>{let r=this.endpoints.get.addon.call;return r.types=this.endpoints.get.addon.types.call,r.backupSchedules=(()=>{let o=this.endpoints.get.addon.backupSchedules.call;return o.all=this.endpoints.get.addon.backupSchedules.all,o})(),r.backups=(()=>{let o=this.endpoints.get.addon.backups.call;return o.all=this.endpoints.get.addon.backups.all,o})(),r.backup=(()=>{let o=this.endpoints.get.addon.backup.call;return o.download=this.endpoints.get.addon.backup.download.call,o.restores=(()=>{let a=this.endpoints.get.addon.backup.restores.call;return a.all=this.endpoints.get.addon.backup.restores.all,a})(),o.logs=this.logs.getAddonBackupLogs,o.logTail=this.logs.tailAddonBackupLogs,o})(),r.containers=(()=>{let o=this.endpoints.get.addon.containers.call;return o.all=this.endpoints.get.addon.containers.all,o})(),r.credentials=this.endpoints.get.addon.credentials.call,r.restores=(()=>{let o=(()=>{let a=this.endpoints.get.addon.restores.call;return a.all=this.endpoints.get.addon.restores.all,a})();return o.logs=this.logs.getAddonRestoresLogs,o.logTail=this.logs.tailAddonRestoresLogs,o})(),r.version=this.endpoints.get.addon.version.call,r.logs=this.logs.getAddonLogs,r.logTail=this.logs.tailAddonLogs,r.metrics=this.metrics.getAddonMetrics,r.metricsRange=this.metrics.getAddonMetricsRange,r})(),t.auth=this.endpoints.get.auth.call,t.backupDestination=this.endpoints.get.backupDestination.call,t.invoice=(()=>{let r=this.endpoints.get.invoice.call;return r.all=this.endpoints.get.invoice.all,r})(),t.usage=(()=>{let r=this.endpoints.get.usage.call;return r.all=this.endpoints.get.usage.all,r})(),t.cloud=(()=>{let r={};return r.cluster=this.endpoints.get.cloud.cluster.call,r.integration=this.endpoints.get.cloud.integration.call,r})(),t.containerSnapshot=this.endpoints.get.containerSnapshot.call,t.orgDirectoryGroups=this.endpoints.get.orgDirectoryGroups.call,t.dnsId=this.endpoints.get.dnsId.call,t.domain=this.endpoints.get.domain.call,t.domainCertificate=this.endpoints.get.domainCertificate.call,t.subdomain=(()=>{let r=this.endpoints.get.subdomain.call;return r.path=this.endpoints.get.subdomain.path.call,r})(),t.egressIp=this.endpoints.get.egressIp.call,t.gradualRolloutStrategy=this.endpoints.get.gradualRolloutStrategy.call,t.logSink=this.endpoints.get.logSink.call,t.notification=this.endpoints.get.notification.call,t.registryCredentials=this.endpoints.get.registryCredentials.call,t.sshIdentities=this.endpoints.get.sshIdentities.call,t.loadBalancer=this.endpoints.get.loadBalancer.call,t.networkPolicy=this.endpoints.get.networkPolicy.call,t.orgRole=this.endpoints.get.orgRole.call,t.project=this.endpoints.get.project.call,t.externalAddon=this.endpoints.get.externalAddon.call,t.harness=this.endpoints.get.harness.call,t.job=(()=>{let r=this.endpoints.get.job.call;return r.branches=(()=>{let o=this.endpoints.get.job.branches.call;return o.all=this.endpoints.get.job.branches.all,o})(),r.builds=(()=>{let o=this.endpoints.get.job.builds.call;return o.all=this.endpoints.get.job.builds.all,o})(),r.buildArguments=this.endpoints.get.job.buildArguments.call,r.buildArgumentDetails=this.endpoints.get.job.buildArgumentDetails.call,r.build=this.endpoints.get.job.build.call,r.containers=(()=>{let o=this.endpoints.get.job.containers.call;return o.all=this.endpoints.get.job.containers.all,o})(),r.deployment=this.endpoints.get.job.deployment.call,r.healthChecks=this.endpoints.get.job.healthChecks.call,r.pullRequests=(()=>{let o=this.endpoints.get.job.pullRequests.call;return o.all=this.endpoints.get.job.pullRequests.all,o})(),r.runs=(()=>{let o=this.endpoints.get.job.runs.call;return o.all=this.endpoints.get.job.runs.all,o})(),r.run=this.endpoints.get.job.run.call,r.runtimeEnvironment=this.endpoints.get.job.runtimeEnvironment.call,r.runtimeEnvironmentDetails=this.endpoints.get.job.runtimeEnvironmentDetails.call,r.logs=this.logs.getJobLogs,r.buildLogs=this.logs.getJobBuildLogs,r.logTail=this.logs.tailJobLogs,r.buildLogTail=this.logs.tailJobBuildLogs,r.metrics=this.metrics.getJobMetrics,r.buildMetrics=this.metrics.getJobBuildMetrics,r.metricsRange=this.metrics.getJobMetricsRange,r.buildMetricsRange=this.metrics.getJobBuildMetricsRange,r})(),t.llmModelDeployment=this.endpoints.get.llmModelDeployment.call,t.pipeline=this.endpoints.get.pipeline.call,t.previewTemplate=(()=>{let r=this.endpoints.get.previewTemplate.call;return r.all=this.endpoints.get.previewTemplate.all,r})(),t.previewTemplateRun=this.endpoints.get.previewTemplateRun.call,t.releaseFlow=this.endpoints.get.releaseFlow.call,t.releaseFlowRun=this.endpoints.get.releaseFlowRun.call,t.previewBlueprint=this.endpoints.get.previewBlueprint.call,t.previewBlueprintRun=this.endpoints.get.previewBlueprintRun.call,t.secret=this.endpoints.get.secret.call,t.secretLink=this.endpoints.get.secretLink.call,t.secretDetails=this.endpoints.get.secretDetails.call,t.service=(()=>{let r=this.endpoints.get.service.call;return r.branches=(()=>{let o=this.endpoints.get.service.branches.call;return o.all=this.endpoints.get.service.branches.all,o})(),r.builds=(()=>{let o=this.endpoints.get.service.builds.call;return o.all=this.endpoints.get.service.builds.all,o})(),r.buildArguments=this.endpoints.get.service.buildArguments.call,r.buildArgumentDetails=this.endpoints.get.service.buildArgumentDetails.call,r.build=this.endpoints.get.service.build.call,r.containers=(()=>{let o=this.endpoints.get.service.containers.call;return o.all=this.endpoints.get.service.containers.all,o})(),r.deployment=this.endpoints.get.service.deployment.call,r.healthChecks=this.endpoints.get.service.healthChecks.call,r.perReplicaVolumes=this.endpoints.get.service.perReplicaVolumes.call,r.ports=this.endpoints.get.service.ports.call,r.pullRequests=(()=>{let o=this.endpoints.get.service.pullRequests.call;return o.all=this.endpoints.get.service.pullRequests.all,o})(),r.rollout=this.endpoints.get.service.rollout.call,r.runtimeEnvironment=this.endpoints.get.service.runtimeEnvironment.call,r.runtimeEnvironmentDetails=this.endpoints.get.service.runtimeEnvironmentDetails.call,r.logs=this.logs.getServiceLogs,r.buildLogs=this.logs.getServiceBuildLogs,r.logTail=this.logs.tailServiceLogs,r.buildLogTail=this.logs.tailServiceBuildLogs,r.metrics=this.metrics.getServiceMetrics,r.buildMetrics=this.metrics.getServiceBuildMetrics,r.metricsRange=this.metrics.getServiceMetricsRange,r.buildMetricsRange=this.metrics.getServiceBuildMetricsRange,r})(),t.volume=(()=>{let r=this.endpoints.get.volume.call;return r.backupSchedules=(()=>{let o=this.endpoints.get.volume.backupSchedules.call;return o.all=this.endpoints.get.volume.backupSchedules.all,o})(),r.backups=(()=>{let o=this.endpoints.get.volume.backups.call;return o.all=this.endpoints.get.volume.backups.all,o})(),r.backup=this.endpoints.get.volume.backup.call,r})(),t.workflow=this.endpoints.get.workflow.call,t.workflowRun=this.endpoints.get.workflowRun.call,t.globalSecret=this.endpoints.get.globalSecret.call,t.tag=this.endpoints.get.tag.call,t.team=this.endpoints.get.team.call,t.teamRole=this.endpoints.get.teamRole.call,t.template=(()=>{let r=this.endpoints.get.template.call;return r.all=this.endpoints.get.template.all,r})(),t.templateRun=this.endpoints.get.templateRun.call,t.workloadIdentities=this.endpoints.get.workloadIdentities.call,t})(),this.list=(()=>{let t={};return t.backupDestinations=(()=>{let r=this.endpoints.list.backupDestinations.call;return r.all=this.endpoints.list.backupDestinations.all,r})(),t.backupDestinationsBackups=(()=>{let r=this.endpoints.list.backupDestinationsBackups.call;return r.all=this.endpoints.list.backupDestinationsBackups.all,r})(),t.invoices=(()=>{let r=this.endpoints.list.invoices.call;return r.all=this.endpoints.list.invoices.all,r})(),t.usage=(()=>{let r=this.endpoints.list.usage.call;return r.all=this.endpoints.list.usage.all,r})(),t.cloud=(()=>{let r={};return r.providers=this.endpoints.list.cloud.providers.call,r.clusters=(()=>{let o=this.endpoints.list.cloud.clusters.call;return o.all=this.endpoints.list.cloud.clusters.all,o})(),r.cluster=(()=>{let o={};return o.nodes=(()=>{let a=this.endpoints.list.cloud.cluster.nodes.call;return a.all=this.endpoints.list.cloud.cluster.nodes.all,a})(),o})(),r.integrations=(()=>{let o=this.endpoints.list.cloud.integrations.call;return o.all=this.endpoints.list.cloud.integrations.all,o})(),r.nodeTypes=(()=>{let o=this.endpoints.list.cloud.nodeTypes.call;return o.all=this.endpoints.list.cloud.nodeTypes.all,o})(),r.regions=(()=>{let o=this.endpoints.list.cloud.regions.call;return o.all=this.endpoints.list.cloud.regions.all,o})(),r})(),t.containerSnapshots=(()=>{let r=this.endpoints.list.containerSnapshots.call;return r.all=this.endpoints.list.containerSnapshots.all,r})(),t.orgDirectoryGroupMembers=(()=>{let r=this.endpoints.list.orgDirectoryGroupMembers.call;return r.all=this.endpoints.list.orgDirectoryGroupMembers.all,r})(),t.domains=(()=>{let r=this.endpoints.list.domains.call;return r.all=this.endpoints.list.domains.all,r})(),t.subdomain=(()=>{let r={};return r.path=this.endpoints.list.subdomain.path.call,r})(),t.egressIps=(()=>{let r=this.endpoints.list.egressIps.call;return r.all=this.endpoints.list.egressIps.all,r})(),t.gradualRolloutStrategies=(()=>{let r=this.endpoints.list.gradualRolloutStrategies.call;return r.all=this.endpoints.list.gradualRolloutStrategies.all,r})(),t.logSinks=(()=>{let r=this.endpoints.list.logSinks.call;return r.all=this.endpoints.list.logSinks.all,r})(),t.notifications=(()=>{let r=this.endpoints.list.notifications.call;return r.all=this.endpoints.list.notifications.all,r})(),t.registryCredentials=(()=>{let r=this.endpoints.list.registryCredentials.call;return r.all=this.endpoints.list.registryCredentials.all,r})(),t.sshIdentities=(()=>{let r=this.endpoints.list.sshIdentities.call;return r.all=this.endpoints.list.sshIdentities.all,r})(),t.vcs=this.endpoints.list.vcs.call,t.repos=(()=>{let r=this.endpoints.list.repos.call;return r.all=this.endpoints.list.repos.all,r})(),t.branches=(()=>{let r=this.endpoints.list.branches.call;return r.all=this.endpoints.list.branches.all,r})(),t.loadBalancers=(()=>{let r=this.endpoints.list.loadBalancers.call;return r.all=this.endpoints.list.loadBalancers.all,r})(),t.orgMembers=(()=>{let r=this.endpoints.list.orgMembers.call;return r.all=this.endpoints.list.orgMembers.all,r})(),t.orgRoles=(()=>{let r=this.endpoints.list.orgRoles.call;return r.all=this.endpoints.list.orgRoles.all,r})(),t.orgRoleMembers=(()=>{let r=this.endpoints.list.orgRoleMembers.call;return r.all=this.endpoints.list.orgRoleMembers.all,r})(),t.plans=this.endpoints.list.plans.call,t.projects=(()=>{let r=this.endpoints.list.projects.call;return r.all=this.endpoints.list.projects.all,r})(),t.addons=(()=>{let r=this.endpoints.list.addons.call;return r.all=this.endpoints.list.addons.all,r})(),t.externalAddons=(()=>{let r=this.endpoints.list.externalAddons.call;return r.all=this.endpoints.list.externalAddons.all,r})(),t.harnesses=(()=>{let r=this.endpoints.list.harnesses.call;return r.all=this.endpoints.list.harnesses.all,r})(),t.jobs=(()=>{let r=this.endpoints.list.jobs.call;return r.all=this.endpoints.list.jobs.all,r})(),t.llmModelDeployments=(()=>{let r=this.endpoints.list.llmModelDeployments.call;return r.all=this.endpoints.list.llmModelDeployments.all,r})(),t.pipelines=(()=>{let r=this.endpoints.list.pipelines.call;return r.all=this.endpoints.list.pipelines.all,r})(),t.pipelineTemplatePreviews=(()=>{let r=this.endpoints.list.pipelineTemplatePreviews.call;return r.all=this.endpoints.list.pipelineTemplatePreviews.all,r})(),t.previewTemplateRuns=(()=>{let r=this.endpoints.list.previewTemplateRuns.call;return r.all=this.endpoints.list.previewTemplateRuns.all,r})(),t.releaseFlowRuns=(()=>{let r=this.endpoints.list.releaseFlowRuns.call;return r.all=this.endpoints.list.releaseFlowRuns.all,r})(),t.previewBlueprints=(()=>{let r=this.endpoints.list.previewBlueprints.call;return r.all=this.endpoints.list.previewBlueprints.all,r})(),t.blueprintTemplatePreviews=(()=>{let r=this.endpoints.list.blueprintTemplatePreviews.call;return r.all=this.endpoints.list.blueprintTemplatePreviews.all,r})(),t.previewBlueprintRuns=(()=>{let r=this.endpoints.list.previewBlueprintRuns.call;return r.all=this.endpoints.list.previewBlueprintRuns.all,r})(),t.secrets=(()=>{let r=this.endpoints.list.secrets.call;return r.all=this.endpoints.list.secrets.all,r})(),t.services=(()=>{let r=this.endpoints.list.services.call;return r.all=this.endpoints.list.services.all,r})(),t.service=(()=>{let r={};return r.deployments=(()=>{let o=this.endpoints.list.service.deployments.call;return o.all=this.endpoints.list.service.deployments.all,o})(),r})(),t.volumes=(()=>{let r=this.endpoints.list.volumes.call;return r.all=this.endpoints.list.volumes.all,r})(),t.workflows=(()=>{let r=this.endpoints.list.workflows.call;return r.all=this.endpoints.list.workflows.all,r})(),t.workflowRuns=(()=>{let r=this.endpoints.list.workflowRuns.call;return r.all=this.endpoints.list.workflowRuns.all,r})(),t.regions=this.endpoints.list.regions.call,t.globalSecrets=(()=>{let r=this.endpoints.list.globalSecrets.call;return r.all=this.endpoints.list.globalSecrets.all,r})(),t.tags=(()=>{let r=this.endpoints.list.tags.call;return r.all=this.endpoints.list.tags.all,r})(),t.teams=(()=>{let r=this.endpoints.list.teams.call;return r.all=this.endpoints.list.teams.all,r})(),t.teamMembers=(()=>{let r=this.endpoints.list.teamMembers.call;return r.all=this.endpoints.list.teamMembers.all,r})(),t.teamRoles=(()=>{let r=this.endpoints.list.teamRoles.call;return r.all=this.endpoints.list.teamRoles.all,r})(),t.teamRoleMembers=(()=>{let r=this.endpoints.list.teamRoleMembers.call;return r.all=this.endpoints.list.teamRoleMembers.all,r})(),t.templates=(()=>{let r=this.endpoints.list.templates.call;return r.all=this.endpoints.list.templates.all,r})(),t.templateRuns=(()=>{let r=this.endpoints.list.templateRuns.call;return r.all=this.endpoints.list.templateRuns.all,r})(),t.apiTokens=(()=>{let r=this.endpoints.list.apiTokens.call;return r.all=this.endpoints.list.apiTokens.all,r})(),t.workloadIdentities=(()=>{let r=this.endpoints.list.workloadIdentities.call;return r.all=this.endpoints.list.workloadIdentities.all,r})(),t})(),this.add=(()=>{let t={};return t.backupDestination=this.endpoints.add.backupDestination.call,t.domain=(()=>{let r={};return r.subdomain=this.endpoints.add.domain.subdomain.call,r})(),t.subdomain=(()=>{let r={};return r.path=this.endpoints.add.subdomain.path.call,r})(),t.registryCredentials=this.endpoints.add.registryCredentials.call,t.sshIdentities=this.endpoints.add.sshIdentities.call,t.tag=this.endpoints.add.tag.call,t})(),this.patch=(()=>{let t={};return t.backupDestination=this.endpoints.patch.backupDestination.call,t.cloud=(()=>{let r={};return r.cluster=this.endpoints.patch.cloud.cluster.call,r.integration=this.endpoints.patch.cloud.integration.call,r})(),t.egressIp=this.endpoints.patch.egressIp.call,t.gradualRolloutStrategy=this.endpoints.patch.gradualRolloutStrategy.call,t.loadBalancer=this.endpoints.patch.loadBalancer.call,t.networkPolicy=this.endpoints.patch.networkPolicy.call,t.orgRole=this.endpoints.patch.orgRole.call,t.project=this.endpoints.patch.project.call,t.addon=this.endpoints.patch.addon.call,t.harness=this.endpoints.patch.harness.call,t.job=(()=>{let r=this.endpoints.patch.job.call;return r.cron=this.endpoints.patch.job.cron.call,r.manual=this.endpoints.patch.job.manual.call,r})(),t.secret=this.endpoints.patch.secret.call,t.service=(()=>{let r={};return r.build=this.endpoints.patch.service.build.call,r.combined=this.endpoints.patch.service.combined.call,r.deployment=this.endpoints.patch.service.deployment.call,r})(),t.globalSecret=this.endpoints.patch.globalSecret.call,t.tag=this.endpoints.patch.tag.call,t.team=this.endpoints.patch.team.call,t.teamRole=this.endpoints.patch.teamRole.call,t})(),this.delete=(()=>{let t={};return t.backupDestination=this.endpoints.delete.backupDestination.call,t.cloud=(()=>{let r={};return r.cluster=this.endpoints.delete.cloud.cluster.call,r.integration=this.endpoints.delete.cloud.integration.call,r})(),t.containerSnapshot=this.endpoints.delete.containerSnapshot.call,t.domain=this.endpoints.delete.domain.call,t.subdomain=(()=>{let r=this.endpoints.delete.subdomain.call;return r.path=this.endpoints.delete.subdomain.path.call,r})(),t.egressIp=this.endpoints.delete.egressIp.call,t.gradualRolloutStrategy=this.endpoints.delete.gradualRolloutStrategy.call,t.logSink=this.endpoints.delete.logSink.call,t.notification=this.endpoints.delete.notification.call,t.registryCredentials=this.endpoints.delete.registryCredentials.call,t.sshIdentities=this.endpoints.delete.sshIdentities.call,t.loadBalancer=this.endpoints.delete.loadBalancer.call,t.networkPolicy=this.endpoints.delete.networkPolicy.call,t.orgRole=this.endpoints.delete.orgRole.call,t.orgRoleMember=this.endpoints.delete.orgRoleMember.call,t.project=this.endpoints.delete.project.call,t.addon=(()=>{let r=this.endpoints.delete.addon.call;return r.backupSchedule=this.endpoints.delete.addon.backupSchedule.call,r})(),t.backup=this.endpoints.delete.backup.call,t.externalAddon=this.endpoints.delete.externalAddon.call,t.harness=this.endpoints.delete.harness.call,t.job=this.endpoints.delete.job.call,t.llmModelDeployment=this.endpoints.delete.llmModelDeployment.call,t.pipelineTemplatePreview=this.endpoints.delete.pipelineTemplatePreview.call,t.previewBlueprint=this.endpoints.delete.previewBlueprint.call,t.blueprintTemplatePreview=this.endpoints.delete.blueprintTemplatePreview.call,t.secret=this.endpoints.delete.secret.call,t.secretLink=this.endpoints.delete.secretLink.call,t.service=(()=>{let r=this.endpoints.delete.service.call;return r.perReplicaVolumeGroup=this.endpoints.delete.service.perReplicaVolumeGroup.call,r.perReplicaVolume=this.endpoints.delete.service.perReplicaVolume.call,r})(),t.volume=(()=>{let r=this.endpoints.delete.volume.call;return r.backupSchedule=this.endpoints.delete.volume.backupSchedule.call,r.backup=this.endpoints.delete.volume.backup.call,r})(),t.globalSecret=this.endpoints.delete.globalSecret.call,t.tag=this.endpoints.delete.tag.call,t.team=this.endpoints.delete.team.call,t.teamMember=this.endpoints.delete.teamMember.call,t.teamRole=this.endpoints.delete.teamRole.call,t.teamRoleMember=this.endpoints.delete.teamRoleMember.call,t.template=this.endpoints.delete.template.call,t.apiTokenKey=this.endpoints.delete.apiTokenKey.call,t.workloadIdentities=this.endpoints.delete.workloadIdentities.call,t})(),this.create=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=this.endpoints.create.cloud.cluster.call,r.integration=this.endpoints.create.cloud.integration.call,r})(),t.domain=this.endpoints.create.domain.call,t.egressIp=this.endpoints.create.egressIp.call,t.gradualRolloutStrategy=this.endpoints.create.gradualRolloutStrategy.call,t.logSink=this.endpoints.create.logSink.call,t.notification=this.endpoints.create.notification.call,t.customVcs=(()=>{let r={};return r.token=this.endpoints.create.customVcs.token.call,r})(),t.loadBalancer=this.endpoints.create.loadBalancer.call,t.networkPolicy=this.endpoints.create.networkPolicy.call,t.orgRole=this.endpoints.create.orgRole.call,t.orgRoleMember=this.endpoints.create.orgRoleMember.call,t.project=this.endpoints.create.project.call,t.addon=(()=>{let r=this.endpoints.create.addon.call;return r.backupSchedule=this.endpoints.create.addon.backupSchedule.call,r})(),t.externalAddon=this.endpoints.create.externalAddon.call,t.harness=this.endpoints.create.harness.call,t.job=(()=>{let r=this.endpoints.create.job.call;return r.cron=this.endpoints.create.job.cron.call,r.manual=this.endpoints.create.job.manual.call,r})(),t.llmModelDeployment=this.endpoints.create.llmModelDeployment.call,t.previewBlueprint=this.endpoints.create.previewBlueprint.call,t.secret=this.endpoints.create.secret.call,t.service=(()=>{let r={};return r.build=this.endpoints.create.service.build.call,r.combined=this.endpoints.create.service.combined.call,r.deployment=this.endpoints.create.service.deployment.call,r})(),t.containerSnapshot=this.endpoints.create.containerSnapshot.call,t.volume=(()=>{let r=this.endpoints.create.volume.call;return r.backupSchedule=this.endpoints.create.volume.backupSchedule.call,r})(),t.workflow=this.endpoints.create.workflow.call,t.globalSecret=this.endpoints.create.globalSecret.call,t.team=this.endpoints.create.team.call,t.teamMemberInvite=this.endpoints.create.teamMemberInvite.call,t.teamRole=this.endpoints.create.teamRole.call,t.teamRoleMember=this.endpoints.create.teamRoleMember.call,t.template=this.endpoints.create.template.call,t.workloadIdentities=this.endpoints.create.workloadIdentities.call,t})(),this.put=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=this.endpoints.put.cloud.cluster.call,r.integration=this.endpoints.put.cloud.integration.call,r})(),t.domain=(()=>{let r={};return r.subdomain=this.endpoints.put.domain.subdomain.call,r})(),t.egressIp=this.endpoints.put.egressIp.call,t.gradualRolloutStrategy=this.endpoints.put.gradualRolloutStrategy.call,t.sshIdentities=this.endpoints.put.sshIdentities.call,t.loadBalancer=this.endpoints.put.loadBalancer.call,t.orgRole=this.endpoints.put.orgRole.call,t.project=this.endpoints.put.project.call,t.addon=this.endpoints.put.addon.call,t.harness=this.endpoints.put.harness.call,t.job=(()=>{let r=this.endpoints.put.job.call;return r.cron=this.endpoints.put.job.cron.call,r.manual=this.endpoints.put.job.manual.call,r})(),t.secret=this.endpoints.put.secret.call,t.service=(()=>{let r={};return r.build=this.endpoints.put.service.build.call,r.combined=this.endpoints.put.service.combined.call,r.deployment=this.endpoints.put.service.deployment.call,r})(),t.globalSecret=this.endpoints.put.globalSecret.call,t.tag=this.endpoints.put.tag.call,t.teamRole=this.endpoints.put.teamRole.call,t})(),this.cordon=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=this.endpoints.cordon.cloud.cluster.node.call,o})(),r})(),t})(),this.drain=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=this.endpoints.drain.cloud.cluster.node.call,o})(),r})(),t})(),this.uncordon=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=this.endpoints.uncordon.cloud.cluster.node.call,o})(),r})(),t})(),this.update=(()=>{let t={};return t.domain=this.endpoints.update.domain.call,t.subdomain=(()=>{let r={};return r.geoRouting=this.endpoints.update.subdomain.geoRouting.call,r.path=this.endpoints.update.subdomain.path.call,r})(),t.logSink=this.endpoints.update.logSink.call,t.notification=this.endpoints.update.notification.call,t.registryCredentials=this.endpoints.update.registryCredentials.call,t.sshIdentities=this.endpoints.update.sshIdentities.call,t.addon=(()=>{let r={};return r.networkSettings=this.endpoints.update.addon.networkSettings.call,r.security=this.endpoints.update.addon.security.call,r.version=this.endpoints.update.addon.version.call,r})(),t.externalAddon=this.endpoints.update.externalAddon.call,t.job=(()=>{let r={};return r.buildArguments=this.endpoints.update.job.buildArguments.call,r.buildOptions=this.endpoints.update.job.buildOptions.call,r.buildSource=this.endpoints.update.job.buildSource.call,r.deployment=this.endpoints.update.job.deployment.call,r.healthChecks=this.endpoints.update.job.healthChecks.call,r.runtimeEnvironment=this.endpoints.update.job.runtimeEnvironment.call,r.settings=this.endpoints.update.job.settings.call,r})(),t.llmModelDeployment=this.endpoints.update.llmModelDeployment.call,t.previewTemplate=this.endpoints.update.previewTemplate.call,t.releaseFlow=this.endpoints.update.releaseFlow.call,t.previewBlueprint=this.endpoints.update.previewBlueprint.call,t.secret=this.endpoints.update.secret.call,t.secretLink=this.endpoints.update.secretLink.call,t.service=(()=>{let r={};return r.buildArguments=this.endpoints.update.service.buildArguments.call,r.buildOptions=this.endpoints.update.service.buildOptions.call,r.buildSource=this.endpoints.update.service.buildSource.call,r.deployment=this.endpoints.update.service.deployment.call,r.healthChecks=this.endpoints.update.service.healthChecks.call,r.ports=this.endpoints.update.service.ports.call,r.rollout=(()=>{let o={};return o.configuration=this.endpoints.update.service.rollout.configuration.call,o})(),r.runtimeEnvironment=this.endpoints.update.service.runtimeEnvironment.call,r})(),t.volume=this.endpoints.update.volume.call,t.workflow=this.endpoints.update.workflow.call,t.template=this.endpoints.update.template.call,t.workloadIdentities=this.endpoints.update.workloadIdentities.call,t})(),this.import=(()=>{let t={};return t.domainCertificate=this.endpoints.import.domainCertificate.call,t.subdomainCertificate=this.endpoints.import.subdomainCertificate.call,t.addon=(()=>{let r={};return r.backup=this.endpoints.import.addon.backup.call,r})(),t})(),this.assign=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.service=this.endpoints.assign.subdomain.service.call,r.path=this.endpoints.assign.subdomain.path.call,r})(),t})(),this.unassign=(()=>{let t={};return t.subdomain=(()=>{let r=this.endpoints.unassign.subdomain.call;return r.path=this.endpoints.unassign.subdomain.path.call,r})(),t})(),this.disable=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=this.endpoints.disable.subdomain.cdn.call,r})(),t})(),this.enable=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=this.endpoints.enable.subdomain.cdn.call,r})(),t})(),this.purge=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=this.endpoints.purge.subdomain.cdn.call,r})(),t})(),this.verify=(()=>{let t={};return t.subdomain=this.endpoints.verify.subdomain.call,t.domain=this.endpoints.verify.domain.call,t})(),this.pause=(()=>{let t={};return t.logSink=this.endpoints.pause.logSink.call,t.addon=this.endpoints.pause.addon.call,t.harness=this.endpoints.pause.harness.call,t.job=this.endpoints.pause.job.call,t.blueprintTemplatePreview=this.endpoints.pause.blueprintTemplatePreview.call,t.service=this.endpoints.pause.service.call,t})(),this.resume=(()=>{let t={};return t.logSink=this.endpoints.resume.logSink.call,t.addon=this.endpoints.resume.addon.call,t.harness=this.endpoints.resume.harness.call,t.job=this.endpoints.resume.job.call,t.blueprintTemplatePreview=this.endpoints.resume.blueprintTemplatePreview.call,t.service=this.endpoints.resume.service.call,t})(),this.backup=(()=>{let t={};return t.addon=this.endpoints.backup.addon.call,t.volume=this.endpoints.backup.volume.call,t})(),this.abort=(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=this.endpoints.abort.addon.backup.call,r.restore=this.endpoints.abort.addon.restore.call,r})(),t.job=(()=>{let r={};return r.build=this.endpoints.abort.job.build.call,r.run=this.endpoints.abort.job.run.call,r})(),t.releaseFlowRun=this.endpoints.abort.releaseFlowRun.call,t.previewBlueprintRun=this.endpoints.abort.previewBlueprintRun.call,t.service=(()=>{let r={};return r.build=this.endpoints.abort.service.build.call,r})(),t.workflowRun=this.endpoints.abort.workflowRun.call,t.templateRun=this.endpoints.abort.templateRun.call,t})(),this.restore=(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=this.endpoints.restore.addon.backup.call,r})(),t})(),this.retain=(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=this.endpoints.retain.addon.backup.call,r})(),t})(),this.reset=(()=>{let t={};return t.addon=this.endpoints.reset.addon.call,t.blueprintTemplatePreview=this.endpoints.reset.blueprintTemplatePreview.call,t.service=(()=>{let r={};return r.buildCache=this.endpoints.reset.service.buildCache.call,r})(),t})(),this.restart=(()=>{let t={};return t.addon=this.endpoints.restart.addon.call,t.harness=this.endpoints.restart.harness.call,t.service=this.endpoints.restart.service.call,t})(),this.scale=(()=>{let t={};return t.addon=this.endpoints.scale.addon.call,t.job=this.endpoints.scale.job.call,t.service=this.endpoints.scale.service.call,t})(),this.start=(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=this.endpoints.start.addon.secretRotation.call,r})(),t.job=(()=>{let r={};return r.build=this.endpoints.start.job.build.call,r.run=this.endpoints.start.job.run.call,r})(),t.service=(()=>{let r={};return r.build=this.endpoints.start.service.build.call,r})(),t})(),this.finalise=(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=this.endpoints.finalise.addon.secretRotation.call,r})(),t})(),this.suspend=(()=>{let t={};return t.job=this.endpoints.suspend.job.call,t})(),this.run=(()=>{let t={};return t.previewTemplate=this.endpoints.run.previewTemplate.call,t.releaseFlow=this.endpoints.run.releaseFlow.call,t.previewBlueprint=this.endpoints.run.previewBlueprint.call,t.workflow=this.endpoints.run.workflow.call,t.template=this.endpoints.run.template.call,t})(),this.promote=(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=this.endpoints.promote.service.rollout.call,r})(),t})(),this.rollback=(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=this.endpoints.rollback.service.rollout.call,r})(),t})(),this.attach=(()=>{let t={};return t.volume=this.endpoints.attach.volume.call,t})(),this.detach=(()=>{let t={};return t.volume=this.endpoints.detach.volume.call,t})(),this.trigger=(()=>{let t={};return t.globalSecret=(()=>{let r={};return r.dependents=this.endpoints.trigger.globalSecret.dependents.call,r})(),t})(),this.rotate=(()=>{let t={};return t.apiTokenKey=this.endpoints.rotate.apiTokenKey.call,t})()}};0&&(module.exports={AbortAddonBackupEndpoint,AbortAddonRestoreEndpoint,AbortJobBuildEndpoint,AbortJobRunEndpoint,AbortPreviewblueprintrunEndpoint,AbortReleaseflowrunEndpoint,AbortServiceBuildEndpoint,AbortTemplaterunEndpoint,AbortWorkflowrunEndpoint,AddBackupdestinationEndpoint,AddDomainSubdomainEndpoint,AddRegistrycredentialsEndpoint,AddSshidentitiesEndpoint,AddSubdomainPathEndpoint,AddTagEndpoint,ApiClient,ApiClientContextProvider,ApiClientEnvironmentContextProvider,ApiClientFileContextProvider,ApiClientInMemoryContextProvider,ApiEndpoint,AssignSubdomainPathEndpoint,AssignSubdomainServiceEndpoint,AttachVolumeEndpoint,BackupAddonEndpoint,BackupVolumeEndpoint,CopyType,CordonCloudClusterNodeEndpoint,CreateAddonBackupscheduleEndpoint,CreateAddonEndpoint,CreateCloudClusterEndpoint,CreateCloudIntegrationEndpoint,CreateContainersnapshotEndpoint,CreateCustomvcsTokenEndpoint,CreateDomainEndpoint,CreateEgressipEndpoint,CreateExternaladdonEndpoint,CreateGlobalsecretEndpoint,CreateGradualrolloutstrategyEndpoint,CreateHarnessEndpoint,CreateJobCronEndpoint,CreateJobEndpoint,CreateJobManualEndpoint,CreateLlmmodeldeploymentEndpoint,CreateLoadbalancerEndpoint,CreateLogsinkEndpoint,CreateNetworkpolicyEndpoint,CreateNotificationEndpoint,CreateOrgroleEndpoint,CreateOrgrolememberEndpoint,CreatePreviewblueprintEndpoint,CreateProjectEndpoint,CreateSecretEndpoint,CreateServiceBuildEndpoint,CreateServiceCombinedEndpoint,CreateServiceDeploymentEndpoint,CreateTeamEndpoint,CreateTeammemberinviteEndpoint,CreateTeamroleEndpoint,CreateTeamrolememberEndpoint,CreateTemplateEndpoint,CreateVolumeBackupscheduleEndpoint,CreateVolumeEndpoint,CreateWorkflowEndpoint,CreateWorkloadidentitiesEndpoint,DeleteAddonBackupscheduleEndpoint,DeleteAddonEndpoint,DeleteApiEndpoint,DeleteApitokenkeyEndpoint,DeleteBackupEndpoint,DeleteBackupdestinationEndpoint,DeleteBlueprinttemplatepreviewEndpoint,DeleteCloudClusterEndpoint,DeleteCloudIntegrationEndpoint,DeleteContainersnapshotEndpoint,DeleteDomainEndpoint,DeleteEgressipEndpoint,DeleteExternaladdonEndpoint,DeleteGlobalsecretEndpoint,DeleteGradualrolloutstrategyEndpoint,DeleteHarnessEndpoint,DeleteJobEndpoint,DeleteLlmmodeldeploymentEndpoint,DeleteLoadbalancerEndpoint,DeleteLogsinkEndpoint,DeleteNetworkpolicyEndpoint,DeleteNotificationEndpoint,DeleteOrgroleEndpoint,DeleteOrgrolememberEndpoint,DeletePipelinetemplatepreviewEndpoint,DeletePreviewblueprintEndpoint,DeleteProjectEndpoint,DeleteRegistrycredentialsEndpoint,DeleteSecretEndpoint,DeleteSecretlinkEndpoint,DeleteServiceEndpoint,DeleteServicePerreplicavolumeEndpoint,DeleteServicePerreplicavolumegroupEndpoint,DeleteSshidentitiesEndpoint,DeleteSubdomainEndpoint,DeleteSubdomainPathEndpoint,DeleteTagEndpoint,DeleteTeamEndpoint,DeleteTeammemberEndpoint,DeleteTeamroleEndpoint,DeleteTeamrolememberEndpoint,DeleteTemplateEndpoint,DeleteVolumeBackupEndpoint,DeleteVolumeBackupscheduleEndpoint,DeleteVolumeEndpoint,DeleteWorkloadidentitiesEndpoint,DetachVolumeEndpoint,DisableSubdomainCdnEndpoint,DrainCloudClusterNodeEndpoint,EnableSubdomainCdnEndpoint,ExecCommandStandard,FinaliseAddonSecretrotationEndpoint,GetAddonBackupDownloadEndpoint,GetAddonBackupEndpoint,GetAddonBackupRestoresEndpoint,GetAddonBackupsEndpoint,GetAddonBackupschedulesEndpoint,GetAddonContainersEndpoint,GetAddonCredentialsEndpoint,GetAddonEndpoint,GetAddonRestoresEndpoint,GetAddonTypesEndpoint,GetAddonVersionEndpoint,GetApiEndpoint,GetApiEndpointPaginated,GetAuthEndpoint,GetBackupdestinationEndpoint,GetCloudClusterEndpoint,GetCloudIntegrationEndpoint,GetContainersnapshotEndpoint,GetDnsidEndpoint,GetDomainEndpoint,GetDomaincertificateEndpoint,GetEgressipEndpoint,GetExternaladdonEndpoint,GetGlobalsecretEndpoint,GetGradualrolloutstrategyEndpoint,GetHarnessEndpoint,GetInvoiceEndpoint,GetJobBranchesEndpoint,GetJobBuildEndpoint,GetJobBuildargumentdetailsEndpoint,GetJobBuildargumentsEndpoint,GetJobBuildsEndpoint,GetJobContainersEndpoint,GetJobDeploymentEndpoint,GetJobEndpoint,GetJobHealthchecksEndpoint,GetJobPullrequestsEndpoint,GetJobRunEndpoint,GetJobRunsEndpoint,GetJobRuntimeenvironmentEndpoint,GetJobRuntimeenvironmentdetailsEndpoint,GetLlmmodeldeploymentEndpoint,GetLoadbalancerEndpoint,GetLogsinkEndpoint,GetNetworkpolicyEndpoint,GetNotificationEndpoint,GetOrgdirectorygroupsEndpoint,GetOrgroleEndpoint,GetPipelineEndpoint,GetPreviewblueprintEndpoint,GetPreviewblueprintrunEndpoint,GetPreviewtemplateEndpoint,GetPreviewtemplaterunEndpoint,GetProjectEndpoint,GetRegistrycredentialsEndpoint,GetReleaseflowEndpoint,GetReleaseflowrunEndpoint,GetSecretEndpoint,GetSecretdetailsEndpoint,GetSecretlinkEndpoint,GetServiceBranchesEndpoint,GetServiceBuildEndpoint,GetServiceBuildargumentdetailsEndpoint,GetServiceBuildargumentsEndpoint,GetServiceBuildsEndpoint,GetServiceContainersEndpoint,GetServiceDeploymentEndpoint,GetServiceEndpoint,GetServiceHealthchecksEndpoint,GetServicePerreplicavolumesEndpoint,GetServicePortsEndpoint,GetServicePullrequestsEndpoint,GetServiceRolloutEndpoint,GetServiceRuntimeenvironmentEndpoint,GetServiceRuntimeenvironmentdetailsEndpoint,GetSshidentitiesEndpoint,GetSubdomainEndpoint,GetSubdomainPathEndpoint,GetTagEndpoint,GetTeamEndpoint,GetTeamroleEndpoint,GetTemplateEndpoint,GetTemplaterunEndpoint,GetUsageEndpoint,GetVolumeBackupEndpoint,GetVolumeBackupsEndpoint,GetVolumeBackupschedulesEndpoint,GetVolumeEndpoint,GetWorkflowEndpoint,GetWorkflowrunEndpoint,GetWorkloadidentitiesEndpoint,ImportAddonBackupEndpoint,ImportDomaincertificateEndpoint,ImportSubdomaincertificateEndpoint,ListAddonsEndpoint,ListApitokensEndpoint,ListBackupdestinationsEndpoint,ListBackupdestinationsbackupsEndpoint,ListBlueprinttemplatepreviewsEndpoint,ListBranchesEndpoint,ListCloudClusterNodesEndpoint,ListCloudClustersEndpoint,ListCloudIntegrationsEndpoint,ListCloudNodetypesEndpoint,ListCloudProvidersEndpoint,ListCloudRegionsEndpoint,ListContainersnapshotsEndpoint,ListDomainsEndpoint,ListEgressipsEndpoint,ListExternaladdonsEndpoint,ListGlobalsecretsEndpoint,ListGradualrolloutstrategiesEndpoint,ListHarnessesEndpoint,ListInvoicesEndpoint,ListJobsEndpoint,ListLlmmodeldeploymentsEndpoint,ListLoadbalancersEndpoint,ListLogsinksEndpoint,ListNotificationsEndpoint,ListOrgdirectorygroupmembersEndpoint,ListOrgmembersEndpoint,ListOrgrolemembersEndpoint,ListOrgrolesEndpoint,ListPipelinesEndpoint,ListPipelinetemplatepreviewsEndpoint,ListPlansEndpoint,ListPreviewblueprintrunsEndpoint,ListPreviewblueprintsEndpoint,ListPreviewtemplaterunsEndpoint,ListProjectsEndpoint,ListRegionsEndpoint,ListRegistrycredentialsEndpoint,ListReleaseflowrunsEndpoint,ListReposEndpoint,ListSecretsEndpoint,ListServiceDeploymentsEndpoint,ListServicesEndpoint,ListSshidentitiesEndpoint,ListSubdomainPathEndpoint,ListTagsEndpoint,ListTeammembersEndpoint,ListTeamrolemembersEndpoint,ListTeamrolesEndpoint,ListTeamsEndpoint,ListTemplaterunsEndpoint,ListTemplatesEndpoint,ListUsageEndpoint,ListVcsEndpoint,ListVolumesEndpoint,ListWorkflowrunsEndpoint,ListWorkflowsEndpoint,ListWorkloadidentitiesEndpoint,LogType,MetricType,NorthflankApiCallError,NorthflankExecCommand,NorthflankFileCopy,NorthflankLogFetch,NorthflankMetricFetch,NorthflankPortForwarder,PatchAddonEndpoint,PatchApiEndpoint,PatchBackupdestinationEndpoint,PatchCloudClusterEndpoint,PatchCloudIntegrationEndpoint,PatchEgressipEndpoint,PatchGlobalsecretEndpoint,PatchGradualrolloutstrategyEndpoint,PatchHarnessEndpoint,PatchJobCronEndpoint,PatchJobEndpoint,PatchJobManualEndpoint,PatchLoadbalancerEndpoint,PatchNetworkpolicyEndpoint,PatchOrgroleEndpoint,PatchProjectEndpoint,PatchSecretEndpoint,PatchServiceBuildEndpoint,PatchServiceCombinedEndpoint,PatchServiceDeploymentEndpoint,PatchTagEndpoint,PatchTeamEndpoint,PatchTeamroleEndpoint,PauseAddonEndpoint,PauseBlueprinttemplatepreviewEndpoint,PauseHarnessEndpoint,PauseJobEndpoint,PauseLogsinkEndpoint,PauseServiceEndpoint,PostApiEndpoint,PromoteServiceRolloutEndpoint,PurgeSubdomainCdnEndpoint,PutAddonEndpoint,PutApiEndpoint,PutCloudClusterEndpoint,PutCloudIntegrationEndpoint,PutDomainSubdomainEndpoint,PutEgressipEndpoint,PutGlobalsecretEndpoint,PutGradualrolloutstrategyEndpoint,PutHarnessEndpoint,PutJobCronEndpoint,PutJobEndpoint,PutJobManualEndpoint,PutLoadbalancerEndpoint,PutOrgroleEndpoint,PutProjectEndpoint,PutSecretEndpoint,PutServiceBuildEndpoint,PutServiceCombinedEndpoint,PutServiceDeploymentEndpoint,PutSshidentitiesEndpoint,PutTagEndpoint,PutTeamroleEndpoint,ResetAddonEndpoint,ResetBlueprinttemplatepreviewEndpoint,ResetServiceBuildcacheEndpoint,RestartAddonEndpoint,RestartHarnessEndpoint,RestartServiceEndpoint,RestoreAddonBackupEndpoint,ResumeAddonEndpoint,ResumeBlueprinttemplatepreviewEndpoint,ResumeHarnessEndpoint,ResumeJobEndpoint,ResumeLogsinkEndpoint,ResumeServiceEndpoint,RetainAddonBackupEndpoint,RollbackServiceRolloutEndpoint,RotateApitokenkeyEndpoint,RunPreviewblueprintEndpoint,RunPreviewtemplateEndpoint,RunReleaseflowEndpoint,RunTemplateEndpoint,RunWorkflowEndpoint,ScaleAddonEndpoint,ScaleJobEndpoint,ScaleServiceEndpoint,StartAddonSecretrotationEndpoint,StartJobBuildEndpoint,StartJobRunEndpoint,StartServiceBuildEndpoint,SuspendJobEndpoint,TriggerGlobalsecretDependentsEndpoint,UnassignSubdomainEndpoint,UnassignSubdomainPathEndpoint,UncordonCloudClusterNodeEndpoint,UpdateAddonNetworksettingsEndpoint,UpdateAddonSecurityEndpoint,UpdateAddonVersionEndpoint,UpdateDomainEndpoint,UpdateExternaladdonEndpoint,UpdateJobBuildargumentsEndpoint,UpdateJobBuildoptionsEndpoint,UpdateJobBuildsourceEndpoint,UpdateJobDeploymentEndpoint,UpdateJobHealthchecksEndpoint,UpdateJobRuntimeenvironmentEndpoint,UpdateJobSettingsEndpoint,UpdateLlmmodeldeploymentEndpoint,UpdateLogsinkEndpoint,UpdateNotificationEndpoint,UpdatePreviewblueprintEndpoint,UpdatePreviewtemplateEndpoint,UpdateRegistrycredentialsEndpoint,UpdateReleaseflowEndpoint,UpdateSecretEndpoint,UpdateSecretlinkEndpoint,UpdateServiceBuildargumentsEndpoint,UpdateServiceBuildoptionsEndpoint,UpdateServiceBuildsourceEndpoint,UpdateServiceDeploymentEndpoint,UpdateServiceHealthchecksEndpoint,UpdateServicePortsEndpoint,UpdateServiceRolloutConfigurationEndpoint,UpdateServiceRuntimeenvironmentEndpoint,UpdateSshidentitiesEndpoint,UpdateSubdomainGeoroutingEndpoint,UpdateSubdomainPathEndpoint,UpdateTemplateEndpoint,UpdateVolumeEndpoint,UpdateWorkflowEndpoint,UpdateWorkloadidentitiesEndpoint,VerifyDomainEndpoint,VerifySubdomainEndpoint});
|
|
3
|
+
`,Sl=17,de=class i{constructor(n,e){this.nodes=n;this.config=e}add(n,e,t){if(e.length===0)return this;let r=this.findOrCreateEntry(n,t);return this.addHostsToEntry(r,e),this}addToSection(n,e,t){if(e.length===0)return this;let r=se(t),o=this.nodes.findIndex((p,l)=>p.type==="comment"&&p.line===r&&this.sectionEnd(l,t)!==void 0);if(o<0){let p=this.nodes.length>0&&this.nodes[this.nodes.length-1].type!=="blank";this.insertAt(this.nodes.length,...p?[Gd()]:[],Ks(r),Ks(this.sectionEndMarker(t))),o=this.nodes.length-2}let a=this.sectionEnd(o,t),d=this.nodes.slice(o+1,a).find(p=>p.type==="entry"&&p.ip===n);return d||(d=this.makeEntry(n),this.insertAt(a,d)),this.addHostsToEntry(d,e),this}addHostsToEntry(n,e){e.forEach(t=>{if(n.hosts.find(o=>o.host===t))return;let r=1;n.hosts.length===0&&(r=this.config.indent-`${n.ipPrefixWhitespace}${n.ip}`.length),n.hosts.push({whitespace:" ".repeat(r<1?1:r),host:t})})}remove(n,e){return this.findEntries(n).forEach(t=>{e.forEach(r=>{let o=t.hosts.findIndex(a=>a.host===r);o<0||(o===0&&t.hosts[1]!==void 0&&(t.hosts[1].whitespace=t.hosts[0].whitespace),t.hosts.splice(o,1),t.hosts.length===0&&this.removeEntry(t))})}),this}removeHosts(n){ie(this.nodes,"entry").forEach(e=>{this.remove(e.ip,n)})}sectionEndMarker(n){return`# End ${se(n).slice(2)}`}sectionEnd(n,e){let t=n+1;for(;this.nodes[t]?.type==="entry";)t+=1;let r=this.nodes[t];return r?.type==="comment"&&r.line===this.sectionEndMarker(e)?t:void 0}removeSection(n){let e=se(n),t=0;for(let r=this.nodes.length-1;r>=0;r-=1){let o=this.nodes[r];if(o.type!=="comment"||o.line!==e)continue;let a=this.sectionEnd(r,n);a!==void 0&&(t+=this.nodes.slice(r+1,a).reduce((d,p)=>d+p.hosts.length,0),this.nodes.splice(r,a-r+1))}return t}removeIps(n){return n.forEach(e=>{this.findEntries(e).forEach(t=>this.removeEntry(t))}),this}resolveHosts(n){return this.findEntries(n).flatMap(e=>e.hosts.map(t=>t.host))}resolveIps(n){return ie(this.nodes,"entry").filter(e=>e.hosts.some(t=>t.host===n)).map(e=>e.ip)}toString(){return El(this.nodes,this.config.eol)}removeEntry(n){let e=typeof n=="number"?n:this.nodes.findIndex(t=>t===n);e<0||this.nodes.splice(e,1)}findEntries(n){return ie(this.nodes,"entry").filter(e=>e.ip===n)}findOrCreateEntry(n,e){let t=this.findEntries(n)[0];if(t)return t;let r=this.makeEntry(n);if(e){let o=se(e),a=this.nodes.findIndex(d=>d.type==="comment"&&d.line===o);if(a>=0)this.insertAt(a+1,r);else{let p=this.nodes[this.nodes.length-1].type!=="blank"?[Gd(),Ks(o),r]:[Ks(o),r];this.insertAt(this.nodes.length,...p)}}else this.insertAt(this.nodes.length,r);return r}insertAt(n,...e){this.nodes.splice(n,0,...e)}makeEntry(n,e){let{ipPrefixWhitespace:t}=this.config;return{type:"entry",ip:n,ipPrefixWhitespace:t,hosts:[],...e}}static fromNodes(n,e){let t=()=>{let o=ie(n,"eol").map(a=>a.line);return $d(o)??Nd},r=()=>{let o=ie(n,"entry").flatMap(({ipPrefixWhitespace:a,ip:d,hosts:p})=>{let l=p[0];return l?[`${a}${d}${l.whitespace}`.length]:[]});return $d(o)??Sl};return new i(n.filter(o=>o.type!=="eol"),{eol:e?.eol??t(),indent:e?.indent??r(),ipPrefixWhitespace:""})}static parse(n,e){return this.fromNodes(kl(n),e)}},Gd=()=>({type:"blank",line:""}),Ks=i=>({type:"comment",line:se(i)}),se=i=>i.startsWith("#")?i:`# ${i}`,El=(i,n)=>i.map(t=>{switch(t.type){case"entry":{let r=t.hosts.map(({whitespace:o,host:a})=>`${o}${a}`).join("");return`${t.ipPrefixWhitespace}${t.ip}${r}`}case"blank":return t.line;case"comment":return t.line;case"invalid":return t.line;default:return""}}).join(n??Nd),kl=i=>{let n=o=>o.match(/^\s*#.*$/),e=o=>o.match(/^\s*$/),t=o=>o.match(/^(\r?\n)$/);return i.split(/(\r?\n)/).map(o=>n(o)?{type:"comment",line:o}:t(o)?{type:"eol",line:o}:e(o)?{type:"blank",line:o}:xl(o))},xl=i=>{let n=i.match(/^(\s*)(\S+)(.+)?$/);if(!n)return{type:"invalid",line:i};let[,e,t,...r]=n,o=!1,d=r.filter(p=>p!==void 0).flatMap(p=>{let l=p.match(/(\s+)(\S+)/g);return l?l.map(c=>{let f=c.match(/^(\s+)(\S+)$/);f||(o=!0);let[,g,h]=f??[];return{whitespace:g,host:h}}):(o=!0,[])});return o?{type:"invalid",line:i}:{type:"entry",ipPrefixWhitespace:e,ip:t,hosts:d}},ie=(i,n)=>i.filter(e=>e.type===n),$d=i=>{let n=new Map;i.forEach(t=>{n.set(t,(n.get(t)??0)+1)});let e;for(let t of n.entries())(!e||t[1]>e[1])&&(e=t);if(e)return e[0]};var bd=process.platform==="win32",fd=bd?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Zs="Northflank Proxy",Ws=class i{constructor(n){this.ast=de.fromNodes([]);let e={writeMode:"atomic",hostsFile:fd};this.config={...e,...n}}add(n,...e){if(typeof n!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(t=>{if(typeof t!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof t}.`)}),this.ast.add(n,e,this.config.header),this}addToSection(n,e,t){if(typeof n!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(r=>{if(typeof r!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof r}.`)}),this.ast.addToSection(n,e,t),this}remove(n,...e){if(typeof n!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(t=>{if(typeof t!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof t}.`)}),this.ast.remove(n,e),this}removeHosts(...n){return n.forEach(e=>{if(typeof e!="string")throw new Error(`Expected 'host' to be a string, but got ${typeof e}.`)}),this.ast.removeHosts(n),this}removeSection(n){return this.ast.removeSection(n)}removeIps(...n){return n.forEach(e=>{if(typeof e!="string")throw new Error(`Expected 'ip' to be a string, but got ${typeof e}.`)}),this.ast.removeIps(n),this}async read(){let n=await U.default.promises.readFile(this.config.hostsFile);return this.ast=de.parse(n.toString(),this.config),this}async write(n){let{hostsFile:e,writeMode:t}={...this.config,...n},r=this.ast.toString();switch(t){case void 0:case"atomic":await Dd(e,r);break;case"standard":await U.default.promises.writeFile(e,r);break;default:break}return this}async backup(n){if(!U.default.existsSync(this.config.hostsFile))return;let e=B.default.dirname(this.config.hostsFile),r=`${B.default.basename(this.config.hostsFile)}${n.suffix}`,o=B.default.resolve(e,r);(!U.default.existsSync(o)||n.rewrite)&&await U.default.promises.copyFile(this.config.hostsFile,o)}static async load(n){return await new i(n).read()}},K=i=>i?.code==="ENOENT",Ul=i=>{try{return process.kill(i,0),!0}catch(n){return n?.code!=="ESRCH"}},jl=async i=>{try{return await U.default.promises.realpath(i)}catch(n){if(!K(n))throw n;return B.default.resolve(i)}},Ll=async(i,n)=>{let e=await jl(i),t=bd?e.toLowerCase():e,r=(0,Ys.createHash)("sha256").update(t).digest("hex").slice(0,16);return B.default.join(n,`northflank-hosts-${r}.lock`)},ql=async(i,n)=>{let e=n?[n]:bd?[gd.default.tmpdir()]:["/var/run",gd.default.tmpdir()],t=[...new Set(e.map(r=>B.default.resolve(r)))];return Promise.all(t.map(r=>Ll(i,r)))},Tl=i=>["EACCES","EPERM","EROFS","ENOENT","ENOTDIR"].includes(i?.code??""),Bd=async i=>{let n=await U.default.promises.mkdtemp(`${i}.`),e=`${(0,Ys.randomUUID)()}.json`;try{return await U.default.promises.writeFile(B.default.join(n,e),JSON.stringify({pid:process.pid,createdAt:Date.now()}),{mode:384}),await U.default.promises.rename(n,i),e}catch(t){let r=t?.code;throw["EEXIST","ENOTEMPTY","ENOTDIR"].includes(r??"")?Object.assign(new Error("Hosts-file lock exists"),{code:"EEXIST"}):(r==="EPERM"||r==="EACCES")&&await U.default.promises.lstat(i).catch(a=>{if(!K(a))throw a})?Object.assign(new Error("Hosts-file lock exists"),{code:"EEXIST"}):t}finally{await U.default.promises.rm(n,{recursive:!0,force:!0})}},Od=async(i,n)=>{try{let e=await U.default.promises.stat(i);try{let t=JSON.parse(await U.default.promises.readFile(i,"utf8"));if(Number.isInteger(t?.pid)&&t.pid>0)return!Ul(t.pid)}catch{}return Date.now()-e.mtimeMs>=n}catch(e){if(K(e))return!0;throw e}},Md=async i=>{await U.default.promises.rmdir(i).catch(n=>{if(!["ENOENT","ENOTEMPTY","EEXIST"].includes(n.code))throw n})},Dl=async(i,n)=>{try{if(!(await U.default.promises.lstat(i)).isDirectory()){await Od(i,n)&&await U.default.promises.unlink(i).catch(t=>{if(!["ENOENT","EISDIR","EPERM"].includes(t.code))throw t});return}for(let t of await U.default.promises.readdir(i)){let r=B.default.join(i,t);await Od(r,n)&&await U.default.promises.unlink(r).catch(o=>{if(!K(o))throw o})}await Md(i)}catch(e){if(!K(e))throw e}};async function _d(i,n,e={}){let t=e.timeoutMs??1e4,r=e.staleMs??3e4,o=e.retryDelayMs??25,a=await ql(i,e.lockDirectory),d=Date.now()+t,p,l;for(let c=0;c<a.length;c+=1){let f=a[c];try{l=await Bd(f),p=f;break}catch(g){if(g?.code==="EEXIST"){p=f;break}if(c<a.length-1&&Tl(g))continue;throw g}}if(!p)throw new Error(`Could not determine a lock path for '${i}'.`);for(;!l;)try{l=await Bd(p)}catch(c){if(c?.code!=="EEXIST")throw c;if(await Dl(p,r),Date.now()>=d)throw new Error(`Timed out waiting to update hosts file '${i}'.`);await new Promise(f=>setTimeout(f,o))}try{return await n()}finally{await U.default.promises.unlink(B.default.join(p,l)).catch(c=>{if(!K(c))throw c}),await Md(p)}}var le=class{constructor(){this.previousPromise=Promise.resolve();this._queueLength=0}get queueLength(){return this._queueLength}async enter(n){this._queueLength+=1;let e=this.previousPromise.then(()=>(this._queueLength-=1,n()),()=>(this._queueLength-=1,n()));return this.previousPromise=e,e}};var td=x(require("pump")),Jd=x(require("net")),Fd=require("events"),Vd=require("stream");var Hd=require("stream");function W(i,n=1<<20){i.binaryType="arraybuffer";let e,t,r=g=>{clearTimeout(t),t=void 0;let h=e;e=void 0,h?.callback(g)},o=()=>{if(i.bufferedAmount<n){r();return}if(i.readyState!==1){r(new Error("WebSocket closed before write drained"));return}t=setTimeout(o,1)},a=()=>{if(e){try{i.send(e.chunk),e.sent=!0}catch(g){r(g);return}o()}},d=g=>{try{i.close(g)}catch{}},p=new Hd.Duplex({read(){},write(g,h,y){e={chunk:g,callback:y,sent:!1},i.readyState===1?a():i.readyState!==0&&r(new Error("WebSocket is not open"))},final(g){d(1e3),g()},destroy(g,h){i.removeEventListener("open",a),i.removeEventListener("message",l),i.removeEventListener("close",c),i.removeEventListener("error",f),r(g??new Error("WebSocket stream destroyed before write drained")),d(),h(g)}}),l=g=>{let h=g.data;p.push(Buffer.from(h))},c=()=>{let g=e?.sent&&i.bufferedAmount===0;r(g?void 0:new Error("WebSocket closed before write drained")),p.push(null)},f=g=>{let h=g?.error instanceof Error?g.error:new Error("WebSocket error");p.destroy(h)};return i.addEventListener("open",a),i.addEventListener("message",l),i.addEventListener("close",c),i.addEventListener("error",f),p}var M=class extends Error{constructor(n,e){let t=n.code==="EADDRINUSE"?"is already in use":n.code==="EACCES"?"could not be opened because permission was denied":`could not be opened: ${n.message}`;super(`Local binding ${e.address}:${e.port} ${t}.`,{cause:n}),this.name="PortBindingError",this.code=n.code??"PORT_BIND_FAILED",this.binding=e}},Y=class extends Error{constructor(){super("Local port forwarding was skipped by the user.");this.code="PORT_FORWARD_SKIPPED";this.name="PortForwardingSkippedError"}},Z=class extends Error{constructor(){super("Port forwarding was stopped by the user.");this.code="PORT_FORWARD_ABORTED";this.name="PortForwardingAbortedError"}},Qs=i=>i?.code==="EADDRINUSE"||i?.code==="EACCES",Xs=i=>{if(!i||!["random","use-port","skip","abort"].includes(i.action))throw new Error("Invalid port conflict resolution returned by resolver.");if(i.action==="use-port"&&(!Number.isInteger(i.port)||i.port<1||i.port>65535))throw new Error(`Invalid local port '${i.port}'. Expected an integer from 1 to 65535.`);return i};var ed=require("undici");function _(i,n={}){let e,t="",r="",o=n.dispatcher??(0,ed.getGlobalDispatcher)(),a={dispatch(l,c){let f=Object.create(c);return f.onHeaders=(g,h,y,I)=>(e=g,t=I??"",c.onHeaders?c.onHeaders(g,h,y,I):!0),f.onData=g=>(r.length<1e3&&(r+=g.toString()),c.onData?c.onData(g):!0),o.dispatch(l,f)},close:(...l)=>o.close?.(...l),destroy:(...l)=>o.destroy?.(...l)};return{ws:new ed.WebSocket(i,{...n,dispatcher:a}),upgradeFailure:()=>{if(e===void 0||e===101)return;let l=r.trim().slice(0,300);try{let f=JSON.parse(r),g=[f?.error,f?.message,f?.data?.message],h=g.find(I=>typeof I=="string"&&I.trim()),y=g.map(I=>I&&typeof I=="object"?I.message:void 0).find(I=>typeof I=="string"&&I.trim());l=(h??y??l).toString().trim().slice(0,300)}catch{}let c=e===401||e===403?" (check the token's permissions)":"";return new Error(`server refused the connection: ${e}${t?` ${t}`:""}${l?` - ${l}`:""}${c}`)}}}var Gl=i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),rd=class extends Fd.EventEmitter{constructor(e,t,r,o,a,d=5e3){super();this.endpoint=e;this.headers=t;this.rewriteHostHeader=r;this.bindToAssign=o;this.dispatcher=a;this.closeTimeout=d;this.protocol="TCP";this.openConnections=new Set;this.tcpServer=Jd.createServer(this.handleConnection.bind(this)),this.tcpServer.on("error",l=>this.emit("connection-error",l));let p=r?.altHostnames.map(l=>Gl(l)).join("|");this.hostRegex=new RegExp(`Host: (?:${p})(:.*$|$)`,"im")}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1,t){this.resolvedDispatcher=this.dispatcher??await $();let r=l=>new Promise((c,f)=>{let g=!1,h=I=>{g||(g=!0,this.tcpServer.removeListener("listening",y),this.tcpServer.removeListener("error",h),f(I))},y=()=>{if(g)return;g=!0,this.tcpServer.removeListener("error",h);let I=this.tcpServer.address(),P=I.address==="0.0.0.0"||I.address==="::"?"127.0.0.1":I.address;c({address:P,port:I.port})};this.tcpServer.once("error",h);try{l?this.tcpServer.listen(l.port,l.address,y):this.tcpServer.listen(0,y)}catch(I){h(I)}}),o=this.bindToAssign;if(!o){let l=await r();return this.boundTo=l,this.emit("tunnel-open",l),l}let a=o,d,p=!1;for(;;)try{let l=await r(a);this.boundTo=l,this.emit("tunnel-open",l);let c=l.address!==o.address||l.port!==o.port;return{...l,...c?{fallbackFrom:o,fallbackReason:d}:{}}}catch(l){if(!Qs(l))throw new M(l,a);d??=l.code;let c=t?Xs(await t({code:l.code,requestedBinding:a})):e&&!p?{action:"random"}:void 0;switch(c?.action){case"random":p=!0,a={address:o.address,port:0};break;case"use-port":a={address:o.address,port:c.port};break;case"skip":throw new Y;case"abort":throw new Z;default:throw new M(l,a)}}}close(){if(this.closePromise)return this.closePromise;let e=new Promise((t,r)=>{let o=!1,a,d=()=>{o||(o=!0,a&&clearTimeout(a),this.emit("tunnel-close"),t())};a=setTimeout(()=>{this.openConnections.forEach(p=>p.destroy()),this.openConnections.clear(),d()},this.closeTimeout),typeof a.unref=="function"&&a.unref();try{this.tcpServer.close(d)}catch(p){clearTimeout(a),p?.code==="ERR_SERVER_NOT_RUNNING"?d():r(p)}});return this.closePromise=e.catch(t=>{throw this.closePromise=void 0,t}),this.closePromise}handleConnection(e){this.openConnections.add(e),e.once("close",()=>this.openConnections.delete(e));let t=this.endpoint.replace("https:","wss:"),{ws:r,upgradeFailure:o}=_(t,{headers:this.headers,dispatcher:this.resolvedDispatcher}),a=W(r),d=this.getHeaderTransform();this.rewriteHostHeader&&d?(0,td.default)(e,d,a):(0,td.default)(e,a),(0,td.default)(a,e),r.addEventListener("close",l=>{this.emit("connection-close",l.code,l.reason)});let p;r.addEventListener("error",l=>{p=o()??(l?.error instanceof Error?l.error:new Error("WebSocket connection failed")),this.emit("connection-error",p),e.destroy()}),a.on("error",l=>{p||this.emit("connection-error",l)}),e.on("error",l=>{this.emit("connection-error",l)}),this.emit("connection-accept")}getHeaderTransform(){let e=(t,r,o)=>{let a=(l,c,f)=>{let g=Buffer.from(c),h=l.indexOf(g);if(h===-1)return l;let y=l.subarray(0,h),I=l.subarray(h+g.length);return Buffer.concat([y,f,I])},d=Buffer.from(o),p=Buffer.from(t);return r.forEach(l=>{p=a(p,l,d)}),p};if(this.rewriteHostHeader){let{targetHostname:t,altHostnames:r}=this.rewriteHostHeader,o=this.hostRegex;return new Vd.Transform({transform(a,d,p){let l=a.toString();if(l.split(`
|
|
4
|
+
`,1)[0].includes("HTTP")&&o.test(l)){let f=r.map(g=>`Host: ${g}`);p(null,e(a,f,`Host: ${t}`))}else p(null,a)}})}}};var zd=require("events"),Kd=x(require("dgram"));var nd=class extends zd.EventEmitter{constructor(e,t,r,o){super();this.endpoint=e;this.headers=t;this.bindToAssign=r;this.dispatcher=o;this.protocol="UDP";this.udpSocket=Kd.default.createSocket("udp4"),this.udpSocket.on("error",a=>this.emit("connection-error",a))}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1,t){await this.handleConnection();let r=l=>new Promise((c,f)=>{let g=!1,h=I=>{g||(g=!0,f(I))},y=()=>{if(g)return;g=!0,this.udpSocket.removeListener("error",h);let I=this.udpSocket.address(),P=I.address==="0.0.0.0"||I.address==="::"?"127.0.0.1":I.address;c({address:P,port:I.port})};this.udpSocket.once("error",h),l?this.udpSocket.bind(l.port,l.address,y):this.udpSocket.bind(0,y)}),o=this.bindToAssign;if(!o){let l=await r();return this.boundTo=l,this.emit("tunnel-open",l),l}let a=o,d,p=!1;for(;;)try{let l=await r(a);this.boundTo=l,this.emit("tunnel-open",l);let c=l.address!==o.address||l.port!==o.port;return{...l,...c?{fallbackFrom:o,fallbackReason:d}:{}}}catch(l){if(!Qs(l))throw new M(l,a);d??=l.code;let c=t?Xs(await t({code:l.code,requestedBinding:a})):e&&!p?{action:"random"}:void 0;switch(c?.action){case"random":p=!0,a={address:o.address,port:0};break;case"use-port":a={address:o.address,port:c.port};break;case"skip":throw new Y;case"abort":throw new Z;default:throw new M(l,a)}}}close(){if(this.closePromise)return this.closePromise;let e=new Promise((t,r)=>{try{this.duplex?.destroy()}catch{}try{this.remote?.close()}catch{}try{this.udpSocket.close(()=>{this.emit("tunnel-close"),t()})}catch(o){o?.code==="ERR_SOCKET_DGRAM_NOT_RUNNING"?(this.emit("tunnel-close"),t()):r(o)}});return this.closePromise=e.catch(t=>{throw this.closePromise=void 0,t}),this.closePromise}async handleConnection(){let e=this.dispatcher??await $(),t=this.endpoint.replace("https:","wss:"),{ws:r,upgradeFailure:o}=_(t,{headers:this.headers,dispatcher:e}),a=W(r);this.remote=r,this.duplex=a;let d;this.udpSocket.on("message",(l,c)=>{d=c,a.write(l)}),a.on("data",l=>{d&&this.udpSocket.send(l,d.port,d.address,c=>{c&&this.emit("connection-error",c)})});let p;r.addEventListener("error",l=>{p=o()??(l?.error instanceof Error?l.error:new Error("WebSocket connection failed")),this.emit("connection-error",p)}),a.on("error",l=>{p||this.emit("connection-error",l)}),r.addEventListener("close",l=>{this.emit("connection-close",l.code,l.reason)}),this.emit("connection-accept")}};var Yd=x(require("os")),Zd=require("crypto"),pe=class extends Wd.EventEmitter{constructor(e,t,r,o,a={}){super();this.contextProvider=e;this.listServices=t;this.listAddons=r;this.dispatcher=o;this.options=a;this.connections=[];this.stoppingConnections=new Map;this.pendingForwarding=new Set;this.acceptingForwards=!0;this.hostsFileMutex=new le;this.ipAllocationMutex=new le;this.stopForwarding=e=>{let t=this.stoppingConnections.get(e);if(t)return t;let r=this.stopForwardingOnce(e);return this.stoppingConnections.set(e,r),r};this.stopForwardingOnce=async e=>{let{hostnames:t,ipOnly:r}=e.forwardingContext,o=[];try{if(e.hostsRegistered&&t.length>0&&!r)try{await this.unregisterHostnames(e.forwardingContext.address,t),e.hostsRegistered=!1}catch(d){o.push(d)}try{await e.tunnel.close()}catch(d){o.push(d)}if(o.length>0)throw new AggregateError(o,`Failed to stop forwarding ${e.forwardingContext.id}.`);let a=this.connections.indexOf(e);a>=0&&this.connections.splice(a,1)}finally{this.stoppingConnections.delete(e)}};this.canExecuteWithHostnames=()=>Ud();this.assertStartedWithNodejs=()=>{if(!N)throw new Error("Port forwarding only possible when started with nodejs")};this.proxyApiClient=new Fs(e,o)}async withProjectForwarding(e,t,r=!0,o={}){try{let a=await this.forwardProject(e,r,o);return await t(a)}finally{await this.stopProjectForwarding(e)}}forwardProject(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.projectId,"project",()=>this.forwardProjectOnce(e,t,r))}async forwardProjectOnce(e,t,r){let{projectId:o,teamId:a,tags:d=[]}=e,p=a===void 0?{projectId:o}:{teamId:a,projectId:o},l=y=>d.every(I=>y.tags?.includes(I)===!0),c=await this.listServices.all({parameters:p}),f=await this.listAddons.all({parameters:p}),g=await Promise.all(c.data.services.filter(l).map(async y=>this.forwardService({teamId:a,projectId:o,serviceId:y.id},t,r))),h=await Promise.all(f.data.addons.filter(l).map(async y=>await this.forwardAddon({teamId:a,projectId:o,addonId:y.id},t,r)));return{services:g,addons:h}}async withServiceForwarding(e,t,r=!0,o={}){try{let a=await this.forwardService(e,r,o);return await t(a)}finally{await this.stopServiceForwarding(e)}}forwardService(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.serviceId,"service",()=>this.forwardServiceOnce(e,t,r))}async forwardServiceOnce(e,t,r){let{teamId:o,projectId:a,serviceId:d,instanceId:p,portsFilter:l}=e,c=await this.proxyApiClient.getServiceDetails(a,d,o),{namespace:f,targetDomain:g,instances:h,ports:y}=c;if(h.length===0)return[];let I=C=>{let A=h.map(F=>F.podName);if(p!==void 0&&!A.includes(p))throw new Error(`Instance id not found: ${p}. Expected one of [${A.join(", ")}]. Ensure that requested instance id is running on service ${d} in project ${a}.`);let w=this.proxyApiClient.getTeamScopePrefix(o),E=p!==void 0?"?directConnect=true":"",S=`https://${g}/tunnel/${w}projects/${a}/services/${d}/instance/${p??h[0].podName}/port/${C.internalPort}${E}`,k=p!==void 0?`${p}.`:"",L=`${k}${d}.${f}.svc.cluster.local`,q=[`${k}${d}`];C.name&&q.push(`${k}${C.name}.${d}`);let T;C.protocol==="HTTP"&&(T={altHostnames:q,targetHostname:L});let O=[L,...q];return this.forwardPort(S,C,O,"service",d,a,t,T,r)},P=l===void 0?y:y.filter(C=>l.includes(C.internalPort));return await Js(P,I)}async withHarnessForwarding(e,t,r=!0,o={}){try{let a=await this.forwardHarness(e,r,o);return await t(a)}finally{await this.stopHarnessForwarding(e)}}forwardHarness(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.harnessId,"harness",()=>this.forwardHarnessOnce(e,t,r))}async forwardHarnessOnce(e,t,r){let{teamId:o,projectId:a,harnessId:d,instanceId:p,portsFilter:l}=e,c=await this.proxyApiClient.getHarnessDetails(a,d,o),{namespace:f,targetDomain:g,instances:h,ports:y}=c;if(h.length===0)throw new Error(`No running instances found for harness ${d} in project ${a}.`);let I=p??h[0].podName,P=A=>{let w=h.map(j=>j.podName);if(!w.includes(I))throw new Error(`Instance id not found: ${I}. Expected one of [${w.join(", ")}]. Ensure that requested instance id is running on harness ${d} in project ${a}.`);let E=this.proxyApiClient.getTeamScopePrefix(o),k=`https://${g}/tunnel/${E}projects/${a}/harnesses/${d}/instance/${I}/port/${A.internalPort}?directConnect=true`,L=`${I}.`,q=`${L}${d}.${f}.svc.cluster.local`,T=[`${L}${d}`];A.name&&T.push(`${L}${A.name}.${d}`);let O;A.protocol==="HTTP"&&(O={altHostnames:T,targetHostname:q});let F=[q,...T];return this.forwardPort(k,A,F,"harness",d,a,t,O,r)},C=l===void 0?y:y.filter(A=>l.includes(A.internalPort));return await Js(C,P)}async withAddonForwarding(e,t,r=!0,o={}){try{let a=await this.forwardAddon(e,r,o);return await t(a)}finally{await this.stopAddonForwarding(e)}}forwardAddon(e,t=!0,r={}){return this.assertStartedWithNodejs(),this.trackPendingForwarding(e.projectId,e.addonId,"addon",()=>this.forwardAddonOnce(e,t,r))}async forwardAddonOnce(e,t,r){let{teamId:o,addonId:a,projectId:d}=e,p=await this.proxyApiClient.getAddonDetails(d,a,o),l=p.instances.map(f=>{let{podName:g,internalHostname:h}=f;return f.ports.map(y=>({podName:g,internalHostname:h,port:y}))}),c=this.proxyApiClient.getTeamScopePrefix(o);return await Js(l.flat(1/0),async({podName:f,internalHostname:g,port:h})=>{let y=`https://${p.targetDomain}/tunnel/${c}projects/${d}/addons/${a}/instance/${f}/port/${h.internalPort}`;return this.forwardPort(y,h,[g],"addon",a,d,t,void 0,r)})}async allocateIpAddress(){return this.ipAllocationMutex.enter(async()=>{let e="127.24.1.1",t="127.24.255.255",r=this.nextIpAddress??e;return await qd(r),this.nextIpAddress=Td(Vs(r)+1),Vs(this.nextIpAddress)>Vs(t)&&(this.nextIpAddress=e),r})}forwardPort(e,t,r,o,a,d,p=!0,l,c={},f=!0){return this.trackPendingForwarding(d,a,o,async()=>{try{return await this.forwardPortOnce(e,t,r,o,a,d,p,l,c,f)}catch(g){if(g?.code==="PORT_FORWARD_SKIPPED")return{error:{code:"PORT_FORWARD_SKIPPED",message:`Skipped ${o} '${a}' remote port ${t.internalPort}.`}};throw g}})}trackPendingForwarding(e,t,r,o){if(!this.acceptingForwards)return Promise.reject(new Error("Port forwarding is stopping."));let a=o(),d={projectId:e,id:t,type:r,operation:a};return this.pendingForwarding.add(d),a.then(()=>this.pendingForwarding.delete(d),()=>this.pendingForwarding.delete(d)),a}async forwardPortOnce(e,t,r,o,a,d,p,l,c,f){let g={Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`};if(!p){let P=this.canExecuteWithHostnames();if(P.error)throw new Error(`${P.message} Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))`)}let h=await this.determineSocketAddress(d,a,r,o,t,p,f);if(!this.acceptingForwards)throw new Error("Port forwarding was stopped during startup.");let y=t.protocol==="UDP"?new nd(e,g,h,this.dispatcher):new rd(e,g,l,h,this.dispatcher);y.on("connection-accept",()=>this.emit("connection-accept",y)),y.on("connection-close",async()=>this.emit("connection-close",y));let I;try{let P=c.portConflict??"random";if(P!=="random"&&P!=="fail"&&typeof P!="function")throw new Error(`Unknown port conflict policy '${P}'.`);let C=t.protocol??"TCP",A=typeof P=="function"?S=>P({...S,projectId:d,id:a,type:o,remotePort:t.internalPort,protocol:C}):void 0,w=await y.open(P==="random",A);if(!this.acceptingForwards)throw new Error("Port forwarding was stopped during startup.");let E={projectId:d,id:a,type:o,hostnames:r,ipOnly:p,port:w.port,address:w.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort,...w.fallbackFrom?{fallbackFrom:w.fallbackFrom}:{},...w.fallbackReason?{fallbackReason:w.fallbackReason}:{}};if(I={tunnel:y,forwardingContext:E,hostsRegistered:!1},this.connections.push(I),p||(I.hostsRegistered=!0,await this.registerHostnames(w.address,r)),!this.acceptingForwards)throw new Error("Port forwarding was stopped during startup.");return this.emit("tunnel-open",y,E),y.on("connection-error",S=>this.emit("connection-error",y,E,S)),y.on("tunnel-close",()=>this.emit("tunnel-close",y,E)),{data:E}}catch(P){try{I?await this.stopForwarding(I):await y.close()}catch(C){throw new AggregateError([P,C],`Port forwarding setup failed and could not be fully rolled back: ${P?.message??P}`)}throw P}}async determineSocketAddress(e,t,r,o,a,d,p){if(d&&Yd.default.platform()==="darwin")if(p&&r?.[0]!==void 0){let f=`${r[0]}:${a.internalPort}/${a.protocol}`;return{address:"127.0.0.1",port:this.consistentHostnameToPortHashing(f)}}else return;let c=this.connections.filter(f=>f.forwardingContext.projectId===e&&f.forwardingContext.id===t&&f.forwardingContext.type===o)?.find(f=>r.find(g=>f.forwardingContext.hostnames.includes(g)));return c?{address:c?.forwardingContext.address,port:a.internalPort}:{address:await this.allocateIpAddress(),port:a.internalPort}}consistentHostnameToPortHashing(e){let a=(0,Zd.createHash)("sha256").update(e).digest("hex");return 3e4+parseInt(a.slice(0,8),16)%3e4}async registerHostnames(e,t){await this.modifyHostsFile(r=>{r.removeHosts(...t),r.addToSection(e,t,Zs)})}async unregisterHostnames(e,t){await this.modifyHostsFile(r=>{r.remove(e,...t)})}async modifyHostsFile(e){return this.hostsFileMutex.enter(async()=>{let t=this.options.hostsFile??fd;return _d(t,async()=>{let r=await Ws.load({header:Zs,hostsFile:t}),o=e(r);await r.backup({suffix:".backup-pre-northflank"});try{await ae(5)(async()=>{await r.write({writeMode:"atomic"})})}catch{await ae(5)(async()=>{await r.write({writeMode:"standard"})})}return o})})}async cleanupHostsFile(){return this.modifyHostsFile(e=>e.removeSection(Zs))}waitForPending(e=()=>!0){let t=[...this.pendingForwarding].filter(e).map(r=>r.operation);if(t.length!==0)return Promise.allSettled(t).then(()=>{})}async stopConnections(e){let r=(await Promise.allSettled(e.map(o=>this.stopForwarding(o)))).flatMap(o=>o.status==="rejected"?[o.reason]:[]);if(r.length>0)throw new AggregateError(r,`Failed to clean up ${r.length} port-forward connection(s).`)}async stopProjectForwarding(e){let t=this.waitForPending(r=>r.projectId===e.projectId);t&&await t,await this.stopConnections(this.connections.filter(r=>r.forwardingContext.projectId===e.projectId))}async stopServiceForwarding(e){let t=o=>o.type==="service"&&o.projectId===e.projectId&&o.id===e.serviceId,r=this.waitForPending(t);r&&await r,await this.stopConnections(this.connections.filter(o=>t(o.forwardingContext)))}async stopHarnessForwarding(e){let t=o=>o.type==="harness"&&o.projectId===e.projectId&&o.id===e.harnessId,r=this.waitForPending(t);r&&await r,await this.stopConnections(this.connections.filter(o=>t(o.forwardingContext)))}async stopAddonForwarding(e){let t=o=>o.type==="addon"&&o.projectId===e.projectId&&o.id===e.addonId,r=this.waitForPending(t);r&&await r,await this.stopConnections(this.connections.filter(o=>t(o.forwardingContext)))}async stop(){return this.stopAllPromise?this.stopAllPromise:(this.acceptingForwards=!1,this.stopAllPromise=(async()=>{let e=this.waitForPending();e&&await e,await this.stopConnections([...this.connections])})().finally(()=>{this.acceptingForwards=!0,this.stopAllPromise=void 0}),this.stopAllPromise)}};var Qd=require("events"),ad=x(require("stream"));var Id=["us","eu","asia"];var Q=class extends Qd.EventEmitter{constructor(e,t,r,o,a=new ad.PassThrough,d=new ad.PassThrough,p=new ad.PassThrough){super();this.baseUrl=e;this.execConfig=t;this.token=r;this.dispatcher=o;this.stdOut=a;this.stdErr=d;this.stdIn=p;this.drainTimeoutMs=3e4;this.waitForCommandResult=async()=>{if(this.currentCommand===void 0)throw new Error("No command is running");return await this.currentCommand};this.sendInputToCurrentCommand=async e=>{if(this.currentCommand===void 0||this.duplex===void 0)throw new Error("No command is running");this.duplex?.write(this.constructPayloadPacket(e))};this.resizeTerminal=async e=>{if(this.currentCommand===void 0||this.duplex===void 0)throw new Error("No command is running, can't resize terminal");this.duplex?.write(JSON.stringify({type:"resize",data:{ttyRows:e?.rows,ttyColumns:e?.columns}}))};this.constructPayloadPacket=e=>{let t=this.execConfig.encoding,r=t==="binary"||t==="latin1",o=Buffer.isBuffer(e)&&r?e.toString("latin1"):e.toString();return JSON.stringify({type:"payload",data:o})};this.stdInEndPacket=JSON.stringify({type:"stdInEnd"})}get execEndpoint(){let{entityId:e,entityType:t,projectId:r,teamId:o}=this.execConfig,a=o!==void 0?`teams/${o}/`:"",d=`${this.baseUrl}/v1/command-exec/${a}projects/${r}/`;function p(){switch(t){case"service":return`services/${e}`;case"job":return`jobs/${e}`;case"addon":return`addons/${e}`;case"build":return`builds/${e}`;default:throw new Error(`Unexpected Northflank entity type received in command exec endpoint generation: ${t}`)}}return`${d}${p()}`}async start(){if(this.currentCommand!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await $(),this.currentCommand=new Promise((e,t)=>{if(this.remote!==void 0){t(Error("Command is already running"));return}let r=!1,o=()=>{},a,d=w=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(w));return}r=!0,o(),this.listenerCount("error")>0&&this.emit("error",new Error(w)),this.reset(),t(new Error(w))},p=()=>{r||(r=!0,o(),this.emit("command-completed"),this.reset(),e(a))};try{let w=this.execEndpoint.replace("https:","wss:").replace("http:","ws:"),{ws:E,upgradeFailure:S}=_(w,{dispatcher:this.resolvedDispatcher});this.remote=E,this.remote.addEventListener("error",k=>{let L=S();d(L?`WebSocket error: ${L.message}`:`WebSocket error: ${k?.error?.message??k?.message??"connection failed"}`)}),this.remote.addEventListener("close",k=>{![1e3,1005].includes(k.code)&&!r&&d(`WebSocket closed unexpectedly: ${k.code} ${k.reason||"(no reason)"}`)}),this.duplex=W(this.remote)}catch(w){d(`Failed to establish connection to command execution proxy: ${w.message}`);return}let l=()=>this.stdIn.resume(),c=w=>{this.duplex?.writable&&(this.duplex.write(this.constructPayloadPacket(w))||(this.stdIn.pause(),this.duplex.once("drain",l)))},f=()=>{this.duplex?.writable&&this.duplex.write(this.stdInEndPacket)};this.stdIn.on("data",c),this.stdIn.on("end",f);let g=!1,h,y=()=>{h&&(clearTimeout(h),h=void 0)},I=()=>{y(),h=setTimeout(()=>{h=void 0,this.duplex?.destroy(new Error(`No output for ${Math.round(this.drainTimeoutMs/1e3)}s after the command reported completion; the output stream stalled and the result may be incomplete`))},this.drainTimeoutMs),typeof h.unref=="function"&&h.unref()};o=()=>{y(),this.stdIn.off("data",c),this.stdIn.off("end",f),this.duplex?.off("drain",l),this.stdIn.destroy()};let P=w=>{let E;try{E=JSON.parse(w.toString())}catch(S){d(`Failed to parse message: ${S.message}`);return}try{switch(E?.type){case"init":{let S=E.data;S.auth!=="successful"?d(`Command initialization failed: ${S?.message??"Reason unknown"}`):this.emit("auth-success",S);break}case"completion":{a=E.data,this.emit("command-result",a),g=!0,I();break}case"stdOut":{this.emit("std-out-data",E.data),this.stdOut.write(E.data,this.execConfig?.encoding),g&&I();break}case"stdErr":{this.emit("std-err-data",E.data),this.stdErr.write(E.data,this.execConfig?.encoding),g&&I();break}case"error":{d(E.data?.message||"Unknown error");break}default:{let S=`unable to parse message: ${JSON.stringify(E)}`;d(S)}}}catch(S){d(`Failed handling '${E?.type??"unknown"}' frame: ${S?.message??S}`)}},C=()=>{y(),this.stdOut.end(),this.stdErr.end(),a?p():r||d("Connection closed before receiving command result")},A=w=>{d(`Duplex stream error: ${w.message}`)};this.duplex?.on("data",P),this.duplex?.on("end",C),this.duplex?.on("error",A),this.initialAuth(),this.emit("command-started")}),this.currentCommand}initialAuth(){let{command:e,containerName:t,instanceName:r,shell:o,user:a}=this.execConfig,{group:d,encoding:p,tty:l,ttyColumns:c,ttyRows:f}=this.execConfig,g={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:r,containerName:t,command:e,shell:o,user:a,group:d,encoding:p,tty:l,ttyColumns:c,ttyRows:f}}};this.duplex?.write(JSON.stringify(g))}reset(){this.remote=void 0,this.currentCommand=void 0,this.duplex?.destroy(),this.duplex=void 0}};var el=require("http2");var Xd=require("events"),od=x(require("stream")),me=class extends Xd.EventEmitter{constructor(e,t,r,o=new od.PassThrough,a=new od.PassThrough,d=new od.PassThrough){super();this.execConfig=e;this.token=t;this.session=r;this.stdOut=o;this.stdErr=a;this.stdIn=d;this.drainTimeoutMs=3e4;this.waitForCommandResult=async()=>{if(this.currentCommand===void 0)throw new Error("No command is running");return await this.currentCommand};this.sendInputToCurrentCommand=async e=>{if(this.currentCommand===void 0||this.clientStream===void 0)throw new Error("No command is running");this.clientStream.write(this.constructPayloadPacket(e))};this.resizeTerminal=async e=>{if(this.currentCommand===void 0||this.clientStream===void 0)throw new Error("No command is running, can't resize terminal");let t={type:"resize",data:{ttyRows:e?.rows,ttyColumns:e?.columns}};this.clientStream.write(`${JSON.stringify(t)}
|
|
5
|
+
`)};this.getHashingKey=()=>this.execConfig.entityId+(this.execConfig.instanceName??"na");this.constructPayloadPacket=e=>{let t=this.execConfig.encoding,r=t==="binary"||t==="latin1",o=Buffer.isBuffer(e)&&r?e.toString("latin1"):e.toString();return`${JSON.stringify({type:"payload",data:o})}
|
|
6
|
+
`};this.stdInEndPacket=`${JSON.stringify({type:"stdInEnd"})}
|
|
7
|
+
`}async start(){if(this.currentCommand!==void 0)throw new Error("Command is already running");return this.currentCommand=new Promise((e,t)=>{if(this.clientStream!==void 0){t(Error("Command is already running"));return}let r=!1,o,a=C=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(C));return}r=!0,this.listenerCount("error")>0&&this.emit("error",new Error(C)),this.reset(),t(new Error(C))},d=()=>{r||(r=!0,this.emit("command-completed"),this.reset(),e(o))};try{let A=this.session.request({":method":"POST",":path":"/exec","content-type":"application/x-ndjson","x-target-key":this.getHashingKey()});this.clientStream=A,A.on("error",w=>{a(`session error: ${w.message}`)})}catch(C){a(`Failed to establish connection to command execution proxy: ${C.message}`);return}this.onStdinData=C=>{this.clientStream?.writable&&this.clientStream.write(this.constructPayloadPacket(C))},this.onStdinEnd=()=>{this.clientStream?.writable&&this.clientStream.write(this.stdInEndPacket)},this.stdIn.on("data",this.onStdinData),this.stdIn.on("end",this.onStdinEnd);let p=C=>{switch(C?.type){case"init":{let A=C.data;A.auth!=="successful"?a(`Command initialization failed: ${A?.message??"Reason unknown"}`):this.emit("auth-success",A);break}case"completion":{o=C.data,this.emit("command-result",o),this.clientStream?.end(),l=!0,g();break}case"stdOut":{this.emit("std-out-data",C.data),this.stdOut.write(C.data,this.execConfig?.encoding),l&&g();break}case"stdErr":{this.emit("std-err-data",C.data),this.stdErr.write(C.data,this.execConfig?.encoding),l&&g();break}case"error":{a(C.data?.message||"Unknown error");break}default:{let A=`Unknown frame type: ${String(C?.type)}; message: ${JSON.stringify(C)}`;a(A)}}},l=!1,c,f=()=>{c&&(clearTimeout(c),c=void 0)},g=()=>{f(),c=setTimeout(()=>{c=void 0,this.clientStream?.destroy(new Error(`No output for ${Math.round(this.drainTimeoutMs/1e3)}s after the command reported completion; the output stream stalled and the result may be incomplete`))},this.drainTimeoutMs),typeof c.unref=="function"&&c.unref()},h="",y=C=>{h+=C.toString();let A=h.split(`
|
|
8
|
+
`);h=A.pop()??"";for(let w of A){if(!w)continue;let E;try{E=JSON.parse(w)}catch(S){a(`Failed to parse message: ${S.message}`);return}try{p(E)}catch(S){a(`Failed handling '${E?.type??"unknown"}' frame: ${S?.message??S}`);return}}},I=()=>{f(),this.stdOut.end(),this.stdErr.end(),this.stdIn.end(),o?d():r||a("Connection closed before receiving command result")},P=C=>{a(`Duplex stream error: ${C.message}`)};this.clientStream?.on("data",y),this.clientStream?.on("end",I),this.clientStream?.on("error",P),this.initialAuth(),this.emit("command-started")}),this.currentCommand}entityIdField(){let{entityType:e,entityId:t}=this.execConfig;switch(e){case"service":return{serviceId:t};case"job":return{jobId:t};case"addon":return{addonId:t};case"build":return{buildId:t}}}initialAuth(){let{command:e,containerName:t,instanceName:r,shell:o,user:a}=this.execConfig,{group:d,encoding:p,tty:l,ttyColumns:c,ttyRows:f,teamId:g}=this.execConfig,h={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{teamId:g,projectId:this.execConfig.projectId,...this.entityIdField(),instanceName:r,containerName:t,command:e,shell:o,user:a,group:d,encoding:p,tty:l,ttyColumns:c,ttyRows:f}}};this.clientStream?.write(`${JSON.stringify(h)}
|
|
9
|
+
`)}reset(){this.onStdinData&&(this.stdIn.off("data",this.onStdinData),this.onStdinData=void 0),this.onStdinEnd&&(this.stdIn.off("end",this.onStdinEnd),this.onStdinEnd=void 0),this.currentCommand=void 0,this.clientStream?.destroy(),this.clientStream=void 0}};var ue=class{constructor(n,e,t){this.contextProvider=n;this.dispatcher=e;this.sessionRegistry=new Map;this.assertStartedWithNodejs=()=>{if(!N)throw new Error("Command exec only possible when started with nodejs")};t?.forEach(r=>{this.http2Session({execLocationHint:r})})}http2Session(n){let e=(()=>{if(n.execLocationHint){let{execLocationHint:a}=n;if(!Id.includes(a))throw new Error(`execLocationHint (${a}) not valid. Must be one of [${Id.join(",")}].`);let d=(l,c)=>l.replace(/\/\/api\./,`//api-exec-${c}.`),p=this.contextProvider.getCurrentBaseUrl(!0);return d(p,a)}else if(n.execLocationOverride)return n.execLocationOverride;throw new Error("Invalid exec location"+JSON.stringify(n))})(),t=this.sessionRegistry.get(e);if(t)return t;let r=`${e}/exec`,o=(0,el.connect)(r);return o.on("error",()=>{this.sessionRegistry.delete(e)}),o.on("close",()=>{this.sessionRegistry.delete(e)}),this.sessionRegistry.set(e,o),o}async execServiceCommand(n,e){let{serviceId:t,projectId:r,teamId:o}=n,d={teamId:o,projectId:r,entityId:t,entityType:"service",...e};return this.execCommand(d)}async execServiceSession(n,e,t){let{serviceId:r,projectId:o,teamId:a}=n,p={teamId:a,projectId:o,entityId:r,entityType:"service",...e};return await this.shellSession(p,t)}async execJobCommand(n,e){let{jobId:t,projectId:r,teamId:o}=n,d={teamId:o,projectId:r,entityId:t,entityType:"job",...e};return this.execCommand(d)}async execJobSession(n,e,t){let{jobId:r,projectId:o,teamId:a}=n,p={teamId:a,projectId:o,entityId:r,entityType:"job",...e};return await this.shellSession(p,t)}async execAddonCommand(n,e){let{addonId:t,projectId:r,teamId:o}=n,d={teamId:o,projectId:r,entityId:t,entityType:"addon",...e};return this.execCommand(d)}async execAddonSession(n,e,t){let{addonId:r,projectId:o,teamId:a}=n,p={teamId:a,projectId:o,entityId:r,entityType:"addon",...e};return await this.shellSession(p,t)}async execCommand(n){this.assertStartedWithNodejs();let e=this.getCommandRunner({shell:"none",...n}),t=new G,r=new G;try{e.stdOut.pipe(t),e.stdErr.pipe(r);let o=new Promise((d,p)=>{e.once("error",l=>{p(new Error(`${l.message||l}`))})});return{commandResult:await Promise.race([e.start(),o]),stdOut:t.getContentsAsString(),stdErr:r.getContentsAsString()}}catch(o){throw e.stdOut.unpipe(t),e.stdErr.unpipe(r),new Error(`Command execution failed: ${o instanceof Error?o.message:String(o)}`)}}async shellSession(n,e){this.assertStartedWithNodejs();let t=this.getCommandRunner(n),r=new Promise((o,a)=>{t.once("auth-success",p=>{e?.(p?.context??{}),o()}),t.once("error",p=>{a(new Error(`Shell session failed: ${p.message||p}`))});let d=setTimeout(()=>{a(new Error("Shell session timed out waiting for auth-success"))},3e4);t.once("auth-success",()=>clearTimeout(d))});return t.start().catch(()=>{}),await r,t}getCommandRunner(n){let e=this.contextProvider.getCurrentBaseUrl(!0),t=this.contextProvider.getCurrentToken();if(!t)throw Error("API token not found");let{execLocationHint:r,execLocationOverride:o}=n;return o?new me({shell:"none",...n},t,this.http2Session({execLocationOverride:o})):r?new me({shell:"none",...n},t,this.http2Session({execLocationHint:r})):new Q(e,n,t,this.dispatcher)}};var ol=x(require("tar")),il=x(require("ignore"));var rl=x(require("tar")),nl=require("stream");function tl(i){let n=a=>a?.size??0,e=0,t=0,r,o=()=>{let a=n(r),d=r?.remain??a;return a-d};return{track(a){r&&(e+=n(r)),r=a,t+=n(a),i?.(a)},bytes:()=>e+(r?o():0),seen:()=>t}}function al({cwd:i,encoding:n,onReadEntry:e,singleEntry:t,onProgress:r}){let o=0,a=tl(e),d=()=>{if(!r)return;let I=a.seen();r({received:o,extracted:a.bytes(),total:t&&I>0?I:void 0})},p=rl.x({cwd:i,gzip:{encoding:n},maxDecompressionRatio:1/0,onReadEntry:a.track}),l,c=I=>{l=l??I};p.on("error",c);let f=new nl.Writable({write(I,P,C){try{o+=I.length;let A=p.write(I);if(d(),A)return C();p.once("drain",()=>C())}catch(A){C(A)}},final(I){try{p.end()}catch(P){return I(P)}I()}});f.on("error",c);let g=!1,h=()=>{g=!0};return p.on("close",()=>{d(),h()}),p.on("error",h),{sink:f,getError:()=>l,untar:p,whenFinished:(I=12e4)=>new Promise((P,C)=>{if(g)return P();let A,w=()=>{A&&clearTimeout(A),P()};p.once("close",w),p.once("error",w),A=setTimeout(()=>{p.removeListener?.("close",w),p.removeListener?.("error",w),C(new Error(`Timed out after ${Math.round(I/1e3)}s waiting for the downloaded archive to finish extracting.`))},I),typeof A.unref=="function"&&A.unref()}),counts:()=>({received:o,extracted:a.bytes(),expected:a.seen()})}}var id=x(require("fs")),D=x(require("path")),sd=require("stream"),hd=(r=>(r.DIRECTORY_UPLOAD="directory-upload",r.FILE_UPLOAD="file-upload",r.DIRECTORY_DOWNLOAD="directory-download",r.FILE_DOWNLOAD="file-download",r))(hd||{}),H=class{constructor(n,e){this.exec=n;this.parameters=e;this.defaultEncoding="base64";this.getFileIgnoreFilter=n=>{if(n===void 0)return;let e=(0,il.default)({allowRelativePaths:!0}).add(n);return t=>!e.ignores(t)};this.getTarTransformFn=(n,e)=>t=>{t.path=t.path.replace(n,e)};this.ensureDirRemote=async n=>{let e=["mkdir","-p",n];if((await this.runCommand(e))?.commandResult?.status!=="Success")throw new Error("Failed creating remote directory.")};this.ensureTarCmd=async()=>{let n=["tar","--version"];if((await this.runCommand(n))?.commandResult?.status!=="Success")throw new Error("Tar command not found on remote container. Required for file copy.")};this.pathExistsRemote=async n=>{let e=["test","-e",n];return(await this.runCommand(e)).commandResult.exitCode===0};this.checkIsDirRemote=async n=>{let e=["test","-d",n];return(await this.runCommand(e)).commandResult.exitCode===0};this.checkIsFileRemote=async n=>{let e=["test","-e",n];return(await this.runCommand(e)).commandResult.exitCode===0};this.runCommand=async(n,e="none")=>{let{exec:t,parameters:r}=this,{teamId:o,projectId:a,resourceId:d,resourceType:p,containerName:l,instanceName:c,execLocationHint:f}=r,g={command:n,shell:e,containerName:l,instanceName:c,execLocationHint:f};return p==="service"?await t.execServiceCommand({teamId:o,projectId:a,serviceId:d},g):await t.execJobCommand({teamId:o,projectId:a,jobId:d},g)};this.runSession=async n=>{let{exec:e,parameters:t}=this,{teamId:r,projectId:o,resourceId:a,resourceType:d,containerName:p,instanceName:l,execLocationHint:c}=t,f={command:n,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:p,instanceName:l,execLocationHint:c};return d==="service"?await e.execServiceSession({teamId:r,projectId:o,serviceId:a},f):await e.execJobSession({teamId:r,projectId:o,jobId:a},f)};if(!["service","job"].includes(e.resourceType))throw new Error(`Invalid resource type: ${e.resourceType}, only 'service' and 'job' supported`)}async uploadFiles(n,e,t){if(n===void 0||!id.default.existsSync(n))throw new Error(`Local path '${n}' does not exists but is required for uploads.`);let r=id.default.lstatSync(n).isFile(),o=r?D.default.dirname(n):n,a=r?D.default.basename(n):".",d=r&&e!==void 0&&D.default.extname(e)!=="",p=d?D.default.dirname(e):e??o,l=e!==void 0?D.default.basename(e):a,c=ol.c({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(t),preservePaths:!0,onWriteEntry:d?this.getTarTransformFn(a,l):void 0},cd(a));await this.ensureTarCmd(),await this.ensureDirRemote(p);let g=["tar","-xzvf","-",...["--no-same-owner"],"-C",p],h=await this.runSession(g),y=new G,I=new G;h.stdErr.pipe(y),h.stdOut.pipe(I),c.pipe(h.stdIn);let P=await h.waitForCommandResult();if(P?.status!=="Success")throw new Error(`Failed to upload file to container: ${P?.message}, error details: ${y.getContentsAsString()}; ${I.getContentsAsString()}`);return r?{type:"file-upload",sourceDirectory:o,sourceFile:a,targetDirectory:p,targetFile:l}:{type:"directory-upload",sourceDirectory:o,targetDirectory:p}}async uploadStream(n,e){let t=function(f){let g=new sd.Transform({transform(I,P,C){this.push(I.toString("base64")),C()}}),h=typeof f=="string",y=Buffer.isBuffer(f);return!h&&!y?f.pipe(g):sd.Readable.from(f).pipe(g)},r=D.default.dirname(e);await this.ensureTarCmd(),await this.ensureDirRemote(r);let o=["tee",e],a=await this.runSession(o),d=new G,p=new G;a.stdErr.pipe(d),a.stdOut.pipe(p),t(n).pipe(a.stdIn);let c=await a.waitForCommandResult();if(await this.runCommand(["cat",e]),c?.status!=="Success")throw new Error(`Failed to upload file to container: ${c?.message}, error details: ${d.getContentsAsString()}; ${p.getContentsAsString()}`)}async downloadFiles(n,e,t,r){if(n===void 0||!await this.pathExistsRemote(n))throw new Error(`Remote path '${n}' does not exists but is required for downloads.`);let o=await this.checkIsDirRemote(n),a=o?n:D.default.dirname(n),d=o?".":D.default.basename(n),p=e!==void 0&&D.default.extname(e)!=="",l=!o&&p?D.default.basename(e):d,c=e!==void 0?p?D.default.dirname(e):e:".";c&&id.default.mkdirSync(c,{recursive:!0});let f=cd(t??[]).map(F=>`--exclude=${F}`),y=[...["tar","-zcf","-",...["--no-same-owner"],...f],"-C",a,d],I=await this.runSession(y),{sink:P,getError:C,whenFinished:A,counts:w}=al({cwd:c,encoding:this.defaultEncoding,onReadEntry:l?this.getTarTransformFn(d,l):void 0,singleEntry:!o,onProgress:r}),E=new G;I.stdErr.pipe(E),I.stdOut.pipe(P);let S=await I.waitForCommandResult();if(S?.status!=="Success")throw new Error(`Failed to download file from container: ${S?.message}, error details: ${E.getContentsAsString()}`);await A();let k=C(),{received:L,extracted:q,expected:T}=w(),O=`received ${L} compressed bytes, extracted ${q}`+(T>0?` of ${T} expected`:"");if(k)throw new Error(`Failed to extract downloaded archive: ${k.message} (${O})`);if(T>0&&q<T)throw new Error(`Downloaded archive is incomplete: expected ${T} bytes, extracted ${q} (${O})`);return o?{type:"directory-download",sourceDirectory:a,targetDirectory:c}:{type:"file-download",sourceDirectory:a,sourceFile:d,targetDirectory:c,targetFile:l}}async downloadStream(n){if(!await this.checkIsFileRemote(n))throw new Error(`Remote path '${n}' must be a file.`);let e=D.default.dirname(n);await this.ensureTarCmd(),await this.ensureDirRemote(e);let t=["cat",n],r=await this.runSession(t),o=new G;return r.stdErr.pipe(o),{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(a=>a.exitCode===0)}}};var ce=class{constructor(n,e){this.exec=n;this.stdIgnoreList=["*.*~"];e&&(this.stdIgnoreList=e)}async downloadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"download")}async downloadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await new H(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"upload")}async uploadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"service"};return await new H(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async downloadJobFiles(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"download")}async downloadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await new H(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadJobFiles(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"upload")}async uploadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:o}=n,a={teamId:o,projectId:r,resourceId:t,resourceType:"job"};return await new H(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async copy(n,e,t){let r=new H(this.exec,{...n,instanceName:e.instanceName,containerName:e.containerName,execLocationHint:e.execLocationHint}),o=[...e.ignoreList??[],...this.stdIgnoreList];switch(t){case"download":return await r.downloadFiles(e.remotePath,e.localPath,o,e.onProgress);case"upload":return await r.uploadFiles(e.localPath,e.remotePath,o)}}};var X=class extends Error{constructor(n){super(n.message),this.name="NorthflankApiCallError",this.message=n.message,this.status=n.status,this.id=n.id,this.details=n.details;let e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e}};var sl=require("events");var yd=(r=>(r.CDN="cdn",r.Mesh="mesh",r.Ingress="ingress",r.Runtime="runtime",r))(yd||{}),Rd=i=>({containerId:i.containerId,log:i.log,ts:new Date(i.ts)}),ee=class i extends sl.EventEmitter{constructor(e,t,r,o){super();this.baseUrl=e;this.logsConfig=t;this.token=r;this.dispatcher=o;this.stop=async()=>{if(this.logSession===void 0)throw new Error("No command is running");this.remote?.close()}}static getLogsEndpoint(e){let{containerName:t,types:r,entityId:o,entityType:a,buildId:d,runId:p,backupId:l,restoreId:c,deploymentId:f,isBuild:g,lineLimit:h,teamId:y,projectId:I,queryType:P,startTime:C,endTime:A,duration:w,direction:E,textIncludes:S,textNotIncludes:k,regexIncludes:L,regexNotIncludes:q}=e,O=`/v1/${y!==void 0?`teams/${y}/`:""}projects/${I}/`,F=()=>{let V=g?"/build-logs":"/logs";switch(a){case"service":return`services/${o}${V}`;case"job":return`jobs/${o}${V}`;case"addon":return`addons/${o}${V}`;case"addonBackup":return`addons/${o}/backups/${l}${V}`;case"addonRestore":return`addons/${o}/backups/${l}/restores/${c}${V}`;default:throw new Error(`Unexpected Northflank entity type received in logs endpoint generation: ${a}`)}},j=new URLSearchParams;return j.append("queryType",P),C!==void 0&&j.append("startTime",C.toISOString()),A!==void 0&&j.append("endTime",A.toISOString()),h!==void 0&&j.append("lineLimit",h.toString()),t!==void 0&&j.append("containerName",t),f!==void 0&&j.append("deploymentId",f),p!==void 0&&j.append("runId",p),d!==void 0&&j.append("buildId",d),S!==void 0&&j.append("textIncludes",S),k!==void 0&&j.append("textNotIncludes",k),L!==void 0&&j.append("regexIncludes",L),q!==void 0&&j.append("regexNotIncludes",q),E!==void 0&&j.append("direction",E),w!==void 0&&j.append("duration",w.toString()),r!==void 0&&r.forEach(V=>j.append("type",V)),`${O}${F()}?${j.toString()}`}get logsEndpoint(){return`${this.baseUrl}${i.getLogsEndpoint(this.logsConfig)}`}async start(){if(this.logSession!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await $(),this.logSession=new Promise((e,t)=>{this.remote!==void 0&&t(Error("Command is already running"));let r=this.logsEndpoint.replace("https:","wss:").replace("http:","ws:"),{ws:o,upgradeFailure:a}=_(r,{dispatcher:this.resolvedDispatcher});this.remote=o,this.remote.binaryType="arraybuffer",this.remote?.addEventListener("message",p=>{let l=p.data,c=typeof l=="string"?l:Buffer.from(l).toString(),f=JSON.parse(c);switch(f?.type){case"init":{let g=f.data;g.auth!=="successful"&&d(`Log tail initialization failed: ${g?.message??"Reason unknown"}`);break}case"log-lines":{let g=f.data;this.emit("logs-received",g.map(Rd));break}case"error":{d(f.data?.message);break}default:{let g=`unable to parse message: ${JSON.stringify(f)}`;d(g)}}}),this.remote?.addEventListener("close",()=>{this.emit("close"),this.reset(),e()}),this.remote?.addEventListener("open",()=>{this.emit("open")}),this.remote?.addEventListener("error",p=>{this.emit("error",a()??p?.error??new Error("WebSocket error")),this.reset(),e()});let d=p=>{this.emit("error",{message:p}),this.reset(),t(new Error(p))}}),await new Promise(e=>{this.remote?.addEventListener("open",()=>e()),this.remote?.addEventListener("error",()=>e())}),this.initialAuth(),this.logSession}initialAuth(){let e={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};this.remote?.send(JSON.stringify(e))}reset(){this.remote=void 0,this.logSession=void 0}};var dl=x(require("fs")),Cd=x(require("path")),ll=require("url");var Ol={},te,$l=()=>{if(te!==void 0)return te??void 0;if(N)try{te=JSON.parse(dl.default.readFileSync(Cd.default.join(Cd.default.dirname((0,ll.fileURLToPath)(Ol.url)),"../package.json")).toString())?.version??null}catch{te=null}else te=null;return te??void 0},J=class{constructor(n,e){this.opts=e;this.call=async n=>this.executeCall(n);this.contextProvider=n}getDefaultHeaders(){let n=this.contextProvider.getCurrentToken(),e=this.opts?.customUserAgent?` (${this.opts.customUserAgent})`:"";return{...this.withAuth?{Authorization:`Bearer ${n}`}:{},"Content-Type":"application/json","User-Agent":`northflank-js-client/${$l()}${e}`}}async executeCall(n){let t={method:this.method.toUpperCase(),headers:this.getDefaultHeaders()},r=this.contextProvider?.getCurrentBaseUrl();if(!r)throw new Error("Api client context not correctly initialized, please provide a url to the context.");let o=`${r}${this.endpointUrl(n)}`,a=this.body(n),d={url:o,...t,body:a},p=this.opts.dispatcher??await $(),l=await Bl(o,{...t,body:a,dispatcher:p}),c=await l.text(),f=()=>{try{return JSON.parse(c)}catch{throw Error(`Failed reading api request result:
|
|
10
|
+
Status: ${l.statusText} (${l.status})
|
|
11
|
+
Message: ${c}`)}},g=()=>{if(l.status!==200){let I=h?.error,P=I?.message||"",C={status:l.status,message:P,id:I?.id,details:I?.details};if(this.opts.throwErrorOnHttpErrorCode)throw new X(C);return C}},h=f(),y=g();return{data:h?.data,rawResponse:l,request:d,error:y,pagination:h?.pagination}}},m=class extends J{constructor(){super(...arguments);this.method="GET";this.body=()=>{}}},u=class extends m{constructor(){super(...arguments);this.all=async e=>new dd(this,e).getAll();this.call=async e=>{let t=await super.executeCall(e);return{...t,pagination:{...t.pagination,getNextPage:async()=>{if(t.pagination?.cursor===void 0){let r=Object.keys(t.data),o=r.length===1?{[r[0]]:[]}:{},a={...t,pagination:{...t.pagination,count:0},data:o},d=p=>({...p,pagination:{...p.pagination,getNextPage:async()=>d(p)}});return d(a)}return new dd(this,e,t.pagination?.cursor).getNext()}}}}}},s=class extends J{constructor(){super(...arguments);this.method="POST"}},b=class extends J{constructor(){super(...arguments);this.method="DELETE"}},v=class extends J{constructor(){super(...arguments);this.method="PUT"}},R=class extends J{constructor(){super(...arguments);this.method="PATCH"}},dd=class{constructor(n,e,t=null){this.endpoint=n;this.opts=e;this._currentOffset=0;this.hasNext=()=>this.cursor!==void 0;this.cursor=t}get currentOffset(){return this._currentOffset}async getNext(){let{data:n,request:e,error:t,pagination:r,rawResponse:o}=await this.endpoint.call({...this.opts,options:{...this.opts?.options,cursor:this.cursor??void 0}});return this.cursor=r?.cursor,this._currentOffset+=r?.count??0,{data:n,request:e,error:t,pagination:r,rawResponse:o}}async getAll(){let n=[];for(;this.hasNext();){let r=await this.getNext();if(r.error)return r;n.push(r)}let e,t=n.flatMap(r=>{let o=Object.keys(r.data);return o.length===1?(e=o[0],r.data[o[0]]):r.data});return{data:e===void 0?t:{[e]:t},request:n[0]?.request,rawResponse:n[0]?.rawResponse}}},Nl=i=>new Promise(n=>{setTimeout(()=>{n()},i)}),Bl=async(i,n={},e=3,t=500)=>{let r=await Hs(!!n.dispatcher);return new Promise((o,a)=>{let d=p=>r(i,n).then(l=>{o(l)}).catch(async l=>{if(p>0)return await Nl(t),d(p-1);if(l instanceof Error&&l.cause instanceof Error){l.message=`${l.message}: ${l.cause.message}`;for(let c of["code","errno","syscall"])if(l[c]===void 0&&l.cause[c]!==void 0)try{l[c]=l.cause[c]}catch{}}return a(l)});return d(e)})};var ld=class extends m{constructor(){super(...arguments);this.description="Fetch log lines over a specific time span";this.withAuth=!0;this.requiredPermissions="Account > Service | Job | Addon > General > Read";this.endpointUrl=e=>ee.getLogsEndpoint(e);this.body=()=>{}}};var ge=class{constructor(n,e={}){this.contextProvider=n;this.clientOpts=e;this.getServiceLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.serviceId,projectId:e.projectId,teamId:e.teamId};return this.logRange(r,t??{},"service")};this.getServiceBuildLogs=async n=>{let{parameters:e,options:t}=n,{projectId:r,serviceId:o,teamId:a}=e,d={entityId:o,projectId:r,teamId:a};return this.logRange(d,{...t,isBuild:!0},"service")};this.getJobLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.jobId,projectId:e.projectId,teamId:e.teamId};return this.logRange(r,t??{},"job")};this.getJobBuildLogs=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o,teamId:a}=e,d={entityId:o,projectId:r,teamId:a};return this.logRange(d,{...t,isBuild:!0},"job")};this.getAddonLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId};return this.logRange(r,t??{},"addon")};this.getAddonBackupLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId,teamId:e.teamId};return this.logRange(r,{...t,backupId:e.backupId},"addonBackup")};this.getAddonRestoresLogs=async n=>{let{parameters:e,options:t}=n,{teamId:r,projectId:o,addonId:a}=e,d={entityId:a,projectId:o,teamId:r},p={backupId:e.backupId,restoreId:e.restoreId};return this.logRange(d,{...t,...p},"addonRestore")};this.logRange=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,d={teamId:a,projectId:o,entityId:r,entityType:t,...e,queryType:"range"},l=await new ld(this.contextProvider,this.clientOpts).call(d);return l.error?l:{...l,data:l?.data?.map(Rd)}};this.tailServiceLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.serviceId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,t??{},"service")};this.tailServiceBuildLogs=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,d={entityId:r,projectId:o,teamId:a};return this.logTail(d,{...t,isBuild:!0},"service")};this.tailJobLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.jobId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,t??{},"job")};this.tailJobBuildLogs=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o}=e,a={entityId:o,projectId:r,teamId:e.teamId};return this.logTail(a,{...t,isBuild:!0},"job")};this.tailAddonLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,t??{},"addon")};this.tailAddonBackupLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId,teamId:e.teamId};return this.logTail(r,{...t,backupId:e.backupId},"addonBackup")};this.tailAddonRestoresLogs=async n=>{let{parameters:e,options:t}=n,r={entityId:e.addonId,projectId:e.projectId},o={backupId:e.backupId,restoreId:e.restoreId};return this.logTail(r,{...t,...o},"addonRestore")};this.logTail=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,d={queryType:"tail",teamId:a,projectId:o,entityId:r,entityType:t,...e};this.assertStartedWithNodejs();let p=this.contextProvider.getCurrentBaseUrl(!0),l=this.contextProvider.getCurrentToken();if(!l)throw new Error("API token not found");return new ee(p,d,l,this.clientOpts.dispatcher)};this.assertStartedWithNodejs=()=>{if(!N)throw new Error("Command exec only possible when started with nodejs")}}};var pd=class extends m{constructor(){super(...arguments);this.description="Fetch metrics entries over a specific time span";this.withAuth=!0;this.requiredPermissions="Account > Service | Job | Addon > General > Read";this.endpointUrl=e=>{let{teamId:t,projectId:r,entityId:o,entityType:a,deploymentId:d,runId:p,buildId:l,isBuild:c,queryType:f,metricTypes:g,startTime:h,endTime:y,duration:I,containerName:P,timestamp:C}=e,w=`/v1/${t!==void 0?`teams/${t}/`:""}projects/${r}/`;function E(){let k=c?"/build-metrics":"/metrics";switch(a){case"service":return`services/${o}${k}`;case"job":return`jobs/${o}${k}`;case"addon":return`addons/${o}${k}`;default:throw new Error(`Unexpected Northflank entity type received in metrics endpoint generation: ${a}`)}}let S=new URLSearchParams;return S.append("queryType",f),h!==void 0&&S.append("startTime",h.toISOString()),y!==void 0&&S.append("endTime",y.toISOString()),P!==void 0&&S.append("containerName",P),d!==void 0&&S.append("deploymentId",d),p!==void 0&&S.append("runId",p),l!==void 0&&S.append("buildId",l),C!==void 0&&S.append("timestamp",C.toISOString()),I!==void 0&&S.append("duration",I.toString()),g!==void 0&&g.forEach(k=>S.append("metricTypes",k)),`${w}${E()}?${S.toString()}`};this.body=()=>{}}};var Ml=i=>({metadata:i.metadata,data:i.data.map(n=>({value:n.value,ts:new Date(n.ts)}))}),vd=(f=>(f.Cpu="cpu",f.Memory="memory",f.NetworkIngress="networkIngress",f.NetworkEgress="networkEgress",f.TcpConnectionOpen="tcpConnectionsOpen",f.PvcUsage="diskUsage",f.Requests="requests",f.Http4xxResponses="http4xxResponses",f.Http5xxResponses="http5xxResponses",f.Bandwidth="bandwidth",f.BandwidthVolume="bandwidthVolume",f))(vd||{}),be=class{constructor(n,e={}){this.contextProvider=n;this.opts=e;this.getServiceMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,d={teamId:a,entityId:r,projectId:o};return this.metricsSingle(d,t??{},"service")};this.getServiceBuildMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,d={entityId:r,projectId:o,teamId:a};return this.metricsSingle(d,{...t,isBuild:!0},"service")};this.getJobMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:o,teamId:a}=e,d={entityId:r,projectId:o,teamId:a};return this.metricsSingle(d,t??{},"job")};this.getJobBuildMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:o,teamId:a}=e,d={entityId:r,projectId:o,teamId:a};return this.metricsSingle(d,{...t,isBuild:!0},"job")};this.getAddonMetrics=async n=>{let{parameters:e,options:t}=n,{addonId:r,projectId:o,teamId:a}=e,d={entityId:r,projectId:o,teamId:a};return this.metricsSingle(d,t??{},"addon")};this.metricsSingle=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,d={teamId:a,projectId:o,entityId:r,entityType:t,...e,queryType:"single"};return this.getMetrics(d)};this.getServiceMetricsRange=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:o,teamId:a}=e,d={entityId:r,projectId:o,teamId:a};return this.metricsRange(d,t??{},"service")};this.getServiceBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,serviceId:o,teamId:a}=e,d={entityId:o,projectId:r,teamId:a};return this.metricsRange(d,{...t,isBuild:!0},"service")};this.getJobMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o,teamId:a}=e,d={entityId:o,projectId:r,teamId:a};return this.metricsRange(d,t??{},"job")};this.getJobBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:o,teamId:a}=e,d={entityId:o,projectId:r,teamId:a};return this.metricsRange(d,{...t,isBuild:!0},"job")};this.getAddonMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,addonId:o,teamId:a}=e,d={entityId:o,projectId:r,teamId:a};return this.metricsRange(d,t??{},"addon")};this.metricsRange=async(n,e,t)=>{let{entityId:r,projectId:o,teamId:a}=n,d={teamId:a,projectId:o,entityId:r,entityType:t,...e,queryType:"range"};return this.getMetrics(d)};this.getMetrics=async n=>{let t=await new pd(this.contextProvider,this.opts).call(n);return t.error?t:{...t,data:Object.fromEntries(Object.entries(t.data).map(([r,o])=>[r,{...o,values:o.values.map(Ml)}]))}}}};var fe=class extends m{constructor(){super(...arguments);this.description="Gets information about the available addon types";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/addon-types";this.body=()=>{}}};var Ie=class extends m{constructor(){super(...arguments);this.description="Returns details about the authentication material used in this request.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/auth";this.body=()=>{}}};var he=class extends u{constructor(){super(...arguments);this.description="Lists the backup destinations saved to this account. Does not display secrets.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations`:t="/v1/backup-destinations";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ye=class extends s{constructor(){super(...arguments);this.description="Adds a new backup destination to this account.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations`:t="/v1/backup-destinations",t};this.body=e=>JSON.stringify(e.data)}};var Re=class extends m{constructor(){super(...arguments);this.description="View a backup destination, including secrets.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ce=class extends R{constructor(){super(...arguments);this.description="Updates a backup destination.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ve=class extends b{constructor(){super(...arguments);this.description="Delete a backup destination.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Pe=class extends u{constructor(){super(...arguments);this.description="Lists the backups associated with a backup destinations.";this.withAuth=!0;this.requiredPermissions="Account > Platform > BackupDestinations > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}/backups`;else if(e?.parameters&&"backupDestinationId"in e?.parameters&&e?.parameters?.backupDestinationId!==void 0)t=`/v1/backup-destinations/${encodeURIComponent(e.parameters.backupDestinationId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var we=class extends m{constructor(){super(...arguments);this.description="Gets the credit available to the account, by origin.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/credit-balance`:t="/v1/billing/credit-balance",t};this.body=()=>{}}};var Ae=class extends u{constructor(){super(...arguments);this.description="Lists finalized invoices.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/invoices`:t="/v1/billing/invoices";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Se=class extends m{constructor(){super(...arguments);this.description="Gets details about a given invoice.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/invoices/${encodeURIComponent(e.parameters.invoiceId)}`;else if(e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/billing/invoices/${encodeURIComponent(e.parameters.invoiceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ee=class extends u{constructor(){super(...arguments);this.description="Lists hourly usage entries.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/usage`:t="/v1/billing/usage";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ke=class extends m{constructor(){super(...arguments);this.description="Gets usage details for a given billing hour.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Billing > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/billing/usage/${encodeURIComponent(e.parameters.timestamp)}`;else if(e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/billing/usage/${encodeURIComponent(e.parameters.timestamp)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xe=class extends m{constructor(){super(...arguments);this.description="Lists supported cloud providers";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/cloud-providers";this.body=()=>{}}};var Ue=class extends u{constructor(){super(...arguments);this.description="Lists clusters for the authenticated user or team.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters`:t="/v1/cloud-providers/clusters";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var je=class extends s{constructor(){super(...arguments);this.description="Creates a new cluster.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters`:t="/v1/cloud-providers/clusters",t};this.body=e=>JSON.stringify(e.data)}};var Le=class extends v{constructor(){super(...arguments);this.description="Creates or update a cluster.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters`:t="/v1/cloud-providers/clusters",t};this.body=e=>JSON.stringify(e.data)}};var qe=class extends m{constructor(){super(...arguments);this.description="Get information about the given cluster";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Te=class extends R{constructor(){super(...arguments);this.description="Updates a cluster.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var De=class extends b{constructor(){super(...arguments);this.description="Delete the given cluster. Fails if the cluster has associated projects.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ge=class extends u{constructor(){super(...arguments);this.description="Get a list of nodes for the given cluster";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var $e=class extends s{constructor(){super(...arguments);this.description="Cordon a node on the cluster to prevent new pods from scheduling on it.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/cordon`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/cordon`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ne=class extends s{constructor(){super(...arguments);this.description="Drain a node by evicting all running pods.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/drain`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/drain`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Be=class extends s{constructor(){super(...arguments);this.description="Uncordon a node on the cluster if it was previously cordoned.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Clusters > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/uncordon`;else if(e?.parameters&&"clusterId"in e?.parameters&&e?.parameters?.clusterId!==void 0&&e?.parameters&&"nodeId"in e?.parameters&&e?.parameters?.nodeId!==void 0)t=`/v1/cloud-providers/clusters/${encodeURIComponent(e.parameters.clusterId)}/nodes/${encodeURIComponent(e.parameters.nodeId)}/uncordon`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Oe=class extends u{constructor(){super(...arguments);this.description="Lists integrations for the authenticated user or team.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations`:t="/v1/cloud-providers/integrations";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Me=class extends s{constructor(){super(...arguments);this.description="Creates a new integration.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations`:t="/v1/cloud-providers/integrations",t};this.body=e=>JSON.stringify(e.data)}};var _e=class extends v{constructor(){super(...arguments);this.description="Creates or updates a integration.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations`:t="/v1/cloud-providers/integrations",t};this.body=e=>JSON.stringify(e.data)}};var He=class extends m{constructor(){super(...arguments);this.description="Get information about the given integration";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else if(e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Je=class extends R{constructor(){super(...arguments);this.description="Updates a integration.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else if(e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Fe=class extends b{constructor(){super(...arguments);this.description="Delete the given integration. Fails if the integration is associated with existing clusters.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Integrations > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else if(e?.parameters&&"integrationId"in e?.parameters&&e?.parameters?.integrationId!==void 0)t=`/v1/cloud-providers/integrations/${encodeURIComponent(e.parameters.integrationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ve=class extends u{constructor(){super(...arguments);this.description="Lists supported cloud provider node types";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/cloud-providers/node-types${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var ze=class extends m{constructor(){super(...arguments);this.description="Lists required cloud provider permissions for the selected integration features";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/cloud-providers/permissions${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Ke=class extends u{constructor(){super(...arguments);this.description="Lists supported cloud provider regions";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/cloud-providers/regions${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var We=class extends u{constructor(){super(...arguments);this.description="Gets container snapshots belonging to the team.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/container-snapshots`:t="/v1/container-snapshots";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ye=class extends m{constructor(){super(...arguments);this.description="Gets a container snapshot.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else if(e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ze=class extends b{constructor(){super(...arguments);this.description="Soft-deletes an unreferenced terminal container snapshot.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else if(e?.parameters&&"snapshotId"in e?.parameters&&e?.parameters?.snapshotId!==void 0)t=`/v1/container-snapshots/${encodeURIComponent(e.parameters.snapshotId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Qe=class extends m{constructor(){super(...arguments);this.description="Lists the Directory Sync directory groups for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>"/v1/directory-groups";this.body=()=>{}}};var Xe=class extends u{constructor(){super(...arguments);this.description="Lists the users who are members of the org via a specific Directory Sync group.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Members > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/directory-groups/${encodeURIComponent(e.parameters.groupId)}/members${r}`};this.body=()=>{}}};var et=class extends m{constructor(){super(...arguments);this.description="Returns the partially random string used when generating host names for the authenticated account.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/dns-id`:t="/v1/dns-id",t};this.body=()=>{}}};var tt=class extends u{constructor(){super(...arguments);this.description="Lists available domains";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains`:t="/v1/domains";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var rt=class extends s{constructor(){super(...arguments);this.description="Registers a new domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains`:t="/v1/domains",t};this.body=e=>JSON.stringify(e.data)}};var nt=class extends m{constructor(){super(...arguments);this.description="Gets details about domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var at=class extends R{constructor(){super(...arguments);this.description="Update domain options such as minimum TLS protocol version";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ot=class extends b{constructor(){super(...arguments);this.description="Deletes a domain and each of its registered subdomains.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var it=class extends m{constructor(){super(...arguments);this.description="Retrieve certificate data for a domain to verify its contents.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/certificate`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/certificate`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var st=class extends s{constructor(){super(...arguments);this.description="Import a certificate for the domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/import`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/import`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var dt=class extends s{constructor(){super(...arguments);this.description="Adds a new subdomain to the domain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var lt=class extends v{constructor(){super(...arguments);this.description="Updates subdomain to the domain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var pt=class extends m{constructor(){super(...arguments);this.description="Gets details about the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var mt=class extends b{constructor(){super(...arguments);this.description="Removes a subdomain from a domain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ut=class extends s{constructor(){super(...arguments);this.description="Assigns a service port to the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ct=class extends b{constructor(){super(...arguments);this.description="Removes a subdomain from its assigned service";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var gt=class extends s{constructor(){super(...arguments);this.description="Removes the CDN integration from the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/disable`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/disable`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var bt=class extends s{constructor(){super(...arguments);this.description="Enables a CDN integration on the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/enable`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/enable`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ft=class extends s{constructor(){super(...arguments);this.description="Purges the CDN cache for the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/purge`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/cdn/purge`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var It=class extends s{constructor(){super(...arguments);this.description="Import a certificate for a subdomain of a domain using individual certificates.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/certificate/import`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/certificate/import`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ht=class extends R{constructor(){super(...arguments);this.description="Updates the geo routing configuration for a geo-routed subdomain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/geo-routing`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/geo-routing`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var yt=class extends s{constructor(){super(...arguments);this.description="Adds a new path to the subdomain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Rt=class extends m{constructor(){super(...arguments);this.description="List paths for a given subdomain.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ct=class extends m{constructor(){super(...arguments);this.description="Get subdomain path details.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var vt=class extends b{constructor(){super(...arguments);this.description="Delete a path.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Pt=class extends s{constructor(){super(...arguments);this.description="Update a subdomain path.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var wt=class extends s{constructor(){super(...arguments);this.description="Assign a subdomain path to a port.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var At=class extends b{constructor(){super(...arguments);this.description="Unassign a subdomain path to a port.";this.withAuth=!0;this.requiredPermissions="Account > Networking > SubdomainPaths > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0&&e?.parameters&&"subdomainPath"in e?.parameters&&e?.parameters?.subdomainPath!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/paths/${encodeURIComponent(e.parameters.subdomainPath)}/assign`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var St=class extends s{constructor(){super(...arguments);this.description="Gets details about the given subdomain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Subdomains > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/verify`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0&&e?.parameters&&"subdomain"in e?.parameters&&e?.parameters?.subdomain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/subdomains/${encodeURIComponent(e.parameters.subdomain)}/verify`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Et=class extends s{constructor(){super(...arguments);this.description="Attempts to verify the domain";this.withAuth=!0;this.requiredPermissions="Account > Networking > Domains > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/domains/${encodeURIComponent(e.parameters.domain)}/verify`;else if(e?.parameters&&"domain"in e?.parameters&&e?.parameters?.domain!==void 0)t=`/v1/domains/${encodeURIComponent(e.parameters.domain)}/verify`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var kt=class extends u{constructor(){super(...arguments);this.description="Gets a list of egress IPs belonging to the team";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips`:t="/v1/egress-ips";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xt=class extends s{constructor(){super(...arguments);this.description="Creates a new egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips`:t="/v1/egress-ips",t};this.body=e=>JSON.stringify(e.data)}};var Ut=class extends v{constructor(){super(...arguments);this.description="Creates or updates an egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips`:t="/v1/egress-ips",t};this.body=e=>JSON.stringify(e.data)}};var jt=class extends m{constructor(){super(...arguments);this.description="Gets information about the given egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else if(e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Lt=class extends R{constructor(){super(...arguments);this.description="Updates an egress IP";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else if(e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qt=class extends b{constructor(){super(...arguments);this.description="Deletes the given egress IP.";this.withAuth=!0;this.requiredPermissions="Account > Networking > EgressIps > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else if(e?.parameters&&"egressIpId"in e?.parameters&&e?.parameters?.egressIpId!==void 0)t=`/v1/egress-ips/${encodeURIComponent(e.parameters.egressIpId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Tt=class extends u{constructor(){super(...arguments);this.description="Lists customer-visible encryption configurations and the current encryption mode for the authenticated team or organization, including retained and legacy Vault configurations. Credentials and internal Northflank-managed configurations are never returned.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations`:t="/v1/encryption/configurations";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Dt=class extends s{constructor(){super(...arguments);this.description="Creates an inactive configuration after validating KMS access. GCP cross-project creation defers that check and returns a generated service-account email: grant it KMS access before activation. Requires customer-managed keys to be enabled.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations`:t="/v1/encryption/configurations",t};this.body=e=>JSON.stringify(e.data)}};var Gt=class extends m{constructor(){super(...arguments);this.description="Gets safe settings and activation state for a customer-visible encryption configuration. Credentials and key-verification material are never returned.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}`;else if(e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $t=class extends s{constructor(){super(...arguments);this.description="Revalidates KMS access and atomically selects this configuration for new encryption. Other configurations are retained for decryption. Repeated activation revalidates the selected configuration. Requires customer-managed keys to be enabled.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Manage";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/activate`;else if(e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/activate`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Nt=class extends s{constructor(){super(...arguments);this.description="Switches new encryption to Northflank-managed envelope encryption. Retains the old configuration for decryption and does not migrate existing data. Only the active configuration can be deactivated; repeated requests fail once it is inactive. Requires customer-managed keys to be enabled.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Manage";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/deactivate`;else if(e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/deactivate`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Bt=class extends v{constructor(){super(...arguments);this.description="Replaces all DEK rotation and cache overrides. Omitted values revert to platform defaults; send options={} to reset all overrides. Values must satisfy platform bounds. Requires customer-managed keys to be enabled.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Manage";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/options`;else if(e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/options`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ot=class extends v{constructor(){super(...arguments);this.description="Replaces key coordinates and credentials after validating them. The provider cannot change. Previously activated configurations must still reach the same key; unused configurations may change keys. DEK options are preserved and must be updated through the options endpoint. Requires customer-managed keys to be enabled.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Manage";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/settings`;else if(e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Mt=class extends s{constructor(){super(...arguments);this.description="Checks stored KMS settings without changing the configuration. A completed check returns ok=false on KMS failure. Legacy Vault configurations return ok=true without a KMS check.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/verify`;else if(e?.parameters&&"encryptionConfigurationId"in e?.parameters&&e?.parameters?.encryptionConfigurationId!==void 0)t=`/v1/encryption/configurations/${encodeURIComponent(e.parameters.encryptionConfigurationId)}/verify`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var _t=class extends s{constructor(){super(...arguments);this.description="Opts into Northflank-managed envelope encryption for new writes without supplying a customer KMS configuration. Repeated requests are a no-op once enabled. Existing data is unchanged; DEKs created after opt-in can later be migrated to a customer KMS. If a customer configuration is active, deactivate it to switch to Northflank-managed envelope encryption; no separate opt-in request is needed. Requires customer-managed keys to be enabled.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Manage";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/northflank-managed/activate`:t="/v1/encryption/northflank-managed/activate",t};this.body=()=>{}}};var Ht=class extends m{constructor(){super(...arguments);this.description="Returns wrapped-DEK counts for customer-visible configurations. Old keys must remain accessible while referenced. This does not count legacy non-envelope ciphertext.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Encryption > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/encryption/usage`:t="/v1/encryption/usage",t};this.body=()=>{}}};var Jt=class extends u{constructor(){super(...arguments);this.description="Lists the gradual rollout strategies belonging to the team, newest first.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies`:t="/v1/gradual-rollout-strategies";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ft=class extends s{constructor(){super(...arguments);this.description="Creates a new gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies`:t="/v1/gradual-rollout-strategies",t};this.body=e=>JSON.stringify(e.data)}};var Vt=class extends v{constructor(){super(...arguments);this.description="Creates or updates a gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies`:t="/v1/gradual-rollout-strategies",t};this.body=e=>JSON.stringify(e.data)}};var zt=class extends m{constructor(){super(...arguments);this.description="Gets details of the given gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else if(e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Kt=class extends R{constructor(){super(...arguments);this.description="Updates a gradual rollout strategy.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else if(e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Wt=class extends b{constructor(){super(...arguments);this.description="Deletes a gradual rollout strategy. Any services still using it are detached first, which redeploys them without the rollout. Because that redeploys services, this also requires service update permission. Fails if a rollout is in progress on any of those services.";this.withAuth=!0;this.requiredPermissions="Account > Platform > GradualRollouts > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else if(e?.parameters&&"gradualRolloutStrategyId"in e?.parameters&&e?.parameters?.gradualRolloutStrategyId!==void 0)t=`/v1/gradual-rollout-strategies/${encodeURIComponent(e.parameters.gradualRolloutStrategyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Yt=class extends u{constructor(){super(...arguments);this.description="Gets a list of audit log sinks defined on this entity.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks`:t="/v1/integrations/audit-log-sinks";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Zt=class extends s{constructor(){super(...arguments);this.description="Creates a new audit log sink.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks`:t="/v1/integrations/audit-log-sinks",t};this.body=e=>JSON.stringify(e.data)}};var Qt=class extends m{constructor(){super(...arguments);this.description="Gets details about a given audit log sink. Secrets are redacted.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else if(e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Xt=class extends v{constructor(){super(...arguments);this.description="Creates or fully replaces an audit log sink.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else if(e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var er=class extends R{constructor(){super(...arguments);this.description="Partially updates an audit log sink. Fields not included in the payload retain their existing values.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else if(e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var tr=class extends b{constructor(){super(...arguments);this.description="Soft-deletes the audit log sink.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else if(e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var rr=class extends s{constructor(){super(...arguments);this.description="Pauses exports for the audit log sink.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}/pause`;else if(e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var nr=class extends s{constructor(){super(...arguments);this.description="Resumes exports for a paused audit log sink.";this.withAuth=!0;this.requiredPermissions="Account > Admin > AuditLogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}/resume`;else if(e?.parameters&&"sinkId"in e?.parameters&&e?.parameters?.sinkId!==void 0)t=`/v1/integrations/audit-log-sinks/${encodeURIComponent(e.parameters.sinkId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ar=class extends u{constructor(){super(...arguments);this.description="Gets a list of log sinks added to this account.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks`:t="/v1/integrations/log-sinks";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var or=class extends s{constructor(){super(...arguments);this.description="Creates a new log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks`:t="/v1/integrations/log-sinks",t};this.body=e=>JSON.stringify(e.data)}};var ir=class extends m{constructor(){super(...arguments);this.description="Gets details about a given log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var sr=class extends b{constructor(){super(...arguments);this.description="Deletes a log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var dr=class extends s{constructor(){super(...arguments);this.description="Pauses a given log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/pause`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var lr=class extends s{constructor(){super(...arguments);this.description="Resumes a paused log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/resume`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var pr=class extends s{constructor(){super(...arguments);this.description="Updates the settings for a log sink.";this.withAuth=!0;this.requiredPermissions="Account > Observability > LogSinks > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/settings`;else if(e?.parameters&&"logSinkId"in e?.parameters&&e?.parameters?.logSinkId!==void 0)t=`/v1/integrations/log-sinks/${encodeURIComponent(e.parameters.logSinkId)}/settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var mr=class extends u{constructor(){super(...arguments);this.description="Lists notification integrations for the authenticated user, team or org.";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications`:t="/v1/integrations/notifications";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ur=class extends s{constructor(){super(...arguments);this.description="Create a new notification integration.";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications`:t="/v1/integrations/notifications",t};this.body=e=>JSON.stringify(e.data)}};var cr=class extends m{constructor(){super(...arguments);this.description="Get details about a notification integration.";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else if(e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var gr=class extends s{constructor(){super(...arguments);this.description="Updates a notification integration";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else if(e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var br=class extends b{constructor(){super(...arguments);this.description="Deletes a notification integration";this.withAuth=!0;this.requiredPermissions="Account > Observability > Notifications > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else if(e?.parameters&&"notificationId"in e?.parameters&&e?.parameters?.notificationId!==void 0)t=`/v1/integrations/notifications/${encodeURIComponent(e.parameters.notificationId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var fr=class extends u{constructor(){super(...arguments);this.description="Lists the container registry credentials saved to this account. Does not display secrets.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries`:t="/v1/integrations/registries";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ir=class extends s{constructor(){super(...arguments);this.description="Adds a new set of container registry credentials to this account.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries`:t="/v1/integrations/registries",t};this.body=e=>JSON.stringify(e.data)}};var hr=class extends m{constructor(){super(...arguments);this.description="Views a set of registry credential data.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else if(e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var yr=class extends R{constructor(){super(...arguments);this.description="Updates a set of registry credential data.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else if(e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Rr=class extends b{constructor(){super(...arguments);this.description="Deletes a set of registry credential data.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > Registries > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else if(e?.parameters&&"credentialId"in e?.parameters&&e?.parameters?.credentialId!==void 0)t=`/v1/integrations/registries/${encodeURIComponent(e.parameters.credentialId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Cr=class extends u{constructor(){super(...arguments);this.description="Lists the SSH identities saved to this account. Does not display SSH public keys.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities`:t="/v1/integrations/ssh-identities";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var vr=class extends s{constructor(){super(...arguments);this.description="Adds a new SSH identity to this account.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities`:t="/v1/integrations/ssh-identities",t};this.body=e=>JSON.stringify(e.data)}};var Pr=class extends m{constructor(){super(...arguments);this.description="Views SSH identity data including public keys.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var wr=class extends v{constructor(){super(...arguments);this.description="Creates or updates SSH identity data.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ar=class extends R{constructor(){super(...arguments);this.description="Updates SSH identity data.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Sr=class extends b{constructor(){super(...arguments);this.description="Deletes an SSH identity.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Ssh > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else if(e?.parameters&&"identityId"in e?.parameters&&e?.parameters?.identityId!==void 0)t=`/v1/integrations/ssh-identities/${encodeURIComponent(e.parameters.identityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Er=class extends m{constructor(){super(...arguments);this.description="Lists linked version control providers";this.withAuth=!0;this.requiredPermissions="Account > Git > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs`:t="/v1/integrations/vcs",t};this.body=()=>{}}};var kr=class extends s{constructor(){super(...arguments);this.description="Generate a token for a specific VCS link.";this.withAuth=!0;this.requiredPermissions="Account > Git > Tokens > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"customVCSId"in e?.parameters&&e?.parameters?.customVCSId!==void 0&&e?.parameters&&"vcsLinkId"in e?.parameters&&e?.parameters?.vcsLinkId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs/custom/${encodeURIComponent(e.parameters.customVCSId)}/token/${encodeURIComponent(e.parameters.vcsLinkId)}`;else if(e?.parameters&&"customVCSId"in e?.parameters&&e?.parameters?.customVCSId!==void 0&&e?.parameters&&"vcsLinkId"in e?.parameters&&e?.parameters?.vcsLinkId!==void 0)t=`/v1/integrations/vcs/custom/${encodeURIComponent(e.parameters.customVCSId)}/token/${encodeURIComponent(e.parameters.vcsLinkId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xr=class extends u{constructor(){super(...arguments);this.description="Gets a list of repositories accessible to this account";this.withAuth=!0;this.requiredPermissions="Account > Git > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs/repos`:t="/v1/integrations/vcs/repos";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ur=class extends u{constructor(){super(...arguments);this.description="Gets a list of branches for the repo";this.withAuth=!0;this.requiredPermissions="Account > Git > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"vcsService"in e?.parameters&&e?.parameters?.vcsService!==void 0&&e?.parameters&&"repositoryOwner"in e?.parameters&&e?.parameters?.repositoryOwner!==void 0&&e?.parameters&&"repositoryName"in e?.parameters&&e?.parameters?.repositoryName!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/integrations/vcs/repos/${encodeURIComponent(e.parameters.vcsService)}/${encodeURIComponent(e.parameters.repositoryOwner)}/${encodeURIComponent(e.parameters.repositoryName)}/branches`;else if(e?.parameters&&"vcsService"in e?.parameters&&e?.parameters?.vcsService!==void 0&&e?.parameters&&"repositoryOwner"in e?.parameters&&e?.parameters?.repositoryOwner!==void 0&&e?.parameters&&"repositoryName"in e?.parameters&&e?.parameters?.repositoryName!==void 0)t=`/v1/integrations/vcs/repos/${encodeURIComponent(e.parameters.vcsService)}/${encodeURIComponent(e.parameters.repositoryOwner)}/${encodeURIComponent(e.parameters.repositoryName)}/branches`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var jr=class extends u{constructor(){super(...arguments);this.description="Gets a list of load balancers belonging to the team";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers`:t="/v1/load-balancers";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Lr=class extends s{constructor(){super(...arguments);this.description="Creates a new load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers`:t="/v1/load-balancers",t};this.body=e=>JSON.stringify(e.data)}};var qr=class extends v{constructor(){super(...arguments);this.description="Creates or updates a load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers`:t="/v1/load-balancers",t};this.body=e=>JSON.stringify(e.data)}};var Tr=class extends m{constructor(){super(...arguments);this.description="Gets information about the given load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else if(e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Dr=class extends R{constructor(){super(...arguments);this.description="Updates a load balancer";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else if(e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Gr=class extends b{constructor(){super(...arguments);this.description="Deletes the given load balancer.";this.withAuth=!0;this.requiredPermissions="Account > Networking > LoadBalancers > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else if(e?.parameters&&"loadBalancerId"in e?.parameters&&e?.parameters?.loadBalancerId!==void 0)t=`/v1/load-balancers/${encodeURIComponent(e.parameters.loadBalancerId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $r=class extends s{constructor(){super(...arguments);this.description="Creates a new network policy for this account.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies`:t="/v1/network-policies",t};this.body=e=>JSON.stringify(e.data)}};var Nr=class extends m{constructor(){super(...arguments);this.description="Get details of a network policy.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else if(e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Br=class extends R{constructor(){super(...arguments);this.description="Updates an existing network policy.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else if(e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Or=class extends b{constructor(){super(...arguments);this.description="Deletes a network policy and removes all associated CNPs from the cluster.";this.withAuth=!0;this.requiredPermissions="Account > Networking > NetworkPolicies > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else if(e?.parameters&&"networkPolicyId"in e?.parameters&&e?.parameters?.networkPolicyId!==void 0)t=`/v1/network-policies/${encodeURIComponent(e.parameters.networkPolicyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Mr=class extends u{constructor(){super(...arguments);this.description="Gets a list of members belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Members > Read";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/org-members${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var _r=class extends u{constructor(){super(...arguments);this.description="Gets a list of platform roles for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/org-roles${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Hr=class extends s{constructor(){super(...arguments);this.description="Creates a new platform role for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>"/v1/org-roles";this.body=e=>JSON.stringify(e.data)}};var Jr=class extends v{constructor(){super(...arguments);this.description="Creates role or updates all user-editable fields on a platform role for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>"/v1/org-roles";this.body=e=>JSON.stringify(e.data)}};var Fr=class extends m{constructor(){super(...arguments);this.description="Gets details about a specific org platform role.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var Vr=class extends R{constructor(){super(...arguments);this.description="Partially updates a platform role for the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=e=>JSON.stringify(e.data)}};var zr=class extends b{constructor(){super(...arguments);this.description="Deletes a platform role from the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var Kr=class extends u{constructor(){super(...arguments);this.description="Gets a list of members assigned to a platform role in the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var Wr=class extends s{constructor(){super(...arguments);this.description="Adds a user to a platform role in the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members`);this.body=e=>JSON.stringify(e.data)}};var Yr=class extends b{constructor(){super(...arguments);this.description="Removes a user from a platform role in the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members/${encodeURIComponent(e.parameters.memberId)}`);this.body=()=>{}}};var Zr=class extends m{constructor(){super(...arguments);this.description="Lists available billing plans";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/plans";this.body=()=>{}}};var Qr=class extends u{constructor(){super(...arguments);this.description="Lists projects for the authenticated user or team.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects`:t="/v1/projects";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Xr=class extends s{constructor(){super(...arguments);this.description="Creates a new project.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects`:t="/v1/projects",t};this.body=e=>JSON.stringify(e.data)}};var en=class extends v{constructor(){super(...arguments);this.description="Creates or updates a project.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects`:t="/v1/projects",t};this.body=e=>JSON.stringify(e.data)}};var tn=class extends R{constructor(){super(...arguments);this.description="Updates a project.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var rn=class extends m{constructor(){super(...arguments);this.description="Get information about the given project";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var nn=class extends b{constructor(){super(...arguments);this.description="Delete the given project. Fails if the project isn't empty.";this.withAuth=!0;this.requiredPermissions="Project > Projects > Manage > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var re=class extends u{constructor(){super(...arguments);this.description="Gets a list of addons belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var an=class extends s{constructor(){super(...arguments);this.description="Creates a new addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var on=class extends v{constructor(){super(...arguments);this.description="Creates or updates an addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var sn=class extends m{constructor(){super(...arguments);this.description="Gets information about the given addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var dn=class extends R{constructor(){super(...arguments);this.description="Updates an addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ln=class extends b{constructor(){super(...arguments);this.description="Deletes the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var pn=class extends u{constructor(){super(...arguments);this.description="Gets details about an addon's backup schedules";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var mn=class extends s{constructor(){super(...arguments);this.description="Create a new backup schedule for an addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var un=class extends b{constructor(){super(...arguments);this.description="Deletes a backup schedule for an addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var cn=class extends u{constructor(){super(...arguments);this.description="Returns a list of backups for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var gn=class extends s{constructor(){super(...arguments);this.description="Initiates a backup for the given addon";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var bn=class extends m{constructor(){super(...arguments);this.description="Gets details about a given backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var fn=class extends b{constructor(){super(...arguments);this.description="Deletes a given backup";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var In=class extends s{constructor(){super(...arguments);this.description="Aborts the in progress backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var hn=class extends s{constructor(){super(...arguments);this.description="Aborts an in-progress backup restore.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort-restore`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/abort-restore`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var yn=class extends m{constructor(){super(...arguments);this.description="Generates a temporary download link for downloading the given backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read Spec";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/download-link`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/download-link`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Rn=class extends s{constructor(){super(...arguments);this.description="Restores the given addon to the given backup state.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restore`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restore`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Cn=class extends u{constructor(){super(...arguments);this.description="Gets a list of restores for the given backup.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restores`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/restores`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var vn=class extends s{constructor(){super(...arguments);this.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/retain`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/backups/${encodeURIComponent(e.parameters.backupId)}/retain`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Pn=class extends u{constructor(){super(...arguments);this.description="Gets a list of containers for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/containers`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/containers`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var wn=class extends m{constructor(){super(...arguments);this.description="Returns the credentials for connecting to the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read Spec";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/credentials`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/credentials`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var An=class extends s{constructor(){super(...arguments);this.description="Imports a database from an external archive or existing live database.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/import`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/import`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Sn=class extends s{constructor(){super(...arguments);this.description="Updates the network settings for the addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/network-settings`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/network-settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var En=class extends s{constructor(){super(...arguments);this.description="Pause the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var kn=class extends s{constructor(){super(...arguments);this.description="Reset the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/reset`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/reset`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var xn=class extends s{constructor(){super(...arguments);this.description="Restart the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restart`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restart`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Un=class extends u{constructor(){super(...arguments);this.description="Returns a list of restores for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restores`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/restores`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var jn=class extends s{constructor(){super(...arguments);this.description="Resume the given addon if it is paused.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ln=class extends s{constructor(){super(...arguments);this.description="Modifies the allocated resources for the given addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/scale`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/scale`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qn=class extends s{constructor(){super(...arguments);this.description="Starts a secret rotation for the given addon. New credentials are created with the same permissions; the old credentials remain valid until the rotation is finalised.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Tn=class extends s{constructor(){super(...arguments);this.description="Finalises an in-progress secret rotation for the given addon. The old credentials are permanently removed.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation/finalise`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/secret-rotation/finalise`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Dn=class extends s{constructor(){super(...arguments);this.description="Updates the security rules for the addon.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/security`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/security`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Gn=class extends m{constructor(){super(...arguments);this.description="Gets details about the current addon version including available upgrades and upgrade history.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $n=class extends s{constructor(){super(...arguments);this.description="Upgrades the addon to a new version.";this.withAuth=!0;this.requiredPermissions="Project > Addons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/addons/${encodeURIComponent(e.parameters.addonId)}/version`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Nn=class extends u{constructor(){super(...arguments);this.description="Gets a list of external addons belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Bn=class extends s{constructor(){super(...arguments);this.description="Creates a new external addon (third-party cloud resource provisioned via OpenTofu)";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var On=class extends m{constructor(){super(...arguments);this.description="Gets information about the given external addon";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Mn=class extends R{constructor(){super(...arguments);this.description="Updates configuration for an external addon";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var _n=class extends b{constructor(){super(...arguments);this.description="Deletes an external addon and destroys the associated cloud resource";this.withAuth=!0;this.requiredPermissions="Project > ExternalAddons > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"externalAddonId"in e?.parameters&&e?.parameters?.externalAddonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/external-addons/${encodeURIComponent(e.parameters.externalAddonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Hn=class extends u{constructor(){super(...arguments);this.description="Gets a list of harnesses belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Jn=class extends s{constructor(){super(...arguments);this.description="Creates a new harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Fn=class extends v{constructor(){super(...arguments);this.description="Creates or updates a harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Create";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Vn=class extends m{constructor(){super(...arguments);this.description="Gets information about the given harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var zn=class extends R{constructor(){super(...arguments);this.description="Updates a harness";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Kn=class extends b{constructor(){super(...arguments);this.description="Deletes the given harness.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Wn=class extends s{constructor(){super(...arguments);this.description="Pauses the given harness, scaling its deployment to zero.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Yn=class extends s{constructor(){super(...arguments);this.description="Restarts the given harness.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/restart`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/restart`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Zn=class extends s{constructor(){super(...arguments);this.description="Resumes the given harness, restoring its deployment.";this.withAuth=!0;this.requiredPermissions="Project > Harnesses > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"harnessId"in e?.parameters&&e?.parameters?.harnessId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/harnesses/${encodeURIComponent(e.parameters.harnessId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Qn=class extends u{constructor(){super(...arguments);this.description="Gets a list of jobs belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Xn=class extends s{constructor(){super(...arguments);this.description="Creates a new job (manual or cron based on settings.cron presence)";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ea=class extends v{constructor(){super(...arguments);this.description="Creates or updates a job (manual or cron based on settings.cron presence)";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ta=class extends s{constructor(){super(...arguments);this.description="Creates a new cron job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ra=class extends v{constructor(){super(...arguments);this.description="Creates or updates a cron job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var na=class extends R{constructor(){super(...arguments);this.description="Updates a cron job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/cron/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var aa=class extends s{constructor(){super(...arguments);this.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var oa=class extends v{constructor(){super(...arguments);this.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ia=class extends R{constructor(){super(...arguments);this.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/manual/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var sa=class extends m{constructor(){super(...arguments);this.description="Gets information about the given job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var da=class extends R{constructor(){super(...arguments);this.description="Updates a job (manual or cron based on current type and settings.cron)";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var la=class extends b{constructor(){super(...arguments);this.description="Deletes the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var pa=class extends u{constructor(){super(...arguments);this.description="Gets information about the branches of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/branches`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/branches`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ma=class extends u{constructor(){super(...arguments);this.description="Lists builds for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ua=class extends s{constructor(){super(...arguments);this.description="Start a new build for the given job. Given a commit sha, it will build that commit.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ca=class extends m{constructor(){super(...arguments);this.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ga=class extends s{constructor(){super(...arguments);this.description="Sets build arguments for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ba=class extends m{constructor(){super(...arguments);this.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-arguments/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var fa=class extends s{constructor(){super(...arguments);this.description="Updates the build options for a given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-options`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-options`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ia=class extends s{constructor(){super(...arguments);this.description="Updates the version control source for a given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-source`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build-source`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ha=class extends m{constructor(){super(...arguments);this.description="Gets information about a build for the job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ya=class extends b{constructor(){super(...arguments);this.description="Aborts the given job build";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ra=class extends u{constructor(){super(...arguments);this.description="Gets a list of containers for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > Deployment > View Observability";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/containers`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/containers`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ca=class extends m{constructor(){super(...arguments);this.description="Gets information about the deployment of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var va=class extends s{constructor(){super(...arguments);this.description="Updates the deployment settings of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Pa=class extends m{constructor(){super(...arguments);this.description="Lists the health checks for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var wa=class extends s{constructor(){super(...arguments);this.description="Updates health checks for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Aa=class extends s{constructor(){super(...arguments);this.description="Pause the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Sa=class extends u{constructor(){super(...arguments);this.description="Gets information about the pull-requests of the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pull-requests`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/pull-requests`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ea=class extends s{constructor(){super(...arguments);this.description="Resumes the given job. Optionally takes several arguments to override resumed settings.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ka=class extends u{constructor(){super(...arguments);this.description="Fetches run history for the given job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xa=class extends s{constructor(){super(...arguments);this.description="Starts a new job run for the given job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Run Job";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ua=class extends m{constructor(){super(...arguments);this.description="Returns data about the given job run";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ja=class extends b{constructor(){super(...arguments);this.description="Aborts the given job run";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var La=class extends m{constructor(){super(...arguments);this.description="Returns the runtime environment for the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var qa=class extends s{constructor(){super(...arguments);this.description="Sets the runtime environment for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ta=class extends m{constructor(){super(...arguments);this.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Jobs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/runtime-environment/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Da=class extends s{constructor(){super(...arguments);this.description="Modifies the scaling settings for the given job.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/scale`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/scale`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ga=class extends s{constructor(){super(...arguments);this.description="Updates settings for the job";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/settings`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/settings`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var $a=class extends s{constructor(){super(...arguments);this.description="Modify cron job to toggle suspending of its schedule.";this.withAuth=!0;this.requiredPermissions="Project > Jobs > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/suspend`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"jobId"in e?.parameters&&e?.parameters?.jobId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/jobs/${encodeURIComponent(e.parameters.jobId)}/suspend`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Na=class extends u{constructor(){super(...arguments);this.description="Lists all AI models for a project";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ba=class extends s{constructor(){super(...arguments);this.description="Create an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Oa=class extends m{constructor(){super(...arguments);this.description="Gets details about an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ma=class extends s{constructor(){super(...arguments);this.description="Updates an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var _a=class extends b{constructor(){super(...arguments);this.description="Delete an AI model";this.withAuth=!0;this.requiredPermissions="Project > AiModels > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"llmModelDeploymentId"in e?.parameters&&e?.parameters?.llmModelDeploymentId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/llm-model-deployments/${encodeURIComponent(e.parameters.llmModelDeploymentId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ha=class extends u{constructor(){super(...arguments);this.description="Lists all pipelines for a project";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ja=class extends m{constructor(){super(...arguments);this.description="Get details about a pipeline";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Fa=class extends u{constructor(){super(...arguments);this.description="Get information about the given preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Va=class extends s{constructor(){super(...arguments);this.description="Update a given preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var za=class extends u{constructor(){super(...arguments);this.description="Get a list of active preview environments for a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ka=class extends b{constructor(){super(...arguments);this.description="Delete a preview environment generated by a preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews/${encodeURIComponent(e.parameters.previewId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/previews/${encodeURIComponent(e.parameters.previewId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Wa=class extends s{constructor(){super(...arguments);this.description="Run the given preview template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ya=class extends u{constructor(){super(...arguments);this.description="Get a list of preview template runs";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Za=class extends m{constructor(){super(...arguments);this.description="Get information about the given preview template run.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/preview-envs/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Qa=class extends m{constructor(){super(...arguments);this.description="Gets details about a release flow";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Xa=class extends s{constructor(){super(...arguments);this.description="Updates a release flow";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var eo=class extends s{constructor(){super(...arguments);this.description="Runs a given release flow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var to=class extends u{constructor(){super(...arguments);this.description="Lists runs of a release flow";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ro=class extends m{constructor(){super(...arguments);this.description="Get information about the given release flow run";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var no=class extends s{constructor(){super(...arguments);this.description="Abort the given release flow run";this.withAuth=!0;this.requiredPermissions="Project > Pipelines > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"pipelineId"in e?.parameters&&e?.parameters?.pipelineId!==void 0&&e?.parameters&&"stage"in e?.parameters&&e?.parameters?.stage!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/pipelines/${encodeURIComponent(e.parameters.pipelineId)}/release-flows/${encodeURIComponent(e.parameters.stage)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ao=class extends u{constructor(){super(...arguments);this.description="Lists all preview blueprints for a project";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var oo=class extends s{constructor(){super(...arguments);this.description="Create a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var io=class extends m{constructor(){super(...arguments);this.description="Gets details about a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var so=class extends s{constructor(){super(...arguments);this.description="Updates a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var lo=class extends b{constructor(){super(...arguments);this.description="Delete a preview blueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var po=class extends u{constructor(){super(...arguments);this.description="Get a list of active previews for a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var mo=class extends b{constructor(){super(...arguments);this.description="Delete a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PipelinesV2 > Previews > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var uo=class extends s{constructor(){super(...arguments);this.description="Pause a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PipelinesV2 > Previews > Pause";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var co=class extends s{constructor(){super(...arguments);this.description="Reset the expiry of a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/reset`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/reset`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var go=class extends s{constructor(){super(...arguments);this.description="Resume a preview environment generated by a preview blueprint.";this.withAuth=!0;this.requiredPermissions="Project > PipelinesV2 > Previews > Resume";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"previewId"in e?.parameters&&e?.parameters?.previewId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/previews/${encodeURIComponent(e.parameters.previewId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var bo=class extends s{constructor(){super(...arguments);this.description="Runs a given preview blueprint with given arguments. This endpoint can be used as part of a CI pipeline to automatically create a preview environment.";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Start";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var fo=class extends u{constructor(){super(...arguments);this.description="Lists runs of a previewBlueprint";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Io=class extends m{constructor(){super(...arguments);this.description="Get information about the given preview blueprint run";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ho=class extends s{constructor(){super(...arguments);this.description="Abort the given preview blueprint run";this.withAuth=!0;this.requiredPermissions="Project > PreviewBlueprints > Runs > Abort";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"previewBlueprintId"in e?.parameters&&e?.parameters?.previewBlueprintId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/preview-blueprints/${encodeURIComponent(e.parameters.previewBlueprintId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var yo=class extends u{constructor(){super(...arguments);this.description="Gets a list of project secrets belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Secrets > SecretGroups > List";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ro=class extends s{constructor(){super(...arguments);this.description="Creates a project secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Project > Secrets > SecretGroups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Co=class extends v{constructor(){super(...arguments);this.description="Creates or updates a project secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Project > Secrets > SecretGroups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var vo=class extends R{constructor(){super(...arguments);this.description="Updates a project secret with the specified payload";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Po=class extends m{constructor(){super(...arguments);this.description="View a project secret including its contents";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var wo=class extends b{constructor(){super(...arguments);this.description="Delete a project secret";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ao=class extends s{constructor(){super(...arguments);this.description="Update a project secret";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var So=class extends s{constructor(){super(...arguments);this.description="Link an addon to a project secret or edit the settings of the linked addon.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Eo=class extends m{constructor(){super(...arguments);this.description="Get details about a given addon link.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ko=class extends b{constructor(){super(...arguments);this.description="Unlinks an addon from the project secret.";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0&&e?.parameters&&"addonId"in e?.parameters&&e?.parameters?.addonId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/addons/${encodeURIComponent(e.parameters.addonId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var xo=class extends m{constructor(){super(...arguments);this.description="View a project secret with details about its linked addons";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ne=class extends u{constructor(){super(...arguments);this.description="Gets a list of services belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Uo=class extends s{constructor(){super(...arguments);this.description="Creates a new build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var jo=class extends v{constructor(){super(...arguments);this.description="Creates or updates a build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Lo=class extends R{constructor(){super(...arguments);this.description="Updates a build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/build/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/build/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qo=class extends s{constructor(){super(...arguments);this.description="Creates a new combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var To=class extends v{constructor(){super(...arguments);this.description="Creates or updates a combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Do=class extends R{constructor(){super(...arguments);this.description="Updates a combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/combined/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Go=class extends s{constructor(){super(...arguments);this.description="Creates a new deployment service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var $o=class extends v{constructor(){super(...arguments);this.description="Creates or updates a deployment service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var No=class extends R{constructor(){super(...arguments);this.description="Updates a deployment service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/deployment/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Bo=class extends m{constructor(){super(...arguments);this.description="Gets information about the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Oo=class extends b{constructor(){super(...arguments);this.description="Deletes the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Delete";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Mo=class extends u{constructor(){super(...arguments);this.description="Gets information about the branches of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/branches`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/branches`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var _o=class extends u{constructor(){super(...arguments);this.description="Lists the builds for the service";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ho=class extends s{constructor(){super(...arguments);this.description="Start a new build for the given combined or build service. Git build services require a branch or pull request. Bundle build services require a bundle URL and accept an optional branch and revision.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Jo=class extends m{constructor(){super(...arguments);this.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Fo=class extends s{constructor(){super(...arguments);this.description="Sets the build arguments for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Vo=class extends m{constructor(){super(...arguments);this.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-arguments/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var zo=class extends b{constructor(){super(...arguments);this.description="Clears the build cache of a given combined or build service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-cache`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-cache`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ko=class extends s{constructor(){super(...arguments);this.description="Updates the build options for a given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-options`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-options`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Wo=class extends s{constructor(){super(...arguments);this.description="Updates the version control source for a given build or combined service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-source`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build-source`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Yo=class extends m{constructor(){super(...arguments);this.description="Gets information about a build for the service";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Zo=class extends b{constructor(){super(...arguments);this.description="Aborts the given service build";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"buildId"in e?.parameters&&e?.parameters?.buildId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/build/${encodeURIComponent(e.parameters.buildId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Qo=class extends u{constructor(){super(...arguments);this.description="Gets a list of containers for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/containers`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/containers`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Xo=class extends m{constructor(){super(...arguments);this.description="Gets information about the deployment of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ei=class extends s{constructor(){super(...arguments);this.description="Updates the deployment settings of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ti=class extends u{constructor(){super(...arguments);this.description="Lists the deployments of the given service, newest first. For services using a gradual rollout strategy each deployment also reports the release type it was created as.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployments`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/deployments`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ri=class extends m{constructor(){super(...arguments);this.description="Lists the health checks for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ni=class extends s{constructor(){super(...arguments);this.description="Updates health checks for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/health-checks`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ai=class extends s{constructor(){super(...arguments);this.description="Pause the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pause`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pause`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var oi=class extends m{constructor(){super(...arguments);this.description="Lists the per-replica statefulSet volumes for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ii=class extends b{constructor(){super(...arguments);this.description="Fully deletes a removed per-replica statefulSet volume for the given service: all of its orphaned PVCs and the volume definition. The volume must first be removed from the service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var si=class extends b{constructor(){super(...arguments);this.description="Deletes one orphaned per-replica statefulSet volume PVC \u2014 a scaled-down ordinal, or a replica of a removed volume. Replicas still bound to a running instance are refused with 409.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"ordinal"in e?.parameters&&e?.parameters?.ordinal!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}/replica/${encodeURIComponent(e.parameters.ordinal)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"ordinal"in e?.parameters&&e?.parameters?.ordinal!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/per-replica-volumes/volume/${encodeURIComponent(e.parameters.volumeId)}/replica/${encodeURIComponent(e.parameters.ordinal)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var di=class extends m{constructor(){super(...arguments);this.description="Lists the ports for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var li=class extends s{constructor(){super(...arguments);this.description="Updates the list of ports for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/ports`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var pi=class extends u{constructor(){super(...arguments);this.description="Gets information about the pull-requests of the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pull-requests`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/pull-requests`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var mi=class extends s{constructor(){super(...arguments);this.description="Restarts the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/restart`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/restart`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ui=class extends s{constructor(){super(...arguments);this.description="Resumes the given service. Optionally takes several arguments to override resumed settings.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/resume`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/resume`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ci=class extends m{constructor(){super(...arguments);this.description="Gets the active gradual rollout of the given service, including the traffic configuration, the stable and canary deployments, and previous traffic configurations.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var gi=class extends s{constructor(){super(...arguments);this.description="Updates the traffic split of the active gradual rollout. Only percentage based rollouts can be reconfigured. Setting the canary to 100% promotes the rollout.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/configuration`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/configuration`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var bi=class extends s{constructor(){super(...arguments);this.description="Promotes the canary deployment of the active gradual rollout to stable, routing all traffic to it. This is idempotent: promoting an already promoted rollout succeeds without changing anything.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/promote`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/promote`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var fi=class extends s{constructor(){super(...arguments);this.description="Ends the active gradual rollout and redeploys the service from a previous deployment. Use the list service deployments endpoint to find the deployment to roll back to.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/rollback`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/rollout/rollback`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ii=class extends m{constructor(){super(...arguments);this.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var hi=class extends s{constructor(){super(...arguments);this.description="Sets the runtime environment for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var yi=class extends m{constructor(){super(...arguments);this.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'";this.withAuth=!0;this.requiredPermissions="Project > Secrets > Services > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment/details`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/runtime-environment/details`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ri=class extends s{constructor(){super(...arguments);this.description="Modifies the scaling settings for the given service.";this.withAuth=!0;this.requiredPermissions="Project > Services > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/scale`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/scale`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ci=class extends s{constructor(){super(...arguments);this.description="Schedules a snapshot of a running deployment service pod. When no pod is provided, the service must have exactly one eligible pod. Repeated requests for an active pod return the existing snapshot.";this.withAuth=!0;this.requiredPermissions="Account > Platform > ContainerSnapshots > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/snapshots`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"serviceId"in e?.parameters&&e?.parameters?.serviceId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/services/${encodeURIComponent(e.parameters.serviceId)}/snapshots`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var vi=class extends u{constructor(){super(...arguments);this.description="Gets a list of volumes belonging to the project";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Pi=class extends s{constructor(){super(...arguments);this.description="Creates a volume with the specified payload";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var wi=class extends m{constructor(){super(...arguments);this.description="Retrieve a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ai=class extends s{constructor(){super(...arguments);this.description="Update volume mounts and storage size";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Si=class extends b{constructor(){super(...arguments);this.description="Deletes this volume and its associated data.";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ei=class extends s{constructor(){super(...arguments);this.description="Attach a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/attach`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/attach`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ki=class extends u{constructor(){super(...arguments);this.description="Gets details about a volume's backup schedules";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xi=class extends s{constructor(){super(...arguments);this.description="Create a new snapshot backup schedule for a volume.";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ui=class extends b{constructor(){super(...arguments);this.description="Deletes a snapshot backup schedule for a volume.";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"scheduleId"in e?.parameters&&e?.parameters?.scheduleId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backup-schedules/${encodeURIComponent(e.parameters.scheduleId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var ji=class extends u{constructor(){super(...arguments);this.description="Get list of backups associated with a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Li=class extends s{constructor(){super(...arguments);this.description="Initiates a backup for a given volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qi=class extends m{constructor(){super(...arguments);this.description="Get details for a specific volume backup";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ti=class extends b{constructor(){super(...arguments);this.description="Delete the volume backup";this.withAuth=!0;this.requiredPermissions="Project > Volumes > Backups > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0&&e?.parameters&&"backupId"in e?.parameters&&e?.parameters?.backupId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/backups/${encodeURIComponent(e.parameters.backupId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Di=class extends s{constructor(){super(...arguments);this.description="Detach a volume";this.withAuth=!0;this.requiredPermissions="Project > Volumes > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/detach`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"volumeId"in e?.parameters&&e?.parameters?.volumeId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/volumes/${encodeURIComponent(e.parameters.volumeId)}/detach`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Gi=class extends u{constructor(){super(...arguments);this.description="Lists all workflows for a project";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var $i=class extends s{constructor(){super(...arguments);this.description="Create a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Ni=class extends m{constructor(){super(...arguments);this.description="Gets details about a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Bi=class extends s{constructor(){super(...arguments);this.description="Updates a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Oi=class extends s{constructor(){super(...arguments);this.description="Runs a given workflow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Start";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Mi=class extends u{constructor(){super(...arguments);this.description="Lists runs of a workflow";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var _i=class extends m{constructor(){super(...arguments);this.description="Get information about the given workflow run";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Hi=class extends s{constructor(){super(...arguments);this.description="Abort the given workflow run";this.withAuth=!0;this.requiredPermissions="Project > Workflows > Runs > Abort";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else if(e?.parameters&&"projectId"in e?.parameters&&e?.parameters?.projectId!==void 0&&e?.parameters&&"workflowId"in e?.parameters&&e?.parameters?.workflowId!==void 0&&e?.parameters&&"runId"in e?.parameters&&e?.parameters?.runId!==void 0)t=`/v1/projects/${encodeURIComponent(e.parameters.projectId)}/workflows/${encodeURIComponent(e.parameters.workflowId)}/runs/${encodeURIComponent(e.parameters.runId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ji=class extends m{constructor(){super(...arguments);this.description="Lists available project regions";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/regions";this.body=()=>{}}};var Fi=class extends u{constructor(){super(...arguments);this.description="Gets a list of global secrets";this.withAuth=!0;this.requiredPermissions="Account > GlobalSecrets > Secrets > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets`:t="/v1/secrets";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Vi=class extends s{constructor(){super(...arguments);this.description="Creates a global secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Account > GlobalSecrets > Secrets > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets`:t="/v1/secrets",t};this.body=e=>JSON.stringify(e.data)}};var zi=class extends v{constructor(){super(...arguments);this.description="Creates or updates a global secret with the specified payload";this.withAuth=!0;this.requiredPermissions="Account > GlobalSecrets > Secrets > Create";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets`:t="/v1/secrets";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Ki=class extends R{constructor(){super(...arguments);this.description="Updates a global secret with the specified payload";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Wi=class extends m{constructor(){super(...arguments);this.description="Get a global secret including its contents";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Yi=class extends b{constructor(){super(...arguments);this.description="Delete a global secret";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Zi=class extends s{constructor(){super(...arguments);this.description="Runs the templates configured under the global secret\u2019s dependents (when enabled).";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Run";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/secrets/${encodeURIComponent(e.parameters.secretId)}/trigger-dependents`;else if(e?.parameters&&"secretId"in e?.parameters&&e?.parameters?.secretId!==void 0)t=`/v1/secrets/${encodeURIComponent(e.parameters.secretId)}/trigger-dependents`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Qi=class extends u{constructor(){super(...arguments);this.description="List the resource tags for this entity.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags`:t="/v1/tags";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Xi=class extends s{constructor(){super(...arguments);this.description="Add a new resource tag for this entity.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags`:t="/v1/tags",t};this.body=e=>JSON.stringify(e.data)}};var es=class extends v{constructor(){super(...arguments);this.description="Update or create a resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags`:t="/v1/tags",t};this.body=e=>JSON.stringify(e.data)}};var ts=class extends m{constructor(){super(...arguments);this.description="View details for a given resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else if(e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var rs=class extends R{constructor(){super(...arguments);this.description="Patch a resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else if(e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ns=class extends b{constructor(){super(...arguments);this.description="Delete a resource tag.";this.withAuth=!0;this.requiredPermissions="Account > Platform > Tags > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else if(e?.parameters&&"resourceTagId"in e?.parameters&&e?.parameters?.resourceTagId!==void 0)t=`/v1/tags/${encodeURIComponent(e.parameters.resourceTagId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var as=class extends s{constructor(){super(...arguments);this.description="Creates a new team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Create";this.endpointUrl=e=>"/v1/teams";this.body=e=>JSON.stringify(e.data)}};var os=class extends u{constructor(){super(...arguments);this.description="Gets a list of teams belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Read";this.endpointUrl=e=>{let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0);return`/v1/teams${t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:""}`};this.body=()=>{}}};var is=class extends m{constructor(){super(...arguments);this.description="Gets information about a team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Read";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}`);this.body=()=>{}}};var ss=class extends R{constructor(){super(...arguments);this.description="Updates the description of a team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Update";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}`);this.body=e=>JSON.stringify(e.data)}};var ds=class extends b{constructor(){super(...arguments);this.description="Deletes a team belonging to the authenticated org.";this.withAuth=!0;this.requiredPermissions="Organisation > Team > General > Delete";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}`);this.body=()=>{}}};var ls=class extends u{constructor(){super(...arguments);this.description="Gets a list of members belonging to a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Members > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members${r}`};this.body=()=>{}}};var ps=class extends s{constructor(){super(...arguments);this.description="Invites a user to a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Members > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members`);this.body=e=>JSON.stringify(e.data)}};var ms=class extends b{constructor(){super(...arguments);this.description="Removes a member from a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Members > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members/${encodeURIComponent(e.parameters.memberId)}`);this.body=()=>{}}};var us=class extends u{constructor(){super(...arguments);this.description="Gets a list of platform roles for a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles${r}`};this.body=()=>{}}};var cs=class extends s{constructor(){super(...arguments);this.description="Creates a new platform role for a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles`);this.body=e=>JSON.stringify(e.data)}};var gs=class extends v{constructor(){super(...arguments);this.description="Creates role or updates all user-editable fields on a platform role.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles`);this.body=e=>JSON.stringify(e.data)}};var bs=class extends m{constructor(){super(...arguments);this.description="Gets details about a specific platform role.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Read";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var fs=class extends R{constructor(){super(...arguments);this.description="Updates a platform role for a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=e=>JSON.stringify(e.data)}};var Is=class extends b{constructor(){super(...arguments);this.description="Deletes a platform role from a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}`);this.body=()=>{}}};var hs=class extends u{constructor(){super(...arguments);this.description="Gets a list of members assigned to a platform role in a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Read";this.endpointUrl=e=>{[].forEach(o=>{if(e?.parameters?.[o]===void 0)throw new Error(`Required argument not set: '${o}'`)});let t=Object.entries(e?.options??{}).filter(o=>o[1]!==void 0),r=t.length>0?`?${t.map(o=>`${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var ys=class extends s{constructor(){super(...arguments);this.description="Adds a user to a platform role in a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members`);this.body=e=>JSON.stringify(e.data)}};var Rs=class extends b{constructor(){super(...arguments);this.description="Removes a user from a platform role in a team.";this.withAuth=!0;this.requiredPermissions="Account > Admin > Roles > Manage";this.endpointUrl=e=>([].forEach(t=>{if(e?.parameters?.[t]===void 0)throw new Error(`Required argument not set: '${t}'`)}),`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members/${encodeURIComponent(e.parameters.memberId)}`);this.body=()=>{}}};var Cs=class extends u{constructor(){super(...arguments);this.description="Get a list of templates";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates`:t="/v1/templates";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var vs=class extends s{constructor(){super(...arguments);this.description="Create a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Create";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;return e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates`:t="/v1/templates",t};this.body=e=>JSON.stringify(e.data)}};var Ps=class extends u{constructor(){super(...arguments);this.description="Get information about the given template.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var ws=class extends s{constructor(){super(...arguments);this.description="Update a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var As=class extends b{constructor(){super(...arguments);this.description="Delete a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ss=class extends s{constructor(){super(...arguments);this.description="Moves state from another OpenTofu node in the same team to a node in this template. The state will be removed from the source node as such running the source node again may recreate resources.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/opentofu/import-state`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/opentofu/import-state`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var Es=class extends s{constructor(){super(...arguments);this.description="Run a template";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Run";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var ks=class extends u{constructor(){super(...arguments);this.description="Get a list of template runs";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var xs=class extends m{constructor(){super(...arguments);this.description="Get information about the given template run.";this.withAuth=!0;this.requiredPermissions="Account > Templates > General > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Us=class extends s{constructor(){super(...arguments);this.description="Abort the given template run.";this.withAuth=!0;this.requiredPermissions="Account > Templates > Runs > Abort";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}/abort`;else if(e?.parameters&&"templateId"in e?.parameters&&e?.parameters?.templateId!==void 0&&e?.parameters&&"templateRunId"in e?.parameters&&e?.parameters?.templateRunId!==void 0)t=`/v1/templates/${encodeURIComponent(e.parameters.templateId)}/runs/${encodeURIComponent(e.parameters.templateRunId)}/abort`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var js=class extends u{constructor(){super(...arguments);this.description="Lists API tokens belonging to the authenticated org or team, newest first. Only active tokens are returned unless the `all` query parameter is set.";this.withAuth=!0;this.requiredPermissions="Account > Admin > ApiTokens > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tokens`:t="/v1/tokens";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ls=class extends s{constructor(){super(...arguments);this.description="Creates a new key for an API token and sets all other keys to expire.";this.withAuth=!0;this.requiredPermissions="Account > Admin > ApiTokens > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys`;else if(e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0)t=`/v1/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=e=>JSON.stringify(e.data)}};var qs=class extends b{constructor(){super(...arguments);this.description="Removes a key from an API token.";this.withAuth=!0;this.requiredPermissions="Account > Admin > ApiTokens > Update";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0&&e?.parameters&&"keyId"in e?.parameters&&e?.parameters?.keyId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys/${encodeURIComponent(e.parameters.keyId)}`;else if(e?.parameters&&"tokenId"in e?.parameters&&e?.parameters?.tokenId!==void 0&&e?.parameters&&"keyId"in e?.parameters&&e?.parameters?.keyId!==void 0)t=`/v1/tokens/${encodeURIComponent(e.parameters.tokenId)}/keys/${encodeURIComponent(e.parameters.keyId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var Ts=class extends u{constructor(){super(...arguments);this.description="Lists the workload identities saved to this account.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Read";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities`:t="/v1/workload-identities";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=()=>{}}};var Ds=class extends s{constructor(){super(...arguments);this.description="Creates a new workload identity on this account. For managed roles using automatic provider setup, installation of the cloud resources is triggered automatically unless `noInstall=true` is passed.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Create";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0?t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities`:t="/v1/workload-identities";let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Gs=class extends m{constructor(){super(...arguments);this.description="Retrieves a workload identity by ID.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Read";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else if(e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var $s=class extends R{constructor(){super(...arguments);this.description="Updates a workload identity. For managed roles using automatic provider setup, installation of the cloud resources is triggered automatically unless `noInstall=true` is passed.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Update";this.endpointUrl=e=>{[].forEach(a=>{if(e?.parameters?.[a]===void 0)throw new Error(`Required argument not set: '${a}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else if(e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");let r=Object.entries(e?.options??{}).filter(a=>a[1]!==void 0),o=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${o}`};this.body=e=>JSON.stringify(e.data)}};var Ns=class extends b{constructor(){super(...arguments);this.description="Deletes a workload identity.";this.withAuth=!0;this.requiredPermissions="Account > Cloud > WorkloadIdentities > Delete";this.endpointUrl=e=>{[].forEach(r=>{if(e?.parameters?.[r]===void 0)throw new Error(`Required argument not set: '${r}'`)});let t;if(e?.parameters&&"teamId"in e?.parameters&&e?.parameters?.teamId!==void 0&&e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else if(e?.parameters&&"workloadIdentityId"in e?.parameters&&e?.parameters?.workloadIdentityId!==void 0)t=`/v1/workload-identities/${encodeURIComponent(e.parameters.workloadIdentityId)}`;else throw new Error("No matching endpoint URL found for provided parameters");return t};this.body=()=>{}}};var z=class{constructor(){this.resourceContext={};this.hasResourceContext=!1}loadContext(){this.contextWrapper=this.loadContextWrapper()}getInfo(){return""}storeContext(n){this.writeContext(n),this.contextWrapper=n}addContext(n,e=!0){if(this.loadContext(),!e&&this.findContext(n.name)!==void 0)throw new Error(`Context with name ${n.name} already exists`);this.removeContext(n.name);let t={host:"https://api.northflank.com",...n},{contextWrapper:r}=this,o={current:t.name,contexts:[...r.contexts,t],lastUpdateCheck:r.lastUpdateCheck};this.storeContext(o)}removeContext(n){this.loadContext();let{contextWrapper:e}=this,t=e.contexts.filter(a=>a.name!==n),o={current:e.current===n?void 0:e.current,contexts:[...t],lastUpdateCheck:e.lastUpdateCheck};this.storeContext(o)}getCurrentContext(){let n=this.contextWrapper?.current;return n===void 0?n:this.findContext(n)}findContext(n){return this.contextWrapper.contexts.find(e=>e.name===n)}getCurrentBaseUrl(n){let e=this.getCurrentContext();if(n===!0&&!e?.host)throw new Error(`Context (${e?.name}) doesn't have a target API host. Please login again.`);return e?.host}getCurrentProjectName(){return this.hasResourceContext?this.resourceContext.project:this.getCurrentContext()?.project}getCurrentTeamName(){return this.hasResourceContext?this.resourceContext.team:this.getCurrentContext()?.team}getCurrentName(){return this.getCurrentContext()?.name}getCurrentToken(){return this.getCurrentContext()?.token}getCurrentServiceName(){return this.hasResourceContext?this.resourceContext.service:this.getCurrentContext()?.service}getCurrentJobName(){return this.hasResourceContext?this.resourceContext.job:this.getCurrentContext()?.job}getCurrentAddonName(){return this.hasResourceContext?this.resourceContext.addon:this.getCurrentContext()?.addon}getCurrentVolumeName(){return this.hasResourceContext?this.resourceContext.volume:this.getCurrentContext()?.volume}getCurrentHarnessName(){return this.hasResourceContext?this.resourceContext.harness:this.getCurrentContext()?.harness}setResourceContext(n,e){this.resourceContext={...n},this.resourceContextSource=e,this.hasResourceContext=!0}getResourceContext(){return{...this.resourceContext}}getResourceContextSource(){return this.resourceContextSource}getTokenScope(){let n=this.getCurrentContext();if(n===void 0)return;let e=n?.tokenScope;if(e!==void 0)return e;let t=a=>{try{let p=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(Buffer.from(p,"base64").toString("utf8"))}catch{return}};if(n?.token===void 0)return;let o=t(n.token)?.entityType??"team";return this.updateContext({...n,tokenScope:o}),o}getCurrentPlanId(){return this.getCurrentContext()?.plan}getCurrentRegion(){return this.getCurrentContext()?.region}useContext(n){if(this.loadContext(),!this.findContext(n))throw new Error(`Context with name ${n} doesn't exist`);let{contextWrapper:e}=this,t={...e,current:n};this.storeContext(t)}updateContext(n){if(this.loadContext(),!this.findContext(n.name))throw new Error(`Context with name ${n.name} doesn't exist`);let e=this.contextWrapper.contexts.map(r=>r.name===n.name?{...r,...n}:r),t={...this.contextWrapper,contexts:e};this.storeContext(t)}updateToken(n,e){this.loadContext();let t=e??this.getCurrentName(),r=this.findContext(t);if(!r)throw new Error(`Context with name ${e} doesn't exist`);this.updateContext({...r,token:n})}useProjectId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set project id to current context, current context not defined");let t={...e,project:n};this.addContext(t)}useServiceId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set service id to current context, current context not defined");let t={...e,service:n};this.addContext(t)}useJobId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set job id to current context, current context not defined");let t={...e,job:n};this.addContext(t)}usePlanId(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set plan id to current context, current context not defined");let t={...e,plan:n};this.addContext(t)}useRegion(n){this.loadContext();let e=this.getCurrentContext();if(e===void 0)throw new Error("Failed to set region id to current context, current context not defined");let t={...e,region:n};this.addContext(t)}getLastUpdateCheck(){return this.contextWrapper.lastUpdateCheck||new Date}setLastUpdateCheck(n){this.loadContext();let{contextWrapper:e}=this,t={...e,lastUpdateCheck:n};this.storeContext(t)}};var Bs=class extends z{constructor(){super();this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)};this.loadContext()}loadContextWrapper(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper}writeContext(e){this.inMemoryContextWrapper=e}};var pl=["NF_API_TOKEN","NORTHFLANK_API_TOKEN"],ml=["NF_API_BASE_URL","NORTHFLANK_API_BASE_URL","NF_API_ENDPOINT","NORTHFLANK_API_ENDPOINT","NF_API_HOST","NORTHFLANK_API_HOST"],Pd=()=>typeof process>"u"?{}:process.env;function ul(i,n,e){let t=n.map(o=>({name:o,value:i[o]?.trim()})).filter(o=>!!o.value);if(new Set(t.map(({value:o})=>o)).size>1)throw new Error(`Conflicting ${e} environment variables are set: ${t.map(({name:o})=>o).join(", ")}`);return t[0]?.value}function _l(i){let e=/^[a-z][a-z\d+.-]*:\/\//i.test(i)?i:`https://${i}`,t;try{t=new URL(e)}catch{throw new Error("Invalid Northflank API endpoint configured in the environment")}if(t.protocol!=="https:"&&t.protocol!=="http:")throw new Error("Northflank API endpoint must use http or https");if(t.username||t.password)throw new Error("Northflank API endpoint must not contain credentials");if(t.search||t.hash)throw new Error("Northflank API endpoint must not contain a query string or fragment");return t.toString().replace(/\/+$/,"")}var wd=class extends Bs{static hasEnvironmentToken(n=Pd()){return pl.some(e=>!!n[e]?.trim())}static hasEnvironmentHost(n=Pd()){return ml.some(e=>!!n[e]?.trim())}constructor(n={}){super();let e=n.environment??Pd(),t=ul(e,pl,"API token");if(!t)throw new Error("ApiClientEnvironmentContextProvider requires NF_API_TOKEN or NORTHFLANK_API_TOKEN");let r=ul(e,ml,"API endpoint"),o=_l(r??n.defaultHost??"https://api.northflank.com");this.addContext({name:n.contextName?.trim()||"environment",token:t,host:o})}getInfo(){return"API context loaded from environment variables; changes are not persisted."}};var Os=x(require("fs")),cl=x(require("os"));var Ad=class extends z{constructor(e){super();this.assertDir=e=>{try{Os.default.existsSync(e)||Os.default.mkdirSync(e,{recursive:!0})}catch(t){throw console.log(`Failed to login, local files could not be created: ${e}, error: ${t.message}`),t}};this.configPath=e||`${cl.default.homedir()}/.northflank`,this.configFile=`${this.configPath}/config.json`,this.loadContext()}loadContextWrapper(){let e;try{e=Os.default.readFileSync(this.configFile,"utf8")}catch(t){if(t.code==="ENOENT")return{contexts:[],lastUpdateCheck:new Date(0)};throw new Error(`Failed to read config file ${this.configFile}: ${t.message}`)}try{return JSON.parse(e)}catch(t){throw new Error(`Config file ${this.configFile} contains invalid JSON: ${t.message}`)}}writeContext(e){this.assertConfigDir();try{Os.default.writeFileSync(this.configFile,JSON.stringify(e,null," "),{mode:416})}catch(t){throw console.log(`Failed to persist api context, local files could not be created, error: ${t.message}`),t}}assertConfigDir(){this.assertDir(this.configPath)}getInfo(){return`Cli config stored in: ${this.configPath}`}};var Sd=class{constructor(n,e={}){this.baseUrl=()=>this.contextProvider.getCurrentBaseUrl();this.contextProvider=n,this.forwarding=new pe(n,new ne(n,e),new re(n,e),e.dispatcher),this.exec=new ue(n,e.dispatcher),this.logs=new ge(n,e),this.metrics=new be(n,e),this.fileCopy=new ce(this.exec),this.endpoints={get:(()=>{let t={};return t.addon=(()=>{let r=new sn(n,e);return r.types=new fe(n,e),r.backupSchedules=new pn(n,e),r.backups=new cn(n,e),r.backup=(()=>{let o=new bn(n,e);return o.download=new yn(n,e),o.restores=new Cn(n,e),o})(),r.containers=new Pn(n,e),r.credentials=new wn(n,e),r.restores=new Un(n,e),r.version=new Gn(n,e),r})(),t.auth=new Ie(n,e),t.backupDestination=new Re(n,e),t.creditBalance=new we(n,e),t.invoice=new Se(n,e),t.usage=new ke(n,e),t.cloud=(()=>{let r={};return r.cluster=new qe(n,e),r.integration=new He(n,e),r})(),t.containerSnapshot=new Ye(n,e),t.orgDirectoryGroups=new Qe(n,e),t.dnsId=new et(n,e),t.domain=new nt(n,e),t.domainCertificate=new it(n,e),t.subdomain=(()=>{let r=new pt(n,e);return r.path=new Ct(n,e),r})(),t.egressIp=new jt(n,e),t.encryption=(()=>{let r={};return r.configuration=new Gt(n,e),r.configurations=(()=>{let o={};return o.usage=new Ht(n,e),o})(),r})(),t.gradualRolloutStrategy=new zt(n,e),t.auditLogSink=new Qt(n,e),t.logSink=new ir(n,e),t.notification=new cr(n,e),t.registryCredentials=new hr(n,e),t.sshIdentities=new Pr(n,e),t.loadBalancer=new Tr(n,e),t.networkPolicy=new Nr(n,e),t.orgRole=new Fr(n,e),t.project=new rn(n,e),t.externalAddon=new On(n,e),t.harness=new Vn(n,e),t.job=(()=>{let r=new sa(n,e);return r.branches=new pa(n,e),r.builds=new ma(n,e),r.buildArguments=new ca(n,e),r.buildArgumentDetails=new ba(n,e),r.build=new ha(n,e),r.containers=new Ra(n,e),r.deployment=new Ca(n,e),r.healthChecks=new Pa(n,e),r.pullRequests=new Sa(n,e),r.runs=new ka(n,e),r.run=new Ua(n,e),r.runtimeEnvironment=new La(n,e),r.runtimeEnvironmentDetails=new Ta(n,e),r})(),t.llmModelDeployment=new Oa(n,e),t.pipeline=new Ja(n,e),t.previewTemplate=new Fa(n,e),t.previewTemplateRun=new Za(n,e),t.releaseFlow=new Qa(n,e),t.releaseFlowRun=new ro(n,e),t.previewBlueprint=new io(n,e),t.previewBlueprintRun=new Io(n,e),t.secret=new Po(n,e),t.secretLink=new Eo(n,e),t.secretDetails=new xo(n,e),t.service=(()=>{let r=new Bo(n,e);return r.branches=new Mo(n,e),r.builds=new _o(n,e),r.buildArguments=new Jo(n,e),r.buildArgumentDetails=new Vo(n,e),r.build=new Yo(n,e),r.containers=new Qo(n,e),r.deployment=new Xo(n,e),r.healthChecks=new ri(n,e),r.perReplicaVolumes=new oi(n,e),r.ports=new di(n,e),r.pullRequests=new pi(n,e),r.rollout=new ci(n,e),r.runtimeEnvironment=new Ii(n,e),r.runtimeEnvironmentDetails=new yi(n,e),r})(),t.volume=(()=>{let r=new wi(n,e);return r.backupSchedules=new ki(n,e),r.backups=new ji(n,e),r.backup=new qi(n,e),r})(),t.workflow=new Ni(n,e),t.workflowRun=new _i(n,e),t.globalSecret=new Wi(n,e),t.tag=new ts(n,e),t.team=new is(n,e),t.teamRole=new bs(n,e),t.template=new Ps(n,e),t.templateRun=new xs(n,e),t.workloadIdentities=new Gs(n,e),t})(),list:(()=>{let t={};return t.backupDestinations=new he(n,e),t.backupDestinationsBackups=new Pe(n,e),t.invoices=new Ae(n,e),t.usage=new Ee(n,e),t.cloud=(()=>{let r={};return r.providers=new xe(n,e),r.clusters=new Ue(n,e),r.cluster=(()=>{let o={};return o.nodes=new Ge(n,e),o})(),r.integrations=new Oe(n,e),r.nodeTypes=new Ve(n,e),r.permissions=new ze(n,e),r.regions=new Ke(n,e),r})(),t.containerSnapshots=new We(n,e),t.orgDirectoryGroupMembers=new Xe(n,e),t.domains=new tt(n,e),t.subdomain=(()=>{let r={};return r.path=new Rt(n,e),r})(),t.egressIps=new kt(n,e),t.encryption=(()=>{let r={};return r.configurations=new Tt(n,e),r})(),t.gradualRolloutStrategies=new Jt(n,e),t.auditLogSinks=new Yt(n,e),t.logSinks=new ar(n,e),t.notifications=new mr(n,e),t.registryCredentials=new fr(n,e),t.sshIdentities=new Cr(n,e),t.vcs=new Er(n,e),t.repos=new xr(n,e),t.branches=new Ur(n,e),t.loadBalancers=new jr(n,e),t.orgMembers=new Mr(n,e),t.orgRoles=new _r(n,e),t.orgRoleMembers=new Kr(n,e),t.plans=new Zr(n,e),t.projects=new Qr(n,e),t.addons=new re(n,e),t.externalAddons=new Nn(n,e),t.harnesses=new Hn(n,e),t.jobs=new Qn(n,e),t.llmModelDeployments=new Na(n,e),t.pipelines=new Ha(n,e),t.pipelineTemplatePreviews=new za(n,e),t.previewTemplateRuns=new Ya(n,e),t.releaseFlowRuns=new to(n,e),t.previewBlueprints=new ao(n,e),t.blueprintTemplatePreviews=new po(n,e),t.previewBlueprintRuns=new fo(n,e),t.secrets=new yo(n,e),t.services=new ne(n,e),t.service=(()=>{let r={};return r.deployments=new ti(n,e),r})(),t.volumes=new vi(n,e),t.workflows=new Gi(n,e),t.workflowRuns=new Mi(n,e),t.regions=new Ji(n,e),t.globalSecrets=new Fi(n,e),t.tags=new Qi(n,e),t.teams=new os(n,e),t.teamMembers=new ls(n,e),t.teamRoles=new us(n,e),t.teamRoleMembers=new hs(n,e),t.templates=new Cs(n,e),t.templateRuns=new ks(n,e),t.apiTokens=new js(n,e),t.workloadIdentities=new Ts(n,e),t})(),add:(()=>{let t={};return t.backupDestination=new ye(n,e),t.domain=(()=>{let r={};return r.subdomain=new dt(n,e),r})(),t.subdomain=(()=>{let r={};return r.path=new yt(n,e),r})(),t.registryCredentials=new Ir(n,e),t.sshIdentities=new vr(n,e),t.tag=new Xi(n,e),t})(),patch:(()=>{let t={};return t.backupDestination=new Ce(n,e),t.cloud=(()=>{let r={};return r.cluster=new Te(n,e),r.integration=new Je(n,e),r})(),t.egressIp=new Lt(n,e),t.gradualRolloutStrategy=new Kt(n,e),t.auditLogSink=new er(n,e),t.loadBalancer=new Dr(n,e),t.networkPolicy=new Br(n,e),t.orgRole=new Vr(n,e),t.project=new tn(n,e),t.addon=new dn(n,e),t.harness=new zn(n,e),t.job=(()=>{let r=new da(n,e);return r.cron=new na(n,e),r.manual=new ia(n,e),r})(),t.secret=new vo(n,e),t.service=(()=>{let r={};return r.build=new Lo(n,e),r.combined=new Do(n,e),r.deployment=new No(n,e),r})(),t.globalSecret=new Ki(n,e),t.tag=new rs(n,e),t.team=new ss(n,e),t.teamRole=new fs(n,e),t})(),delete:(()=>{let t={};return t.backupDestination=new ve(n,e),t.cloud=(()=>{let r={};return r.cluster=new De(n,e),r.integration=new Fe(n,e),r})(),t.containerSnapshot=new Ze(n,e),t.domain=new ot(n,e),t.subdomain=(()=>{let r=new mt(n,e);return r.path=new vt(n,e),r})(),t.egressIp=new qt(n,e),t.gradualRolloutStrategy=new Wt(n,e),t.auditLogSink=new tr(n,e),t.logSink=new sr(n,e),t.notification=new br(n,e),t.registryCredentials=new Rr(n,e),t.sshIdentities=new Sr(n,e),t.loadBalancer=new Gr(n,e),t.networkPolicy=new Or(n,e),t.orgRole=new zr(n,e),t.orgRoleMember=new Yr(n,e),t.project=new nn(n,e),t.addon=(()=>{let r=new ln(n,e);return r.backupSchedule=new un(n,e),r})(),t.backup=new fn(n,e),t.externalAddon=new _n(n,e),t.harness=new Kn(n,e),t.job=new la(n,e),t.llmModelDeployment=new _a(n,e),t.pipelineTemplatePreview=new Ka(n,e),t.previewBlueprint=new lo(n,e),t.blueprintTemplatePreview=new mo(n,e),t.secret=new wo(n,e),t.secretLink=new ko(n,e),t.service=(()=>{let r=new Oo(n,e);return r.perReplicaVolumeGroup=new ii(n,e),r.perReplicaVolume=new si(n,e),r})(),t.volume=(()=>{let r=new Si(n,e);return r.backupSchedule=new Ui(n,e),r.backup=new Ti(n,e),r})(),t.globalSecret=new Yi(n,e),t.tag=new ns(n,e),t.team=new ds(n,e),t.teamMember=new ms(n,e),t.teamRole=new Is(n,e),t.teamRoleMember=new Rs(n,e),t.template=new As(n,e),t.apiTokenKey=new qs(n,e),t.workloadIdentities=new Ns(n,e),t})(),create:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new je(n,e),r.integration=new Me(n,e),r})(),t.domain=new rt(n,e),t.egressIp=new xt(n,e),t.encryption=(()=>{let r={};return r.configuration=new Dt(n,e),r})(),t.gradualRolloutStrategy=new Ft(n,e),t.auditLogSink=new Zt(n,e),t.logSink=new or(n,e),t.notification=new ur(n,e),t.customVcs=(()=>{let r={};return r.token=new kr(n,e),r})(),t.loadBalancer=new Lr(n,e),t.networkPolicy=new $r(n,e),t.orgRole=new Hr(n,e),t.orgRoleMember=new Wr(n,e),t.project=new Xr(n,e),t.addon=(()=>{let r=new an(n,e);return r.backupSchedule=new mn(n,e),r})(),t.externalAddon=new Bn(n,e),t.harness=new Jn(n,e),t.job=(()=>{let r=new Xn(n,e);return r.cron=new ta(n,e),r.manual=new aa(n,e),r})(),t.llmModelDeployment=new Ba(n,e),t.previewBlueprint=new oo(n,e),t.secret=new Ro(n,e),t.service=(()=>{let r={};return r.build=new Uo(n,e),r.combined=new qo(n,e),r.deployment=new Go(n,e),r})(),t.containerSnapshot=new Ci(n,e),t.volume=(()=>{let r=new Pi(n,e);return r.backupSchedule=new xi(n,e),r})(),t.workflow=new $i(n,e),t.globalSecret=new Vi(n,e),t.team=new as(n,e),t.teamMemberInvite=new ps(n,e),t.teamRole=new cs(n,e),t.teamRoleMember=new ys(n,e),t.template=new vs(n,e),t.workloadIdentities=new Ds(n,e),t})(),put:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new Le(n,e),r.integration=new _e(n,e),r})(),t.domain=(()=>{let r={};return r.subdomain=new lt(n,e),r})(),t.egressIp=new Ut(n,e),t.gradualRolloutStrategy=new Vt(n,e),t.auditLogSink=new Xt(n,e),t.sshIdentities=new wr(n,e),t.loadBalancer=new qr(n,e),t.orgRole=new Jr(n,e),t.project=new en(n,e),t.addon=new on(n,e),t.harness=new Fn(n,e),t.job=(()=>{let r=new ea(n,e);return r.cron=new ra(n,e),r.manual=new oa(n,e),r})(),t.secret=new Co(n,e),t.service=(()=>{let r={};return r.build=new jo(n,e),r.combined=new To(n,e),r.deployment=new $o(n,e),r})(),t.globalSecret=new zi(n,e),t.tag=new es(n,e),t.teamRole=new gs(n,e),t})(),cordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=new $e(n,e),o})(),r})(),t})(),drain:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=new Ne(n,e),o})(),r})(),t})(),uncordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=new Be(n,e),o})(),r})(),t})(),update:(()=>{let t={};return t.domain=new at(n,e),t.subdomain=(()=>{let r={};return r.geoRouting=new ht(n,e),r.path=new Pt(n,e),r})(),t.encryption=(()=>{let r={};return r.configuration=(()=>{let o={};return o.options=new Bt(n,e),o.settings=new Ot(n,e),o})(),r})(),t.logSink=new pr(n,e),t.notification=new gr(n,e),t.registryCredentials=new yr(n,e),t.sshIdentities=new Ar(n,e),t.addon=(()=>{let r={};return r.networkSettings=new Sn(n,e),r.security=new Dn(n,e),r.version=new $n(n,e),r})(),t.externalAddon=new Mn(n,e),t.job=(()=>{let r={};return r.buildArguments=new ga(n,e),r.buildOptions=new fa(n,e),r.buildSource=new Ia(n,e),r.deployment=new va(n,e),r.healthChecks=new wa(n,e),r.runtimeEnvironment=new qa(n,e),r.settings=new Ga(n,e),r})(),t.llmModelDeployment=new Ma(n,e),t.previewTemplate=new Va(n,e),t.releaseFlow=new Xa(n,e),t.previewBlueprint=new so(n,e),t.secret=new Ao(n,e),t.secretLink=new So(n,e),t.service=(()=>{let r={};return r.buildArguments=new Fo(n,e),r.buildOptions=new Ko(n,e),r.buildSource=new Wo(n,e),r.deployment=new ei(n,e),r.healthChecks=new ni(n,e),r.ports=new li(n,e),r.rollout=(()=>{let o={};return o.configuration=new gi(n,e),o})(),r.runtimeEnvironment=new hi(n,e),r})(),t.volume=new Ai(n,e),t.workflow=new Bi(n,e),t.template=new ws(n,e),t.workloadIdentities=new $s(n,e),t})(),import:(()=>{let t={};return t.domainCertificate=new st(n,e),t.subdomainCertificate=new It(n,e),t.addon=(()=>{let r={};return r.backup=new An(n,e),r})(),t.template=(()=>{let r={};return r.state=new Ss(n,e),r})(),t})(),assign:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.service=new ut(n,e),r.path=new wt(n,e),r})(),t})(),unassign:(()=>{let t={};return t.subdomain=(()=>{let r=new ct(n,e);return r.path=new At(n,e),r})(),t})(),disable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new gt(n,e),r})(),t})(),enable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new bt(n,e),r})(),t})(),purge:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new ft(n,e),r})(),t})(),verify:(()=>{let t={};return t.subdomain=new St(n,e),t.domain=new Et(n,e),t.encryption=(()=>{let r={};return r.configuration=new Mt(n,e),r})(),t})(),activate:(()=>{let t={};return t.encryption=(()=>{let r={};return r.configuration=new $t(n,e),r.northflankManaged=new _t(n,e),r})(),t})(),deactivate:(()=>{let t={};return t.encryption=(()=>{let r={};return r.configuration=new Nt(n,e),r})(),t})(),pause:(()=>{let t={};return t.auditLogSink=new rr(n,e),t.logSink=new dr(n,e),t.addon=new En(n,e),t.harness=new Wn(n,e),t.job=new Aa(n,e),t.blueprintTemplatePreview=new uo(n,e),t.service=new ai(n,e),t})(),resume:(()=>{let t={};return t.auditLogSink=new nr(n,e),t.logSink=new lr(n,e),t.addon=new jn(n,e),t.harness=new Zn(n,e),t.job=new Ea(n,e),t.blueprintTemplatePreview=new go(n,e),t.service=new ui(n,e),t})(),backup:(()=>{let t={};return t.addon=new gn(n,e),t.volume=new Li(n,e),t})(),abort:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new In(n,e),r.restore=new hn(n,e),r})(),t.job=(()=>{let r={};return r.build=new ya(n,e),r.run=new ja(n,e),r})(),t.releaseFlowRun=new no(n,e),t.previewBlueprintRun=new ho(n,e),t.service=(()=>{let r={};return r.build=new Zo(n,e),r})(),t.workflowRun=new Hi(n,e),t.templateRun=new Us(n,e),t})(),restore:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Rn(n,e),r})(),t})(),retain:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new vn(n,e),r})(),t})(),reset:(()=>{let t={};return t.addon=new kn(n,e),t.blueprintTemplatePreview=new co(n,e),t.service=(()=>{let r={};return r.buildCache=new zo(n,e),r})(),t})(),restart:(()=>{let t={};return t.addon=new xn(n,e),t.harness=new Yn(n,e),t.service=new mi(n,e),t})(),scale:(()=>{let t={};return t.addon=new Ln(n,e),t.job=new Da(n,e),t.service=new Ri(n,e),t})(),start:(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=new qn(n,e),r})(),t.job=(()=>{let r={};return r.build=new ua(n,e),r.run=new xa(n,e),r})(),t.service=(()=>{let r={};return r.build=new Ho(n,e),r})(),t})(),finalise:(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=new Tn(n,e),r})(),t})(),suspend:(()=>{let t={};return t.job=new $a(n,e),t})(),run:(()=>{let t={};return t.previewTemplate=new Wa(n,e),t.releaseFlow=new eo(n,e),t.previewBlueprint=new bo(n,e),t.workflow=new Oi(n,e),t.template=new Es(n,e),t})(),promote:(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=new bi(n,e),r})(),t})(),rollback:(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=new fi(n,e),r})(),t})(),attach:(()=>{let t={};return t.volume=new Ei(n,e),t})(),detach:(()=>{let t={};return t.volume=new Di(n,e),t})(),trigger:(()=>{let t={};return t.globalSecret=(()=>{let r={};return r.dependents=new Zi(n,e),r})(),t})(),rotate:(()=>{let t={};return t.apiTokenKey=new Ls(n,e),t})(),download:(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.fileCopy.downloadServiceFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.downloadServiceFileStream.bind(this.fileCopy),r})(),t.job=(()=>{let r={};return r.files=this.fileCopy.downloadJobFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.downloadJobFileStream.bind(this.fileCopy),r})(),t})(),upload:(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.fileCopy.uploadServiceFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.uploadServiceFileStream.bind(this.fileCopy),r})(),t.job=(()=>{let r={};return r.files=this.fileCopy.uploadJobFiles.bind(this.fileCopy),r.fileStream=this.fileCopy.uploadJobFileStream.bind(this.fileCopy),r})(),t})()},this.download=(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.endpoints.download.service.files,r})(),t.job=(()=>{let r={};return r.files=this.endpoints.download.job.files,r})(),t})(),this.upload=(()=>{let t={};return t.service=(()=>{let r={};return r.files=this.endpoints.upload.service.files,r})(),t.job=(()=>{let r={};return r.files=this.endpoints.upload.job.files,r})(),t})(),this.get=(()=>{let t={};return t.addon=(()=>{let r=this.endpoints.get.addon.call;return r.types=this.endpoints.get.addon.types.call,r.backupSchedules=(()=>{let o=this.endpoints.get.addon.backupSchedules.call;return o.all=this.endpoints.get.addon.backupSchedules.all,o})(),r.backups=(()=>{let o=this.endpoints.get.addon.backups.call;return o.all=this.endpoints.get.addon.backups.all,o})(),r.backup=(()=>{let o=this.endpoints.get.addon.backup.call;return o.download=this.endpoints.get.addon.backup.download.call,o.restores=(()=>{let a=this.endpoints.get.addon.backup.restores.call;return a.all=this.endpoints.get.addon.backup.restores.all,a})(),o.logs=this.logs.getAddonBackupLogs,o.logTail=this.logs.tailAddonBackupLogs,o})(),r.containers=(()=>{let o=this.endpoints.get.addon.containers.call;return o.all=this.endpoints.get.addon.containers.all,o})(),r.credentials=this.endpoints.get.addon.credentials.call,r.restores=(()=>{let o=(()=>{let a=this.endpoints.get.addon.restores.call;return a.all=this.endpoints.get.addon.restores.all,a})();return o.logs=this.logs.getAddonRestoresLogs,o.logTail=this.logs.tailAddonRestoresLogs,o})(),r.version=this.endpoints.get.addon.version.call,r.logs=this.logs.getAddonLogs,r.logTail=this.logs.tailAddonLogs,r.metrics=this.metrics.getAddonMetrics,r.metricsRange=this.metrics.getAddonMetricsRange,r})(),t.auth=this.endpoints.get.auth.call,t.backupDestination=this.endpoints.get.backupDestination.call,t.creditBalance=this.endpoints.get.creditBalance.call,t.invoice=this.endpoints.get.invoice.call,t.usage=this.endpoints.get.usage.call,t.cloud=(()=>{let r={};return r.cluster=this.endpoints.get.cloud.cluster.call,r.integration=this.endpoints.get.cloud.integration.call,r})(),t.containerSnapshot=this.endpoints.get.containerSnapshot.call,t.orgDirectoryGroups=this.endpoints.get.orgDirectoryGroups.call,t.dnsId=this.endpoints.get.dnsId.call,t.domain=this.endpoints.get.domain.call,t.domainCertificate=this.endpoints.get.domainCertificate.call,t.subdomain=(()=>{let r=this.endpoints.get.subdomain.call;return r.path=this.endpoints.get.subdomain.path.call,r})(),t.egressIp=this.endpoints.get.egressIp.call,t.encryption=(()=>{let r={};return r.configuration=this.endpoints.get.encryption.configuration.call,r.configurations=(()=>{let o={};return o.usage=this.endpoints.get.encryption.configurations.usage.call,o})(),r})(),t.gradualRolloutStrategy=this.endpoints.get.gradualRolloutStrategy.call,t.auditLogSink=this.endpoints.get.auditLogSink.call,t.logSink=this.endpoints.get.logSink.call,t.notification=this.endpoints.get.notification.call,t.registryCredentials=this.endpoints.get.registryCredentials.call,t.sshIdentities=this.endpoints.get.sshIdentities.call,t.loadBalancer=this.endpoints.get.loadBalancer.call,t.networkPolicy=this.endpoints.get.networkPolicy.call,t.orgRole=this.endpoints.get.orgRole.call,t.project=this.endpoints.get.project.call,t.externalAddon=this.endpoints.get.externalAddon.call,t.harness=this.endpoints.get.harness.call,t.job=(()=>{let r=this.endpoints.get.job.call;return r.branches=(()=>{let o=this.endpoints.get.job.branches.call;return o.all=this.endpoints.get.job.branches.all,o})(),r.builds=(()=>{let o=this.endpoints.get.job.builds.call;return o.all=this.endpoints.get.job.builds.all,o})(),r.buildArguments=this.endpoints.get.job.buildArguments.call,r.buildArgumentDetails=this.endpoints.get.job.buildArgumentDetails.call,r.build=this.endpoints.get.job.build.call,r.containers=(()=>{let o=this.endpoints.get.job.containers.call;return o.all=this.endpoints.get.job.containers.all,o})(),r.deployment=this.endpoints.get.job.deployment.call,r.healthChecks=this.endpoints.get.job.healthChecks.call,r.pullRequests=(()=>{let o=this.endpoints.get.job.pullRequests.call;return o.all=this.endpoints.get.job.pullRequests.all,o})(),r.runs=(()=>{let o=this.endpoints.get.job.runs.call;return o.all=this.endpoints.get.job.runs.all,o})(),r.run=this.endpoints.get.job.run.call,r.runtimeEnvironment=this.endpoints.get.job.runtimeEnvironment.call,r.runtimeEnvironmentDetails=this.endpoints.get.job.runtimeEnvironmentDetails.call,r.logs=this.logs.getJobLogs,r.buildLogs=this.logs.getJobBuildLogs,r.logTail=this.logs.tailJobLogs,r.buildLogTail=this.logs.tailJobBuildLogs,r.metrics=this.metrics.getJobMetrics,r.buildMetrics=this.metrics.getJobBuildMetrics,r.metricsRange=this.metrics.getJobMetricsRange,r.buildMetricsRange=this.metrics.getJobBuildMetricsRange,r})(),t.llmModelDeployment=this.endpoints.get.llmModelDeployment.call,t.pipeline=this.endpoints.get.pipeline.call,t.previewTemplate=(()=>{let r=this.endpoints.get.previewTemplate.call;return r.all=this.endpoints.get.previewTemplate.all,r})(),t.previewTemplateRun=this.endpoints.get.previewTemplateRun.call,t.releaseFlow=this.endpoints.get.releaseFlow.call,t.releaseFlowRun=this.endpoints.get.releaseFlowRun.call,t.previewBlueprint=this.endpoints.get.previewBlueprint.call,t.previewBlueprintRun=this.endpoints.get.previewBlueprintRun.call,t.secret=this.endpoints.get.secret.call,t.secretLink=this.endpoints.get.secretLink.call,t.secretDetails=this.endpoints.get.secretDetails.call,t.service=(()=>{let r=this.endpoints.get.service.call;return r.branches=(()=>{let o=this.endpoints.get.service.branches.call;return o.all=this.endpoints.get.service.branches.all,o})(),r.builds=(()=>{let o=this.endpoints.get.service.builds.call;return o.all=this.endpoints.get.service.builds.all,o})(),r.buildArguments=this.endpoints.get.service.buildArguments.call,r.buildArgumentDetails=this.endpoints.get.service.buildArgumentDetails.call,r.build=this.endpoints.get.service.build.call,r.containers=(()=>{let o=this.endpoints.get.service.containers.call;return o.all=this.endpoints.get.service.containers.all,o})(),r.deployment=this.endpoints.get.service.deployment.call,r.healthChecks=this.endpoints.get.service.healthChecks.call,r.perReplicaVolumes=this.endpoints.get.service.perReplicaVolumes.call,r.ports=this.endpoints.get.service.ports.call,r.pullRequests=(()=>{let o=this.endpoints.get.service.pullRequests.call;return o.all=this.endpoints.get.service.pullRequests.all,o})(),r.rollout=this.endpoints.get.service.rollout.call,r.runtimeEnvironment=this.endpoints.get.service.runtimeEnvironment.call,r.runtimeEnvironmentDetails=this.endpoints.get.service.runtimeEnvironmentDetails.call,r.logs=this.logs.getServiceLogs,r.buildLogs=this.logs.getServiceBuildLogs,r.logTail=this.logs.tailServiceLogs,r.buildLogTail=this.logs.tailServiceBuildLogs,r.metrics=this.metrics.getServiceMetrics,r.buildMetrics=this.metrics.getServiceBuildMetrics,r.metricsRange=this.metrics.getServiceMetricsRange,r.buildMetricsRange=this.metrics.getServiceBuildMetricsRange,r})(),t.volume=(()=>{let r=this.endpoints.get.volume.call;return r.backupSchedules=(()=>{let o=this.endpoints.get.volume.backupSchedules.call;return o.all=this.endpoints.get.volume.backupSchedules.all,o})(),r.backups=(()=>{let o=this.endpoints.get.volume.backups.call;return o.all=this.endpoints.get.volume.backups.all,o})(),r.backup=this.endpoints.get.volume.backup.call,r})(),t.workflow=this.endpoints.get.workflow.call,t.workflowRun=this.endpoints.get.workflowRun.call,t.globalSecret=this.endpoints.get.globalSecret.call,t.tag=this.endpoints.get.tag.call,t.team=this.endpoints.get.team.call,t.teamRole=this.endpoints.get.teamRole.call,t.template=(()=>{let r=this.endpoints.get.template.call;return r.all=this.endpoints.get.template.all,r})(),t.templateRun=this.endpoints.get.templateRun.call,t.workloadIdentities=this.endpoints.get.workloadIdentities.call,t})(),this.list=(()=>{let t={};return t.backupDestinations=(()=>{let r=this.endpoints.list.backupDestinations.call;return r.all=this.endpoints.list.backupDestinations.all,r})(),t.backupDestinationsBackups=(()=>{let r=this.endpoints.list.backupDestinationsBackups.call;return r.all=this.endpoints.list.backupDestinationsBackups.all,r})(),t.invoices=(()=>{let r=this.endpoints.list.invoices.call;return r.all=this.endpoints.list.invoices.all,r})(),t.usage=(()=>{let r=this.endpoints.list.usage.call;return r.all=this.endpoints.list.usage.all,r})(),t.cloud=(()=>{let r={};return r.providers=this.endpoints.list.cloud.providers.call,r.clusters=(()=>{let o=this.endpoints.list.cloud.clusters.call;return o.all=this.endpoints.list.cloud.clusters.all,o})(),r.cluster=(()=>{let o={};return o.nodes=(()=>{let a=this.endpoints.list.cloud.cluster.nodes.call;return a.all=this.endpoints.list.cloud.cluster.nodes.all,a})(),o})(),r.integrations=(()=>{let o=this.endpoints.list.cloud.integrations.call;return o.all=this.endpoints.list.cloud.integrations.all,o})(),r.nodeTypes=(()=>{let o=this.endpoints.list.cloud.nodeTypes.call;return o.all=this.endpoints.list.cloud.nodeTypes.all,o})(),r.permissions=this.endpoints.list.cloud.permissions.call,r.regions=(()=>{let o=this.endpoints.list.cloud.regions.call;return o.all=this.endpoints.list.cloud.regions.all,o})(),r})(),t.containerSnapshots=(()=>{let r=this.endpoints.list.containerSnapshots.call;return r.all=this.endpoints.list.containerSnapshots.all,r})(),t.orgDirectoryGroupMembers=(()=>{let r=this.endpoints.list.orgDirectoryGroupMembers.call;return r.all=this.endpoints.list.orgDirectoryGroupMembers.all,r})(),t.domains=(()=>{let r=this.endpoints.list.domains.call;return r.all=this.endpoints.list.domains.all,r})(),t.subdomain=(()=>{let r={};return r.path=this.endpoints.list.subdomain.path.call,r})(),t.egressIps=(()=>{let r=this.endpoints.list.egressIps.call;return r.all=this.endpoints.list.egressIps.all,r})(),t.encryption=(()=>{let r={};return r.configurations=(()=>{let o=this.endpoints.list.encryption.configurations.call;return o.all=this.endpoints.list.encryption.configurations.all,o})(),r})(),t.gradualRolloutStrategies=(()=>{let r=this.endpoints.list.gradualRolloutStrategies.call;return r.all=this.endpoints.list.gradualRolloutStrategies.all,r})(),t.auditLogSinks=(()=>{let r=this.endpoints.list.auditLogSinks.call;return r.all=this.endpoints.list.auditLogSinks.all,r})(),t.logSinks=(()=>{let r=this.endpoints.list.logSinks.call;return r.all=this.endpoints.list.logSinks.all,r})(),t.notifications=(()=>{let r=this.endpoints.list.notifications.call;return r.all=this.endpoints.list.notifications.all,r})(),t.registryCredentials=(()=>{let r=this.endpoints.list.registryCredentials.call;return r.all=this.endpoints.list.registryCredentials.all,r})(),t.sshIdentities=(()=>{let r=this.endpoints.list.sshIdentities.call;return r.all=this.endpoints.list.sshIdentities.all,r})(),t.vcs=this.endpoints.list.vcs.call,t.repos=(()=>{let r=this.endpoints.list.repos.call;return r.all=this.endpoints.list.repos.all,r})(),t.branches=(()=>{let r=this.endpoints.list.branches.call;return r.all=this.endpoints.list.branches.all,r})(),t.loadBalancers=(()=>{let r=this.endpoints.list.loadBalancers.call;return r.all=this.endpoints.list.loadBalancers.all,r})(),t.orgMembers=(()=>{let r=this.endpoints.list.orgMembers.call;return r.all=this.endpoints.list.orgMembers.all,r})(),t.orgRoles=(()=>{let r=this.endpoints.list.orgRoles.call;return r.all=this.endpoints.list.orgRoles.all,r})(),t.orgRoleMembers=(()=>{let r=this.endpoints.list.orgRoleMembers.call;return r.all=this.endpoints.list.orgRoleMembers.all,r})(),t.plans=this.endpoints.list.plans.call,t.projects=(()=>{let r=this.endpoints.list.projects.call;return r.all=this.endpoints.list.projects.all,r})(),t.addons=(()=>{let r=this.endpoints.list.addons.call;return r.all=this.endpoints.list.addons.all,r})(),t.externalAddons=(()=>{let r=this.endpoints.list.externalAddons.call;return r.all=this.endpoints.list.externalAddons.all,r})(),t.harnesses=(()=>{let r=this.endpoints.list.harnesses.call;return r.all=this.endpoints.list.harnesses.all,r})(),t.jobs=(()=>{let r=this.endpoints.list.jobs.call;return r.all=this.endpoints.list.jobs.all,r})(),t.llmModelDeployments=(()=>{let r=this.endpoints.list.llmModelDeployments.call;return r.all=this.endpoints.list.llmModelDeployments.all,r})(),t.pipelines=(()=>{let r=this.endpoints.list.pipelines.call;return r.all=this.endpoints.list.pipelines.all,r})(),t.pipelineTemplatePreviews=(()=>{let r=this.endpoints.list.pipelineTemplatePreviews.call;return r.all=this.endpoints.list.pipelineTemplatePreviews.all,r})(),t.previewTemplateRuns=(()=>{let r=this.endpoints.list.previewTemplateRuns.call;return r.all=this.endpoints.list.previewTemplateRuns.all,r})(),t.releaseFlowRuns=(()=>{let r=this.endpoints.list.releaseFlowRuns.call;return r.all=this.endpoints.list.releaseFlowRuns.all,r})(),t.previewBlueprints=(()=>{let r=this.endpoints.list.previewBlueprints.call;return r.all=this.endpoints.list.previewBlueprints.all,r})(),t.blueprintTemplatePreviews=(()=>{let r=this.endpoints.list.blueprintTemplatePreviews.call;return r.all=this.endpoints.list.blueprintTemplatePreviews.all,r})(),t.previewBlueprintRuns=(()=>{let r=this.endpoints.list.previewBlueprintRuns.call;return r.all=this.endpoints.list.previewBlueprintRuns.all,r})(),t.secrets=(()=>{let r=this.endpoints.list.secrets.call;return r.all=this.endpoints.list.secrets.all,r})(),t.services=(()=>{let r=this.endpoints.list.services.call;return r.all=this.endpoints.list.services.all,r})(),t.service=(()=>{let r={};return r.deployments=(()=>{let o=this.endpoints.list.service.deployments.call;return o.all=this.endpoints.list.service.deployments.all,o})(),r})(),t.volumes=(()=>{let r=this.endpoints.list.volumes.call;return r.all=this.endpoints.list.volumes.all,r})(),t.workflows=(()=>{let r=this.endpoints.list.workflows.call;return r.all=this.endpoints.list.workflows.all,r})(),t.workflowRuns=(()=>{let r=this.endpoints.list.workflowRuns.call;return r.all=this.endpoints.list.workflowRuns.all,r})(),t.regions=this.endpoints.list.regions.call,t.globalSecrets=(()=>{let r=this.endpoints.list.globalSecrets.call;return r.all=this.endpoints.list.globalSecrets.all,r})(),t.tags=(()=>{let r=this.endpoints.list.tags.call;return r.all=this.endpoints.list.tags.all,r})(),t.teams=(()=>{let r=this.endpoints.list.teams.call;return r.all=this.endpoints.list.teams.all,r})(),t.teamMembers=(()=>{let r=this.endpoints.list.teamMembers.call;return r.all=this.endpoints.list.teamMembers.all,r})(),t.teamRoles=(()=>{let r=this.endpoints.list.teamRoles.call;return r.all=this.endpoints.list.teamRoles.all,r})(),t.teamRoleMembers=(()=>{let r=this.endpoints.list.teamRoleMembers.call;return r.all=this.endpoints.list.teamRoleMembers.all,r})(),t.templates=(()=>{let r=this.endpoints.list.templates.call;return r.all=this.endpoints.list.templates.all,r})(),t.templateRuns=(()=>{let r=this.endpoints.list.templateRuns.call;return r.all=this.endpoints.list.templateRuns.all,r})(),t.apiTokens=(()=>{let r=this.endpoints.list.apiTokens.call;return r.all=this.endpoints.list.apiTokens.all,r})(),t.workloadIdentities=(()=>{let r=this.endpoints.list.workloadIdentities.call;return r.all=this.endpoints.list.workloadIdentities.all,r})(),t})(),this.add=(()=>{let t={};return t.backupDestination=this.endpoints.add.backupDestination.call,t.domain=(()=>{let r={};return r.subdomain=this.endpoints.add.domain.subdomain.call,r})(),t.subdomain=(()=>{let r={};return r.path=this.endpoints.add.subdomain.path.call,r})(),t.registryCredentials=this.endpoints.add.registryCredentials.call,t.sshIdentities=this.endpoints.add.sshIdentities.call,t.tag=this.endpoints.add.tag.call,t})(),this.patch=(()=>{let t={};return t.backupDestination=this.endpoints.patch.backupDestination.call,t.cloud=(()=>{let r={};return r.cluster=this.endpoints.patch.cloud.cluster.call,r.integration=this.endpoints.patch.cloud.integration.call,r})(),t.egressIp=this.endpoints.patch.egressIp.call,t.gradualRolloutStrategy=this.endpoints.patch.gradualRolloutStrategy.call,t.auditLogSink=this.endpoints.patch.auditLogSink.call,t.loadBalancer=this.endpoints.patch.loadBalancer.call,t.networkPolicy=this.endpoints.patch.networkPolicy.call,t.orgRole=this.endpoints.patch.orgRole.call,t.project=this.endpoints.patch.project.call,t.addon=this.endpoints.patch.addon.call,t.harness=this.endpoints.patch.harness.call,t.job=(()=>{let r=this.endpoints.patch.job.call;return r.cron=this.endpoints.patch.job.cron.call,r.manual=this.endpoints.patch.job.manual.call,r})(),t.secret=this.endpoints.patch.secret.call,t.service=(()=>{let r={};return r.build=this.endpoints.patch.service.build.call,r.combined=this.endpoints.patch.service.combined.call,r.deployment=this.endpoints.patch.service.deployment.call,r})(),t.globalSecret=this.endpoints.patch.globalSecret.call,t.tag=this.endpoints.patch.tag.call,t.team=this.endpoints.patch.team.call,t.teamRole=this.endpoints.patch.teamRole.call,t})(),this.delete=(()=>{let t={};return t.backupDestination=this.endpoints.delete.backupDestination.call,t.cloud=(()=>{let r={};return r.cluster=this.endpoints.delete.cloud.cluster.call,r.integration=this.endpoints.delete.cloud.integration.call,r})(),t.containerSnapshot=this.endpoints.delete.containerSnapshot.call,t.domain=this.endpoints.delete.domain.call,t.subdomain=(()=>{let r=this.endpoints.delete.subdomain.call;return r.path=this.endpoints.delete.subdomain.path.call,r})(),t.egressIp=this.endpoints.delete.egressIp.call,t.gradualRolloutStrategy=this.endpoints.delete.gradualRolloutStrategy.call,t.auditLogSink=this.endpoints.delete.auditLogSink.call,t.logSink=this.endpoints.delete.logSink.call,t.notification=this.endpoints.delete.notification.call,t.registryCredentials=this.endpoints.delete.registryCredentials.call,t.sshIdentities=this.endpoints.delete.sshIdentities.call,t.loadBalancer=this.endpoints.delete.loadBalancer.call,t.networkPolicy=this.endpoints.delete.networkPolicy.call,t.orgRole=this.endpoints.delete.orgRole.call,t.orgRoleMember=this.endpoints.delete.orgRoleMember.call,t.project=this.endpoints.delete.project.call,t.addon=(()=>{let r=this.endpoints.delete.addon.call;return r.backupSchedule=this.endpoints.delete.addon.backupSchedule.call,r})(),t.backup=this.endpoints.delete.backup.call,t.externalAddon=this.endpoints.delete.externalAddon.call,t.harness=this.endpoints.delete.harness.call,t.job=this.endpoints.delete.job.call,t.llmModelDeployment=this.endpoints.delete.llmModelDeployment.call,t.pipelineTemplatePreview=this.endpoints.delete.pipelineTemplatePreview.call,t.previewBlueprint=this.endpoints.delete.previewBlueprint.call,t.blueprintTemplatePreview=this.endpoints.delete.blueprintTemplatePreview.call,t.secret=this.endpoints.delete.secret.call,t.secretLink=this.endpoints.delete.secretLink.call,t.service=(()=>{let r=this.endpoints.delete.service.call;return r.perReplicaVolumeGroup=this.endpoints.delete.service.perReplicaVolumeGroup.call,r.perReplicaVolume=this.endpoints.delete.service.perReplicaVolume.call,r})(),t.volume=(()=>{let r=this.endpoints.delete.volume.call;return r.backupSchedule=this.endpoints.delete.volume.backupSchedule.call,r.backup=this.endpoints.delete.volume.backup.call,r})(),t.globalSecret=this.endpoints.delete.globalSecret.call,t.tag=this.endpoints.delete.tag.call,t.team=this.endpoints.delete.team.call,t.teamMember=this.endpoints.delete.teamMember.call,t.teamRole=this.endpoints.delete.teamRole.call,t.teamRoleMember=this.endpoints.delete.teamRoleMember.call,t.template=this.endpoints.delete.template.call,t.apiTokenKey=this.endpoints.delete.apiTokenKey.call,t.workloadIdentities=this.endpoints.delete.workloadIdentities.call,t})(),this.create=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=this.endpoints.create.cloud.cluster.call,r.integration=this.endpoints.create.cloud.integration.call,r})(),t.domain=this.endpoints.create.domain.call,t.egressIp=this.endpoints.create.egressIp.call,t.encryption=(()=>{let r={};return r.configuration=this.endpoints.create.encryption.configuration.call,r})(),t.gradualRolloutStrategy=this.endpoints.create.gradualRolloutStrategy.call,t.auditLogSink=this.endpoints.create.auditLogSink.call,t.logSink=this.endpoints.create.logSink.call,t.notification=this.endpoints.create.notification.call,t.customVcs=(()=>{let r={};return r.token=this.endpoints.create.customVcs.token.call,r})(),t.loadBalancer=this.endpoints.create.loadBalancer.call,t.networkPolicy=this.endpoints.create.networkPolicy.call,t.orgRole=this.endpoints.create.orgRole.call,t.orgRoleMember=this.endpoints.create.orgRoleMember.call,t.project=this.endpoints.create.project.call,t.addon=(()=>{let r=this.endpoints.create.addon.call;return r.backupSchedule=this.endpoints.create.addon.backupSchedule.call,r})(),t.externalAddon=this.endpoints.create.externalAddon.call,t.harness=this.endpoints.create.harness.call,t.job=(()=>{let r=this.endpoints.create.job.call;return r.cron=this.endpoints.create.job.cron.call,r.manual=this.endpoints.create.job.manual.call,r})(),t.llmModelDeployment=this.endpoints.create.llmModelDeployment.call,t.previewBlueprint=this.endpoints.create.previewBlueprint.call,t.secret=this.endpoints.create.secret.call,t.service=(()=>{let r={};return r.build=this.endpoints.create.service.build.call,r.combined=this.endpoints.create.service.combined.call,r.deployment=this.endpoints.create.service.deployment.call,r})(),t.containerSnapshot=this.endpoints.create.containerSnapshot.call,t.volume=(()=>{let r=this.endpoints.create.volume.call;return r.backupSchedule=this.endpoints.create.volume.backupSchedule.call,r})(),t.workflow=this.endpoints.create.workflow.call,t.globalSecret=this.endpoints.create.globalSecret.call,t.team=this.endpoints.create.team.call,t.teamMemberInvite=this.endpoints.create.teamMemberInvite.call,t.teamRole=this.endpoints.create.teamRole.call,t.teamRoleMember=this.endpoints.create.teamRoleMember.call,t.template=this.endpoints.create.template.call,t.workloadIdentities=this.endpoints.create.workloadIdentities.call,t})(),this.put=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=this.endpoints.put.cloud.cluster.call,r.integration=this.endpoints.put.cloud.integration.call,r})(),t.domain=(()=>{let r={};return r.subdomain=this.endpoints.put.domain.subdomain.call,r})(),t.egressIp=this.endpoints.put.egressIp.call,t.gradualRolloutStrategy=this.endpoints.put.gradualRolloutStrategy.call,t.auditLogSink=this.endpoints.put.auditLogSink.call,t.sshIdentities=this.endpoints.put.sshIdentities.call,t.loadBalancer=this.endpoints.put.loadBalancer.call,t.orgRole=this.endpoints.put.orgRole.call,t.project=this.endpoints.put.project.call,t.addon=this.endpoints.put.addon.call,t.harness=this.endpoints.put.harness.call,t.job=(()=>{let r=this.endpoints.put.job.call;return r.cron=this.endpoints.put.job.cron.call,r.manual=this.endpoints.put.job.manual.call,r})(),t.secret=this.endpoints.put.secret.call,t.service=(()=>{let r={};return r.build=this.endpoints.put.service.build.call,r.combined=this.endpoints.put.service.combined.call,r.deployment=this.endpoints.put.service.deployment.call,r})(),t.globalSecret=this.endpoints.put.globalSecret.call,t.tag=this.endpoints.put.tag.call,t.teamRole=this.endpoints.put.teamRole.call,t})(),this.cordon=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=this.endpoints.cordon.cloud.cluster.node.call,o})(),r})(),t})(),this.drain=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=this.endpoints.drain.cloud.cluster.node.call,o})(),r})(),t})(),this.uncordon=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let o={};return o.node=this.endpoints.uncordon.cloud.cluster.node.call,o})(),r})(),t})(),this.update=(()=>{let t={};return t.domain=this.endpoints.update.domain.call,t.subdomain=(()=>{let r={};return r.geoRouting=this.endpoints.update.subdomain.geoRouting.call,r.path=this.endpoints.update.subdomain.path.call,r})(),t.encryption=(()=>{let r={};return r.configuration=(()=>{let o={};return o.options=this.endpoints.update.encryption.configuration.options.call,o.settings=this.endpoints.update.encryption.configuration.settings.call,o})(),r})(),t.logSink=this.endpoints.update.logSink.call,t.notification=this.endpoints.update.notification.call,t.registryCredentials=this.endpoints.update.registryCredentials.call,t.sshIdentities=this.endpoints.update.sshIdentities.call,t.addon=(()=>{let r={};return r.networkSettings=this.endpoints.update.addon.networkSettings.call,r.security=this.endpoints.update.addon.security.call,r.version=this.endpoints.update.addon.version.call,r})(),t.externalAddon=this.endpoints.update.externalAddon.call,t.job=(()=>{let r={};return r.buildArguments=this.endpoints.update.job.buildArguments.call,r.buildOptions=this.endpoints.update.job.buildOptions.call,r.buildSource=this.endpoints.update.job.buildSource.call,r.deployment=this.endpoints.update.job.deployment.call,r.healthChecks=this.endpoints.update.job.healthChecks.call,r.runtimeEnvironment=this.endpoints.update.job.runtimeEnvironment.call,r.settings=this.endpoints.update.job.settings.call,r})(),t.llmModelDeployment=this.endpoints.update.llmModelDeployment.call,t.previewTemplate=this.endpoints.update.previewTemplate.call,t.releaseFlow=this.endpoints.update.releaseFlow.call,t.previewBlueprint=this.endpoints.update.previewBlueprint.call,t.secret=this.endpoints.update.secret.call,t.secretLink=this.endpoints.update.secretLink.call,t.service=(()=>{let r={};return r.buildArguments=this.endpoints.update.service.buildArguments.call,r.buildOptions=this.endpoints.update.service.buildOptions.call,r.buildSource=this.endpoints.update.service.buildSource.call,r.deployment=this.endpoints.update.service.deployment.call,r.healthChecks=this.endpoints.update.service.healthChecks.call,r.ports=this.endpoints.update.service.ports.call,r.rollout=(()=>{let o={};return o.configuration=this.endpoints.update.service.rollout.configuration.call,o})(),r.runtimeEnvironment=this.endpoints.update.service.runtimeEnvironment.call,r})(),t.volume=this.endpoints.update.volume.call,t.workflow=this.endpoints.update.workflow.call,t.template=this.endpoints.update.template.call,t.workloadIdentities=this.endpoints.update.workloadIdentities.call,t})(),this.import=(()=>{let t={};return t.domainCertificate=this.endpoints.import.domainCertificate.call,t.subdomainCertificate=this.endpoints.import.subdomainCertificate.call,t.addon=(()=>{let r={};return r.backup=this.endpoints.import.addon.backup.call,r})(),t.template=(()=>{let r={};return r.state=this.endpoints.import.template.state.call,r})(),t})(),this.assign=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.service=this.endpoints.assign.subdomain.service.call,r.path=this.endpoints.assign.subdomain.path.call,r})(),t})(),this.unassign=(()=>{let t={};return t.subdomain=(()=>{let r=this.endpoints.unassign.subdomain.call;return r.path=this.endpoints.unassign.subdomain.path.call,r})(),t})(),this.disable=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=this.endpoints.disable.subdomain.cdn.call,r})(),t})(),this.enable=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=this.endpoints.enable.subdomain.cdn.call,r})(),t})(),this.purge=(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=this.endpoints.purge.subdomain.cdn.call,r})(),t})(),this.verify=(()=>{let t={};return t.subdomain=this.endpoints.verify.subdomain.call,t.domain=this.endpoints.verify.domain.call,t.encryption=(()=>{let r={};return r.configuration=this.endpoints.verify.encryption.configuration.call,r})(),t})(),this.activate=(()=>{let t={};return t.encryption=(()=>{let r={};return r.configuration=this.endpoints.activate.encryption.configuration.call,r.northflankManaged=this.endpoints.activate.encryption.northflankManaged.call,r})(),t})(),this.deactivate=(()=>{let t={};return t.encryption=(()=>{let r={};return r.configuration=this.endpoints.deactivate.encryption.configuration.call,r})(),t})(),this.pause=(()=>{let t={};return t.auditLogSink=this.endpoints.pause.auditLogSink.call,t.logSink=this.endpoints.pause.logSink.call,t.addon=this.endpoints.pause.addon.call,t.harness=this.endpoints.pause.harness.call,t.job=this.endpoints.pause.job.call,t.blueprintTemplatePreview=this.endpoints.pause.blueprintTemplatePreview.call,t.service=this.endpoints.pause.service.call,t})(),this.resume=(()=>{let t={};return t.auditLogSink=this.endpoints.resume.auditLogSink.call,t.logSink=this.endpoints.resume.logSink.call,t.addon=this.endpoints.resume.addon.call,t.harness=this.endpoints.resume.harness.call,t.job=this.endpoints.resume.job.call,t.blueprintTemplatePreview=this.endpoints.resume.blueprintTemplatePreview.call,t.service=this.endpoints.resume.service.call,t})(),this.backup=(()=>{let t={};return t.addon=this.endpoints.backup.addon.call,t.volume=this.endpoints.backup.volume.call,t})(),this.abort=(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=this.endpoints.abort.addon.backup.call,r.restore=this.endpoints.abort.addon.restore.call,r})(),t.job=(()=>{let r={};return r.build=this.endpoints.abort.job.build.call,r.run=this.endpoints.abort.job.run.call,r})(),t.releaseFlowRun=this.endpoints.abort.releaseFlowRun.call,t.previewBlueprintRun=this.endpoints.abort.previewBlueprintRun.call,t.service=(()=>{let r={};return r.build=this.endpoints.abort.service.build.call,r})(),t.workflowRun=this.endpoints.abort.workflowRun.call,t.templateRun=this.endpoints.abort.templateRun.call,t})(),this.restore=(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=this.endpoints.restore.addon.backup.call,r})(),t})(),this.retain=(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=this.endpoints.retain.addon.backup.call,r})(),t})(),this.reset=(()=>{let t={};return t.addon=this.endpoints.reset.addon.call,t.blueprintTemplatePreview=this.endpoints.reset.blueprintTemplatePreview.call,t.service=(()=>{let r={};return r.buildCache=this.endpoints.reset.service.buildCache.call,r})(),t})(),this.restart=(()=>{let t={};return t.addon=this.endpoints.restart.addon.call,t.harness=this.endpoints.restart.harness.call,t.service=this.endpoints.restart.service.call,t})(),this.scale=(()=>{let t={};return t.addon=this.endpoints.scale.addon.call,t.job=this.endpoints.scale.job.call,t.service=this.endpoints.scale.service.call,t})(),this.start=(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=this.endpoints.start.addon.secretRotation.call,r})(),t.job=(()=>{let r={};return r.build=this.endpoints.start.job.build.call,r.run=this.endpoints.start.job.run.call,r})(),t.service=(()=>{let r={};return r.build=this.endpoints.start.service.build.call,r})(),t})(),this.finalise=(()=>{let t={};return t.addon=(()=>{let r={};return r.secretRotation=this.endpoints.finalise.addon.secretRotation.call,r})(),t})(),this.suspend=(()=>{let t={};return t.job=this.endpoints.suspend.job.call,t})(),this.run=(()=>{let t={};return t.previewTemplate=this.endpoints.run.previewTemplate.call,t.releaseFlow=this.endpoints.run.releaseFlow.call,t.previewBlueprint=this.endpoints.run.previewBlueprint.call,t.workflow=this.endpoints.run.workflow.call,t.template=this.endpoints.run.template.call,t})(),this.promote=(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=this.endpoints.promote.service.rollout.call,r})(),t})(),this.rollback=(()=>{let t={};return t.service=(()=>{let r={};return r.rollout=this.endpoints.rollback.service.rollout.call,r})(),t})(),this.attach=(()=>{let t={};return t.volume=this.endpoints.attach.volume.call,t})(),this.detach=(()=>{let t={};return t.volume=this.endpoints.detach.volume.call,t})(),this.trigger=(()=>{let t={};return t.globalSecret=(()=>{let r={};return r.dependents=this.endpoints.trigger.globalSecret.dependents.call,r})(),t})(),this.rotate=(()=>{let t={};return t.apiTokenKey=this.endpoints.rotate.apiTokenKey.call,t})()}};0&&(module.exports={AbortAddonBackupEndpoint,AbortAddonRestoreEndpoint,AbortJobBuildEndpoint,AbortJobRunEndpoint,AbortPreviewblueprintrunEndpoint,AbortReleaseflowrunEndpoint,AbortServiceBuildEndpoint,AbortTemplaterunEndpoint,AbortWorkflowrunEndpoint,ActivateEncryptionConfigurationEndpoint,ActivateEncryptionNorthflankmanagedEndpoint,AddBackupdestinationEndpoint,AddDomainSubdomainEndpoint,AddRegistrycredentialsEndpoint,AddSshidentitiesEndpoint,AddSubdomainPathEndpoint,AddTagEndpoint,ApiClient,ApiClientContextProvider,ApiClientEnvironmentContextProvider,ApiClientFileContextProvider,ApiClientInMemoryContextProvider,ApiEndpoint,AssignSubdomainPathEndpoint,AssignSubdomainServiceEndpoint,AttachVolumeEndpoint,BackupAddonEndpoint,BackupVolumeEndpoint,CopyType,CordonCloudClusterNodeEndpoint,CreateAddonBackupscheduleEndpoint,CreateAddonEndpoint,CreateAuditlogsinkEndpoint,CreateCloudClusterEndpoint,CreateCloudIntegrationEndpoint,CreateContainersnapshotEndpoint,CreateCustomvcsTokenEndpoint,CreateDomainEndpoint,CreateEgressipEndpoint,CreateEncryptionConfigurationEndpoint,CreateExternaladdonEndpoint,CreateGlobalsecretEndpoint,CreateGradualrolloutstrategyEndpoint,CreateHarnessEndpoint,CreateJobCronEndpoint,CreateJobEndpoint,CreateJobManualEndpoint,CreateLlmmodeldeploymentEndpoint,CreateLoadbalancerEndpoint,CreateLogsinkEndpoint,CreateNetworkpolicyEndpoint,CreateNotificationEndpoint,CreateOrgroleEndpoint,CreateOrgrolememberEndpoint,CreatePreviewblueprintEndpoint,CreateProjectEndpoint,CreateSecretEndpoint,CreateServiceBuildEndpoint,CreateServiceCombinedEndpoint,CreateServiceDeploymentEndpoint,CreateTeamEndpoint,CreateTeammemberinviteEndpoint,CreateTeamroleEndpoint,CreateTeamrolememberEndpoint,CreateTemplateEndpoint,CreateVolumeBackupscheduleEndpoint,CreateVolumeEndpoint,CreateWorkflowEndpoint,CreateWorkloadidentitiesEndpoint,DeactivateEncryptionConfigurationEndpoint,DeleteAddonBackupscheduleEndpoint,DeleteAddonEndpoint,DeleteApiEndpoint,DeleteApitokenkeyEndpoint,DeleteAuditlogsinkEndpoint,DeleteBackupEndpoint,DeleteBackupdestinationEndpoint,DeleteBlueprinttemplatepreviewEndpoint,DeleteCloudClusterEndpoint,DeleteCloudIntegrationEndpoint,DeleteContainersnapshotEndpoint,DeleteDomainEndpoint,DeleteEgressipEndpoint,DeleteExternaladdonEndpoint,DeleteGlobalsecretEndpoint,DeleteGradualrolloutstrategyEndpoint,DeleteHarnessEndpoint,DeleteJobEndpoint,DeleteLlmmodeldeploymentEndpoint,DeleteLoadbalancerEndpoint,DeleteLogsinkEndpoint,DeleteNetworkpolicyEndpoint,DeleteNotificationEndpoint,DeleteOrgroleEndpoint,DeleteOrgrolememberEndpoint,DeletePipelinetemplatepreviewEndpoint,DeletePreviewblueprintEndpoint,DeleteProjectEndpoint,DeleteRegistrycredentialsEndpoint,DeleteSecretEndpoint,DeleteSecretlinkEndpoint,DeleteServiceEndpoint,DeleteServicePerreplicavolumeEndpoint,DeleteServicePerreplicavolumegroupEndpoint,DeleteSshidentitiesEndpoint,DeleteSubdomainEndpoint,DeleteSubdomainPathEndpoint,DeleteTagEndpoint,DeleteTeamEndpoint,DeleteTeammemberEndpoint,DeleteTeamroleEndpoint,DeleteTeamrolememberEndpoint,DeleteTemplateEndpoint,DeleteVolumeBackupEndpoint,DeleteVolumeBackupscheduleEndpoint,DeleteVolumeEndpoint,DeleteWorkloadidentitiesEndpoint,DetachVolumeEndpoint,DisableSubdomainCdnEndpoint,DrainCloudClusterNodeEndpoint,EnableSubdomainCdnEndpoint,ExecCommandStandard,FinaliseAddonSecretrotationEndpoint,GetAddonBackupDownloadEndpoint,GetAddonBackupEndpoint,GetAddonBackupRestoresEndpoint,GetAddonBackupsEndpoint,GetAddonBackupschedulesEndpoint,GetAddonContainersEndpoint,GetAddonCredentialsEndpoint,GetAddonEndpoint,GetAddonRestoresEndpoint,GetAddonTypesEndpoint,GetAddonVersionEndpoint,GetApiEndpoint,GetApiEndpointPaginated,GetAuditlogsinkEndpoint,GetAuthEndpoint,GetBackupdestinationEndpoint,GetCloudClusterEndpoint,GetCloudIntegrationEndpoint,GetContainersnapshotEndpoint,GetCreditbalanceEndpoint,GetDnsidEndpoint,GetDomainEndpoint,GetDomaincertificateEndpoint,GetEgressipEndpoint,GetEncryptionConfigurationEndpoint,GetEncryptionConfigurationsUsageEndpoint,GetExternaladdonEndpoint,GetGlobalsecretEndpoint,GetGradualrolloutstrategyEndpoint,GetHarnessEndpoint,GetInvoiceEndpoint,GetJobBranchesEndpoint,GetJobBuildEndpoint,GetJobBuildargumentdetailsEndpoint,GetJobBuildargumentsEndpoint,GetJobBuildsEndpoint,GetJobContainersEndpoint,GetJobDeploymentEndpoint,GetJobEndpoint,GetJobHealthchecksEndpoint,GetJobPullrequestsEndpoint,GetJobRunEndpoint,GetJobRunsEndpoint,GetJobRuntimeenvironmentEndpoint,GetJobRuntimeenvironmentdetailsEndpoint,GetLlmmodeldeploymentEndpoint,GetLoadbalancerEndpoint,GetLogsinkEndpoint,GetNetworkpolicyEndpoint,GetNotificationEndpoint,GetOrgdirectorygroupsEndpoint,GetOrgroleEndpoint,GetPipelineEndpoint,GetPreviewblueprintEndpoint,GetPreviewblueprintrunEndpoint,GetPreviewtemplateEndpoint,GetPreviewtemplaterunEndpoint,GetProjectEndpoint,GetRegistrycredentialsEndpoint,GetReleaseflowEndpoint,GetReleaseflowrunEndpoint,GetSecretEndpoint,GetSecretdetailsEndpoint,GetSecretlinkEndpoint,GetServiceBranchesEndpoint,GetServiceBuildEndpoint,GetServiceBuildargumentdetailsEndpoint,GetServiceBuildargumentsEndpoint,GetServiceBuildsEndpoint,GetServiceContainersEndpoint,GetServiceDeploymentEndpoint,GetServiceEndpoint,GetServiceHealthchecksEndpoint,GetServicePerreplicavolumesEndpoint,GetServicePortsEndpoint,GetServicePullrequestsEndpoint,GetServiceRolloutEndpoint,GetServiceRuntimeenvironmentEndpoint,GetServiceRuntimeenvironmentdetailsEndpoint,GetSshidentitiesEndpoint,GetSubdomainEndpoint,GetSubdomainPathEndpoint,GetTagEndpoint,GetTeamEndpoint,GetTeamroleEndpoint,GetTemplateEndpoint,GetTemplaterunEndpoint,GetUsageEndpoint,GetVolumeBackupEndpoint,GetVolumeBackupsEndpoint,GetVolumeBackupschedulesEndpoint,GetVolumeEndpoint,GetWorkflowEndpoint,GetWorkflowrunEndpoint,GetWorkloadidentitiesEndpoint,ImportAddonBackupEndpoint,ImportDomaincertificateEndpoint,ImportSubdomaincertificateEndpoint,ImportTemplateStateEndpoint,ListAddonsEndpoint,ListApitokensEndpoint,ListAuditlogsinksEndpoint,ListBackupdestinationsEndpoint,ListBackupdestinationsbackupsEndpoint,ListBlueprinttemplatepreviewsEndpoint,ListBranchesEndpoint,ListCloudClusterNodesEndpoint,ListCloudClustersEndpoint,ListCloudIntegrationsEndpoint,ListCloudNodetypesEndpoint,ListCloudPermissionsEndpoint,ListCloudProvidersEndpoint,ListCloudRegionsEndpoint,ListContainersnapshotsEndpoint,ListDomainsEndpoint,ListEgressipsEndpoint,ListEncryptionConfigurationsEndpoint,ListExternaladdonsEndpoint,ListGlobalsecretsEndpoint,ListGradualrolloutstrategiesEndpoint,ListHarnessesEndpoint,ListInvoicesEndpoint,ListJobsEndpoint,ListLlmmodeldeploymentsEndpoint,ListLoadbalancersEndpoint,ListLogsinksEndpoint,ListNotificationsEndpoint,ListOrgdirectorygroupmembersEndpoint,ListOrgmembersEndpoint,ListOrgrolemembersEndpoint,ListOrgrolesEndpoint,ListPipelinesEndpoint,ListPipelinetemplatepreviewsEndpoint,ListPlansEndpoint,ListPreviewblueprintrunsEndpoint,ListPreviewblueprintsEndpoint,ListPreviewtemplaterunsEndpoint,ListProjectsEndpoint,ListRegionsEndpoint,ListRegistrycredentialsEndpoint,ListReleaseflowrunsEndpoint,ListReposEndpoint,ListSecretsEndpoint,ListServiceDeploymentsEndpoint,ListServicesEndpoint,ListSshidentitiesEndpoint,ListSubdomainPathEndpoint,ListTagsEndpoint,ListTeammembersEndpoint,ListTeamrolemembersEndpoint,ListTeamrolesEndpoint,ListTeamsEndpoint,ListTemplaterunsEndpoint,ListTemplatesEndpoint,ListUsageEndpoint,ListVcsEndpoint,ListVolumesEndpoint,ListWorkflowrunsEndpoint,ListWorkflowsEndpoint,ListWorkloadidentitiesEndpoint,LogType,MetricType,NorthflankApiCallError,NorthflankExecCommand,NorthflankFileCopy,NorthflankLogFetch,NorthflankMetricFetch,NorthflankPortForwarder,PatchAddonEndpoint,PatchApiEndpoint,PatchAuditlogsinkEndpoint,PatchBackupdestinationEndpoint,PatchCloudClusterEndpoint,PatchCloudIntegrationEndpoint,PatchEgressipEndpoint,PatchGlobalsecretEndpoint,PatchGradualrolloutstrategyEndpoint,PatchHarnessEndpoint,PatchJobCronEndpoint,PatchJobEndpoint,PatchJobManualEndpoint,PatchLoadbalancerEndpoint,PatchNetworkpolicyEndpoint,PatchOrgroleEndpoint,PatchProjectEndpoint,PatchSecretEndpoint,PatchServiceBuildEndpoint,PatchServiceCombinedEndpoint,PatchServiceDeploymentEndpoint,PatchTagEndpoint,PatchTeamEndpoint,PatchTeamroleEndpoint,PauseAddonEndpoint,PauseAuditlogsinkEndpoint,PauseBlueprinttemplatepreviewEndpoint,PauseHarnessEndpoint,PauseJobEndpoint,PauseLogsinkEndpoint,PauseServiceEndpoint,PostApiEndpoint,PromoteServiceRolloutEndpoint,PurgeSubdomainCdnEndpoint,PutAddonEndpoint,PutApiEndpoint,PutAuditlogsinkEndpoint,PutCloudClusterEndpoint,PutCloudIntegrationEndpoint,PutDomainSubdomainEndpoint,PutEgressipEndpoint,PutGlobalsecretEndpoint,PutGradualrolloutstrategyEndpoint,PutHarnessEndpoint,PutJobCronEndpoint,PutJobEndpoint,PutJobManualEndpoint,PutLoadbalancerEndpoint,PutOrgroleEndpoint,PutProjectEndpoint,PutSecretEndpoint,PutServiceBuildEndpoint,PutServiceCombinedEndpoint,PutServiceDeploymentEndpoint,PutSshidentitiesEndpoint,PutTagEndpoint,PutTeamroleEndpoint,ResetAddonEndpoint,ResetBlueprinttemplatepreviewEndpoint,ResetServiceBuildcacheEndpoint,RestartAddonEndpoint,RestartHarnessEndpoint,RestartServiceEndpoint,RestoreAddonBackupEndpoint,ResumeAddonEndpoint,ResumeAuditlogsinkEndpoint,ResumeBlueprinttemplatepreviewEndpoint,ResumeHarnessEndpoint,ResumeJobEndpoint,ResumeLogsinkEndpoint,ResumeServiceEndpoint,RetainAddonBackupEndpoint,RollbackServiceRolloutEndpoint,RotateApitokenkeyEndpoint,RunPreviewblueprintEndpoint,RunPreviewtemplateEndpoint,RunReleaseflowEndpoint,RunTemplateEndpoint,RunWorkflowEndpoint,ScaleAddonEndpoint,ScaleJobEndpoint,ScaleServiceEndpoint,StartAddonSecretrotationEndpoint,StartJobBuildEndpoint,StartJobRunEndpoint,StartServiceBuildEndpoint,SuspendJobEndpoint,TriggerGlobalsecretDependentsEndpoint,UnassignSubdomainEndpoint,UnassignSubdomainPathEndpoint,UncordonCloudClusterNodeEndpoint,UpdateAddonNetworksettingsEndpoint,UpdateAddonSecurityEndpoint,UpdateAddonVersionEndpoint,UpdateDomainEndpoint,UpdateEncryptionConfigurationOptionsEndpoint,UpdateEncryptionConfigurationSettingsEndpoint,UpdateExternaladdonEndpoint,UpdateJobBuildargumentsEndpoint,UpdateJobBuildoptionsEndpoint,UpdateJobBuildsourceEndpoint,UpdateJobDeploymentEndpoint,UpdateJobHealthchecksEndpoint,UpdateJobRuntimeenvironmentEndpoint,UpdateJobSettingsEndpoint,UpdateLlmmodeldeploymentEndpoint,UpdateLogsinkEndpoint,UpdateNotificationEndpoint,UpdatePreviewblueprintEndpoint,UpdatePreviewtemplateEndpoint,UpdateRegistrycredentialsEndpoint,UpdateReleaseflowEndpoint,UpdateSecretEndpoint,UpdateSecretlinkEndpoint,UpdateServiceBuildargumentsEndpoint,UpdateServiceBuildoptionsEndpoint,UpdateServiceBuildsourceEndpoint,UpdateServiceDeploymentEndpoint,UpdateServiceHealthchecksEndpoint,UpdateServicePortsEndpoint,UpdateServiceRolloutConfigurationEndpoint,UpdateServiceRuntimeenvironmentEndpoint,UpdateSshidentitiesEndpoint,UpdateSubdomainGeoroutingEndpoint,UpdateSubdomainPathEndpoint,UpdateTemplateEndpoint,UpdateVolumeEndpoint,UpdateWorkflowEndpoint,UpdateWorkloadidentitiesEndpoint,VerifyDomainEndpoint,VerifyEncryptionConfigurationEndpoint,VerifySubdomainEndpoint});
|
|
12
12
|
//# sourceMappingURL=api-client.js.map
|