@northflank/js-client 0.10.0-beta.0 → 0.10.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.
@@ -1,12 +1,12 @@
1
- import{flattenDeep as _o}from"lodash-es";import{EventEmitter as Fo}from"events";import{merge as fo}from"lodash-es";import{execSync as Yi}from"child_process";import bo from"stream";var j=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Ni,Zi=!1,E=async()=>{if(j){if(!Zi&&(Zi=!0,process.env.HTTP_PROXY??process.env.http_proxy??process.env.HTTPS_PROXY??process.env.https_proxy))try{let{EnvHttpProxyAgent:n}=await import("undici");Ni=new n}catch{Ni=void 0}return Ni}},te,re=async i=>{if(!i||!j)return fetch;if(!te)try{te=(await import("undici")).fetch}catch{te=fetch}return te},H=(i,n=50)=>e=>{let t=i,r=async()=>{try{return await e()}catch(s){if(t<=0)throw s;return t-=1,await new Promise(a=>setTimeout(()=>a(),n)),r()}};return r()};function Qi(){let i=()=>!(process.getuid&&process.getuid()!==0),n=()=>{try{return Yi("fsutil dirty query %systemdrive%"),!0}catch(e){if(e.code==="ENOENT")try{return Yi("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 Bi=i=>Array.isArray(i)?i:[i],Oi=async(i,n)=>{let e=Promise.resolve([]);return i.reduce((t,r)=>t.then(s=>n(r).then(a=>(s.push(a),s))),e)},S=class extends bo.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)),s=Buffer.byteLength(r);return s<this.size&&this.buffer.copy(this.buffer,0,s),this._size-=s,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 ne=class{constructor(n){this.contextProvider=n;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 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=await E(),s=fo({},{headers:{Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`,"Content-Type":"application/json"}},{...e,dispatcher:r}),a=await re(!!r),d=await H(2)(async()=>a(n,s)).catch(l=>{let u=l instanceof Error?l.cause?.message??l.message:String(l);throw new Error(`${t} (${u})`)});if(!d.ok){let l=await d.text(),u=t;try{u=JSON.parse(l)}catch(b){u=l??b?.message??t}finally{throw new Error(JSON.stringify(u))}}return await d.json()}};import Io from"os";import{Socket as Ro}from"net";import{spawn as ho}from"child_process";var Xi=async(i,n,e)=>{let t=N(n||"127.0.0.1"),r=N(e||"127.255.255.255");if(r<t)throw new Error("Invalid IP range");let s;Io.platform()==="darwin"&&(s=async a=>{let d=`lo0 alias ${a} up`;await Co(...d.split(" "))});for(let a=t;a<=r;a+=1){let d=Ji(a);if(await yo(i,d))return s&&await s(d),d}throw new Error(`Not possible to assign port '${i}' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service.`)},yo=(i,n)=>new Promise(e=>{let t=new Ro,r=400,s=!1;t.on("connect",()=>{s=!0,t.destroy()}),t.setTimeout(r),t.on("timeout",()=>{s=!1,t.destroy()}),t.on("error",()=>{s=!1}),t.on("close",()=>{e(!s)}),n?t.connect(i,n):t.connect(i)}),Co=async(...i)=>await Po("/sbin/ifconfig",i).resultPromise,N=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},Ji=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(".")},Po=(i,n,e)=>{let t=ho(i,n,{windowsHide:!0,...e}),r=new Promise((s,a)=>{let d="",l="";(e?.stdio===null||e?.stdio===void 0)&&(t.stdout&&t.stdout.on("data",b=>{d+=b}),t.stderr&&t.stderr.on("data",b=>{l+=b})),t.on("close",b=>{let f={code:b,stdout:d,stderr:l};if(b!==0){let g={message:`Error during execution of command '${i} ${n.join(" ")}': ${l}`,result:f};a(g)}else s(f)})});return{process:t,resultPromise:r}};import{isString as B}from"lodash-es";import K from"fs";import Fi from"path";import ae from"fs";import Mi from"path";var eo=async(i,n,e)=>{let t=vo(i,10);await ae.promises.writeFile(t,n,e);try{await ae.promises.rename(t,i)}catch(r){throw await ae.promises.unlink(t).catch(()=>{}),r}},vo=(i,n)=>{let e=s=>[...Array(s)].map(()=>Math.floor(Math.random()*16).toString(16)).join(""),t=Mi.dirname(i),r=Mi.basename(i);for(let s=0;s<(n??10);s+=1){let d=`.${e(16)}.${r}`,l=Mi.join(t,d);if(!ae.existsSync(l))return l}throw new Error(`Could not write file to file '${i}'.`)};import{flatMap as _i,isNumber as Ao,maxBy as So}from"lodash-es";var Eo=process.platform==="win32",no=Eo?`\r
1
+ import{EventEmitter as ed}from"events";import{execSync as ui}from"child_process";import Ui from"stream";var j=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ni,ci=!1,k=async()=>{if(j){if(!ci&&(ci=!0,process.env.HTTP_PROXY??process.env.http_proxy??process.env.HTTPS_PROXY??process.env.https_proxy))try{let{EnvHttpProxyAgent:n}=await import("undici");ni=new n}catch{ni=void 0}return ni}},re,ne=async o=>{if(!o||!j)return fetch;if(!re)try{re=(await import("undici")).fetch}catch{re=fetch}return re},z=(o,n=50)=>e=>{let t=o,r=async()=>{try{return await e()}catch(s){if(t<=0)throw s;return t-=1,await new Promise(a=>setTimeout(()=>a(),n)),r()}};return r()};function gi(){let o=()=>!(process.getuid&&process.getuid()!==0),n=()=>{try{return ui("fsutil dirty query %systemdrive%"),!0}catch(e){if(e.code==="ENOENT")try{return ui("fltmc"),!0}catch{return!1}return!1}};return process.platform!=="win32"?o()?{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 ai=o=>Array.isArray(o)?o:[o],ae=async(o,n)=>{let e=Promise.resolve([]);return o.reduce((t,r)=>t.then(s=>n(r).then(a=>(s.push(a),s))),e)},E=class extends Ui.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)),s=Buffer.byteLength(r);return s<this.size&&this.buffer.copy(this.buffer,0,s),this._size-=s,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 se=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 k(),s={...e,dispatcher:r,headers:{Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`,"Content-Type":"application/json",...e?.headers}},a=await ne(!!r),d=await z(2)(async()=>a(n,s)).catch(l=>{let u=l instanceof Error?l.cause?.message??l.message:String(l);throw new Error(`${t} (${u})`)});if(!d.ok){let l=await d.text(),u=t;try{u=JSON.parse(l)}catch(g){u=l??g?.message??t}finally{throw new Error(JSON.stringify(u))}}return await d.json()}};import xi from"os";import{Socket as ji}from"net";import{spawn as Li}from"child_process";var bi=async(o,n,e)=>{let t=B(n||"127.0.0.1"),r=B(e||"127.255.255.255");if(r<t)throw new Error("Invalid IP range");let s;xi.platform()==="darwin"&&(s=async a=>{let d=`lo0 alias ${a} up`;await qi(...d.split(" "))});for(let a=t;a<=r;a+=1){let d=si(a);if(await Ti(o,d))return s&&await s(d),d}throw new Error(`Not possible to assign port '${o}' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service.`)},Ti=(o,n)=>new Promise(e=>{let t=new ji,r=400,s=!1;t.on("connect",()=>{s=!0,t.destroy()}),t.setTimeout(r),t.on("timeout",()=>{s=!1,t.destroy()}),t.on("error",()=>{s=!1}),t.on("close",()=>{e(!s)}),n?t.connect(o,n):t.connect(o)}),qi=async(...o)=>await Di("/sbin/ifconfig",o).resultPromise,B=o=>{let n=o.split(".").reverse();if(n.length!==4)throw new Error(`Invalid ip address: ${o}`);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: ${o}`);e+=r<<8*t}return e},si=o=>{if(!Number.isSafeInteger(o))throw new Error("Number is not an integer");if(o<0||o>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");let n=[];for(let e=0;e<4;e+=1)n.push(o>>8*e&255);return n.reverse().join(".")},Di=(o,n,e)=>{let t=Li(o,n,{windowsHide:!0,...e}),r=new Promise((s,a)=>{let d="",l="";(e?.stdio===null||e?.stdio===void 0)&&(t.stdout&&t.stdout.on("data",g=>{d+=g}),t.stderr&&t.stderr.on("data",g=>{l+=g})),t.on("close",g=>{let I={code:g,stdout:d,stderr:l};if(g!==0){let b={message:`Error during execution of command '${o} ${n.join(" ")}': ${l}`,result:I};a(b)}else s(I)})});return{process:t,resultPromise:r}};import W from"fs";import ii from"path";import oe from"fs";import oi from"path";var Ii=async(o,n,e)=>{let t=Gi(o,10);await oe.promises.writeFile(t,n,e);try{await oe.promises.rename(t,o)}catch(r){throw await oe.promises.unlink(t).catch(()=>{}),r}},Gi=(o,n)=>{let e=s=>[...Array(s)].map(()=>Math.floor(Math.random()*16).toString(16)).join(""),t=oi.dirname(o),r=oi.basename(o);for(let s=0;s<(n??10);s+=1){let d=`.${e(16)}.${r}`,l=oi.join(t,d);if(!oe.existsSync(l))return l}throw new Error(`Could not write file to file '${o}'.`)};var Ni=process.platform==="win32",Ri=Ni?`\r
2
2
  `:`
3
- `,ko=17,V=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 e.forEach(s=>{if(r.hosts.find(d=>d.host===s))return;let a=1;r.hosts.length===0&&(a=this.config.indent-`${r.ipPrefixWhitespace}${r.ip}`.length),r.hosts.push({whitespace:" ".repeat(a<1?1:a),host:s})}),this}remove(n,e){return this.findEntries(n).forEach(t=>{e.forEach(r=>{let s=t.hosts.findIndex(a=>a.host===r);s<0||(s===0&&t.hosts[1]!==void 0&&(t.hosts[1].whitespace=t.hosts[0].whitespace),t.hosts.splice(s,1),t.hosts.length===0&&this.removeEntry(t))})}),this}removeHosts(n){z(this.nodes,"entry").forEach(e=>{this.remove(e.ip,n)})}removeIps(n){return n.forEach(e=>{this.findEntries(e).forEach(t=>this.removeEntry(t))}),this}resolveHosts(n){return _i(this.findEntries(n),e=>e.hosts.map(t=>t.host))}resolveIps(n){return z(this.nodes,"entry").filter(e=>e.hosts.some(t=>t.host===n)).map(e=>e.ip)}toString(){return jo(this.nodes,this.config.eol)}removeEntry(n){let e=Ao(n)?n:this.nodes.findIndex(t=>t===n);e<0||this.nodes.splice(e,1)}findEntries(n){return z(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 s=ao(e),a=this.nodes.findIndex(d=>d.type==="comment"&&d.line===s);if(a>=0)this.insertAt(a+1,r);else{let l=this.nodes[this.nodes.length-1].type!=="blank"?[xo(),to(s),r]:[to(s),r];this.insertAt(this.nodes.length,...l)}}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 s=z(n,"eol").map(a=>a.line);return ro(s)??no},r=()=>{let s=_i(z(n,"entry"),({ipPrefixWhitespace:a,ip:d,hosts:l})=>{let u=l[0];return u?[`${a}${d}${u.whitespace}`.length]:[]});return ro(s)??ko};return new i(n.filter(s=>s.type!=="eol"),{eol:e?.eol??t(),indent:e?.indent??r(),ipPrefixWhitespace:""})}static parse(n,e){return this.fromNodes(Uo(n),e)}},xo=()=>({type:"blank",line:""}),to=i=>({type:"comment",line:ao(i)}),ao=i=>i.startsWith("#")?i:`# ${i}`,jo=(i,n)=>i.map(t=>{switch(t.type){case"entry":{let r=t.hosts.map(({whitespace:s,host:a})=>`${s}${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??no),Uo=i=>{let n=s=>s.match(/^\s*#.*$/),e=s=>s.match(/^\s*$/),t=s=>s.match(/^(\r?\n)$/);return i.split(/(\r?\n)/).map(s=>n(s)?{type:"comment",line:s}:t(s)?{type:"eol",line:s}:e(s)?{type:"blank",line:s}:Lo(s))},Lo=i=>{let n=i.match(/^(\s*)(\S+)(.+)?$/);if(!n)return{type:"invalid",line:i};let[,e,t,...r]=n,s=!1,a=r.filter(l=>l!==void 0),d=_i(a,l=>{let u=l.match(/(\s+)(\S+)/g);return u?u.map(b=>{let f=b.match(/^(\s+)(\S+)$/);f||(s=!0);let[,h,g]=f??[];return{whitespace:h,host:g}}):(s=!0,[])});return s?{type:"invalid",line:i}:{type:"entry",ipPrefixWhitespace:e,ip:t,hosts:d}},z=(i,n)=>i.filter(e=>e.type===n),ro=i=>{let n=new Map;i.forEach(t=>{n.set(t,(n.get(t)??0)+1)});let e=So(Array.from(n.entries()),t=>t[1]);if(e)return e[0]};var qo=process.platform==="win32",To=qo?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",se=class i{constructor(n){this.ast=V.fromNodes([]);let e={writeMode:"atomic",hostsFile:To};this.config={...e,...n}}add(n,...e){if(!B(n))throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(t=>{if(!B(t))throw new Error(`Expected 'host' to be a string, but got ${typeof t}.`)}),this.ast.add(n,e,this.config.header),this}remove(n,...e){if(!B(n))throw new Error(`Expected 'ip' to be a string, but got ${typeof n}.`);return e.forEach(t=>{if(!B(t))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(!B(e))throw new Error(`Expected 'host' to be a string, but got ${typeof e}.`)}),this.ast.removeHosts(n),this}removeIps(...n){return n.forEach(e=>{if(!B(e))throw new Error(`Expected 'ip' to be a string, but got ${typeof e}.`)}),this.ast.removeIps(n),this}async read(){let n=await K.promises.readFile(this.config.hostsFile);return this.ast=V.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 eo(e,r);break;case"standard":await K.promises.writeFile(e,r);break;default:break}return this}async backup(n){if(!K.existsSync(this.config.hostsFile))return;let e=Fi.dirname(this.config.hostsFile),r=`${Fi.basename(this.config.hostsFile)}${n.suffix}`,s=Fi.resolve(e,r);(!K.existsSync(s)||n.rewrite)&&await K.promises.copyFile(this.config.hostsFile,s)}static async load(n){return await new i(n).read()}};var W=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}};import Hi from"pump";import*as so from"net";import{EventEmitter as Go}from"events";import{escapeRegExp as $o}from"lodash-es";import{Transform as No}from"stream";import{WebSocket as Bo}from"undici";import{Duplex as Do}from"stream";function O(i,n=1<<20){i.binaryType="arraybuffer";let e=!1,t=[],r=new Do({read(){},write(s,a,d){let l=()=>{try{i.send(s)}catch(b){return d(b)}let u=()=>i.bufferedAmount<n?d():setTimeout(u,5);u()};e?l():t.push(l)},final(s){try{i.close(1e3)}catch{}s()},destroy(s,a){try{i.close()}catch{}a(s)}});return i.addEventListener("open",()=>{e=!0,t.splice(0).forEach(s=>s())}),i.addEventListener("message",s=>{let a=s.data;r.push(Buffer.from(a))}),i.addEventListener("close",()=>{r.push(null)}),i.addEventListener("error",s=>{r.destroy(s?.error instanceof Error?s.error:new Error("WebSocket error"))}),r}var ie=class extends Go{constructor(e,t,r,s,a,d=5e3){super();this.endpoint=e;this.headers=t;this.rewriteHostHeader=r;this.bindToAssign=s;this.dispatcher=a;this.closeTimeout=d;this.protocol="TCP";this.openConnections=new Set;this.tcpServer=so.createServer(this.handleConnection.bind(this));let l=r?.altHostnames.map(u=>$o(u)).join("|");this.hostRegex=new RegExp(`Host: (?:${l})(:.*$|$)`,"im")}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1){return this.resolvedDispatcher=this.dispatcher??await E(),new Promise(t=>{if(this.bindToAssign){let{port:r,address:s}=this.bindToAssign,a=!1;e&&this.tcpServer.once("error",d=>{if(d.code==="EADDRINUSE"||d.code==="EACCES")a=!0,this.tcpServer.listen(0,s,()=>{let l=this.tcpServer.address().port;this.boundTo={address:s,port:l},this.emit("tunnel-open",{address:s,port:l}),t({address:s,port:l})});else throw d}),this.tcpServer.listen(r,s,()=>{a||(this.emit("tunnel-open",{address:s,port:r}),t({address:s,port:r}))})}else this.tcpServer.listen(0,()=>{let{address:r,port:s}=this.tcpServer.address(),a=r==="0.0.0.0"||r==="::"?"127.0.0.1":r;this.boundTo={address:a,port:s},this.emit("tunnel-open",this.boundTo),t(this.boundTo)})})}async close(){let e=!1;await Promise.race([new Promise(t=>{this.tcpServer.close(()=>{e=!0,this.emit("tunnel-close"),t()})}),new Promise(t=>{new Promise(r=>setTimeout(r,this.closeTimeout)).then(()=>{e||(this.openConnections.forEach(r=>{r.destroy(),this.openConnections.delete(r)}),t())})})])}handleConnection(e){this.openConnections.add(e);let t=this.endpoint.replace("https:","wss:"),r=new Bo(t,{headers:this.headers,dispatcher:this.resolvedDispatcher}),s=O(r),a=this.getHeaderTransform();this.rewriteHostHeader&&a?Hi(e,a,s):Hi(e,s),Hi(s,e),r.addEventListener("close",l=>{this.emit("connection-close",l.code,l.reason)});let d;r.addEventListener("error",l=>{d=l?.error instanceof Error?l.error:new Error("WebSocket connection failed"),this.emit("connection-error",d),e.destroy()}),s.on("error",l=>{d||this.emit("connection-error",l)}),e.on("error",l=>{this.emit("connection-error",l)}),this.emit("connection-accept")}getHeaderTransform(){let e=(t,r,s)=>{let a=(u,b,f)=>{let h=Buffer.from(b),g=u.indexOf(h);if(g===-1)return u;let I=u.subarray(0,g),C=u.subarray(g+h.length);return Buffer.concat([I,f,C])},d=Buffer.from(s),l=Buffer.from(t);return r.forEach(u=>{l=a(l,u,d)}),l};if(this.rewriteHostHeader){let{targetHostname:t,altHostnames:r}=this.rewriteHostHeader,s=this.hostRegex;return new No({transform(a,d,l){let u=a.toString();if(u.split(`
4
- `,1)[0].includes("HTTP")&&s.test(u)){let f=r.map(h=>`Host: ${h}`);l(null,e(a,f,`Host: ${t}`))}else l(null,a)}})}}};import{EventEmitter as Oo}from"events";import Jo from"dgram";import{WebSocket as Mo}from"undici";var oe=class extends Oo{constructor(e,t,r,s){super();this.endpoint=e;this.headers=t;this.bindToAssign=r;this.dispatcher=s;this.protocol="UDP";this.udpSocket=Jo.createSocket("udp4")}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1){return await this.handleConnection(),new Promise(t=>{if(this.bindToAssign){let{port:r,address:s}=this.bindToAssign,a=!1;e&&this.udpSocket.once("error",d=>{if(d.code==="EADDRINUSE")this.udpSocket.bind(0,s,()=>{a=!0;let l=this.udpSocket.address().port;this.boundTo={address:s,port:l},this.emit("tunnel-open",{address:s,port:l}),t({address:s,port:l})});else throw d}),this.udpSocket.bind(r,s,()=>{a||(a=!0,this.boundTo={address:s,port:r},this.emit("tunnel-open",{address:s,port:r}),t({address:s,port:r}))})}else this.udpSocket.bind(0,()=>{let{address:r,port:s}=this.udpSocket.address(),a=r==="0.0.0.0"||r==="::"?"127.0.0.1":r;this.boundTo={address:a,port:s},this.emit("tunnel-open",this.boundTo),t(this.boundTo)})})}async close(){await new Promise(e=>{this.udpSocket.close(()=>{this.emit("tunnel-close"),e()})})}async handleConnection(){let e=this.dispatcher??await E(),t=this.endpoint.replace("https:","wss:"),r=new Mo(t,{headers:this.headers,dispatcher:e}),s=O(r),a;this.udpSocket.on("message",(l,u)=>{a=u,s.write(l)}),s.on("data",l=>{a&&this.udpSocket.send(l,a.port,a.address,u=>{u&&this.emit("connection-error",u)})}),this.udpSocket.on("error",l=>{this.emit("connection-error",l)});let d;r.addEventListener("error",l=>{d=l?.error instanceof Error?l.error:new Error("WebSocket connection failed"),this.emit("connection-error",d)}),s.on("error",l=>{d||this.emit("connection-error",l)}),r.addEventListener("close",l=>{this.emit("connection-close",l.code,l.reason)}),this.emit("connection-accept")}};import Ho from"os";import{createHash as zo}from"crypto";var de=class extends Fo{constructor(e,t,r,s){super();this.contextProvider=e;this.listServices=t;this.listAddons=r;this.dispatcher=s;this.connections=[];this.hostsFileMutex=new W;this.ipAllocationMutex=new W;this.stopForwarding=async e=>{await e.tunnel.close();let{projectId:t,type:r,id:s,hostnames:a,ipOnly:d}=e.forwardingContext;a.length>0&&!d&&await this.unregisterHostnames(e.tunnel.bindTo?.address,a),this.connections.splice(this.connections.findIndex(l=>{let{type:u,id:b,projectId:f}=l.forwardingContext;return b===s&&f===t&&u===r}),1)};this.canExecuteWithHostnames=()=>Qi();this.assertStartedWithNodejs=()=>{if(!j)throw new Error("Port forwarding only possible when started with nodejs")};this.proxyApiClient=new ne(e)}async withProjectForwarding(e,t,r=!0){let s=await this.forwardProject(e,r);try{return await t(s)}finally{await this.stopProjectForwarding(e)}}async forwardProject(e,t=!0){this.assertStartedWithNodejs();let{projectId:r}=e,s=await this.listServices.all({parameters:{projectId:r}}),a=await this.listAddons.all({parameters:{projectId:r}}),d=await Promise.all(s.data.services.map(async u=>this.forwardService({projectId:r,serviceId:u.id},t))),l=await Promise.all(a.data.addons.map(async u=>await this.forwardAddon({projectId:r,addonId:u.id},t)));return{services:d,addons:l}}async withServiceForwarding(e,t,r=!0){let s=await this.forwardService(e,r);try{return await t(s)}finally{await this.stopServiceForwarding(e)}}async forwardService(e,t=!0){this.assertStartedWithNodejs();let{teamId:r,projectId:s,serviceId:a,instanceId:d,portsFilter:l}=e,u=await this.proxyApiClient.getServiceDetails(s,a,r),{namespace:b,targetDomain:f,instances:h,ports:g}=u;if(h.length===0)return[];let I=P=>{let w=h.map($i=>$i.podName);if(d!==void 0&&!w.includes(d))throw new Error(`Instance id not found: ${d}. Expected one of [${w.join(", ")}]. Ensure that requested instance id is running on service ${a} in project ${s}.`);let L=this.proxyApiClient.getTeamScopePrefix(r),D=d!==void 0?"?directConnect=true":"",G=`https://${f}/tunnel/${L}projects/${s}/services/${a}/instance/${d??h[0].podName}/port/${P.internalPort}${D}`,v=d!==void 0?`${d}.`:"",x=`${v}${a}.${b}.svc.cluster.local`,$=[`${v}${a}`];P.name&&$.push(`${v}${P.name}.${a}`);let F;P.protocol==="HTTP"&&(F={altHostnames:$,targetHostname:x});let Wi=[x,...$];return this.forwardPort(G,P,Wi,"service",a,s,t,F)},C=l===void 0?g:g.filter(P=>l.includes(P.internalPort));return await Oi(C,I)}async withAddonForwarding(e,t,r=!0){let s=await this.forwardAddon(e,r);try{return await t(s)}finally{await this.stopAddonForwarding(e)}}async forwardAddon(e,t=!0){this.assertStartedWithNodejs();let{teamId:r,addonId:s,projectId:a}=e,d=await this.proxyApiClient.getAddonDetails(a,s,r),l=d.instances.map(b=>{let{podName:f,internalHostname:h}=b;return b.ports.map(g=>({podName:f,internalHostname:h,port:g}))}),u=this.proxyApiClient.getTeamScopePrefix(r);return await Oi(_o(l),async({podName:b,internalHostname:f,port:h})=>{let g=`https://${d.targetDomain}/tunnel/${u}projects/${a}/addons/${s}/instance/${b}/port/${h.internalPort}`;return this.forwardPort(g,h,[f],"addon",s,a,t)})}async allocateIpAddress(e){return this.ipAllocationMutex.enter(async()=>{let t="127.24.1.1",r="127.24.255.255",s=this.nextIpAddress??t,a=await Xi(e,s,r);return this.nextIpAddress=Ji(N(a)+1),N(this.nextIpAddress)>N(r)&&(this.nextIpAddress=t),a})}async forwardPort(e,t,r,s,a,d,l=!0,u,b=!0){let f={Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`};if(!l){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,s,t,l,b),g=t.protocol==="UDP"?new oe(e,f,h,this.dispatcher):new ie(e,f,u,h,this.dispatcher);l||await this.registerHostnames(g.bindTo?.address,r),g.on("connection-accept",()=>this.emit("connection-accept",g)),g.on("connection-close",async()=>this.emit("connection-close",g));let I=await g.open(b),C={projectId:d,id:a,type:s,hostnames:r,ipOnly:l,port:I.port,address:I.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort};return this.emit("tunnel-open",g,C),g.on("connection-error",P=>this.emit("connection-error",g,C,P)),g.on("tunnel-close",()=>this.emit("tunnel-close",g,C)),this.connections.push({tunnel:g,forwardingContext:C}),{data:C}}async determineSocketAddress(e,t,r,s,a,d,l){if(d&&Ho.platform()==="darwin")if(l&&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 b=this.connections.filter(f=>f.forwardingContext.projectId===e&&f.forwardingContext.id===t&&f.forwardingContext.type===s)?.find(f=>r.find(h=>f.forwardingContext.hostnames.includes(h)));return b?{address:b?.forwardingContext.address,port:a.internalPort}:{address:await this.allocateIpAddress(a.internalPort),port:a.internalPort}}consistentHostnameToPortHashing(e){let a=zo("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.add(e,...t)})}async unregisterHostnames(e,t){await this.modifyHostsFile(r=>{r.remove(e,...t)})}async modifyHostsFile(e){await this.hostsFileMutex.enter(async()=>{let t=await se.load({header:"Northflank Proxy"});e(t),await t.backup({suffix:".backup-pre-northflank"});try{await H(5)(async()=>{await t.write({writeMode:"atomic"})})}catch{await H(5)(async()=>{await t.write({writeMode:"standard"})})}})}async stopProjectForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.projectId===e.projectId).map(t=>this.stopForwarding(t)))}async stopServiceForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.type==="service"&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId).map(t=>this.stopForwarding(t)))}async stopAddonForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.type==="addon"&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId).map(t=>this.stopForwarding(t)))}async stop(){await Promise.all(this.connections.map(async e=>this.stopForwarding(e)))}};import{EventEmitter as Vo}from"events";import{WebSocket as Ko}from"undici";import*as le from"stream";var zi=["us","eu","asia"];var Y=class extends Vo{constructor(e,t,r,s,a=new le.PassThrough,d=new le.PassThrough,l=new le.PassThrough){super();this.baseUrl=e;this.execConfig=t;this.token=r;this.dispatcher=s;this.stdOut=a;this.stdErr=d;this.stdIn=l;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:s}=this.execConfig,a=s!==void 0?`teams/${s}/`:"",d=`${this.baseUrl}/v1/command-exec/${a}projects/${r}/`;function l(){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}${l()}`}async start(){if(this.currentCommand!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await E(),this.currentCommand=new Promise((e,t)=>{if(this.remote!==void 0){t(Error("Command is already running"));return}let r=!1,s,a=g=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(g));return}r=!0,this.listenerCount("error")>0&&this.emit("error",new Error(g)),this.reset(),t(new Error(g))},d=()=>{r||(r=!0,this.emit("command-completed"),this.reset(),e(s))};try{let g=this.execEndpoint.replace("https:","wss:").replace("http:","ws:");this.remote=new Ko(g,{dispatcher:this.resolvedDispatcher}),this.remote.addEventListener("error",I=>{a(`WebSocket error: ${I?.error?.message??I?.message??"connection failed"}`)}),this.remote.addEventListener("close",I=>{![1e3,1005].includes(I.code)&&!r&&a(`WebSocket closed unexpectedly: ${I.code} ${I.reason||"(no reason)"}`)}),this.duplex=O(this.remote)}catch(g){a(`Failed to establish connection to command execution proxy: ${g.message}`);return}let l=g=>{this.duplex?.writable&&this.duplex.write(this.constructPayloadPacket(g))},u=()=>{this.duplex?.writable&&this.duplex.write(this.stdInEndPacket)};this.stdIn.on("data",l),this.stdIn.on("end",u);let b=g=>{try{let I=JSON.parse(g.toString());switch(I?.type){case"init":{let C=I.data;C.auth!=="successful"?a(`Command initialization failed: ${C?.message??"Reason unknown"}`):this.emit("auth-success",C);break}case"completion":{s=I.data,this.emit("command-result",s),this.duplex?.end(),this.stdOut.end(),this.stdErr.end(),this.stdIn.end();break}case"stdOut":{this.emit("std-out-data",I.data),this.stdOut.write(I.data,this.execConfig?.encoding);break}case"stdErr":{this.emit("std-err-data",I.data),this.stdErr.write(I.data,this.execConfig?.encoding);break}case"error":{a(I.data?.message||"Unknown error");break}default:{let C=`unable to parse message: ${JSON.stringify(I)}`;a(C)}}}catch(I){a(`Failed to parse message: ${I.message}`)}},f=()=>{s?d():r||a("Connection closed before receiving command result")},h=g=>{a(`Duplex stream error: ${g.message}`)};this.duplex?.on("data",b),this.duplex?.on("end",f),this.duplex?.on("error",h),this.initialAuth(),this.emit("command-started")}),this.currentCommand}initialAuth(){let{command:e,containerName:t,instanceName:r,shell:s,user:a}=this.execConfig,{group:d,encoding:l,tty:u,ttyColumns:b,ttyRows:f}=this.execConfig,h={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:r,containerName:t,command:e,shell:s,user:a,group:d,encoding:l,tty:u,ttyColumns:b,ttyRows:f}}};this.duplex?.write(JSON.stringify(h))}reset(){this.remote=void 0,this.currentCommand=void 0,this.duplex?.destroy(),this.duplex=void 0}};import{connect as Yo}from"http2";import{EventEmitter as Wo}from"events";import*as pe from"stream";var Z=class extends Wo{constructor(e,t,r,s=new pe.PassThrough,a=new pe.PassThrough,d=new pe.PassThrough){super();this.execConfig=e;this.token=t;this.session=r;this.stdOut=s;this.stdErr=a;this.stdIn=d;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)}
3
+ `,Bi=17,K=class o{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 e.forEach(s=>{if(r.hosts.find(d=>d.host===s))return;let a=1;r.hosts.length===0&&(a=this.config.indent-`${r.ipPrefixWhitespace}${r.ip}`.length),r.hosts.push({whitespace:" ".repeat(a<1?1:a),host:s})}),this}remove(n,e){return this.findEntries(n).forEach(t=>{e.forEach(r=>{let s=t.hosts.findIndex(a=>a.host===r);s<0||(s===0&&t.hosts[1]!==void 0&&(t.hosts[1].whitespace=t.hosts[0].whitespace),t.hosts.splice(s,1),t.hosts.length===0&&this.removeEntry(t))})}),this}removeHosts(n){V(this.nodes,"entry").forEach(e=>{this.remove(e.ip,n)})}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 V(this.nodes,"entry").filter(e=>e.hosts.some(t=>t.host===n)).map(e=>e.ip)}toString(){return Mi(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 V(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 s=yi(e),a=this.nodes.findIndex(d=>d.type==="comment"&&d.line===s);if(a>=0)this.insertAt(a+1,r);else{let l=this.nodes[this.nodes.length-1].type!=="blank"?[Oi(),fi(s),r]:[fi(s),r];this.insertAt(this.nodes.length,...l)}}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 s=V(n,"eol").map(a=>a.line);return hi(s)??Ri},r=()=>{let s=V(n,"entry").flatMap(({ipPrefixWhitespace:a,ip:d,hosts:l})=>{let u=l[0];return u?[`${a}${d}${u.whitespace}`.length]:[]});return hi(s)??Bi};return new o(n.filter(s=>s.type!=="eol"),{eol:e?.eol??t(),indent:e?.indent??r(),ipPrefixWhitespace:""})}static parse(n,e){return this.fromNodes(Ji(n),e)}},Oi=()=>({type:"blank",line:""}),fi=o=>({type:"comment",line:yi(o)}),yi=o=>o.startsWith("#")?o:`# ${o}`,Mi=(o,n)=>o.map(t=>{switch(t.type){case"entry":{let r=t.hosts.map(({whitespace:s,host:a})=>`${s}${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??Ri),Ji=o=>{let n=s=>s.match(/^\s*#.*$/),e=s=>s.match(/^\s*$/),t=s=>s.match(/^(\r?\n)$/);return o.split(/(\r?\n)/).map(s=>n(s)?{type:"comment",line:s}:t(s)?{type:"eol",line:s}:e(s)?{type:"blank",line:s}:_i(s))},_i=o=>{let n=o.match(/^(\s*)(\S+)(.+)?$/);if(!n)return{type:"invalid",line:o};let[,e,t,...r]=n,s=!1,d=r.filter(l=>l!==void 0).flatMap(l=>{let u=l.match(/(\s+)(\S+)/g);return u?u.map(g=>{let I=g.match(/^(\s+)(\S+)$/);I||(s=!0);let[,R,b]=I??[];return{whitespace:R,host:b}}):(s=!0,[])});return s?{type:"invalid",line:o}:{type:"entry",ipPrefixWhitespace:e,ip:t,hosts:d}},V=(o,n)=>o.filter(e=>e.type===n),hi=o=>{let n=new Map;o.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 Hi=process.platform==="win32",Fi=Hi?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",ie=class o{constructor(n){this.ast=K.fromNodes([]);let e={writeMode:"atomic",hostsFile:Fi};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}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}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 W.promises.readFile(this.config.hostsFile);return this.ast=K.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 Ii(e,r);break;case"standard":await W.promises.writeFile(e,r);break;default:break}return this}async backup(n){if(!W.existsSync(this.config.hostsFile))return;let e=ii.dirname(this.config.hostsFile),r=`${ii.basename(this.config.hostsFile)}${n.suffix}`,s=ii.resolve(e,r);(!W.existsSync(s)||n.rewrite)&&await W.promises.copyFile(this.config.hostsFile,s)}static async load(n){return await new o(n).read()}};var Y=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}};import di from"pump";import*as Ci from"net";import{EventEmitter as Vi}from"events";import{Transform as Ki}from"stream";import{WebSocket as Wi}from"undici";import{Duplex as zi}from"stream";function O(o,n=1<<20){o.binaryType="arraybuffer";let e=1,t=!1,r=null,s=[],a=(u,g)=>{try{o.send(u)}catch(R){return g(R)}let I=()=>{if(r)return g(r);if(o.bufferedAmount<n)return g();if(o.readyState!==e)return g(new Error("WebSocket closed before write drained"));setTimeout(I,5)};I()},d=u=>{for(let{cb:g}of s.splice(0))g(u)},l=new zi({read(){},write(u,g,I){t?a(u,I):s.push({chunk:u,cb:I})},final(u){try{o.close(1e3)}catch{}u()},destroy(u,g){try{o.close()}catch{}g(u)}});return o.addEventListener("open",()=>{t=!0;for(let{chunk:u,cb:g}of s.splice(0))a(u,g)}),o.addEventListener("message",u=>{let g=u.data;l.push(Buffer.from(g))}),o.addEventListener("close",()=>{d(r??new Error("WebSocket closed before write drained")),l.push(null)}),o.addEventListener("error",u=>{let g=u?.error instanceof Error?u.error:new Error("WebSocket error");r=g,d(g),l.destroy(g)}),l}var Yi=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),de=class extends Vi{constructor(e,t,r,s,a,d=5e3){super();this.endpoint=e;this.headers=t;this.rewriteHostHeader=r;this.bindToAssign=s;this.dispatcher=a;this.closeTimeout=d;this.protocol="TCP";this.openConnections=new Set;this.tcpServer=Ci.createServer(this.handleConnection.bind(this));let l=r?.altHostnames.map(u=>Yi(u)).join("|");this.hostRegex=new RegExp(`Host: (?:${l})(:.*$|$)`,"im")}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1){return this.resolvedDispatcher=this.dispatcher??await k(),new Promise(t=>{if(this.bindToAssign){let{port:r,address:s}=this.bindToAssign,a=!1;e&&this.tcpServer.once("error",d=>{if(d.code==="EADDRINUSE"||d.code==="EACCES")a=!0,this.tcpServer.listen(0,s,()=>{let l=this.tcpServer.address().port;this.boundTo={address:s,port:l},this.emit("tunnel-open",{address:s,port:l}),t({address:s,port:l})});else throw d}),this.tcpServer.listen(r,s,()=>{a||(this.emit("tunnel-open",{address:s,port:r}),t({address:s,port:r}))})}else this.tcpServer.listen(0,()=>{let{address:r,port:s}=this.tcpServer.address(),a=r==="0.0.0.0"||r==="::"?"127.0.0.1":r;this.boundTo={address:a,port:s},this.emit("tunnel-open",this.boundTo),t(this.boundTo)})})}async close(){let e=!1;await Promise.race([new Promise(t=>{this.tcpServer.close(()=>{e=!0,this.emit("tunnel-close"),t()})}),new Promise(t=>{new Promise(r=>setTimeout(r,this.closeTimeout)).then(()=>{e||(this.openConnections.forEach(r=>{r.destroy(),this.openConnections.delete(r)}),t())})})])}handleConnection(e){this.openConnections.add(e);let t=this.endpoint.replace("https:","wss:"),r=new Wi(t,{headers:this.headers,dispatcher:this.resolvedDispatcher}),s=O(r),a=this.getHeaderTransform();this.rewriteHostHeader&&a?di(e,a,s):di(e,s),di(s,e),r.addEventListener("close",l=>{this.emit("connection-close",l.code,l.reason)});let d;r.addEventListener("error",l=>{d=l?.error instanceof Error?l.error:new Error("WebSocket connection failed"),this.emit("connection-error",d),e.destroy()}),s.on("error",l=>{d||this.emit("connection-error",l)}),e.on("error",l=>{this.emit("connection-error",l)}),this.emit("connection-accept")}getHeaderTransform(){let e=(t,r,s)=>{let a=(u,g,I)=>{let R=Buffer.from(g),b=u.indexOf(R);if(b===-1)return u;let f=u.subarray(0,b),C=u.subarray(b+R.length);return Buffer.concat([f,I,C])},d=Buffer.from(s),l=Buffer.from(t);return r.forEach(u=>{l=a(l,u,d)}),l};if(this.rewriteHostHeader){let{targetHostname:t,altHostnames:r}=this.rewriteHostHeader,s=this.hostRegex;return new Ki({transform(a,d,l){let u=a.toString();if(u.split(`
4
+ `,1)[0].includes("HTTP")&&s.test(u)){let I=r.map(R=>`Host: ${R}`);l(null,e(a,I,`Host: ${t}`))}else l(null,a)}})}}};import{EventEmitter as Zi}from"events";import Qi from"dgram";import{WebSocket as Xi}from"undici";var le=class extends Zi{constructor(e,t,r,s){super();this.endpoint=e;this.headers=t;this.bindToAssign=r;this.dispatcher=s;this.protocol="UDP";this.udpSocket=Qi.createSocket("udp4")}get bindTo(){return this.boundTo??this.bindToAssign}async open(e=!1){return await this.handleConnection(),new Promise(t=>{if(this.bindToAssign){let{port:r,address:s}=this.bindToAssign,a=!1;e&&this.udpSocket.once("error",d=>{if(d.code==="EADDRINUSE")this.udpSocket.bind(0,s,()=>{a=!0;let l=this.udpSocket.address().port;this.boundTo={address:s,port:l},this.emit("tunnel-open",{address:s,port:l}),t({address:s,port:l})});else throw d}),this.udpSocket.bind(r,s,()=>{a||(a=!0,this.boundTo={address:s,port:r},this.emit("tunnel-open",{address:s,port:r}),t({address:s,port:r}))})}else this.udpSocket.bind(0,()=>{let{address:r,port:s}=this.udpSocket.address(),a=r==="0.0.0.0"||r==="::"?"127.0.0.1":r;this.boundTo={address:a,port:s},this.emit("tunnel-open",this.boundTo),t(this.boundTo)})})}async close(){await new Promise(e=>{this.udpSocket.close(()=>{this.emit("tunnel-close"),e()})})}async handleConnection(){let e=this.dispatcher??await k(),t=this.endpoint.replace("https:","wss:"),r=new Xi(t,{headers:this.headers,dispatcher:e}),s=O(r),a;this.udpSocket.on("message",(l,u)=>{a=u,s.write(l)}),s.on("data",l=>{a&&this.udpSocket.send(l,a.port,a.address,u=>{u&&this.emit("connection-error",u)})}),this.udpSocket.on("error",l=>{this.emit("connection-error",l)});let d;r.addEventListener("error",l=>{d=l?.error instanceof Error?l.error:new Error("WebSocket connection failed"),this.emit("connection-error",d)}),s.on("error",l=>{d||this.emit("connection-error",l)}),r.addEventListener("close",l=>{this.emit("connection-close",l.code,l.reason)}),this.emit("connection-accept")}};import td from"os";import{createHash as rd}from"crypto";var pe=class extends ed{constructor(e,t,r,s){super();this.contextProvider=e;this.listServices=t;this.listAddons=r;this.dispatcher=s;this.connections=[];this.hostsFileMutex=new Y;this.ipAllocationMutex=new Y;this.stopForwarding=async e=>{await e.tunnel.close();let{projectId:t,type:r,id:s,hostnames:a,ipOnly:d}=e.forwardingContext;a.length>0&&!d&&await this.unregisterHostnames(e.tunnel.bindTo?.address,a),this.connections.splice(this.connections.findIndex(l=>{let{type:u,id:g,projectId:I}=l.forwardingContext;return g===s&&I===t&&u===r}),1)};this.canExecuteWithHostnames=()=>gi();this.assertStartedWithNodejs=()=>{if(!j)throw new Error("Port forwarding only possible when started with nodejs")};this.proxyApiClient=new se(e,s)}async withProjectForwarding(e,t,r=!0){let s=await this.forwardProject(e,r);try{return await t(s)}finally{await this.stopProjectForwarding(e)}}async forwardProject(e,t=!0){this.assertStartedWithNodejs();let{projectId:r}=e,s=await this.listServices.all({parameters:{projectId:r}}),a=await this.listAddons.all({parameters:{projectId:r}}),d=await Promise.all(s.data.services.map(async u=>this.forwardService({projectId:r,serviceId:u.id},t))),l=await Promise.all(a.data.addons.map(async u=>await this.forwardAddon({projectId:r,addonId:u.id},t)));return{services:d,addons:l}}async withServiceForwarding(e,t,r=!0){let s=await this.forwardService(e,r);try{return await t(s)}finally{await this.stopServiceForwarding(e)}}async forwardService(e,t=!0){this.assertStartedWithNodejs();let{teamId:r,projectId:s,serviceId:a,instanceId:d,portsFilter:l}=e,u=await this.proxyApiClient.getServiceDetails(s,a,r),{namespace:g,targetDomain:I,instances:R,ports:b}=u;if(R.length===0)return[];let f=P=>{let v=R.map(F=>F.podName);if(d!==void 0&&!v.includes(d))throw new Error(`Instance id not found: ${d}. Expected one of [${v.join(", ")}]. Ensure that requested instance id is running on service ${a} in project ${s}.`);let x=this.proxyApiClient.getTeamScopePrefix(r),q=d!==void 0?"?directConnect=true":"",G=`https://${I}/tunnel/${x}projects/${s}/services/${a}/instance/${d??R[0].podName}/port/${P.internalPort}${q}`,w=d!==void 0?`${d}.`:"",S=`${w}${a}.${g}.svc.cluster.local`,L=[`${w}${a}`];P.name&&L.push(`${w}${P.name}.${a}`);let T;P.protocol==="HTTP"&&(T={altHostnames:L,targetHostname:S});let H=[S,...L];return this.forwardPort(G,P,H,"service",a,s,t,T)},C=l===void 0?b:b.filter(P=>l.includes(P.internalPort));return await ae(C,f)}async withHarnessForwarding(e,t,r=!0){let s=await this.forwardHarness(e,r);try{return await t(s)}finally{await this.stopHarnessForwarding(e)}}async forwardHarness(e,t=!0){this.assertStartedWithNodejs();let{teamId:r,projectId:s,harnessId:a,instanceId:d,portsFilter:l}=e,u=await this.proxyApiClient.getHarnessDetails(s,a,r),{namespace:g,targetDomain:I,instances:R,ports:b}=u;if(R.length===0)throw new Error(`No running instances found for harness ${a} in project ${s}.`);let f=d??R[0].podName,C=v=>{let x=R.map(ri=>ri.podName);if(!x.includes(f))throw new Error(`Instance id not found: ${f}. Expected one of [${x.join(", ")}]. Ensure that requested instance id is running on harness ${a} in project ${s}.`);let q=this.proxyApiClient.getTeamScopePrefix(r),w=`https://${I}/tunnel/${q}projects/${s}/harnesses/${a}/instance/${f}/port/${v.internalPort}?directConnect=true`,S=`${f}.`,L=`${S}${a}.${g}.svc.cluster.local`,T=[`${S}${a}`];v.name&&T.push(`${S}${v.name}.${a}`);let H;v.protocol==="HTTP"&&(H={altHostnames:T,targetHostname:L});let F=[L,...T];return this.forwardPort(w,v,F,"harness",a,s,t,H)},P=l===void 0?b:b.filter(v=>l.includes(v.internalPort));return await ae(P,C)}async withAddonForwarding(e,t,r=!0){let s=await this.forwardAddon(e,r);try{return await t(s)}finally{await this.stopAddonForwarding(e)}}async forwardAddon(e,t=!0){this.assertStartedWithNodejs();let{teamId:r,addonId:s,projectId:a}=e,d=await this.proxyApiClient.getAddonDetails(a,s,r),l=d.instances.map(g=>{let{podName:I,internalHostname:R}=g;return g.ports.map(b=>({podName:I,internalHostname:R,port:b}))}),u=this.proxyApiClient.getTeamScopePrefix(r);return await ae(l.flat(1/0),async({podName:g,internalHostname:I,port:R})=>{let b=`https://${d.targetDomain}/tunnel/${u}projects/${a}/addons/${s}/instance/${g}/port/${R.internalPort}`;return this.forwardPort(b,R,[I],"addon",s,a,t)})}async allocateIpAddress(e){return this.ipAllocationMutex.enter(async()=>{let t="127.24.1.1",r="127.24.255.255",s=this.nextIpAddress??t,a=await bi(e,s,r);return this.nextIpAddress=si(B(a)+1),B(this.nextIpAddress)>B(r)&&(this.nextIpAddress=t),a})}async forwardPort(e,t,r,s,a,d,l=!0,u,g=!0){let I={Authorization:`Bearer ${this.contextProvider.getCurrentToken()}`};if(!l){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 R=await this.determineSocketAddress(d,a,r,s,t,l,g),b=t.protocol==="UDP"?new le(e,I,R,this.dispatcher):new de(e,I,u,R,this.dispatcher);l||await this.registerHostnames(b.bindTo?.address,r),b.on("connection-accept",()=>this.emit("connection-accept",b)),b.on("connection-close",async()=>this.emit("connection-close",b));let f=await b.open(g),C={projectId:d,id:a,type:s,hostnames:r,ipOnly:l,port:f.port,address:f.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort};return this.emit("tunnel-open",b,C),b.on("connection-error",P=>this.emit("connection-error",b,C,P)),b.on("tunnel-close",()=>this.emit("tunnel-close",b,C)),this.connections.push({tunnel:b,forwardingContext:C}),{data:C}}async determineSocketAddress(e,t,r,s,a,d,l){if(d&&td.platform()==="darwin")if(l&&r?.[0]!==void 0){let I=`${r[0]}:${a.internalPort}/${a.protocol}`;return{address:"127.0.0.1",port:this.consistentHostnameToPortHashing(I)}}else return;let g=this.connections.filter(I=>I.forwardingContext.projectId===e&&I.forwardingContext.id===t&&I.forwardingContext.type===s)?.find(I=>r.find(R=>I.forwardingContext.hostnames.includes(R)));return g?{address:g?.forwardingContext.address,port:a.internalPort}:{address:await this.allocateIpAddress(a.internalPort),port:a.internalPort}}consistentHostnameToPortHashing(e){let a=rd("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.add(e,...t)})}async unregisterHostnames(e,t){await this.modifyHostsFile(r=>{r.remove(e,...t)})}async modifyHostsFile(e){await this.hostsFileMutex.enter(async()=>{let t=await ie.load({header:"Northflank Proxy"});e(t),await t.backup({suffix:".backup-pre-northflank"});try{await z(5)(async()=>{await t.write({writeMode:"atomic"})})}catch{await z(5)(async()=>{await t.write({writeMode:"standard"})})}})}async stopProjectForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.projectId===e.projectId).map(t=>this.stopForwarding(t)))}async stopServiceForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.type==="service"&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId).map(t=>this.stopForwarding(t)))}async stopHarnessForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.type==="harness"&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.harnessId).map(t=>this.stopForwarding(t)))}async stopAddonForwarding(e){await Promise.all(this.connections.filter(t=>t.forwardingContext.type==="addon"&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId).map(t=>this.stopForwarding(t)))}async stop(){await Promise.all(this.connections.map(async e=>this.stopForwarding(e)))}};import{EventEmitter as nd}from"events";import{WebSocket as ad}from"undici";import*as me from"stream";var li=["us","eu","asia"];var Z=class extends nd{constructor(e,t,r,s,a=new me.PassThrough,d=new me.PassThrough,l=new me.PassThrough){super();this.baseUrl=e;this.execConfig=t;this.token=r;this.dispatcher=s;this.stdOut=a;this.stdErr=d;this.stdIn=l;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:s}=this.execConfig,a=s!==void 0?`teams/${s}/`:"",d=`${this.baseUrl}/v1/command-exec/${a}projects/${r}/`;function l(){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}${l()}`}async start(){if(this.currentCommand!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await k(),this.currentCommand=new Promise((e,t)=>{if(this.remote!==void 0){t(Error("Command is already running"));return}let r=!1,s,a=b=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(b));return}r=!0,this.listenerCount("error")>0&&this.emit("error",new Error(b)),this.reset(),t(new Error(b))},d=()=>{r||(r=!0,this.emit("command-completed"),this.reset(),e(s))};try{let b=this.execEndpoint.replace("https:","wss:").replace("http:","ws:");this.remote=new ad(b,{dispatcher:this.resolvedDispatcher}),this.remote.addEventListener("error",f=>{a(`WebSocket error: ${f?.error?.message??f?.message??"connection failed"}`)}),this.remote.addEventListener("close",f=>{![1e3,1005].includes(f.code)&&!r&&a(`WebSocket closed unexpectedly: ${f.code} ${f.reason||"(no reason)"}`)}),this.duplex=O(this.remote)}catch(b){a(`Failed to establish connection to command execution proxy: ${b.message}`);return}let l=b=>{this.duplex?.writable&&this.duplex.write(this.constructPayloadPacket(b))},u=()=>{this.duplex?.writable&&this.duplex.write(this.stdInEndPacket)};this.stdIn.on("data",l),this.stdIn.on("end",u);let g=b=>{try{let f=JSON.parse(b.toString());switch(f?.type){case"init":{let C=f.data;C.auth!=="successful"?a(`Command initialization failed: ${C?.message??"Reason unknown"}`):this.emit("auth-success",C);break}case"completion":{s=f.data,this.emit("command-result",s),this.duplex?.end(),this.stdOut.end(),this.stdErr.end(),this.stdIn.end();break}case"stdOut":{this.emit("std-out-data",f.data),this.stdOut.write(f.data,this.execConfig?.encoding);break}case"stdErr":{this.emit("std-err-data",f.data),this.stdErr.write(f.data,this.execConfig?.encoding);break}case"error":{a(f.data?.message||"Unknown error");break}default:{let C=`unable to parse message: ${JSON.stringify(f)}`;a(C)}}}catch(f){a(`Failed to parse message: ${f.message}`)}},I=()=>{s?d():r||a("Connection closed before receiving command result")},R=b=>{a(`Duplex stream error: ${b.message}`)};this.duplex?.on("data",g),this.duplex?.on("end",I),this.duplex?.on("error",R),this.initialAuth(),this.emit("command-started")}),this.currentCommand}initialAuth(){let{command:e,containerName:t,instanceName:r,shell:s,user:a}=this.execConfig,{group:d,encoding:l,tty:u,ttyColumns:g,ttyRows:I}=this.execConfig,R={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:r,containerName:t,command:e,shell:s,user:a,group:d,encoding:l,tty:u,ttyColumns:g,ttyRows:I}}};this.duplex?.write(JSON.stringify(R))}reset(){this.remote=void 0,this.currentCommand=void 0,this.duplex?.destroy(),this.duplex=void 0}};import{connect as od}from"http2";import{EventEmitter as sd}from"events";import*as ue from"stream";var Q=class extends sd{constructor(e,t,r,s=new ue.PassThrough,a=new ue.PassThrough,d=new ue.PassThrough){super();this.execConfig=e;this.token=t;this.session=r;this.stdOut=s;this.stdErr=a;this.stdIn=d;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
5
  `)};this.getHashingKey=()=>this.execConfig.entityId+(this.execConfig.instanceName??"na");this.constructPayloadPacket=e=>`${JSON.stringify({type:"payload",data:e.toString()})}
6
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,s,a=g=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(g));return}r=!0,this.listenerCount("error")>0&&this.emit("error",new Error(g)),this.reset(),t(new Error(g))},d=()=>{r||(r=!0,this.emit("command-completed"),this.reset(),e(s))};try{let I=this.session.request({":method":"POST",":path":"/exec","content-type":"application/x-ndjson","x-target-key":this.getHashingKey()});this.clientStream=I,I.on("error",C=>{a(`session error: ${C.message}`)})}catch(g){a(`Failed to establish connection to command execution proxy: ${g.message}`);return}this.onStdinData=g=>{this.clientStream?.writable&&this.clientStream.write(this.constructPayloadPacket(g))},this.onStdinEnd=()=>{this.clientStream?.writable&&this.clientStream.write(this.stdInEndPacket)},this.stdIn.on("data",this.onStdinData),this.stdIn.on("end",this.onStdinEnd);let l=g=>{switch(g?.type){case"init":{let I=g.data;I.auth!=="successful"?a(`Command initialization failed: ${I?.message??"Reason unknown"}`):this.emit("auth-success",I);break}case"completion":{s=g.data,this.emit("command-result",s),this.clientStream?.end(),this.stdOut.end(),this.stdErr.end(),this.stdIn.end();break}case"stdOut":{this.emit("std-out-data",g.data),this.stdOut.write(g.data,this.execConfig?.encoding);break}case"stdErr":{this.emit("std-err-data",g.data),this.stdErr.write(g.data,this.execConfig?.encoding);break}case"error":{a(g.data?.message||"Unknown error");break}default:{let I=`Unknown frame type: ${String(g?.type)}; message: ${JSON.stringify(g)}`;a(I)}}},u="",b=g=>{u+=g.toString();let I=u.split(`
8
- `);u=I.pop()??"";for(let C of I)if(C)try{let P=JSON.parse(C);l(P)}catch(P){a(`Failed to parse message: ${P.message}`);return}},f=()=>{s?d():r||a("Connection closed before receiving command result")},h=g=>{a(`Duplex stream error: ${g.message}`)};this.clientStream?.on("data",b),this.clientStream?.on("end",f),this.clientStream?.on("error",h),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:s,user:a}=this.execConfig,{group:d,encoding:l,tty:u,ttyColumns:b,ttyRows:f,teamId:h}=this.execConfig,g={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{teamId:h,projectId:this.execConfig.projectId,...this.entityIdField(),instanceName:r,containerName:t,command:e,shell:s,user:a,group:d,encoding:l,tty:u,ttyColumns:b,ttyRows:f}}};this.clientStream?.write(`${JSON.stringify(g)}
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 me=class{constructor(n,e,t){this.contextProvider=n;this.dispatcher=e;this.sessionRegistry=new Map;this.assertStartedWithNodejs=()=>{if(!j)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(!zi.includes(a))throw new Error(`execLocationHint (${a}) not valid. Must be one of [${zi.join(",")}].`);let d=(u,b)=>u.replace(/\/\/api\./,`//api-exec-${b}.`),l=this.contextProvider.getCurrentBaseUrl(!0);return d(l,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`,s=Yo(r);return s.on("error",()=>{this.sessionRegistry.delete(e)}),s.on("close",()=>{this.sessionRegistry.delete(e)}),this.sessionRegistry.set(e,s),s}async execServiceCommand(n,e){let{serviceId:t,projectId:r,teamId:s}=n,d={teamId:s,projectId:r,entityId:t,entityType:"service",...e};return this.execCommand(d)}async execServiceSession(n,e,t){let{serviceId:r,projectId:s,teamId:a}=n,l={teamId:a,projectId:s,entityId:r,entityType:"service",...e};return await this.shellSession(l,t)}async execJobCommand(n,e){let{jobId:t,projectId:r,teamId:s}=n,d={teamId:s,projectId:r,entityId:t,entityType:"job",...e};return this.execCommand(d)}async execJobSession(n,e,t){let{jobId:r,projectId:s,teamId:a}=n,l={teamId:a,projectId:s,entityId:r,entityType:"job",...e};return await this.shellSession(l,t)}async execAddonCommand(n,e){let{addonId:t,projectId:r,teamId:s}=n,d={teamId:s,projectId:r,entityId:t,entityType:"addon",...e};return this.execCommand(d)}async execAddonSession(n,e,t){let{addonId:r,projectId:s,teamId:a}=n,l={teamId:a,projectId:s,entityId:r,entityType:"addon",...e};return await this.shellSession(l,t)}async execCommand(n){this.assertStartedWithNodejs();let e=this.getCommandRunner({shell:"none",...n}),t=new S,r=new S;try{e.stdOut.pipe(t),e.stdErr.pipe(r);let s=new Promise((d,l)=>{e.once("error",u=>{l(new Error(`${u.message||u}`))})});return{commandResult:await Promise.race([e.start(),s]),stdOut:t.getContentsAsString(),stdErr:r.getContentsAsString()}}catch(s){throw e.stdOut.unpipe(t),e.stdErr.unpipe(r),new Error(`Command execution failed: ${s instanceof Error?s.message:String(s)}`)}}async shellSession(n,e){this.assertStartedWithNodejs();let t=this.getCommandRunner(n),r=new Promise((s,a)=>{t.once("auth-success",l=>{e?.(l?.context??{}),s()}),t.once("error",l=>{a(new Error(`Shell session failed: ${l.message||l}`))});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:s}=n;return s?new Z({shell:"none",...n},t,this.http2Session({execLocationOverride:s})):r?new Z({shell:"none",...n},t,this.http2Session({execLocationHint:r})):new Y(e,n,t,this.dispatcher)}};import*as ue from"tar";import Zo from"ignore";import Vi from"fs";import k from"path";import{Readable as Qo,Transform as Xo}from"stream";var io=(r=>(r.DIRECTORY_UPLOAD="directory-upload",r.FILE_UPLOAD="file-upload",r.DIRECTORY_DOWNLOAD="directory-download",r.FILE_DOWNLOAD="file-download",r))(io||{}),U=class{constructor(n,e){this.exec=n;this.parameters=e;this.defaultEncoding="base64";this.getFileIgnoreFilter=n=>{if(n===void 0)return;let e=Zo({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:s,projectId:a,resourceId:d,resourceType:l,containerName:u,instanceName:b,execLocationHint:f}=r,h={command:n,shell:e,containerName:u,instanceName:b,execLocationHint:f};return l==="service"?await t.execServiceCommand({teamId:s,projectId:a,serviceId:d},h):await t.execJobCommand({teamId:s,projectId:a,jobId:d},h)};this.runSession=async n=>{let{exec:e,parameters:t}=this,{teamId:r,projectId:s,resourceId:a,resourceType:d,containerName:l,instanceName:u,execLocationHint:b}=t,f={command:n,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:l,instanceName:u,execLocationHint:b};return d==="service"?await e.execServiceSession({teamId:r,projectId:s,serviceId:a},f):await e.execJobSession({teamId:r,projectId:s,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||!Vi.existsSync(n))throw new Error(`Local path '${n}' does not exists but is required for uploads.`);let r=Vi.lstatSync(n).isFile(),s=r?k.dirname(n):n,a=r?k.basename(n):".",d=r&&e!==void 0&&k.extname(e)!=="",l=d?k.dirname(e):e??s,u=e!==void 0?k.basename(e):a,b=ue.c({gzip:{encoding:this.defaultEncoding},cwd:s,filter:this.getFileIgnoreFilter(t),preservePaths:!0,onWriteEntry:d?this.getTarTransformFn(a,u):void 0},Bi(a));await this.ensureTarCmd(),await this.ensureDirRemote(l);let h=["tar","-xzvf","-",...["--no-same-owner"],"-C",l],g=await this.runSession(h),I=new S,C=new S;g.stdErr.pipe(I),g.stdOut.pipe(C),b.pipe(g.stdIn);let P=await g.waitForCommandResult();if(P?.status!=="Success")throw new Error(`Failed to upload file to container: ${P?.message}, error details: ${I.getContentsAsString()}; ${C.getContentsAsString()}`);return r?{type:"file-upload",sourceDirectory:s,sourceFile:a,targetDirectory:l,targetFile:u}:{type:"directory-upload",sourceDirectory:s,targetDirectory:l}}async uploadStream(n,e){let t=function(f){let h=new Xo({transform(C,P,w){this.push(C.toString("base64")),w()}}),g=typeof f=="string",I=Buffer.isBuffer(f);return!g&&!I?f.pipe(h):Qo.from(f).pipe(h)},r=k.dirname(e);await this.ensureTarCmd(),await this.ensureDirRemote(r);let s=["tee",e],a=await this.runSession(s),d=new S,l=new S;a.stdErr.pipe(d),a.stdOut.pipe(l),t(n).pipe(a.stdIn);let b=await a.waitForCommandResult();if(await this.runCommand(["cat",e]),b?.status!=="Success")throw new Error(`Failed to upload file to container: ${b?.message}, error details: ${d.getContentsAsString()}; ${l.getContentsAsString()}`)}async downloadFiles(n,e,t){if(n===void 0||!await this.pathExistsRemote(n))throw new Error(`Remote path '${n}' does not exists but is required for downloads.`);let r=await this.checkIsDirRemote(n),s=r?n:k.dirname(n),a=r?".":k.basename(n),d=e!==void 0&&k.extname(e)!=="",l=!r&&d?k.basename(e):a,u=e!==void 0?d?k.dirname(e):e:".";u&&Vi.mkdirSync(u,{recursive:!0});let b=Bi(t??[]).map(L=>`--exclude=${L}`),g=[...["tar","-zcf","-",...["--no-same-owner"],...b],"-C",s,a],I=await this.runSession(g),C=ue.x({cwd:u,gzip:{encoding:this.defaultEncoding},onReadEntry:l?this.getTarTransformFn(a,l):void 0}),P=new S;I.stdErr.pipe(P),I.stdOut.pipe(C);let w=await I.waitForCommandResult();if(w?.status!=="Success")throw new Error(`Failed to download file from container: ${w?.message}, error details: ${P.getContentsAsString()}`);return r?{type:"directory-download",sourceDirectory:s,targetDirectory:u}:{type:"file-download",sourceDirectory:s,sourceFile:a,targetDirectory:u,targetFile:l}}async downloadStream(n){if(!await this.checkIsFileRemote(n))throw new Error(`Remote path '${n}' must be a file.`);let e=k.dirname(n);await this.ensureTarCmd(),await this.ensureDirRemote(e);let t=["cat",n],r=await this.runSession(t),s=new S;return r.stdErr.pipe(s),{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:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"download")}async downloadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await new U(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"upload")}async uploadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await new U(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async downloadJobFiles(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"download")}async downloadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await new U(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadJobFiles(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"upload")}async uploadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await new U(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async copy(n,e,t){let r=new U(this.exec,{...n,instanceName:e.instanceName,containerName:e.containerName,execLocationHint:e.execLocationHint}),s=[...e.ignoreList??[],...this.stdIgnoreList];switch(t){case"download":return await r.downloadFiles(e.remotePath,e.localPath,s);case"upload":return await r.uploadFiles(e.localPath,e.remotePath,s)}}};var Q=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}};import{EventEmitter as ed}from"events";import{WebSocket as td}from"undici";var oo=(r=>(r.CDN="cdn",r.Mesh="mesh",r.Ingress="ingress",r.Runtime="runtime",r))(oo||{}),Ki=i=>({containerId:i.containerId,log:i.log,ts:new Date(i.ts)}),J=class i extends ed{constructor(e,t,r,s){super();this.baseUrl=e;this.logsConfig=t;this.token=r;this.dispatcher=s;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:s,entityType:a,buildId:d,runId:l,backupId:u,restoreId:b,deploymentId:f,isBuild:h,lineLimit:g,teamId:I,projectId:C,queryType:P,startTime:w,endTime:L,duration:D,direction:G,textIncludes:v,textNotIncludes:x,regexIncludes:$,regexNotIncludes:F}=e,$i=`/v1/${I!==void 0?`teams/${I}/`:""}projects/${C}/`,go=()=>{let q=h?"/build-logs":"/logs";switch(a){case"service":return`services/${s}${q}`;case"job":return`jobs/${s}${q}`;case"addon":return`addons/${s}${q}`;case"addonBackup":return`addons/${s}/backups/${u}${q}`;case"addonRestore":return`addons/${s}/backups/${u}/restores/${b}${q}`;default:throw new Error(`Unexpected Northflank entity type received in logs endpoint generation: ${a}`)}},A=new URLSearchParams;return A.append("queryType",P),w!==void 0&&A.append("startTime",w.toISOString()),L!==void 0&&A.append("endTime",L.toISOString()),g!==void 0&&A.append("lineLimit",g.toString()),t!==void 0&&A.append("containerName",t),f!==void 0&&A.append("deploymentId",f),l!==void 0&&A.append("runId",l),d!==void 0&&A.append("buildId",d),v!==void 0&&A.append("textIncludes",v),x!==void 0&&A.append("textNotIncludes",x),$!==void 0&&A.append("regexIncludes",$),F!==void 0&&A.append("regexNotIncludes",F),G!==void 0&&A.append("direction",G),D!==void 0&&A.append("duration",D.toString()),r!==void 0&&r.forEach(q=>A.append("type",q)),`${$i}${go()}?${A.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 E(),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:");this.remote=new td(r,{dispatcher:this.resolvedDispatcher}),this.remote.binaryType="arraybuffer",this.remote?.addEventListener("message",a=>{let d=a.data,l=typeof d=="string"?d:Buffer.from(d).toString(),u=JSON.parse(l);switch(u?.type){case"init":{let b=u.data;b.auth!=="successful"&&s(`Log tail initialization failed: ${b?.message??"Reason unknown"}`);break}case"log-lines":{let b=u.data;this.emit("logs-received",b.map(Ki));break}case"error":{s(u.data?.message);break}default:{let b=`unable to parse message: ${JSON.stringify(u)}`;s(b)}}}),this.remote?.addEventListener("close",()=>{this.emit("close"),this.reset(),e()}),this.remote?.addEventListener("open",()=>{this.emit("open")}),this.remote?.addEventListener("error",a=>{this.emit("error",a?.error??new Error("WebSocket error")),this.reset(),e()});let s=a=>{this.emit("error",{message:a}),this.reset(),t(new Error(a))}}),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}};import rd from"fs";import lo from"path";import{fileURLToPath as nd}from"url";var M,ad=()=>{if(M!==void 0)return M??void 0;if(j)try{M=JSON.parse(rd.readFileSync(lo.join(lo.dirname(nd(import.meta.url)),"../../package.json")).toString())?.version??null}catch{M=null}else M=null;return M??void 0},T=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/${ad()}${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 s=`${r}${this.endpointUrl(n)}`,a=this.body(n),d={url:s,...t,body:a},l=this.opts.dispatcher??await E(),u=await id(s,{...t,body:a,dispatcher:l}),b=await u.text(),f=()=>{try{return JSON.parse(b)}catch{throw Error(`Failed reading api request result:
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,s,a=b=>{if(r){this.listenerCount("error")>0&&this.emit("error",new Error(b));return}r=!0,this.listenerCount("error")>0&&this.emit("error",new Error(b)),this.reset(),t(new Error(b))},d=()=>{r||(r=!0,this.emit("command-completed"),this.reset(),e(s))};try{let f=this.session.request({":method":"POST",":path":"/exec","content-type":"application/x-ndjson","x-target-key":this.getHashingKey()});this.clientStream=f,f.on("error",C=>{a(`session error: ${C.message}`)})}catch(b){a(`Failed to establish connection to command execution proxy: ${b.message}`);return}this.onStdinData=b=>{this.clientStream?.writable&&this.clientStream.write(this.constructPayloadPacket(b))},this.onStdinEnd=()=>{this.clientStream?.writable&&this.clientStream.write(this.stdInEndPacket)},this.stdIn.on("data",this.onStdinData),this.stdIn.on("end",this.onStdinEnd);let l=b=>{switch(b?.type){case"init":{let f=b.data;f.auth!=="successful"?a(`Command initialization failed: ${f?.message??"Reason unknown"}`):this.emit("auth-success",f);break}case"completion":{s=b.data,this.emit("command-result",s),this.clientStream?.end(),this.stdOut.end(),this.stdErr.end(),this.stdIn.end();break}case"stdOut":{this.emit("std-out-data",b.data),this.stdOut.write(b.data,this.execConfig?.encoding);break}case"stdErr":{this.emit("std-err-data",b.data),this.stdErr.write(b.data,this.execConfig?.encoding);break}case"error":{a(b.data?.message||"Unknown error");break}default:{let f=`Unknown frame type: ${String(b?.type)}; message: ${JSON.stringify(b)}`;a(f)}}},u="",g=b=>{u+=b.toString();let f=u.split(`
8
+ `);u=f.pop()??"";for(let C of f)if(C)try{let P=JSON.parse(C);l(P)}catch(P){a(`Failed to parse message: ${P.message}`);return}},I=()=>{s?d():r||a("Connection closed before receiving command result")},R=b=>{a(`Duplex stream error: ${b.message}`)};this.clientStream?.on("data",g),this.clientStream?.on("end",I),this.clientStream?.on("error",R),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:s,user:a}=this.execConfig,{group:d,encoding:l,tty:u,ttyColumns:g,ttyRows:I,teamId:R}=this.execConfig,b={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{teamId:R,projectId:this.execConfig.projectId,...this.entityIdField(),instanceName:r,containerName:t,command:e,shell:s,user:a,group:d,encoding:l,tty:u,ttyColumns:g,ttyRows:I}}};this.clientStream?.write(`${JSON.stringify(b)}
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 ce=class{constructor(n,e,t){this.contextProvider=n;this.dispatcher=e;this.sessionRegistry=new Map;this.assertStartedWithNodejs=()=>{if(!j)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(!li.includes(a))throw new Error(`execLocationHint (${a}) not valid. Must be one of [${li.join(",")}].`);let d=(u,g)=>u.replace(/\/\/api\./,`//api-exec-${g}.`),l=this.contextProvider.getCurrentBaseUrl(!0);return d(l,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`,s=od(r);return s.on("error",()=>{this.sessionRegistry.delete(e)}),s.on("close",()=>{this.sessionRegistry.delete(e)}),this.sessionRegistry.set(e,s),s}async execServiceCommand(n,e){let{serviceId:t,projectId:r,teamId:s}=n,d={teamId:s,projectId:r,entityId:t,entityType:"service",...e};return this.execCommand(d)}async execServiceSession(n,e,t){let{serviceId:r,projectId:s,teamId:a}=n,l={teamId:a,projectId:s,entityId:r,entityType:"service",...e};return await this.shellSession(l,t)}async execJobCommand(n,e){let{jobId:t,projectId:r,teamId:s}=n,d={teamId:s,projectId:r,entityId:t,entityType:"job",...e};return this.execCommand(d)}async execJobSession(n,e,t){let{jobId:r,projectId:s,teamId:a}=n,l={teamId:a,projectId:s,entityId:r,entityType:"job",...e};return await this.shellSession(l,t)}async execAddonCommand(n,e){let{addonId:t,projectId:r,teamId:s}=n,d={teamId:s,projectId:r,entityId:t,entityType:"addon",...e};return this.execCommand(d)}async execAddonSession(n,e,t){let{addonId:r,projectId:s,teamId:a}=n,l={teamId:a,projectId:s,entityId:r,entityType:"addon",...e};return await this.shellSession(l,t)}async execCommand(n){this.assertStartedWithNodejs();let e=this.getCommandRunner({shell:"none",...n}),t=new E,r=new E;try{e.stdOut.pipe(t),e.stdErr.pipe(r);let s=new Promise((d,l)=>{e.once("error",u=>{l(new Error(`${u.message||u}`))})});return{commandResult:await Promise.race([e.start(),s]),stdOut:t.getContentsAsString(),stdErr:r.getContentsAsString()}}catch(s){throw e.stdOut.unpipe(t),e.stdErr.unpipe(r),new Error(`Command execution failed: ${s instanceof Error?s.message:String(s)}`)}}async shellSession(n,e){this.assertStartedWithNodejs();let t=this.getCommandRunner(n),r=new Promise((s,a)=>{t.once("auth-success",l=>{e?.(l?.context??{}),s()}),t.once("error",l=>{a(new Error(`Shell session failed: ${l.message||l}`))});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:s}=n;return s?new Q({shell:"none",...n},t,this.http2Session({execLocationOverride:s})):r?new Q({shell:"none",...n},t,this.http2Session({execLocationHint:r})):new Z(e,n,t,this.dispatcher)}};import*as ge from"tar";import id from"ignore";import pi from"fs";import U from"path";import{Readable as dd,Transform as ld}from"stream";var Pi=(r=>(r.DIRECTORY_UPLOAD="directory-upload",r.FILE_UPLOAD="file-upload",r.DIRECTORY_DOWNLOAD="directory-download",r.FILE_DOWNLOAD="file-download",r))(Pi||{}),D=class{constructor(n,e){this.exec=n;this.parameters=e;this.defaultEncoding="base64";this.getFileIgnoreFilter=n=>{if(n===void 0)return;let e=id({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:s,projectId:a,resourceId:d,resourceType:l,containerName:u,instanceName:g,execLocationHint:I}=r,R={command:n,shell:e,containerName:u,instanceName:g,execLocationHint:I};return l==="service"?await t.execServiceCommand({teamId:s,projectId:a,serviceId:d},R):await t.execJobCommand({teamId:s,projectId:a,jobId:d},R)};this.runSession=async n=>{let{exec:e,parameters:t}=this,{teamId:r,projectId:s,resourceId:a,resourceType:d,containerName:l,instanceName:u,execLocationHint:g}=t,I={command:n,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:l,instanceName:u,execLocationHint:g};return d==="service"?await e.execServiceSession({teamId:r,projectId:s,serviceId:a},I):await e.execJobSession({teamId:r,projectId:s,jobId:a},I)};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||!pi.existsSync(n))throw new Error(`Local path '${n}' does not exists but is required for uploads.`);let r=pi.lstatSync(n).isFile(),s=r?U.dirname(n):n,a=r?U.basename(n):".",d=r&&e!==void 0&&U.extname(e)!=="",l=d?U.dirname(e):e??s,u=e!==void 0?U.basename(e):a,g=ge.c({gzip:{encoding:this.defaultEncoding},cwd:s,filter:this.getFileIgnoreFilter(t),preservePaths:!0,onWriteEntry:d?this.getTarTransformFn(a,u):void 0},ai(a));await this.ensureTarCmd(),await this.ensureDirRemote(l);let R=["tar","-xzvf","-",...["--no-same-owner"],"-C",l],b=await this.runSession(R),f=new E,C=new E;b.stdErr.pipe(f),b.stdOut.pipe(C),g.pipe(b.stdIn);let P=await b.waitForCommandResult();if(P?.status!=="Success")throw new Error(`Failed to upload file to container: ${P?.message}, error details: ${f.getContentsAsString()}; ${C.getContentsAsString()}`);return r?{type:"file-upload",sourceDirectory:s,sourceFile:a,targetDirectory:l,targetFile:u}:{type:"directory-upload",sourceDirectory:s,targetDirectory:l}}async uploadStream(n,e){let t=function(I){let R=new ld({transform(C,P,v){this.push(C.toString("base64")),v()}}),b=typeof I=="string",f=Buffer.isBuffer(I);return!b&&!f?I.pipe(R):dd.from(I).pipe(R)},r=U.dirname(e);await this.ensureTarCmd(),await this.ensureDirRemote(r);let s=["tee",e],a=await this.runSession(s),d=new E,l=new E;a.stdErr.pipe(d),a.stdOut.pipe(l),t(n).pipe(a.stdIn);let g=await a.waitForCommandResult();if(await this.runCommand(["cat",e]),g?.status!=="Success")throw new Error(`Failed to upload file to container: ${g?.message}, error details: ${d.getContentsAsString()}; ${l.getContentsAsString()}`)}async downloadFiles(n,e,t){if(n===void 0||!await this.pathExistsRemote(n))throw new Error(`Remote path '${n}' does not exists but is required for downloads.`);let r=await this.checkIsDirRemote(n),s=r?n:U.dirname(n),a=r?".":U.basename(n),d=e!==void 0&&U.extname(e)!=="",l=!r&&d?U.basename(e):a,u=e!==void 0?d?U.dirname(e):e:".";u&&pi.mkdirSync(u,{recursive:!0});let g=ai(t??[]).map(x=>`--exclude=${x}`),b=[...["tar","-zcf","-",...["--no-same-owner"],...g],"-C",s,a],f=await this.runSession(b),C=ge.x({cwd:u,gzip:{encoding:this.defaultEncoding},onReadEntry:l?this.getTarTransformFn(a,l):void 0}),P=new E;f.stdErr.pipe(P),f.stdOut.pipe(C);let v=await f.waitForCommandResult();if(v?.status!=="Success")throw new Error(`Failed to download file from container: ${v?.message}, error details: ${P.getContentsAsString()}`);return r?{type:"directory-download",sourceDirectory:s,targetDirectory:u}:{type:"file-download",sourceDirectory:s,sourceFile:a,targetDirectory:u,targetFile:l}}async downloadStream(n){if(!await this.checkIsFileRemote(n))throw new Error(`Remote path '${n}' must be a file.`);let e=U.dirname(n);await this.ensureTarCmd(),await this.ensureDirRemote(e);let t=["cat",n],r=await this.runSession(t),s=new E;return r.stdErr.pipe(s),{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(a=>a.exitCode===0)}}};var be=class{constructor(n,e){this.exec=n;this.stdIgnoreList=["*.*~"];e&&(this.stdIgnoreList=e)}async downloadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"download")}async downloadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await new D(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadServiceFiles(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await this.copy(a,e,"upload")}async uploadServiceFileStream(n,e){let{serviceId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"service"};return await new D(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async downloadJobFiles(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"download")}async downloadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await new D(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).downloadStream(e.remotePath)}async uploadJobFiles(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await this.copy(a,e,"upload")}async uploadJobFileStream(n,e){let{jobId:t,projectId:r,teamId:s}=n,a={teamId:s,projectId:r,resourceId:t,resourceType:"job"};return await new D(this.exec,{...a,instanceName:e.instanceName,containerName:e.containerName}).uploadStream(e.source,e.remotePath)}async copy(n,e,t){let r=new D(this.exec,{...n,instanceName:e.instanceName,containerName:e.containerName,execLocationHint:e.execLocationHint}),s=[...e.ignoreList??[],...this.stdIgnoreList];switch(t){case"download":return await r.downloadFiles(e.remotePath,e.localPath,s);case"upload":return await r.uploadFiles(e.localPath,e.remotePath,s)}}};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}};import{EventEmitter as pd}from"events";import{WebSocket as md}from"undici";var vi=(r=>(r.CDN="cdn",r.Mesh="mesh",r.Ingress="ingress",r.Runtime="runtime",r))(vi||{}),mi=o=>({containerId:o.containerId,log:o.log,ts:new Date(o.ts)}),M=class o extends pd{constructor(e,t,r,s){super();this.baseUrl=e;this.logsConfig=t;this.token=r;this.dispatcher=s;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:s,entityType:a,buildId:d,runId:l,backupId:u,restoreId:g,deploymentId:I,isBuild:R,lineLimit:b,teamId:f,projectId:C,queryType:P,startTime:v,endTime:x,duration:q,direction:G,textIncludes:w,textNotIncludes:S,regexIncludes:L,regexNotIncludes:T}=e,F=`/v1/${f!==void 0?`teams/${f}/`:""}projects/${C}/`,ri=()=>{let $=R?"/build-logs":"/logs";switch(a){case"service":return`services/${s}${$}`;case"job":return`jobs/${s}${$}`;case"addon":return`addons/${s}${$}`;case"addonBackup":return`addons/${s}/backups/${u}${$}`;case"addonRestore":return`addons/${s}/backups/${u}/restores/${g}${$}`;default:throw new Error(`Unexpected Northflank entity type received in logs endpoint generation: ${a}`)}},A=new URLSearchParams;return A.append("queryType",P),v!==void 0&&A.append("startTime",v.toISOString()),x!==void 0&&A.append("endTime",x.toISOString()),b!==void 0&&A.append("lineLimit",b.toString()),t!==void 0&&A.append("containerName",t),I!==void 0&&A.append("deploymentId",I),l!==void 0&&A.append("runId",l),d!==void 0&&A.append("buildId",d),w!==void 0&&A.append("textIncludes",w),S!==void 0&&A.append("textNotIncludes",S),L!==void 0&&A.append("regexIncludes",L),T!==void 0&&A.append("regexNotIncludes",T),G!==void 0&&A.append("direction",G),q!==void 0&&A.append("duration",q.toString()),r!==void 0&&r.forEach($=>A.append("type",$)),`${F}${ri()}?${A.toString()}`}get logsEndpoint(){return`${this.baseUrl}${o.getLogsEndpoint(this.logsConfig)}`}async start(){if(this.logSession!==void 0)throw new Error("Command is already running");return this.resolvedDispatcher=this.dispatcher??await k(),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:");this.remote=new md(r,{dispatcher:this.resolvedDispatcher}),this.remote.binaryType="arraybuffer",this.remote?.addEventListener("message",a=>{let d=a.data,l=typeof d=="string"?d:Buffer.from(d).toString(),u=JSON.parse(l);switch(u?.type){case"init":{let g=u.data;g.auth!=="successful"&&s(`Log tail initialization failed: ${g?.message??"Reason unknown"}`);break}case"log-lines":{let g=u.data;this.emit("logs-received",g.map(mi));break}case"error":{s(u.data?.message);break}default:{let g=`unable to parse message: ${JSON.stringify(u)}`;s(g)}}}),this.remote?.addEventListener("close",()=>{this.emit("close"),this.reset(),e()}),this.remote?.addEventListener("open",()=>{this.emit("open")}),this.remote?.addEventListener("error",a=>{this.emit("error",a?.error??new Error("WebSocket error")),this.reset(),e()});let s=a=>{this.emit("error",{message:a}),this.reset(),t(new Error(a))}}),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}};import ud from"fs";import wi from"path";import{fileURLToPath as cd}from"url";var J,gd=()=>{if(J!==void 0)return J??void 0;if(j)try{J=JSON.parse(ud.readFileSync(wi.join(wi.dirname(cd(import.meta.url)),"../package.json")).toString())?.version??null}catch{J=null}else J=null;return J??void 0},N=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/${gd()}${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 s=`${r}${this.endpointUrl(n)}`,a=this.body(n),d={url:s,...t,body:a},l=this.opts.dispatcher??await k(),u=await Id(s,{...t,body:a,dispatcher:l}),g=await u.text(),I=()=>{try{return JSON.parse(g)}catch{throw Error(`Failed reading api request result:
10
10
  Status: ${u.statusText} (${u.status})
11
- Message: ${b}`)}},h=()=>{if(u.status!==200){let C=g?.error,P=C?.message||"",w={status:u.status,message:P,id:C?.id,details:C?.details};if(this.opts.throwErrorOnHttpErrorCode)throw new Q(w);return w}},g=f(),I=h();return{data:g?.data,rawResponse:u,request:d,error:I,pagination:g?.pagination}}},p=class extends T{constructor(){super(...arguments);this.method="GET";this.body=()=>{}}},m=class extends p{constructor(){super(...arguments);this.all=async e=>new ge(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),s=r.length===1?{[r[0]]:[]}:{},a={...t,pagination:{...t.pagination,count:0},data:s},d=l=>({...l,pagination:{...l.pagination,getNextPage:async()=>d(l)}});return d(a)}return new ge(this,e,t.pagination?.cursor).getNext()}}}}}},o=class extends T{constructor(){super(...arguments);this.method="POST"}},c=class extends T{constructor(){super(...arguments);this.method="DELETE"}},y=class extends T{constructor(){super(...arguments);this.method="PUT"}},R=class extends T{constructor(){super(...arguments);this.method="PATCH"}},ge=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:s}=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:s}}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 s=Object.keys(r.data);return s.length===1?(e=s[0],r.data[s[0]]):r.data});return{data:e===void 0?t:{[e]:t},request:n[0]?.request,rawResponse:n[0]?.rawResponse}}},sd=i=>new Promise(n=>{setTimeout(()=>{n()},i)}),id=async(i,n={},e=3,t=500)=>{let r=await re(!!n.dispatcher);return new Promise((s,a)=>{let d=l=>r(i,n).then(u=>{s(u)}).catch(async u=>{if(l>0)return await sd(t),d(l-1);if(u instanceof Error&&u.cause instanceof Error){u.message=`${u.message}: ${u.cause.message}`;for(let b of["code","errno","syscall"])if(u[b]===void 0&&u.cause[b]!==void 0)try{u[b]=u.cause[b]}catch{}}return a(u)});return d(e)})};var be=class extends p{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=>J.getLogsEndpoint(e);this.body=()=>{}}};var fe=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:s,teamId:a}=e,d={entityId:s,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:s,teamId:a}=e,d={entityId:s,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:s,addonId:a}=e,d={entityId:a,projectId:s,teamId:r},l={backupId:e.backupId,restoreId:e.restoreId};return this.logRange(d,{...t,...l},"addonRestore")};this.logRange=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={teamId:a,projectId:s,entityId:r,entityType:t,...e,queryType:"range"},u=await new be(this.contextProvider,this.clientOpts).call(d);return u.error?u:{...u,data:u?.data?.map(Ki)}};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:s,teamId:a}=e,d={entityId:r,projectId:s,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:s}=e,a={entityId:s,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},s={backupId:e.backupId,restoreId:e.restoreId};return this.logTail(r,{...t,...s},"addonRestore")};this.logTail=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={queryType:"tail",teamId:a,projectId:s,entityId:r,entityType:t,...e};this.assertStartedWithNodejs();let l=this.contextProvider.getCurrentBaseUrl(!0),u=this.contextProvider.getCurrentToken();if(!u)throw new Error("API token not found");return new J(l,d,u,this.clientOpts.dispatcher)};this.assertStartedWithNodejs=()=>{if(!j)throw new Error("Command exec only possible when started with nodejs")}}};var Ie=class extends p{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:s,entityType:a,deploymentId:d,runId:l,buildId:u,isBuild:b,queryType:f,metricTypes:h,startTime:g,endTime:I,duration:C,containerName:P,timestamp:w}=e,D=`/v1/${t!==void 0?`teams/${t}/`:""}projects/${r}/`;function G(){let x=b?"/build-metrics":"/metrics";switch(a){case"service":return`services/${s}${x}`;case"job":return`jobs/${s}${x}`;case"addon":return`addons/${s}${x}`;default:throw new Error(`Unexpected Northflank entity type received in metrics endpoint generation: ${a}`)}}let v=new URLSearchParams;return v.append("queryType",f),g!==void 0&&v.append("startTime",g.toISOString()),I!==void 0&&v.append("endTime",I.toISOString()),P!==void 0&&v.append("containerName",P),d!==void 0&&v.append("deploymentId",d),l!==void 0&&v.append("runId",l),u!==void 0&&v.append("buildId",u),w!==void 0&&v.append("timestamp",w.toISOString()),C!==void 0&&v.append("duration",C.toString()),h!==void 0&&h.forEach(x=>v.append("metricTypes",x)),`${D}${G()}?${v.toString()}`};this.body=()=>{}}};var od=i=>({metadata:i.metadata,data:i.data.map(n=>({value:n.value,ts:new Date(n.ts)}))}),po=(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))(po||{}),Re=class{constructor(n,e={}){this.contextProvider=n;this.opts=e;this.getServiceMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:s,teamId:a}=e,d={teamId:a,entityId:r,projectId:s};return this.metricsSingle(d,t??{},"service")};this.getServiceBuildMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,{...t,isBuild:!0},"service")};this.getJobMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,t??{},"job")};this.getJobBuildMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,{...t,isBuild:!0},"job")};this.getAddonMetrics=async n=>{let{parameters:e,options:t}=n,{addonId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,t??{},"addon")};this.metricsSingle=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={teamId:a,projectId:s,entityId:r,entityType:t,...e,queryType:"single"};return this.getMetrics(d)};this.getServiceMetricsRange=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsRange(d,t??{},"service")};this.getServiceBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,serviceId:s,teamId:a}=e,d={entityId:s,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:s,teamId:a}=e,d={entityId:s,projectId:r,teamId:a};return this.metricsRange(d,t??{},"job")};this.getJobBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:s,teamId:a}=e,d={entityId:s,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:s,teamId:a}=e,d={entityId:s,projectId:r,teamId:a};return this.metricsRange(d,t??{},"addon")};this.metricsRange=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={teamId:a,projectId:s,entityId:r,entityType:t,...e,queryType:"range"};return this.getMetrics(d)};this.getMetrics=async n=>{let t=await new Ie(this.contextProvider,this.opts).call(n);return t.error?t:{...t,data:Object.fromEntries(Object.entries(t.data).map(([r,s])=>[r,{...s,values:s.values.map(od)}]))}}}};var he=class extends p{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 ye=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ce=class extends o{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 Pe=class extends p{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 ve=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 we=class extends c{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 Ae=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Se=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ee=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?.options&&"teamId"in e?.options&&e?.options?.teamId!==void 0&&e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.options.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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ke=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var xe=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?.options&&"teamId"in e?.options&&e?.options?.teamId!==void 0&&e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/teams/${encodeURIComponent(e.options.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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var je=class extends p{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 m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Le=class extends o{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 qe=class extends y{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 Te=class extends p{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 De=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 Ge=class extends c{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 $e=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ne=class extends o{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 Be=class extends o{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 Oe=class extends o{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 Je=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Me=class extends o{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 y{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 Fe=class extends p{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 He=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 ze=class extends c{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 m{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(s=>s[1]!==void 0);return`/v1/cloud-providers/node-types${t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:""}`};this.body=()=>{}}};var Ke=class extends m{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(s=>s[1]!==void 0);return`/v1/cloud-providers/regions${t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:""}`};this.body=()=>{}}};var We=class extends p{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 Ye=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:"";return`/v1/directory-groups/${encodeURIComponent(e.parameters.groupId)}/members${r}`};this.body=()=>{}}};var Ze=class extends p{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 Qe=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Xe=class extends o{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 et=class extends p{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 tt=class extends c{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 rt=class extends p{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 nt=class extends o{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 at=class extends o{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 st=class extends y{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 it=class extends p{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 ot=class extends c{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 dt=class extends o{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 lt=class extends c{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var pt=class extends o{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 mt=class extends o{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 ut=class extends o{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 ct=class extends p{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 gt=class extends p{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 bt=class extends c{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 ft=class extends o{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 It=class extends o{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 Rt=class extends c{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 ht=class extends o{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 yt=class extends o{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 Ct=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Pt=class extends o{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 vt=class extends y{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 wt=class extends p{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 At=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 St=class extends c{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 Et=class extends o{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 kt=class extends y{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 xt=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 jt=class extends c{constructor(){super(...arguments);this.description="Deletes a gradual rollout strategy.";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 Ut=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Lt=class extends o{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 qt=class extends p{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 Tt=class extends c{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 Dt=class extends o{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 Gt=class extends o{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 $t=class extends o{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 Nt=class extends m{constructor(){super(...arguments);this.description="Lists notification integrations for the authenticated user or team.";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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Bt=class extends o{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 Ot=class extends p{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 Jt=class extends o{constructor(){super(...arguments);this.description="Updates a 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;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 Mt=class extends c{constructor(){super(...arguments);this.description="Deletes a 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;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 _t=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ft=class extends o{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 Ht=class extends p{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 zt=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 Vt=class extends c{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 Kt=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Wt=class extends o{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 Yt=class extends p{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 Zt=class extends y{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 Qt=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 Xt=class extends c{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 p{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 tr=class extends o{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var rr=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var nr=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ar=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var sr=class extends o{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 ir=class extends y{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 or=class extends p{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 lr=class extends c{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 pr=class extends o{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 mr=class extends p{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 ur=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 cr=class extends c{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 gr=class extends m{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(s=>s[1]!==void 0);return`/v1/org-members${t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:""}`};this.body=()=>{}}};var br=class extends m{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(s=>s[1]!==void 0);return`/v1/org-roles${t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:""}`};this.body=()=>{}}};var fr=class extends o{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 Ir=class extends y{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 Rr=class extends p{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 hr=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 yr=class extends c{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 Cr=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:"";return`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var Pr=class extends o{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 vr=class extends c{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 wr=class extends p{constructor(){super(...arguments);this.description="Lists available billing plans";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/plans";this.body=()=>{}}};var Ar=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Sr=class extends o{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 Er=class extends y{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 kr=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 xr=class extends p{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 jr=class extends c{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var X=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ur=class extends o{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 Lr=class extends y{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 qr=class extends p{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 Tr=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 Dr=class extends c{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 Gr=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var $r=class extends o{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 Nr=class extends c{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 Br=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Or=class extends o{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 Jr=class extends p{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 Mr=class extends c{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 _r=class extends o{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 Fr=class extends o{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Hr=class extends p{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 zr=class extends o{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Vr=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Kr=class extends o{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 Wr=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Yr=class extends p{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 Zr=class extends o{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 Qr=class extends o{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 Xr=class extends o{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 en=class extends o{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 tn=class extends o{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 rn=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var nn=class extends o{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 an=class extends o{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 sn=class extends o{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 on=class extends p{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 dn=class extends o{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 ln=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var pn=class extends o{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 mn=class extends p{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 un=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 cn=class extends c{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 gn=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var bn=class extends o{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 fn=class extends y{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 In=class extends o{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 Rn=class extends y{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 hn=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 yn=class extends o{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 Cn=class extends y{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 Pn=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 vn=class extends p{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 wn=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 An=class extends c{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 Sn=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var En=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var kn=class extends o{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 xn=class extends p{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var jn=class extends o{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 Un=class extends p{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 Ln=class extends o{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 qn=class extends o{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 Tn=class extends p{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 Dn=class extends c{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 Gn=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var $n=class extends p{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 Nn=class extends o{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 Bn=class extends p{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 On=class extends o{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 Jn=class extends o{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 Mn=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var _n=class extends o{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 Fn=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Hn=class extends o{constructor(){super(...arguments);this.description="Starts a new job run 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)}/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 zn=class extends p{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 Vn=class extends c{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 Kn=class extends p{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Wn=class extends o{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 Yn=class extends p{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 Zn=class extends o{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 Qn=class extends o{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 Xn=class extends o{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 ea=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ta=class extends o{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 ra=class extends p{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 na=class extends o{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 aa=class extends c{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 sa=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ia=class extends p{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 oa=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var da=class extends o{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 la=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var pa=class extends c{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var ma=class extends o{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 m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ca=class extends p{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 ga=class extends p{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 ba=class extends o{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 fa=class extends o{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 Ia=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ra=class extends p{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 ha=class extends o{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 ya=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ca=class extends o{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 Pa=class extends p{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 va=class extends o{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 wa=class extends c{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 Aa=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Sa=class extends c{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Ea=class extends o{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 ka=class extends o{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 xa=class extends o{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 ja=class extends o{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 Ua=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var La=class extends p{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 qa=class extends o{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 Ta=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Da=class extends o{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 Ga=class extends y{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 $a=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 Na=class extends p{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ba=class extends c{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 Oa=class extends o{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 Ja=class extends o{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 Ma=class extends p{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 _a=class extends c{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 Fa=class extends p{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 ee=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ha=class extends o{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 za=class extends y{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 Va=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 Ka=class extends o{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 Wa=class extends y{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 Ya=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 Za=class extends o{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 Qa=class extends y{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 Xa=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 es=class extends p{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 ts=class extends c{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var rs=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ns=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var as=class extends o{constructor(){super(...arguments);this.description="Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required.";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 ss=class extends p{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var is=class extends o{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 os=class extends p{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 ds=class extends c{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 ls=class extends o{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 ps=class extends o{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 ms=class extends p{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 us=class extends c{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 cs=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var gs=class extends p{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 bs=class extends o{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 fs=class extends p{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 Is=class extends o{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 Rs=class extends o{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 hs=class extends p{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 ys=class extends o{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 Cs=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ps=class extends o{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 vs=class extends o{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 ws=class extends p{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var As=class extends o{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 Ss=class extends p{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 o{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 ks=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var xs=class extends o{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 js=class extends p{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 Us=class extends o{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 Ls=class extends c{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 qs=class extends o{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 Ts=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ds=class extends o{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 Gs=class extends p{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 $s=class extends c{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 Ns=class extends o{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 Bs=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Os=class extends o{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 Js=class extends p{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 Ms=class extends o{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 _s=class extends o{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 Fs=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Hs=class extends p{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 zs=class extends o{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 Vs=class extends p{constructor(){super(...arguments);this.description="Lists available project regions";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/regions";this.body=()=>{}}};var Ks=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ws=class extends o{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 Ys=class extends y{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(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 Zs=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(r=>{if(e?.parameters?.[r]===void 0)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=e=>JSON.stringify(e.data)}};var Qs=class extends p{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 Xs=class extends c{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 ei=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ti=class extends o{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 ri=class extends y{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 ni=class extends p{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 ai=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 si=class extends c{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 ii=class extends o{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 oi=class extends m{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(s=>s[1]!==void 0);return`/v1/teams${t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:""}`};this.body=()=>{}}};var di=class extends p{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 li=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 pi=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members${r}`};this.body=()=>{}}};var mi=class extends o{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 ui=class extends c{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 ci=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles${r}`};this.body=()=>{}}};var gi=class extends o{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 bi=class extends y{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 fi=class extends p{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 Ii=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 Ri=class extends c{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 hi=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${s[0]}=${s[1]}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var yi=class extends o{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 Ci=class extends c{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 Pi=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var vi=class extends o{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 wi=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ai=class extends o{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 Si=class extends c{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 Ei=class extends o{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 ki=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var xi=class extends p{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 ji=class extends o{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 Ui=class extends m{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Li=class extends o{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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var qi=class extends p{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 Ti=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),s=r.length>0?`?${r.map(a=>`${a[0]}=${a[1]}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Di=class extends c{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 _=class{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,s={current:t.name,contexts:[...r.contexts,t],lastUpdateCheck:r.lastUpdateCheck};this.storeContext(s)}removeContext(n){this.loadContext();let{contextWrapper:e}=this,t=e.contexts.filter(a=>a.name!==n),s={current:e.current===n?void 0:e.current,contexts:[...t],lastUpdateCheck:e.lastUpdateCheck};this.storeContext(s)}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.getCurrentContext()?.project}getCurrentName(){return this.getCurrentContext()?.name}getCurrentToken(){return this.getCurrentContext()?.token}getCurrentServiceName(){return this.getCurrentContext()?.service}getCurrentJobName(){return this.getCurrentContext()?.job}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 l=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(Buffer.from(l,"base64").toString("utf8"))}catch{return}};if(n?.token===void 0)return;let s=t(n.token)?.entityType??"team";return this.updateContext({...n,tokenScope:s}),s}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)}};import Gi from"fs";import dd from"os";var mo=class extends _{constructor(e){super();this.assertDir=e=>{try{Gi.existsSync(e)||Gi.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||`${dd.homedir()}/.northflank`,this.configFile=`${this.configPath}/config.json`,this.loadContext()}loadContextWrapper(){let e;try{e=Gi.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{Gi.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 uo=class extends _{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 co=class{constructor(n,e={}){this.baseUrl=()=>this.contextProvider.getCurrentBaseUrl();this.contextProvider=n,this.forwarding=new de(n,new ee(n,e),new X(n,e),e.dispatcher),this.exec=new me(n,e.dispatcher),this.logs=new fe(n,e),this.metrics=new Re(n,e),this.fileCopy=new ce(this.exec),this.endpoints={get:(()=>{let t={};return t.addon=(()=>{let r=new qr(n,e);return r.types=new he(n,e),r.backupSchedules=new Gr(n,e),r.backups=new Br(n,e),r.backup=(()=>{let s=new Jr(n,e);return s.download=new Hr(n,e),s.restores=new Vr(n,e),s})(),r.containers=new Wr(n,e),r.credentials=new Yr(n,e),r.restores=new rn(n,e),r.version=new on(n,e),r})(),t.backupDestination=new Pe(n,e),t.invoice=new Ee(n,e),t.usage=new xe(n,e),t.cloud=(()=>{let r={};return r.cluster=new Te(n,e),r.integration=new Fe(n,e),r})(),t.orgDirectoryGroups=new We(n,e),t.dnsId=new Ze(n,e),t.domain=new et(n,e),t.domainCertificate=new rt(n,e),t.subdomain=(()=>{let r=new it(n,e);return r.path=new gt(n,e),r})(),t.egressIp=new wt(n,e),t.logSink=new qt(n,e),t.notification=new Ot(n,e),t.registryCredentials=new Ht(n,e),t.sshIdentities=new Yt(n,e),t.loadBalancer=new or(n,e),t.networkPolicy=new mr(n,e),t.orgRole=new Rr(n,e),t.project=new xr(n,e),t.externalAddon=new mn(n,e),t.job=(()=>{let r=new vn(n,e);return r.branches=new Sn(n,e),r.builds=new En(n,e),r.buildArguments=new xn(n,e),r.buildArgumentDetails=new Un(n,e),r.build=new Tn(n,e),r.containers=new Gn(n,e),r.deployment=new $n(n,e),r.healthChecks=new Bn(n,e),r.pullRequests=new Mn(n,e),r.runs=new Fn(n,e),r.run=new zn(n,e),r.runtimeEnvironment=new Kn(n,e),r.runtimeEnvironmentDetails=new Yn(n,e),r})(),t.llmModelDeployment=new ra(n,e),t.pipeline=new ia(n,e),t.previewTemplate=new oa(n,e),t.previewTemplateRun=new ca(n,e),t.releaseFlow=new ga(n,e),t.releaseFlowRun=new Ra(n,e),t.previewBlueprint=new Pa(n,e),t.previewBlueprintRun=new La(n,e),t.secret=new Na(n,e),t.secretLink=new Ma(n,e),t.secretDetails=new Fa(n,e),t.service=(()=>{let r=new es(n,e);return r.branches=new rs(n,e),r.builds=new ns(n,e),r.buildArguments=new ss(n,e),r.buildArgumentDetails=new os(n,e),r.build=new ms(n,e),r.containers=new cs(n,e),r.deployment=new gs(n,e),r.healthChecks=new fs(n,e),r.ports=new hs(n,e),r.pullRequests=new Cs(n,e),r.runtimeEnvironment=new ws(n,e),r.runtimeEnvironmentDetails=new Ss(n,e),r})(),t.volume=(()=>{let r=new js(n,e);return r.backups=new Ts(n,e),r.backup=new Gs(n,e),r})(),t.workflow=new Js(n,e),t.workflowRun=new Hs(n,e),t.globalSecret=new Qs(n,e),t.tag=new ni(n,e),t.team=new di(n,e),t.teamRole=new fi(n,e),t.template=new wi(n,e),t.templateRun=new xi(n,e),t.workloadIdentities=new qi(n,e),t})(),list:(()=>{let t={};return t.backupDestinations=new ye(n,e),t.backupDestinationsBackups=new Ae(n,e),t.invoices=new Se(n,e),t.usage=new ke(n,e),t.cloud=(()=>{let r={};return r.providers=new je(n,e),r.clusters=new Ue(n,e),r.cluster=(()=>{let s={};return s.nodes=new $e(n,e),s})(),r.integrations=new Je(n,e),r.nodeTypes=new Ve(n,e),r.regions=new Ke(n,e),r})(),t.orgDirectoryGroupMembers=new Ye(n,e),t.domains=new Qe(n,e),t.subdomain=(()=>{let r={};return r.path=new ct(n,e),r})(),t.egressIps=new Ct(n,e),t.logSinks=new Ut(n,e),t.notifications=new Nt(n,e),t.registryCredentials=new _t(n,e),t.sshIdentities=new Kt(n,e),t.vcs=new er(n,e),t.repos=new rr(n,e),t.branches=new nr(n,e),t.loadBalancers=new ar(n,e),t.orgMembers=new gr(n,e),t.orgRoles=new br(n,e),t.orgRoleMembers=new Cr(n,e),t.plans=new wr(n,e),t.projects=new Ar(n,e),t.addons=new X(n,e),t.externalAddons=new ln(n,e),t.jobs=new gn(n,e),t.llmModelDeployments=new ea(n,e),t.pipelines=new sa(n,e),t.pipelineTemplatePreviews=new la(n,e),t.previewTemplateRuns=new ua(n,e),t.releaseFlowRuns=new Ia(n,e),t.previewBlueprints=new ya(n,e),t.blueprintTemplatePreviews=new Aa(n,e),t.previewBlueprintRuns=new Ua(n,e),t.secrets=new Ta(n,e),t.services=new ee(n,e),t.volumes=new ks(n,e),t.workflows=new Bs(n,e),t.workflowRuns=new Fs(n,e),t.regions=new Vs(n,e),t.globalSecrets=new Ks(n,e),t.tags=new ei(n,e),t.teams=new oi(n,e),t.teamMembers=new pi(n,e),t.teamRoles=new ci(n,e),t.teamRoleMembers=new hi(n,e),t.templates=new Pi(n,e),t.templateRuns=new ki(n,e),t.workloadIdentities=new Ui(n,e),t})(),add:(()=>{let t={};return t.backupDestination=new Ce(n,e),t.domain=(()=>{let r={};return r.subdomain=new at(n,e),r})(),t.subdomain=(()=>{let r={};return r.path=new ut(n,e),r})(),t.registryCredentials=new Ft(n,e),t.sshIdentities=new Wt(n,e),t.tag=new ti(n,e),t})(),patch:(()=>{let t={};return t.backupDestination=new ve(n,e),t.cloud=(()=>{let r={};return r.cluster=new De(n,e),r.integration=new He(n,e),r})(),t.egressIp=new At(n,e),t.gradualRolloutStrategy=new xt(n,e),t.loadBalancer=new dr(n,e),t.networkPolicy=new ur(n,e),t.orgRole=new hr(n,e),t.project=new kr(n,e),t.addon=new Tr(n,e),t.job=(()=>{let r=new wn(n,e);return r.cron=new hn(n,e),r.manual=new Pn(n,e),r})(),t.secret=new $a(n,e),t.service=(()=>{let r={};return r.build=new Va(n,e),r.combined=new Ya(n,e),r.deployment=new Xa(n,e),r})(),t.globalSecret=new Zs(n,e),t.tag=new ai(n,e),t.team=new li(n,e),t.teamRole=new Ii(n,e),t})(),delete:(()=>{let t={};return t.backupDestination=new we(n,e),t.cloud=(()=>{let r={};return r.cluster=new Ge(n,e),r.integration=new ze(n,e),r})(),t.domain=new tt(n,e),t.subdomain=(()=>{let r=new ot(n,e);return r.path=new bt(n,e),r})(),t.egressIp=new St(n,e),t.gradualRolloutStrategy=new jt(n,e),t.logSink=new Tt(n,e),t.notification=new Mt(n,e),t.registryCredentials=new Vt(n,e),t.sshIdentities=new Xt(n,e),t.loadBalancer=new lr(n,e),t.networkPolicy=new cr(n,e),t.orgRole=new yr(n,e),t.orgRoleMember=new vr(n,e),t.project=new jr(n,e),t.addon=(()=>{let r=new Dr(n,e);return r.backupSchedule=new Nr(n,e),r})(),t.backup=new Mr(n,e),t.externalAddon=new cn(n,e),t.job=new An(n,e),t.llmModelDeployment=new aa(n,e),t.pipelineTemplatePreview=new pa(n,e),t.previewBlueprint=new wa(n,e),t.blueprintTemplatePreview=new Sa(n,e),t.secret=new Ba(n,e),t.secretLink=new _a(n,e),t.service=new ts(n,e),t.volume=(()=>{let r=new Ls(n,e);return r.backup=new $s(n,e),r})(),t.globalSecret=new Xs(n,e),t.tag=new si(n,e),t.teamMember=new ui(n,e),t.teamRole=new Ri(n,e),t.teamRoleMember=new Ci(n,e),t.template=new Si(n,e),t.workloadIdentities=new Di(n,e),t})(),create:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new Le(n,e),r.integration=new Me(n,e),r})(),t.domain=new Xe(n,e),t.egressIp=new Pt(n,e),t.gradualRolloutStrategy=new Et(n,e),t.logSink=new Lt(n,e),t.notification=new Bt(n,e),t.customVcs=(()=>{let r={};return r.token=new tr(n,e),r})(),t.loadBalancer=new sr(n,e),t.networkPolicy=new pr(n,e),t.orgRole=new fr(n,e),t.orgRoleMember=new Pr(n,e),t.project=new Sr(n,e),t.addon=(()=>{let r=new Ur(n,e);return r.backupSchedule=new $r(n,e),r})(),t.externalAddon=new pn(n,e),t.job=(()=>{let r=new bn(n,e);return r.cron=new In(n,e),r.manual=new yn(n,e),r})(),t.llmModelDeployment=new ta(n,e),t.previewBlueprint=new Ca(n,e),t.secret=new Da(n,e),t.service=(()=>{let r={};return r.build=new Ha(n,e),r.combined=new Ka(n,e),r.deployment=new Za(n,e),r})(),t.volume=new xs(n,e),t.workflow=new Os(n,e),t.globalSecret=new Ws(n,e),t.team=new ii(n,e),t.teamMemberInvite=new mi(n,e),t.teamRole=new gi(n,e),t.teamRoleMember=new yi(n,e),t.template=new vi(n,e),t.workloadIdentities=new Li(n,e),t})(),put:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new qe(n,e),r.integration=new _e(n,e),r})(),t.domain=(()=>{let r={};return r.subdomain=new st(n,e),r})(),t.egressIp=new vt(n,e),t.gradualRolloutStrategy=new kt(n,e),t.sshIdentities=new Zt(n,e),t.loadBalancer=new ir(n,e),t.orgRole=new Ir(n,e),t.project=new Er(n,e),t.addon=new Lr(n,e),t.job=(()=>{let r=new fn(n,e);return r.cron=new Rn(n,e),r.manual=new Cn(n,e),r})(),t.secret=new Ga(n,e),t.service=(()=>{let r={};return r.build=new za(n,e),r.combined=new Wa(n,e),r.deployment=new Qa(n,e),r})(),t.globalSecret=new Ys(n,e),t.tag=new ri(n,e),t.teamRole=new bi(n,e),t})(),cordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=new Ne(n,e),s})(),r})(),t})(),drain:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=new Be(n,e),s})(),r})(),t})(),uncordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=new Oe(n,e),s})(),r})(),t})(),import:(()=>{let t={};return t.domainCertificate=new nt(n,e),t.addon=(()=>{let r={};return r.backup=new Zr(n,e),r})(),t})(),assign:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.service=new dt(n,e),r.path=new It(n,e),r})(),t})(),unassign:(()=>{let t={};return t.subdomain=(()=>{let r=new lt(n,e);return r.path=new Rt(n,e),r})(),t})(),disable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new pt(n,e),r})(),t})(),enable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new mt(n,e),r})(),t})(),update:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.path=new ft(n,e),r})(),t.logSink=new $t(n,e),t.notification=new Jt(n,e),t.registryCredentials=new zt(n,e),t.sshIdentities=new Qt(n,e),t.addon=(()=>{let r={};return r.networkSettings=new Qr(n,e),r.security=new sn(n,e),r.version=new dn(n,e),r})(),t.externalAddon=new un(n,e),t.job=(()=>{let r={};return r.buildArguments=new jn(n,e),r.buildOptions=new Ln(n,e),r.buildSource=new qn(n,e),r.deployment=new Nn(n,e),r.healthChecks=new On(n,e),r.runtimeEnvironment=new Wn(n,e),r.settings=new Qn(n,e),r})(),t.llmModelDeployment=new na(n,e),t.previewTemplate=new da(n,e),t.releaseFlow=new ba(n,e),t.previewBlueprint=new va(n,e),t.secret=new Oa(n,e),t.secretLink=new Ja(n,e),t.service=(()=>{let r={};return r.buildArguments=new is(n,e),r.buildOptions=new ls(n,e),r.buildSource=new ps(n,e),r.deployment=new bs(n,e),r.healthChecks=new Is(n,e),r.ports=new ys(n,e),r.runtimeEnvironment=new As(n,e),r})(),t.volume=new Us(n,e),t.workflow=new Ms(n,e),t.template=new Ai(n,e),t.workloadIdentities=new Ti(n,e),t})(),verify:(()=>{let t={};return t.subdomain=new ht(n,e),t.domain=new yt(n,e),t})(),pause:(()=>{let t={};return t.logSink=new Dt(n,e),t.addon=new Xr(n,e),t.job=new Jn(n,e),t.blueprintTemplatePreview=new Ea(n,e),t.service=new Rs(n,e),t})(),resume:(()=>{let t={};return t.logSink=new Gt(n,e),t.addon=new nn(n,e),t.job=new _n(n,e),t.blueprintTemplatePreview=new xa(n,e),t.service=new vs(n,e),t})(),backup:(()=>{let t={};return t.addon=new Or(n,e),t.volume=new Ds(n,e),t})(),abort:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new _r(n,e),r.restore=new Fr(n,e),r})(),t.job=(()=>{let r={};return r.build=new Dn(n,e),r.run=new Vn(n,e),r})(),t.releaseFlowRun=new ha(n,e),t.previewBlueprintRun=new qa(n,e),t.service=(()=>{let r={};return r.build=new us(n,e),r})(),t.workflowRun=new zs(n,e),t.templateRun=new ji(n,e),t})(),restore:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new zr(n,e),r})(),t})(),retain:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Kr(n,e),r})(),t})(),reset:(()=>{let t={};return t.addon=new en(n,e),t.blueprintTemplatePreview=new ka(n,e),t.service=(()=>{let r={};return r.buildCache=new ds(n,e),r})(),t})(),restart:(()=>{let t={};return t.addon=new tn(n,e),t.service=new Ps(n,e),t})(),scale:(()=>{let t={};return t.addon=new an(n,e),t.job=new Zn(n,e),t.service=new Es(n,e),t})(),start:(()=>{let t={};return t.job=(()=>{let r={};return r.build=new kn(n,e),r.run=new Hn(n,e),r})(),t.service=(()=>{let r={};return r.build=new as(n,e),r})(),t})(),suspend:(()=>{let t={};return t.job=new Xn(n,e),t})(),run:(()=>{let t={};return t.previewTemplate=new ma(n,e),t.releaseFlow=new fa(n,e),t.previewBlueprint=new ja(n,e),t.workflow=new _s(n,e),t.template=new Ei(n,e),t})(),attach:(()=>{let t={};return t.volume=new qs(n,e),t})(),detach:(()=>{let t={};return t.volume=new Ns(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 s=this.endpoints.get.addon.backupSchedules.call;return s.all=this.endpoints.get.addon.backupSchedules.all,s})(),r.backups=(()=>{let s=this.endpoints.get.addon.backups.call;return s.all=this.endpoints.get.addon.backups.all,s})(),r.backup=(()=>{let s=this.endpoints.get.addon.backup.call;return s.download=this.endpoints.get.addon.backup.download.call,s.restores=(()=>{let a=this.endpoints.get.addon.backup.restores.call;return a.all=this.endpoints.get.addon.backup.restores.all,a})(),s.logs=this.logs.getAddonBackupLogs,s.logTail=this.logs.tailAddonBackupLogs,s})(),r.containers=(()=>{let s=this.endpoints.get.addon.containers.call;return s.all=this.endpoints.get.addon.containers.all,s})(),r.credentials=this.endpoints.get.addon.credentials.call,r.restores=(()=>{let s=(()=>{let a=this.endpoints.get.addon.restores.call;return a.all=this.endpoints.get.addon.restores.all,a})();return s.logs=this.logs.getAddonRestoresLogs,s.logTail=this.logs.tailAddonRestoresLogs,s})(),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.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.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.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.job=(()=>{let r=this.endpoints.get.job.call;return r.branches=(()=>{let s=this.endpoints.get.job.branches.call;return s.all=this.endpoints.get.job.branches.all,s})(),r.builds=(()=>{let s=this.endpoints.get.job.builds.call;return s.all=this.endpoints.get.job.builds.all,s})(),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 s=this.endpoints.get.job.containers.call;return s.all=this.endpoints.get.job.containers.all,s})(),r.deployment=this.endpoints.get.job.deployment.call,r.healthChecks=this.endpoints.get.job.healthChecks.call,r.pullRequests=(()=>{let s=this.endpoints.get.job.pullRequests.call;return s.all=this.endpoints.get.job.pullRequests.all,s})(),r.runs=(()=>{let s=this.endpoints.get.job.runs.call;return s.all=this.endpoints.get.job.runs.all,s})(),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 s=this.endpoints.get.service.branches.call;return s.all=this.endpoints.get.service.branches.all,s})(),r.builds=(()=>{let s=this.endpoints.get.service.builds.call;return s.all=this.endpoints.get.service.builds.all,s})(),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 s=this.endpoints.get.service.containers.call;return s.all=this.endpoints.get.service.containers.all,s})(),r.deployment=this.endpoints.get.service.deployment.call,r.healthChecks=this.endpoints.get.service.healthChecks.call,r.ports=this.endpoints.get.service.ports.call,r.pullRequests=(()=>{let s=this.endpoints.get.service.pullRequests.call;return s.all=this.endpoints.get.service.pullRequests.all,s})(),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.backups=(()=>{let s=this.endpoints.get.volume.backups.call;return s.all=this.endpoints.get.volume.backups.all,s})(),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 s=this.endpoints.list.cloud.clusters.call;return s.all=this.endpoints.list.cloud.clusters.all,s})(),r.cluster=(()=>{let s={};return s.nodes=(()=>{let a=this.endpoints.list.cloud.cluster.nodes.call;return a.all=this.endpoints.list.cloud.cluster.nodes.all,a})(),s})(),r.integrations=(()=>{let s=this.endpoints.list.cloud.integrations.call;return s.all=this.endpoints.list.cloud.integrations.all,s})(),r.nodeTypes=(()=>{let s=this.endpoints.list.cloud.nodeTypes.call;return s.all=this.endpoints.list.cloud.nodeTypes.all,s})(),r.regions=(()=>{let s=this.endpoints.list.cloud.regions.call;return s.all=this.endpoints.list.cloud.regions.all,s})(),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.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.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.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.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.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.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.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=this.endpoints.delete.service.call,t.volume=(()=>{let r=this.endpoints.delete.volume.call;return r.backup=this.endpoints.delete.volume.backup.call,r})(),t.globalSecret=this.endpoints.delete.globalSecret.call,t.tag=this.endpoints.delete.tag.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.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.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.volume=this.endpoints.create.volume.call,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.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 s={};return s.node=this.endpoints.cordon.cloud.cluster.node.call,s})(),r})(),t})(),this.drain=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=this.endpoints.drain.cloud.cluster.node.call,s})(),r})(),t})(),this.uncordon=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=this.endpoints.uncordon.cloud.cluster.node.call,s})(),r})(),t})(),this.import=(()=>{let t={};return t.domainCertificate=this.endpoints.import.domainCertificate.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.update=(()=>{let t={};return t.subdomain=(()=>{let r={};return 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.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.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.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.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.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.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.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.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})()}};export{_r as AbortAddonBackupEndpoint,Fr as AbortAddonRestoreEndpoint,Dn as AbortJobBuildEndpoint,Vn as AbortJobRunEndpoint,qa as AbortPreviewblueprintrunEndpoint,ha as AbortReleaseflowrunEndpoint,us as AbortServiceBuildEndpoint,ji as AbortTemplaterunEndpoint,zs as AbortWorkflowrunEndpoint,Ce as AddBackupdestinationEndpoint,at as AddDomainSubdomainEndpoint,Ft as AddRegistrycredentialsEndpoint,Wt as AddSshidentitiesEndpoint,ut as AddSubdomainPathEndpoint,ti as AddTagEndpoint,co as ApiClient,_ as ApiClientContextProvider,mo as ApiClientFileContextProvider,uo as ApiClientInMemoryContextProvider,T as ApiEndpoint,It as AssignSubdomainPathEndpoint,dt as AssignSubdomainServiceEndpoint,qs as AttachVolumeEndpoint,Or as BackupAddonEndpoint,Ds as BackupVolumeEndpoint,io as CopyType,Ne as CordonCloudClusterNodeEndpoint,$r as CreateAddonBackupscheduleEndpoint,Ur as CreateAddonEndpoint,Le as CreateCloudClusterEndpoint,Me as CreateCloudIntegrationEndpoint,tr as CreateCustomvcsTokenEndpoint,Xe as CreateDomainEndpoint,Pt as CreateEgressipEndpoint,pn as CreateExternaladdonEndpoint,Ws as CreateGlobalsecretEndpoint,Et as CreateGradualrolloutstrategyEndpoint,In as CreateJobCronEndpoint,bn as CreateJobEndpoint,yn as CreateJobManualEndpoint,ta as CreateLlmmodeldeploymentEndpoint,sr as CreateLoadbalancerEndpoint,Lt as CreateLogsinkEndpoint,pr as CreateNetworkpolicyEndpoint,Bt as CreateNotificationEndpoint,fr as CreateOrgroleEndpoint,Pr as CreateOrgrolememberEndpoint,Ca as CreatePreviewblueprintEndpoint,Sr as CreateProjectEndpoint,Da as CreateSecretEndpoint,Ha as CreateServiceBuildEndpoint,Ka as CreateServiceCombinedEndpoint,Za as CreateServiceDeploymentEndpoint,ii as CreateTeamEndpoint,mi as CreateTeammemberinviteEndpoint,gi as CreateTeamroleEndpoint,yi as CreateTeamrolememberEndpoint,vi as CreateTemplateEndpoint,xs as CreateVolumeEndpoint,Os as CreateWorkflowEndpoint,Li as CreateWorkloadidentitiesEndpoint,Nr as DeleteAddonBackupscheduleEndpoint,Dr as DeleteAddonEndpoint,c as DeleteApiEndpoint,Mr as DeleteBackupEndpoint,we as DeleteBackupdestinationEndpoint,Sa as DeleteBlueprinttemplatepreviewEndpoint,Ge as DeleteCloudClusterEndpoint,ze as DeleteCloudIntegrationEndpoint,tt as DeleteDomainEndpoint,St as DeleteEgressipEndpoint,cn as DeleteExternaladdonEndpoint,Xs as DeleteGlobalsecretEndpoint,jt as DeleteGradualrolloutstrategyEndpoint,An as DeleteJobEndpoint,aa as DeleteLlmmodeldeploymentEndpoint,lr as DeleteLoadbalancerEndpoint,Tt as DeleteLogsinkEndpoint,cr as DeleteNetworkpolicyEndpoint,Mt as DeleteNotificationEndpoint,yr as DeleteOrgroleEndpoint,vr as DeleteOrgrolememberEndpoint,pa as DeletePipelinetemplatepreviewEndpoint,wa as DeletePreviewblueprintEndpoint,jr as DeleteProjectEndpoint,Vt as DeleteRegistrycredentialsEndpoint,Ba as DeleteSecretEndpoint,_a as DeleteSecretlinkEndpoint,ts as DeleteServiceEndpoint,Xt as DeleteSshidentitiesEndpoint,ot as DeleteSubdomainEndpoint,bt as DeleteSubdomainPathEndpoint,si as DeleteTagEndpoint,ui as DeleteTeammemberEndpoint,Ri as DeleteTeamroleEndpoint,Ci as DeleteTeamrolememberEndpoint,Si as DeleteTemplateEndpoint,$s as DeleteVolumeBackupEndpoint,Ls as DeleteVolumeEndpoint,Di as DeleteWorkloadidentitiesEndpoint,Ns as DetachVolumeEndpoint,pt as DisableSubdomainCdnEndpoint,Be as DrainCloudClusterNodeEndpoint,mt as EnableSubdomainCdnEndpoint,Y as ExecCommandStandard,Hr as GetAddonBackupDownloadEndpoint,Jr as GetAddonBackupEndpoint,Vr as GetAddonBackupRestoresEndpoint,Br as GetAddonBackupsEndpoint,Gr as GetAddonBackupschedulesEndpoint,Wr as GetAddonContainersEndpoint,Yr as GetAddonCredentialsEndpoint,qr as GetAddonEndpoint,rn as GetAddonRestoresEndpoint,he as GetAddonTypesEndpoint,on as GetAddonVersionEndpoint,p as GetApiEndpoint,m as GetApiEndpointPaginated,Pe as GetBackupdestinationEndpoint,Te as GetCloudClusterEndpoint,Fe as GetCloudIntegrationEndpoint,Ze as GetDnsidEndpoint,et as GetDomainEndpoint,rt as GetDomaincertificateEndpoint,wt as GetEgressipEndpoint,mn as GetExternaladdonEndpoint,Qs as GetGlobalsecretEndpoint,Ee as GetInvoiceEndpoint,Sn as GetJobBranchesEndpoint,Tn as GetJobBuildEndpoint,Un as GetJobBuildargumentdetailsEndpoint,xn as GetJobBuildargumentsEndpoint,En as GetJobBuildsEndpoint,Gn as GetJobContainersEndpoint,$n as GetJobDeploymentEndpoint,vn as GetJobEndpoint,Bn as GetJobHealthchecksEndpoint,Mn as GetJobPullrequestsEndpoint,zn as GetJobRunEndpoint,Fn as GetJobRunsEndpoint,Kn as GetJobRuntimeenvironmentEndpoint,Yn as GetJobRuntimeenvironmentdetailsEndpoint,ra as GetLlmmodeldeploymentEndpoint,or as GetLoadbalancerEndpoint,qt as GetLogsinkEndpoint,mr as GetNetworkpolicyEndpoint,Ot as GetNotificationEndpoint,We as GetOrgdirectorygroupsEndpoint,Rr as GetOrgroleEndpoint,ia as GetPipelineEndpoint,Pa as GetPreviewblueprintEndpoint,La as GetPreviewblueprintrunEndpoint,oa as GetPreviewtemplateEndpoint,ca as GetPreviewtemplaterunEndpoint,xr as GetProjectEndpoint,Ht as GetRegistrycredentialsEndpoint,ga as GetReleaseflowEndpoint,Ra as GetReleaseflowrunEndpoint,Na as GetSecretEndpoint,Fa as GetSecretdetailsEndpoint,Ma as GetSecretlinkEndpoint,rs as GetServiceBranchesEndpoint,ms as GetServiceBuildEndpoint,os as GetServiceBuildargumentdetailsEndpoint,ss as GetServiceBuildargumentsEndpoint,ns as GetServiceBuildsEndpoint,cs as GetServiceContainersEndpoint,gs as GetServiceDeploymentEndpoint,es as GetServiceEndpoint,fs as GetServiceHealthchecksEndpoint,hs as GetServicePortsEndpoint,Cs as GetServicePullrequestsEndpoint,ws as GetServiceRuntimeenvironmentEndpoint,Ss as GetServiceRuntimeenvironmentdetailsEndpoint,Yt as GetSshidentitiesEndpoint,it as GetSubdomainEndpoint,gt as GetSubdomainPathEndpoint,ni as GetTagEndpoint,di as GetTeamEndpoint,fi as GetTeamroleEndpoint,wi as GetTemplateEndpoint,xi as GetTemplaterunEndpoint,xe as GetUsageEndpoint,Gs as GetVolumeBackupEndpoint,Ts as GetVolumeBackupsEndpoint,js as GetVolumeEndpoint,Js as GetWorkflowEndpoint,Hs as GetWorkflowrunEndpoint,qi as GetWorkloadidentitiesEndpoint,Zr as ImportAddonBackupEndpoint,nt as ImportDomaincertificateEndpoint,X as ListAddonsEndpoint,ye as ListBackupdestinationsEndpoint,Ae as ListBackupdestinationsbackupsEndpoint,Aa as ListBlueprinttemplatepreviewsEndpoint,nr as ListBranchesEndpoint,$e as ListCloudClusterNodesEndpoint,Ue as ListCloudClustersEndpoint,Je as ListCloudIntegrationsEndpoint,Ve as ListCloudNodetypesEndpoint,je as ListCloudProvidersEndpoint,Ke as ListCloudRegionsEndpoint,Qe as ListDomainsEndpoint,Ct as ListEgressipsEndpoint,ln as ListExternaladdonsEndpoint,Ks as ListGlobalsecretsEndpoint,Se as ListInvoicesEndpoint,gn as ListJobsEndpoint,ea as ListLlmmodeldeploymentsEndpoint,ar as ListLoadbalancersEndpoint,Ut as ListLogsinksEndpoint,Nt as ListNotificationsEndpoint,Ye as ListOrgdirectorygroupmembersEndpoint,gr as ListOrgmembersEndpoint,Cr as ListOrgrolemembersEndpoint,br as ListOrgrolesEndpoint,sa as ListPipelinesEndpoint,la as ListPipelinetemplatepreviewsEndpoint,wr as ListPlansEndpoint,Ua as ListPreviewblueprintrunsEndpoint,ya as ListPreviewblueprintsEndpoint,ua as ListPreviewtemplaterunsEndpoint,Ar as ListProjectsEndpoint,Vs as ListRegionsEndpoint,_t as ListRegistrycredentialsEndpoint,Ia as ListReleaseflowrunsEndpoint,rr as ListReposEndpoint,Ta as ListSecretsEndpoint,ee as ListServicesEndpoint,Kt as ListSshidentitiesEndpoint,ct as ListSubdomainPathEndpoint,ei as ListTagsEndpoint,pi as ListTeammembersEndpoint,hi as ListTeamrolemembersEndpoint,ci as ListTeamrolesEndpoint,oi as ListTeamsEndpoint,ki as ListTemplaterunsEndpoint,Pi as ListTemplatesEndpoint,ke as ListUsageEndpoint,er as ListVcsEndpoint,ks as ListVolumesEndpoint,Fs as ListWorkflowrunsEndpoint,Bs as ListWorkflowsEndpoint,Ui as ListWorkloadidentitiesEndpoint,oo as LogType,po as MetricType,Q as NorthflankApiCallError,me as NorthflankExecCommand,ce as NorthflankFileCopy,fe as NorthflankLogFetch,Re as NorthflankMetricFetch,de as NorthflankPortForwarder,Tr as PatchAddonEndpoint,R as PatchApiEndpoint,ve as PatchBackupdestinationEndpoint,De as PatchCloudClusterEndpoint,He as PatchCloudIntegrationEndpoint,At as PatchEgressipEndpoint,Zs as PatchGlobalsecretEndpoint,xt as PatchGradualrolloutstrategyEndpoint,hn as PatchJobCronEndpoint,wn as PatchJobEndpoint,Pn as PatchJobManualEndpoint,dr as PatchLoadbalancerEndpoint,ur as PatchNetworkpolicyEndpoint,hr as PatchOrgroleEndpoint,kr as PatchProjectEndpoint,$a as PatchSecretEndpoint,Va as PatchServiceBuildEndpoint,Ya as PatchServiceCombinedEndpoint,Xa as PatchServiceDeploymentEndpoint,ai as PatchTagEndpoint,li as PatchTeamEndpoint,Ii as PatchTeamroleEndpoint,Xr as PauseAddonEndpoint,Ea as PauseBlueprinttemplatepreviewEndpoint,Jn as PauseJobEndpoint,Dt as PauseLogsinkEndpoint,Rs as PauseServiceEndpoint,o as PostApiEndpoint,Lr as PutAddonEndpoint,y as PutApiEndpoint,qe as PutCloudClusterEndpoint,_e as PutCloudIntegrationEndpoint,st as PutDomainSubdomainEndpoint,vt as PutEgressipEndpoint,Ys as PutGlobalsecretEndpoint,kt as PutGradualrolloutstrategyEndpoint,Rn as PutJobCronEndpoint,fn as PutJobEndpoint,Cn as PutJobManualEndpoint,ir as PutLoadbalancerEndpoint,Ir as PutOrgroleEndpoint,Er as PutProjectEndpoint,Ga as PutSecretEndpoint,za as PutServiceBuildEndpoint,Wa as PutServiceCombinedEndpoint,Qa as PutServiceDeploymentEndpoint,Zt as PutSshidentitiesEndpoint,ri as PutTagEndpoint,bi as PutTeamroleEndpoint,en as ResetAddonEndpoint,ka as ResetBlueprinttemplatepreviewEndpoint,ds as ResetServiceBuildcacheEndpoint,tn as RestartAddonEndpoint,Ps as RestartServiceEndpoint,zr as RestoreAddonBackupEndpoint,nn as ResumeAddonEndpoint,xa as ResumeBlueprinttemplatepreviewEndpoint,_n as ResumeJobEndpoint,Gt as ResumeLogsinkEndpoint,vs as ResumeServiceEndpoint,Kr as RetainAddonBackupEndpoint,ja as RunPreviewblueprintEndpoint,ma as RunPreviewtemplateEndpoint,fa as RunReleaseflowEndpoint,Ei as RunTemplateEndpoint,_s as RunWorkflowEndpoint,an as ScaleAddonEndpoint,Zn as ScaleJobEndpoint,Es as ScaleServiceEndpoint,kn as StartJobBuildEndpoint,Hn as StartJobRunEndpoint,as as StartServiceBuildEndpoint,Xn as SuspendJobEndpoint,lt as UnassignSubdomainEndpoint,Rt as UnassignSubdomainPathEndpoint,Oe as UncordonCloudClusterNodeEndpoint,Qr as UpdateAddonNetworksettingsEndpoint,sn as UpdateAddonSecurityEndpoint,dn as UpdateAddonVersionEndpoint,un as UpdateExternaladdonEndpoint,jn as UpdateJobBuildargumentsEndpoint,Ln as UpdateJobBuildoptionsEndpoint,qn as UpdateJobBuildsourceEndpoint,Nn as UpdateJobDeploymentEndpoint,On as UpdateJobHealthchecksEndpoint,Wn as UpdateJobRuntimeenvironmentEndpoint,Qn as UpdateJobSettingsEndpoint,na as UpdateLlmmodeldeploymentEndpoint,$t as UpdateLogsinkEndpoint,Jt as UpdateNotificationEndpoint,va as UpdatePreviewblueprintEndpoint,da as UpdatePreviewtemplateEndpoint,zt as UpdateRegistrycredentialsEndpoint,ba as UpdateReleaseflowEndpoint,Oa as UpdateSecretEndpoint,Ja as UpdateSecretlinkEndpoint,is as UpdateServiceBuildargumentsEndpoint,ls as UpdateServiceBuildoptionsEndpoint,ps as UpdateServiceBuildsourceEndpoint,bs as UpdateServiceDeploymentEndpoint,Is as UpdateServiceHealthchecksEndpoint,ys as UpdateServicePortsEndpoint,As as UpdateServiceRuntimeenvironmentEndpoint,Qt as UpdateSshidentitiesEndpoint,ft as UpdateSubdomainPathEndpoint,Ai as UpdateTemplateEndpoint,Us as UpdateVolumeEndpoint,Ms as UpdateWorkflowEndpoint,Ti as UpdateWorkloadidentitiesEndpoint,yt as VerifyDomainEndpoint,ht as VerifySubdomainEndpoint};
11
+ Message: ${g}`)}},R=()=>{if(u.status!==200){let C=b?.error,P=C?.message||"",v={status:u.status,message:P,id:C?.id,details:C?.details};if(this.opts.throwErrorOnHttpErrorCode)throw new X(v);return v}},b=I(),f=R();return{data:b?.data,rawResponse:u,request:d,error:f,pagination:b?.pagination}}},p=class extends N{constructor(){super(...arguments);this.method="GET";this.body=()=>{}}},m=class extends p{constructor(){super(...arguments);this.all=async e=>new Ie(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),s=r.length===1?{[r[0]]:[]}:{},a={...t,pagination:{...t.pagination,count:0},data:s},d=l=>({...l,pagination:{...l.pagination,getNextPage:async()=>d(l)}});return d(a)}return new Ie(this,e,t.pagination?.cursor).getNext()}}}}}},i=class extends N{constructor(){super(...arguments);this.method="POST"}},c=class extends N{constructor(){super(...arguments);this.method="DELETE"}},y=class extends N{constructor(){super(...arguments);this.method="PUT"}},h=class extends N{constructor(){super(...arguments);this.method="PATCH"}},Ie=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:s}=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:s}}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 s=Object.keys(r.data);return s.length===1?(e=s[0],r.data[s[0]]):r.data});return{data:e===void 0?t:{[e]:t},request:n[0]?.request,rawResponse:n[0]?.rawResponse}}},bd=o=>new Promise(n=>{setTimeout(()=>{n()},o)}),Id=async(o,n={},e=3,t=500)=>{let r=await ne(!!n.dispatcher);return new Promise((s,a)=>{let d=l=>r(o,n).then(u=>{s(u)}).catch(async u=>{if(l>0)return await bd(t),d(l-1);if(u instanceof Error&&u.cause instanceof Error){u.message=`${u.message}: ${u.cause.message}`;for(let g of["code","errno","syscall"])if(u[g]===void 0&&u.cause[g]!==void 0)try{u[g]=u.cause[g]}catch{}}return a(u)});return d(e)})};var fe=class extends p{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=>M.getLogsEndpoint(e);this.body=()=>{}}};var he=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:s,teamId:a}=e,d={entityId:s,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:s,teamId:a}=e,d={entityId:s,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:s,addonId:a}=e,d={entityId:a,projectId:s,teamId:r},l={backupId:e.backupId,restoreId:e.restoreId};return this.logRange(d,{...t,...l},"addonRestore")};this.logRange=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={teamId:a,projectId:s,entityId:r,entityType:t,...e,queryType:"range"},u=await new fe(this.contextProvider,this.clientOpts).call(d);return u.error?u:{...u,data:u?.data?.map(mi)}};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:s,teamId:a}=e,d={entityId:r,projectId:s,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:s}=e,a={entityId:s,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},s={backupId:e.backupId,restoreId:e.restoreId};return this.logTail(r,{...t,...s},"addonRestore")};this.logTail=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={queryType:"tail",teamId:a,projectId:s,entityId:r,entityType:t,...e};this.assertStartedWithNodejs();let l=this.contextProvider.getCurrentBaseUrl(!0),u=this.contextProvider.getCurrentToken();if(!u)throw new Error("API token not found");return new M(l,d,u,this.clientOpts.dispatcher)};this.assertStartedWithNodejs=()=>{if(!j)throw new Error("Command exec only possible when started with nodejs")}}};var Re=class extends p{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:s,entityType:a,deploymentId:d,runId:l,buildId:u,isBuild:g,queryType:I,metricTypes:R,startTime:b,endTime:f,duration:C,containerName:P,timestamp:v}=e,q=`/v1/${t!==void 0?`teams/${t}/`:""}projects/${r}/`;function G(){let S=g?"/build-metrics":"/metrics";switch(a){case"service":return`services/${s}${S}`;case"job":return`jobs/${s}${S}`;case"addon":return`addons/${s}${S}`;default:throw new Error(`Unexpected Northflank entity type received in metrics endpoint generation: ${a}`)}}let w=new URLSearchParams;return w.append("queryType",I),b!==void 0&&w.append("startTime",b.toISOString()),f!==void 0&&w.append("endTime",f.toISOString()),P!==void 0&&w.append("containerName",P),d!==void 0&&w.append("deploymentId",d),l!==void 0&&w.append("runId",l),u!==void 0&&w.append("buildId",u),v!==void 0&&w.append("timestamp",v.toISOString()),C!==void 0&&w.append("duration",C.toString()),R!==void 0&&R.forEach(S=>w.append("metricTypes",S)),`${q}${G()}?${w.toString()}`};this.body=()=>{}}};var fd=o=>({metadata:o.metadata,data:o.data.map(n=>({value:n.value,ts:new Date(n.ts)}))}),Ai=(I=>(I.Cpu="cpu",I.Memory="memory",I.NetworkIngress="networkIngress",I.NetworkEgress="networkEgress",I.TcpConnectionOpen="tcpConnectionsOpen",I.PvcUsage="diskUsage",I.Requests="requests",I.Http4xxResponses="http4xxResponses",I.Http5xxResponses="http5xxResponses",I.Bandwidth="bandwidth",I.BandwidthVolume="bandwidthVolume",I))(Ai||{}),ye=class{constructor(n,e={}){this.contextProvider=n;this.opts=e;this.getServiceMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:s,teamId:a}=e,d={teamId:a,entityId:r,projectId:s};return this.metricsSingle(d,t??{},"service")};this.getServiceBuildMetrics=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,{...t,isBuild:!0},"service")};this.getJobMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,t??{},"job")};this.getJobBuildMetrics=async n=>{let{parameters:e,options:t}=n,{jobId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,{...t,isBuild:!0},"job")};this.getAddonMetrics=async n=>{let{parameters:e,options:t}=n,{addonId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsSingle(d,t??{},"addon")};this.metricsSingle=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={teamId:a,projectId:s,entityId:r,entityType:t,...e,queryType:"single"};return this.getMetrics(d)};this.getServiceMetricsRange=async n=>{let{parameters:e,options:t}=n,{serviceId:r,projectId:s,teamId:a}=e,d={entityId:r,projectId:s,teamId:a};return this.metricsRange(d,t??{},"service")};this.getServiceBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,serviceId:s,teamId:a}=e,d={entityId:s,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:s,teamId:a}=e,d={entityId:s,projectId:r,teamId:a};return this.metricsRange(d,t??{},"job")};this.getJobBuildMetricsRange=async n=>{let{parameters:e,options:t}=n,{projectId:r,jobId:s,teamId:a}=e,d={entityId:s,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:s,teamId:a}=e,d={entityId:s,projectId:r,teamId:a};return this.metricsRange(d,t??{},"addon")};this.metricsRange=async(n,e,t)=>{let{entityId:r,projectId:s,teamId:a}=n,d={teamId:a,projectId:s,entityId:r,entityType:t,...e,queryType:"range"};return this.getMetrics(d)};this.getMetrics=async n=>{let t=await new Re(this.contextProvider,this.opts).call(n);return t.error?t:{...t,data:Object.fromEntries(Object.entries(t.data).map(([r,s])=>[r,{...s,values:s.values.map(fd)}]))}}}};var Ce=class extends p{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 Pe=class extends p{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 ve=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var we=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 Ae=class extends p{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 Se=class extends h{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 Ee=class extends c{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 ke=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ue=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var xe=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(d=>{if(e?.parameters?.[d]===void 0)throw new Error(`Required argument not set: '${d}'`)});let t,r=[];if(e?.options&&"teamId"in e?.options&&e?.options?.teamId!==void 0&&e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/teams/${encodeURIComponent(e.options.teamId)}/billing/invoices/${encodeURIComponent(e.parameters.invoiceId)}`,r=["teamId"];else if(e?.parameters&&"invoiceId"in e?.parameters&&e?.parameters?.invoiceId!==void 0)t=`/v1/billing/invoices/${encodeURIComponent(e.parameters.invoiceId)}`,r=[];else throw new Error("No matching endpoint URL found for provided parameters");let s=Object.entries(e?.options??{}).filter(d=>d[1]!==void 0&&!r.includes(d[0])),a=s.length>0?`?${s.map(d=>`${encodeURIComponent(d[0])}=${encodeURIComponent(d[1])}`).join("&")}`:"";return`${t}${a}`};this.body=()=>{}}};var je=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Le=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(d=>{if(e?.parameters?.[d]===void 0)throw new Error(`Required argument not set: '${d}'`)});let t,r=[];if(e?.options&&"teamId"in e?.options&&e?.options?.teamId!==void 0&&e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/teams/${encodeURIComponent(e.options.teamId)}/billing/usage/${encodeURIComponent(e.parameters.timestamp)}`,r=["teamId"];else if(e?.parameters&&"timestamp"in e?.parameters&&e?.parameters?.timestamp!==void 0)t=`/v1/billing/usage/${encodeURIComponent(e.parameters.timestamp)}`,r=[];else throw new Error("No matching endpoint URL found for provided parameters");let s=Object.entries(e?.options??{}).filter(d=>d[1]!==void 0&&!r.includes(d[0])),a=s.length>0?`?${s.map(d=>`${encodeURIComponent(d[0])}=${encodeURIComponent(d[1])}`).join("&")}`:"";return`${t}${a}`};this.body=()=>{}}};var Te=class extends p{constructor(){super(...arguments);this.description="Lists supported cloud providers";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/cloud-providers";this.body=()=>{}}};var qe=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var De=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 Ge=class extends y{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 $e=class extends p{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 Ne=class extends h{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 Be=class extends c{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 Oe=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Me=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 Je=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 _e=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 He=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Fe=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 ze=class extends y{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 Ve=class extends p{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 Ke=class extends h{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 We=class extends c{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 Ye=class extends m{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(s=>s[1]!==void 0);return`/v1/cloud-providers/node-types${t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Ze=class extends m{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(s=>s[1]!==void 0);return`/v1/cloud-providers/regions${t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Qe=class extends p{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 m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:"";return`/v1/directory-groups/${encodeURIComponent(e.parameters.groupId)}/members${r}`};this.body=()=>{}}};var et=class extends p{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 m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var rt=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 nt=class extends p{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 c{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 st=class extends p{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 it=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 dt=class extends y{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 lt=class extends p{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 pt=class extends c{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 mt=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 ut=class extends c{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ct=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 gt=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 bt=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 It=class extends h{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 ft=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 p{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 p{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 c{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 c{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 m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};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 y{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 Ut=class extends p{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 xt=class extends h{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 c{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 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 Tt=class extends y{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 qt=class extends h{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 Dt=class extends c{constructor(){super(...arguments);this.description="Deletes a gradual rollout strategy.";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 Gt=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var $t=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 Nt=class extends p{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 Bt=class extends c{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 Ot=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 Mt=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 Jt=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 _t=class extends m{constructor(){super(...arguments);this.description="Lists notification integrations for the authenticated user or team.";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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ht=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 Ft=class extends p{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 zt=class extends i{constructor(){super(...arguments);this.description="Updates a 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;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 Vt=class extends c{constructor(){super(...arguments);this.description="Deletes a 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;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 m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Wt=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 Yt=class extends p{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 Zt=class extends h{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 Qt=class extends c{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 Xt=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var er=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 tr=class extends p{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 rr=class extends y{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 nr=class extends h{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 ar=class extends c{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 sr=class extends p{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 or=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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ir=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var dr=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var lr=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var pr=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 mr=class extends y{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 ur=class extends p{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 cr=class extends h{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 c{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 br=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 Ir=class extends p{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 fr=class extends h{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 hr=class extends c{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 Rr=class extends m{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(s=>s[1]!==void 0);return`/v1/org-members${t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:""}`};this.body=()=>{}}};var yr=class extends m{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(s=>s[1]!==void 0);return`/v1/org-roles${t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:""}`};this.body=()=>{}}};var Cr=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 Pr=class extends y{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 vr=class extends p{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 wr=class extends h{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 Ar=class extends c{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 Sr=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:"";return`/v1/org-roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var Er=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 kr=class extends c{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 Ur=class extends p{constructor(){super(...arguments);this.description="Lists available billing plans";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/plans";this.body=()=>{}}};var xr=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var jr=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 Lr=class extends y{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 Tr=class extends h{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 qr=class extends p{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 Dr=class extends c{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ee=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Gr=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 $r=class extends y{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 Nr=class extends p{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 Br=class extends h{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 Or=class extends c{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 Mr=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Jr=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 _r=class extends c{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 Hr=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Fr=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 zr=class extends p{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 Vr=class extends c{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 Kr=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 Wr=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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Yr=class extends p{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 Zr=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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Qr=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Xr=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 en=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var tn=class extends p{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 rn=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 nn=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 an=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 sn=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 on=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 dn=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ln=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 pn=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 mn=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 un=class extends p{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 cn=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 gn=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var bn=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 In=class extends p{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 fn=class extends h{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 hn=class extends c{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 Rn=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var yn=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 Cn=class extends y{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Pn=class extends p{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 vn=class extends h{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var wn=class extends c{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var An=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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Sn=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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var En=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 kn=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Un=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 xn=class extends y{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 jn=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 Ln=class extends y{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 Tn=class extends h{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 qn=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 Dn=class extends y{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 Gn=class extends h{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 $n=class extends p{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 Nn=class extends h{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 Bn=class extends c{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 On=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Mn=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Jn=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 _n=class extends p{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Hn=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 Fn=class extends p{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 zn=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 Vn=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 Kn=class extends p{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 Wn=class extends c{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 Yn=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Zn=class extends p{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 Qn=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 Xn=class extends p{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 ea=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 ta=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 ra=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var na=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 aa=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var sa=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 > 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)}/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 oa=class extends p{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 ia=class extends c{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 da=class extends p{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var la=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 pa=class extends p{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 ma=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 ua=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 ca=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 ga=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ba=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 Ia=class extends p{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 fa=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 ha=class extends c{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 Ra=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ya=class extends p{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 Ca=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Pa=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 va=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var wa=class extends c{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Aa=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 Sa=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ea=class extends p{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 ka=class extends p{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 Ua=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 xa=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 ja=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var La=class extends p{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 Ta=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 qa=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Da=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 Ga=class extends p{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 $a=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 Na=class extends c{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 Ba=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Oa=class extends c{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Ma=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 Ja=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 _a=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 Ha=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 Fa=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var za=class extends p{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 Va=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 Ka=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Wa=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 Ya=class extends y{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 Za=class extends h{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 Qa=class extends p{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Xa=class extends c{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 es=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 ts=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 rs=class extends p{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 ns=class extends c{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 as=class extends p{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 te=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ss=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 os=class extends y{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 is=class extends h{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 ds=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 ls=class extends y{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 ps=class extends h{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 ms=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 us=class extends y{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 cs=class extends h{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 gs=class extends p{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 bs=class extends c{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Is=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var fs=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var hs=class extends i{constructor(){super(...arguments);this.description="Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required.";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 Rs=class extends p{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ys=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 Cs=class extends p{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 Ps=class extends c{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 vs=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 ws=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 As=class extends p{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 Ss=class extends c{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 Es=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var ks=class extends p{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 Us=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 xs=class extends p{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 js=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 Ls=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 Ts=class extends p{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 qs=class extends c{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 Ds=class extends c{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 Gs=class extends p{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 $s=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 Ns=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Bs=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 Os=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 Ms=class extends p{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Js=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 _s=class extends p{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 Hs=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 Fs=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var zs=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 Vs=class extends p{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 Ks=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 Ws=class extends c{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 Ys=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 Zs=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Qs=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 Xs=class extends p{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 eo=class extends c{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 to=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 ro=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var no=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 ao=class extends p{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 so=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 oo=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 io=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var lo=class extends p{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 po=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 mo=class extends p{constructor(){super(...arguments);this.description="Lists available project regions";this.withAuth=!0;this.requiredPermissions="undefined";this.endpointUrl=e=>"/v1/regions";this.body=()=>{}}};var uo=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var co=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 go=class extends y{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(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 bo=class extends h{constructor(){super(...arguments);this.description="Updates a global 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&&"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=e=>JSON.stringify(e.data)}};var Io=class extends p{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 fo=class extends c{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 ho=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Ro=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 yo=class extends y{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 Co=class extends p{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 Po=class extends h{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 vo=class extends c{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 wo=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 Ao=class extends m{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(s=>s[1]!==void 0);return`/v1/teams${t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:""}`};this.body=()=>{}}};var So=class extends p{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 Eo=class extends h{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 ko=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/members${r}`};this.body=()=>{}}};var Uo=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 xo=class extends c{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 jo=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles${r}`};this.body=()=>{}}};var Lo=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 To=class extends y{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 qo=class extends p{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 Do=class extends h{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 Go=class extends c{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 $o=class extends m{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(s=>{if(e?.parameters?.[s]===void 0)throw new Error(`Required argument not set: '${s}'`)});let t=Object.entries(e?.options??{}).filter(s=>s[1]!==void 0),r=t.length>0?`?${t.map(s=>`${encodeURIComponent(s[0])}=${encodeURIComponent(s[1])}`).join("&")}`:"";return`/v1/teams/${encodeURIComponent(e.parameters.teamId)}/roles/${encodeURIComponent(e.parameters.roleId)}/members${r}`};this.body=()=>{}}};var No=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 Bo=class extends c{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 Oo=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Mo=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 Jo=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var _o=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 Ho=class extends c{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 Fo=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 zo=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Vo=class extends p{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 Ko=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 Wo=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Yo=class extends m{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=()=>{}}};var Zo=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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var Qo=class extends p{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 Xo=class extends h{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),s=r.length>0?`?${r.map(a=>`${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&")}`:"";return`${t}${s}`};this.body=e=>JSON.stringify(e.data)}};var ei=class extends c{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 _=class{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,s={current:t.name,contexts:[...r.contexts,t],lastUpdateCheck:r.lastUpdateCheck};this.storeContext(s)}removeContext(n){this.loadContext();let{contextWrapper:e}=this,t=e.contexts.filter(a=>a.name!==n),s={current:e.current===n?void 0:e.current,contexts:[...t],lastUpdateCheck:e.lastUpdateCheck};this.storeContext(s)}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.getCurrentContext()?.project}getCurrentName(){return this.getCurrentContext()?.name}getCurrentToken(){return this.getCurrentContext()?.token}getCurrentServiceName(){return this.getCurrentContext()?.service}getCurrentJobName(){return this.getCurrentContext()?.job}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 l=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(Buffer.from(l,"base64").toString("utf8"))}catch{return}};if(n?.token===void 0)return;let s=t(n.token)?.entityType??"team";return this.updateContext({...n,tokenScope:s}),s}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)}};import ti from"fs";import hd from"os";var Si=class extends _{constructor(e){super();this.assertDir=e=>{try{ti.existsSync(e)||ti.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||`${hd.homedir()}/.northflank`,this.configFile=`${this.configPath}/config.json`,this.loadContext()}loadContextWrapper(){let e;try{e=ti.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{ti.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 Ei=class extends _{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 ki=class{constructor(n,e={}){this.baseUrl=()=>this.contextProvider.getCurrentBaseUrl();this.contextProvider=n,this.forwarding=new pe(n,new te(n,e),new ee(n,e),e.dispatcher),this.exec=new ce(n,e.dispatcher),this.logs=new he(n,e),this.metrics=new ye(n,e),this.fileCopy=new be(this.exec),this.endpoints={get:(()=>{let t={};return t.addon=(()=>{let r=new Nr(n,e);return r.types=new Ce(n,e),r.backupSchedules=new Mr(n,e),r.backups=new Hr(n,e),r.backup=(()=>{let s=new zr(n,e);return s.download=new Yr(n,e),s.restores=new Qr(n,e),s})(),r.containers=new en(n,e),r.credentials=new tn(n,e),r.restores=new dn(n,e),r.version=new un(n,e),r})(),t.auth=new Pe(n,e),t.backupDestination=new Ae(n,e),t.invoice=new xe(n,e),t.usage=new Le(n,e),t.cloud=(()=>{let r={};return r.cluster=new $e(n,e),r.integration=new Ve(n,e),r})(),t.orgDirectoryGroups=new Qe(n,e),t.dnsId=new et(n,e),t.domain=new nt(n,e),t.domainCertificate=new st(n,e),t.subdomain=(()=>{let r=new lt(n,e);return r.path=new Rt(n,e),r})(),t.egressIp=new Ut(n,e),t.logSink=new Nt(n,e),t.notification=new Ft(n,e),t.registryCredentials=new Yt(n,e),t.sshIdentities=new tr(n,e),t.loadBalancer=new ur(n,e),t.networkPolicy=new Ir(n,e),t.orgRole=new vr(n,e),t.project=new qr(n,e),t.externalAddon=new In(n,e),t.harness=new Pn(n,e),t.job=(()=>{let r=new $n(n,e);return r.branches=new On(n,e),r.builds=new Mn(n,e),r.buildArguments=new _n(n,e),r.buildArgumentDetails=new Fn(n,e),r.build=new Kn(n,e),r.containers=new Yn(n,e),r.deployment=new Zn(n,e),r.healthChecks=new Xn(n,e),r.pullRequests=new ra(n,e),r.runs=new aa(n,e),r.run=new oa(n,e),r.runtimeEnvironment=new da(n,e),r.runtimeEnvironmentDetails=new pa(n,e),r})(),t.llmModelDeployment=new Ia(n,e),t.pipeline=new ya(n,e),t.previewTemplate=new Ca(n,e),t.previewTemplateRun=new Ea(n,e),t.releaseFlow=new ka(n,e),t.releaseFlowRun=new La(n,e),t.previewBlueprint=new Ga(n,e),t.previewBlueprintRun=new za(n,e),t.secret=new Qa(n,e),t.secretLink=new rs(n,e),t.secretDetails=new as(n,e),t.service=(()=>{let r=new gs(n,e);return r.branches=new Is(n,e),r.builds=new fs(n,e),r.buildArguments=new Rs(n,e),r.buildArgumentDetails=new Cs(n,e),r.build=new As(n,e),r.containers=new Es(n,e),r.deployment=new ks(n,e),r.healthChecks=new xs(n,e),r.perReplicaVolumes=new Ts(n,e),r.ports=new Gs(n,e),r.pullRequests=new Ns(n,e),r.runtimeEnvironment=new Ms(n,e),r.runtimeEnvironmentDetails=new _s(n,e),r})(),t.volume=(()=>{let r=new Vs(n,e);return r.backups=new Zs(n,e),r.backup=new Xs(n,e),r})(),t.workflow=new ao(n,e),t.workflowRun=new lo(n,e),t.globalSecret=new Io(n,e),t.tag=new Co(n,e),t.team=new So(n,e),t.teamRole=new qo(n,e),t.template=new Jo(n,e),t.templateRun=new Vo(n,e),t.workloadIdentities=new Qo(n,e),t})(),list:(()=>{let t={};return t.backupDestinations=new ve(n,e),t.backupDestinationsBackups=new ke(n,e),t.invoices=new Ue(n,e),t.usage=new je(n,e),t.cloud=(()=>{let r={};return r.providers=new Te(n,e),r.clusters=new qe(n,e),r.cluster=(()=>{let s={};return s.nodes=new Oe(n,e),s})(),r.integrations=new He(n,e),r.nodeTypes=new Ye(n,e),r.regions=new Ze(n,e),r})(),t.orgDirectoryGroupMembers=new Xe(n,e),t.domains=new tt(n,e),t.subdomain=(()=>{let r={};return r.path=new ht(n,e),r})(),t.egressIps=new St(n,e),t.logSinks=new Gt(n,e),t.notifications=new _t(n,e),t.registryCredentials=new Kt(n,e),t.sshIdentities=new Xt(n,e),t.vcs=new sr(n,e),t.repos=new ir(n,e),t.branches=new dr(n,e),t.loadBalancers=new lr(n,e),t.orgMembers=new Rr(n,e),t.orgRoles=new yr(n,e),t.orgRoleMembers=new Sr(n,e),t.plans=new Ur(n,e),t.projects=new xr(n,e),t.addons=new ee(n,e),t.externalAddons=new gn(n,e),t.harnesses=new Rn(n,e),t.jobs=new kn(n,e),t.llmModelDeployments=new ga(n,e),t.pipelines=new Ra(n,e),t.pipelineTemplatePreviews=new va(n,e),t.previewTemplateRuns=new Sa(n,e),t.releaseFlowRuns=new ja(n,e),t.previewBlueprints=new qa(n,e),t.blueprintTemplatePreviews=new Ba(n,e),t.previewBlueprintRuns=new Fa(n,e),t.secrets=new Ka(n,e),t.services=new te(n,e),t.volumes=new Fs(n,e),t.workflows=new ro(n,e),t.workflowRuns=new io(n,e),t.regions=new mo(n,e),t.globalSecrets=new uo(n,e),t.tags=new ho(n,e),t.teams=new Ao(n,e),t.teamMembers=new ko(n,e),t.teamRoles=new jo(n,e),t.teamRoleMembers=new $o(n,e),t.templates=new Oo(n,e),t.templateRuns=new zo(n,e),t.apiTokens=new Wo(n,e),t.workloadIdentities=new Yo(n,e),t})(),add:(()=>{let t={};return t.backupDestination=new we(n,e),t.domain=(()=>{let r={};return r.subdomain=new it(n,e),r})(),t.subdomain=(()=>{let r={};return r.path=new ft(n,e),r})(),t.registryCredentials=new Wt(n,e),t.sshIdentities=new er(n,e),t.tag=new Ro(n,e),t})(),patch:(()=>{let t={};return t.backupDestination=new Se(n,e),t.cloud=(()=>{let r={};return r.cluster=new Ne(n,e),r.integration=new Ke(n,e),r})(),t.egressIp=new xt(n,e),t.gradualRolloutStrategy=new qt(n,e),t.loadBalancer=new cr(n,e),t.networkPolicy=new fr(n,e),t.orgRole=new wr(n,e),t.project=new Tr(n,e),t.addon=new Br(n,e),t.harness=new vn(n,e),t.job=(()=>{let r=new Nn(n,e);return r.cron=new Tn(n,e),r.manual=new Gn(n,e),r})(),t.secret=new Za(n,e),t.service=(()=>{let r={};return r.build=new is(n,e),r.combined=new ps(n,e),r.deployment=new cs(n,e),r})(),t.globalSecret=new bo(n,e),t.tag=new Po(n,e),t.team=new Eo(n,e),t.teamRole=new Do(n,e),t})(),delete:(()=>{let t={};return t.backupDestination=new Ee(n,e),t.cloud=(()=>{let r={};return r.cluster=new Be(n,e),r.integration=new We(n,e),r})(),t.domain=new at(n,e),t.subdomain=(()=>{let r=new pt(n,e);return r.path=new yt(n,e),r})(),t.egressIp=new jt(n,e),t.gradualRolloutStrategy=new Dt(n,e),t.logSink=new Bt(n,e),t.notification=new Vt(n,e),t.registryCredentials=new Qt(n,e),t.sshIdentities=new ar(n,e),t.loadBalancer=new gr(n,e),t.networkPolicy=new hr(n,e),t.orgRole=new Ar(n,e),t.orgRoleMember=new kr(n,e),t.project=new Dr(n,e),t.addon=(()=>{let r=new Or(n,e);return r.backupSchedule=new _r(n,e),r})(),t.backup=new Vr(n,e),t.externalAddon=new hn(n,e),t.harness=new wn(n,e),t.job=new Bn(n,e),t.llmModelDeployment=new ha(n,e),t.pipelineTemplatePreview=new wa(n,e),t.previewBlueprint=new Na(n,e),t.blueprintTemplatePreview=new Oa(n,e),t.secret=new Xa(n,e),t.secretLink=new ns(n,e),t.service=(()=>{let r=new bs(n,e);return r.perReplicaVolumeGroup=new qs(n,e),r.perReplicaVolume=new Ds(n,e),r})(),t.volume=(()=>{let r=new Ws(n,e);return r.backup=new eo(n,e),r})(),t.globalSecret=new fo(n,e),t.tag=new vo(n,e),t.teamMember=new xo(n,e),t.teamRole=new Go(n,e),t.teamRoleMember=new Bo(n,e),t.template=new Ho(n,e),t.workloadIdentities=new ei(n,e),t})(),create:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new De(n,e),r.integration=new Fe(n,e),r})(),t.domain=new rt(n,e),t.egressIp=new Et(n,e),t.gradualRolloutStrategy=new Lt(n,e),t.logSink=new $t(n,e),t.notification=new Ht(n,e),t.customVcs=(()=>{let r={};return r.token=new or(n,e),r})(),t.loadBalancer=new pr(n,e),t.networkPolicy=new br(n,e),t.orgRole=new Cr(n,e),t.orgRoleMember=new Er(n,e),t.project=new jr(n,e),t.addon=(()=>{let r=new Gr(n,e);return r.backupSchedule=new Jr(n,e),r})(),t.externalAddon=new bn(n,e),t.harness=new yn(n,e),t.job=(()=>{let r=new Un(n,e);return r.cron=new jn(n,e),r.manual=new qn(n,e),r})(),t.llmModelDeployment=new ba(n,e),t.previewBlueprint=new Da(n,e),t.secret=new Wa(n,e),t.service=(()=>{let r={};return r.build=new ss(n,e),r.combined=new ds(n,e),r.deployment=new ms(n,e),r})(),t.volume=new zs(n,e),t.workflow=new no(n,e),t.globalSecret=new co(n,e),t.team=new wo(n,e),t.teamMemberInvite=new Uo(n,e),t.teamRole=new Lo(n,e),t.teamRoleMember=new No(n,e),t.template=new Mo(n,e),t.workloadIdentities=new Zo(n,e),t})(),put:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=new Ge(n,e),r.integration=new ze(n,e),r})(),t.domain=(()=>{let r={};return r.subdomain=new dt(n,e),r})(),t.egressIp=new kt(n,e),t.gradualRolloutStrategy=new Tt(n,e),t.sshIdentities=new rr(n,e),t.loadBalancer=new mr(n,e),t.orgRole=new Pr(n,e),t.project=new Lr(n,e),t.addon=new $r(n,e),t.harness=new Cn(n,e),t.job=(()=>{let r=new xn(n,e);return r.cron=new Ln(n,e),r.manual=new Dn(n,e),r})(),t.secret=new Ya(n,e),t.service=(()=>{let r={};return r.build=new os(n,e),r.combined=new ls(n,e),r.deployment=new us(n,e),r})(),t.globalSecret=new go(n,e),t.tag=new yo(n,e),t.teamRole=new To(n,e),t})(),cordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=new Me(n,e),s})(),r})(),t})(),drain:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=new Je(n,e),s})(),r})(),t})(),uncordon:(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=new _e(n,e),s})(),r})(),t})(),import:(()=>{let t={};return t.domainCertificate=new ot(n,e),t.addon=(()=>{let r={};return r.backup=new rn(n,e),r})(),t})(),assign:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.service=new mt(n,e),r.path=new Pt(n,e),r})(),t})(),unassign:(()=>{let t={};return t.subdomain=(()=>{let r=new ut(n,e);return r.path=new vt(n,e),r})(),t})(),disable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new ct(n,e),r})(),t})(),enable:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new gt(n,e),r})(),t})(),purge:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.cdn=new bt(n,e),r})(),t})(),update:(()=>{let t={};return t.subdomain=(()=>{let r={};return r.geoRouting=new It(n,e),r.path=new Ct(n,e),r})(),t.logSink=new Jt(n,e),t.notification=new zt(n,e),t.registryCredentials=new Zt(n,e),t.sshIdentities=new nr(n,e),t.addon=(()=>{let r={};return r.networkSettings=new nn(n,e),r.security=new mn(n,e),r.version=new cn(n,e),r})(),t.externalAddon=new fn(n,e),t.job=(()=>{let r={};return r.buildArguments=new Hn(n,e),r.buildOptions=new zn(n,e),r.buildSource=new Vn(n,e),r.deployment=new Qn(n,e),r.healthChecks=new ea(n,e),r.runtimeEnvironment=new la(n,e),r.settings=new ua(n,e),r})(),t.llmModelDeployment=new fa(n,e),t.previewTemplate=new Pa(n,e),t.releaseFlow=new Ua(n,e),t.previewBlueprint=new $a(n,e),t.secret=new es(n,e),t.secretLink=new ts(n,e),t.service=(()=>{let r={};return r.buildArguments=new ys(n,e),r.buildOptions=new vs(n,e),r.buildSource=new ws(n,e),r.deployment=new Us(n,e),r.healthChecks=new js(n,e),r.ports=new $s(n,e),r.runtimeEnvironment=new Js(n,e),r})(),t.volume=new Ks(n,e),t.workflow=new so(n,e),t.template=new _o(n,e),t.workloadIdentities=new Xo(n,e),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 Ot(n,e),t.addon=new an(n,e),t.harness=new An(n,e),t.job=new ta(n,e),t.blueprintTemplatePreview=new Ma(n,e),t.service=new Ls(n,e),t})(),resume:(()=>{let t={};return t.logSink=new Mt(n,e),t.addon=new ln(n,e),t.harness=new En(n,e),t.job=new na(n,e),t.blueprintTemplatePreview=new _a(n,e),t.service=new Os(n,e),t})(),backup:(()=>{let t={};return t.addon=new Fr(n,e),t.volume=new Qs(n,e),t})(),abort:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Kr(n,e),r.restore=new Wr(n,e),r})(),t.job=(()=>{let r={};return r.build=new Wn(n,e),r.run=new ia(n,e),r})(),t.releaseFlowRun=new Ta(n,e),t.previewBlueprintRun=new Va(n,e),t.service=(()=>{let r={};return r.build=new Ss(n,e),r})(),t.workflowRun=new po(n,e),t.templateRun=new Ko(n,e),t})(),restore:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Zr(n,e),r})(),t})(),retain:(()=>{let t={};return t.addon=(()=>{let r={};return r.backup=new Xr(n,e),r})(),t})(),reset:(()=>{let t={};return t.addon=new sn(n,e),t.blueprintTemplatePreview=new Ja(n,e),t.service=(()=>{let r={};return r.buildCache=new Ps(n,e),r})(),t})(),restart:(()=>{let t={};return t.addon=new on(n,e),t.harness=new Sn(n,e),t.service=new Bs(n,e),t})(),scale:(()=>{let t={};return t.addon=new pn(n,e),t.job=new ma(n,e),t.service=new Hs(n,e),t})(),start:(()=>{let t={};return t.job=(()=>{let r={};return r.build=new Jn(n,e),r.run=new sa(n,e),r})(),t.service=(()=>{let r={};return r.build=new hs(n,e),r})(),t})(),suspend:(()=>{let t={};return t.job=new ca(n,e),t})(),run:(()=>{let t={};return t.previewTemplate=new Aa(n,e),t.releaseFlow=new xa(n,e),t.previewBlueprint=new Ha(n,e),t.workflow=new oo(n,e),t.template=new Fo(n,e),t})(),attach:(()=>{let t={};return t.volume=new Ys(n,e),t})(),detach:(()=>{let t={};return t.volume=new to(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 s=this.endpoints.get.addon.backupSchedules.call;return s.all=this.endpoints.get.addon.backupSchedules.all,s})(),r.backups=(()=>{let s=this.endpoints.get.addon.backups.call;return s.all=this.endpoints.get.addon.backups.all,s})(),r.backup=(()=>{let s=this.endpoints.get.addon.backup.call;return s.download=this.endpoints.get.addon.backup.download.call,s.restores=(()=>{let a=this.endpoints.get.addon.backup.restores.call;return a.all=this.endpoints.get.addon.backup.restores.all,a})(),s.logs=this.logs.getAddonBackupLogs,s.logTail=this.logs.tailAddonBackupLogs,s})(),r.containers=(()=>{let s=this.endpoints.get.addon.containers.call;return s.all=this.endpoints.get.addon.containers.all,s})(),r.credentials=this.endpoints.get.addon.credentials.call,r.restores=(()=>{let s=(()=>{let a=this.endpoints.get.addon.restores.call;return a.all=this.endpoints.get.addon.restores.all,a})();return s.logs=this.logs.getAddonRestoresLogs,s.logTail=this.logs.tailAddonRestoresLogs,s})(),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.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.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 s=this.endpoints.get.job.branches.call;return s.all=this.endpoints.get.job.branches.all,s})(),r.builds=(()=>{let s=this.endpoints.get.job.builds.call;return s.all=this.endpoints.get.job.builds.all,s})(),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 s=this.endpoints.get.job.containers.call;return s.all=this.endpoints.get.job.containers.all,s})(),r.deployment=this.endpoints.get.job.deployment.call,r.healthChecks=this.endpoints.get.job.healthChecks.call,r.pullRequests=(()=>{let s=this.endpoints.get.job.pullRequests.call;return s.all=this.endpoints.get.job.pullRequests.all,s})(),r.runs=(()=>{let s=this.endpoints.get.job.runs.call;return s.all=this.endpoints.get.job.runs.all,s})(),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 s=this.endpoints.get.service.branches.call;return s.all=this.endpoints.get.service.branches.all,s})(),r.builds=(()=>{let s=this.endpoints.get.service.builds.call;return s.all=this.endpoints.get.service.builds.all,s})(),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 s=this.endpoints.get.service.containers.call;return s.all=this.endpoints.get.service.containers.all,s})(),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 s=this.endpoints.get.service.pullRequests.call;return s.all=this.endpoints.get.service.pullRequests.all,s})(),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.backups=(()=>{let s=this.endpoints.get.volume.backups.call;return s.all=this.endpoints.get.volume.backups.all,s})(),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 s=this.endpoints.list.cloud.clusters.call;return s.all=this.endpoints.list.cloud.clusters.all,s})(),r.cluster=(()=>{let s={};return s.nodes=(()=>{let a=this.endpoints.list.cloud.cluster.nodes.call;return a.all=this.endpoints.list.cloud.cluster.nodes.all,a})(),s})(),r.integrations=(()=>{let s=this.endpoints.list.cloud.integrations.call;return s.all=this.endpoints.list.cloud.integrations.all,s})(),r.nodeTypes=(()=>{let s=this.endpoints.list.cloud.nodeTypes.call;return s.all=this.endpoints.list.cloud.nodeTypes.all,s})(),r.regions=(()=>{let s=this.endpoints.list.cloud.regions.call;return s.all=this.endpoints.list.cloud.regions.all,s})(),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.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.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.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.backup=this.endpoints.delete.volume.backup.call,r})(),t.globalSecret=this.endpoints.delete.globalSecret.call,t.tag=this.endpoints.delete.tag.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.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.volume=this.endpoints.create.volume.call,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 s={};return s.node=this.endpoints.cordon.cloud.cluster.node.call,s})(),r})(),t})(),this.drain=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=this.endpoints.drain.cloud.cluster.node.call,s})(),r})(),t})(),this.uncordon=(()=>{let t={};return t.cloud=(()=>{let r={};return r.cluster=(()=>{let s={};return s.node=this.endpoints.uncordon.cloud.cluster.node.call,s})(),r})(),t})(),this.import=(()=>{let t={};return t.domainCertificate=this.endpoints.import.domainCertificate.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.update=(()=>{let t={};return 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.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.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.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.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.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})()}};export{Kr as AbortAddonBackupEndpoint,Wr as AbortAddonRestoreEndpoint,Wn as AbortJobBuildEndpoint,ia as AbortJobRunEndpoint,Va as AbortPreviewblueprintrunEndpoint,Ta as AbortReleaseflowrunEndpoint,Ss as AbortServiceBuildEndpoint,Ko as AbortTemplaterunEndpoint,po as AbortWorkflowrunEndpoint,we as AddBackupdestinationEndpoint,it as AddDomainSubdomainEndpoint,Wt as AddRegistrycredentialsEndpoint,er as AddSshidentitiesEndpoint,ft as AddSubdomainPathEndpoint,Ro as AddTagEndpoint,ki as ApiClient,_ as ApiClientContextProvider,Si as ApiClientFileContextProvider,Ei as ApiClientInMemoryContextProvider,N as ApiEndpoint,Pt as AssignSubdomainPathEndpoint,mt as AssignSubdomainServiceEndpoint,Ys as AttachVolumeEndpoint,Fr as BackupAddonEndpoint,Qs as BackupVolumeEndpoint,Pi as CopyType,Me as CordonCloudClusterNodeEndpoint,Jr as CreateAddonBackupscheduleEndpoint,Gr as CreateAddonEndpoint,De as CreateCloudClusterEndpoint,Fe as CreateCloudIntegrationEndpoint,or as CreateCustomvcsTokenEndpoint,rt as CreateDomainEndpoint,Et as CreateEgressipEndpoint,bn as CreateExternaladdonEndpoint,co as CreateGlobalsecretEndpoint,Lt as CreateGradualrolloutstrategyEndpoint,yn as CreateHarnessEndpoint,jn as CreateJobCronEndpoint,Un as CreateJobEndpoint,qn as CreateJobManualEndpoint,ba as CreateLlmmodeldeploymentEndpoint,pr as CreateLoadbalancerEndpoint,$t as CreateLogsinkEndpoint,br as CreateNetworkpolicyEndpoint,Ht as CreateNotificationEndpoint,Cr as CreateOrgroleEndpoint,Er as CreateOrgrolememberEndpoint,Da as CreatePreviewblueprintEndpoint,jr as CreateProjectEndpoint,Wa as CreateSecretEndpoint,ss as CreateServiceBuildEndpoint,ds as CreateServiceCombinedEndpoint,ms as CreateServiceDeploymentEndpoint,wo as CreateTeamEndpoint,Uo as CreateTeammemberinviteEndpoint,Lo as CreateTeamroleEndpoint,No as CreateTeamrolememberEndpoint,Mo as CreateTemplateEndpoint,zs as CreateVolumeEndpoint,no as CreateWorkflowEndpoint,Zo as CreateWorkloadidentitiesEndpoint,_r as DeleteAddonBackupscheduleEndpoint,Or as DeleteAddonEndpoint,c as DeleteApiEndpoint,Vr as DeleteBackupEndpoint,Ee as DeleteBackupdestinationEndpoint,Oa as DeleteBlueprinttemplatepreviewEndpoint,Be as DeleteCloudClusterEndpoint,We as DeleteCloudIntegrationEndpoint,at as DeleteDomainEndpoint,jt as DeleteEgressipEndpoint,hn as DeleteExternaladdonEndpoint,fo as DeleteGlobalsecretEndpoint,Dt as DeleteGradualrolloutstrategyEndpoint,wn as DeleteHarnessEndpoint,Bn as DeleteJobEndpoint,ha as DeleteLlmmodeldeploymentEndpoint,gr as DeleteLoadbalancerEndpoint,Bt as DeleteLogsinkEndpoint,hr as DeleteNetworkpolicyEndpoint,Vt as DeleteNotificationEndpoint,Ar as DeleteOrgroleEndpoint,kr as DeleteOrgrolememberEndpoint,wa as DeletePipelinetemplatepreviewEndpoint,Na as DeletePreviewblueprintEndpoint,Dr as DeleteProjectEndpoint,Qt as DeleteRegistrycredentialsEndpoint,Xa as DeleteSecretEndpoint,ns as DeleteSecretlinkEndpoint,bs as DeleteServiceEndpoint,Ds as DeleteServicePerreplicavolumeEndpoint,qs as DeleteServicePerreplicavolumegroupEndpoint,ar as DeleteSshidentitiesEndpoint,pt as DeleteSubdomainEndpoint,yt as DeleteSubdomainPathEndpoint,vo as DeleteTagEndpoint,xo as DeleteTeammemberEndpoint,Go as DeleteTeamroleEndpoint,Bo as DeleteTeamrolememberEndpoint,Ho as DeleteTemplateEndpoint,eo as DeleteVolumeBackupEndpoint,Ws as DeleteVolumeEndpoint,ei as DeleteWorkloadidentitiesEndpoint,to as DetachVolumeEndpoint,ct as DisableSubdomainCdnEndpoint,Je as DrainCloudClusterNodeEndpoint,gt as EnableSubdomainCdnEndpoint,Z as ExecCommandStandard,Yr as GetAddonBackupDownloadEndpoint,zr as GetAddonBackupEndpoint,Qr as GetAddonBackupRestoresEndpoint,Hr as GetAddonBackupsEndpoint,Mr as GetAddonBackupschedulesEndpoint,en as GetAddonContainersEndpoint,tn as GetAddonCredentialsEndpoint,Nr as GetAddonEndpoint,dn as GetAddonRestoresEndpoint,Ce as GetAddonTypesEndpoint,un as GetAddonVersionEndpoint,p as GetApiEndpoint,m as GetApiEndpointPaginated,Pe as GetAuthEndpoint,Ae as GetBackupdestinationEndpoint,$e as GetCloudClusterEndpoint,Ve as GetCloudIntegrationEndpoint,et as GetDnsidEndpoint,nt as GetDomainEndpoint,st as GetDomaincertificateEndpoint,Ut as GetEgressipEndpoint,In as GetExternaladdonEndpoint,Io as GetGlobalsecretEndpoint,Pn as GetHarnessEndpoint,xe as GetInvoiceEndpoint,On as GetJobBranchesEndpoint,Kn as GetJobBuildEndpoint,Fn as GetJobBuildargumentdetailsEndpoint,_n as GetJobBuildargumentsEndpoint,Mn as GetJobBuildsEndpoint,Yn as GetJobContainersEndpoint,Zn as GetJobDeploymentEndpoint,$n as GetJobEndpoint,Xn as GetJobHealthchecksEndpoint,ra as GetJobPullrequestsEndpoint,oa as GetJobRunEndpoint,aa as GetJobRunsEndpoint,da as GetJobRuntimeenvironmentEndpoint,pa as GetJobRuntimeenvironmentdetailsEndpoint,Ia as GetLlmmodeldeploymentEndpoint,ur as GetLoadbalancerEndpoint,Nt as GetLogsinkEndpoint,Ir as GetNetworkpolicyEndpoint,Ft as GetNotificationEndpoint,Qe as GetOrgdirectorygroupsEndpoint,vr as GetOrgroleEndpoint,ya as GetPipelineEndpoint,Ga as GetPreviewblueprintEndpoint,za as GetPreviewblueprintrunEndpoint,Ca as GetPreviewtemplateEndpoint,Ea as GetPreviewtemplaterunEndpoint,qr as GetProjectEndpoint,Yt as GetRegistrycredentialsEndpoint,ka as GetReleaseflowEndpoint,La as GetReleaseflowrunEndpoint,Qa as GetSecretEndpoint,as as GetSecretdetailsEndpoint,rs as GetSecretlinkEndpoint,Is as GetServiceBranchesEndpoint,As as GetServiceBuildEndpoint,Cs as GetServiceBuildargumentdetailsEndpoint,Rs as GetServiceBuildargumentsEndpoint,fs as GetServiceBuildsEndpoint,Es as GetServiceContainersEndpoint,ks as GetServiceDeploymentEndpoint,gs as GetServiceEndpoint,xs as GetServiceHealthchecksEndpoint,Ts as GetServicePerreplicavolumesEndpoint,Gs as GetServicePortsEndpoint,Ns as GetServicePullrequestsEndpoint,Ms as GetServiceRuntimeenvironmentEndpoint,_s as GetServiceRuntimeenvironmentdetailsEndpoint,tr as GetSshidentitiesEndpoint,lt as GetSubdomainEndpoint,Rt as GetSubdomainPathEndpoint,Co as GetTagEndpoint,So as GetTeamEndpoint,qo as GetTeamroleEndpoint,Jo as GetTemplateEndpoint,Vo as GetTemplaterunEndpoint,Le as GetUsageEndpoint,Xs as GetVolumeBackupEndpoint,Zs as GetVolumeBackupsEndpoint,Vs as GetVolumeEndpoint,ao as GetWorkflowEndpoint,lo as GetWorkflowrunEndpoint,Qo as GetWorkloadidentitiesEndpoint,rn as ImportAddonBackupEndpoint,ot as ImportDomaincertificateEndpoint,ee as ListAddonsEndpoint,Wo as ListApitokensEndpoint,ve as ListBackupdestinationsEndpoint,ke as ListBackupdestinationsbackupsEndpoint,Ba as ListBlueprinttemplatepreviewsEndpoint,dr as ListBranchesEndpoint,Oe as ListCloudClusterNodesEndpoint,qe as ListCloudClustersEndpoint,He as ListCloudIntegrationsEndpoint,Ye as ListCloudNodetypesEndpoint,Te as ListCloudProvidersEndpoint,Ze as ListCloudRegionsEndpoint,tt as ListDomainsEndpoint,St as ListEgressipsEndpoint,gn as ListExternaladdonsEndpoint,uo as ListGlobalsecretsEndpoint,Rn as ListHarnessesEndpoint,Ue as ListInvoicesEndpoint,kn as ListJobsEndpoint,ga as ListLlmmodeldeploymentsEndpoint,lr as ListLoadbalancersEndpoint,Gt as ListLogsinksEndpoint,_t as ListNotificationsEndpoint,Xe as ListOrgdirectorygroupmembersEndpoint,Rr as ListOrgmembersEndpoint,Sr as ListOrgrolemembersEndpoint,yr as ListOrgrolesEndpoint,Ra as ListPipelinesEndpoint,va as ListPipelinetemplatepreviewsEndpoint,Ur as ListPlansEndpoint,Fa as ListPreviewblueprintrunsEndpoint,qa as ListPreviewblueprintsEndpoint,Sa as ListPreviewtemplaterunsEndpoint,xr as ListProjectsEndpoint,mo as ListRegionsEndpoint,Kt as ListRegistrycredentialsEndpoint,ja as ListReleaseflowrunsEndpoint,ir as ListReposEndpoint,Ka as ListSecretsEndpoint,te as ListServicesEndpoint,Xt as ListSshidentitiesEndpoint,ht as ListSubdomainPathEndpoint,ho as ListTagsEndpoint,ko as ListTeammembersEndpoint,$o as ListTeamrolemembersEndpoint,jo as ListTeamrolesEndpoint,Ao as ListTeamsEndpoint,zo as ListTemplaterunsEndpoint,Oo as ListTemplatesEndpoint,je as ListUsageEndpoint,sr as ListVcsEndpoint,Fs as ListVolumesEndpoint,io as ListWorkflowrunsEndpoint,ro as ListWorkflowsEndpoint,Yo as ListWorkloadidentitiesEndpoint,vi as LogType,Ai as MetricType,X as NorthflankApiCallError,ce as NorthflankExecCommand,be as NorthflankFileCopy,he as NorthflankLogFetch,ye as NorthflankMetricFetch,pe as NorthflankPortForwarder,Br as PatchAddonEndpoint,h as PatchApiEndpoint,Se as PatchBackupdestinationEndpoint,Ne as PatchCloudClusterEndpoint,Ke as PatchCloudIntegrationEndpoint,xt as PatchEgressipEndpoint,bo as PatchGlobalsecretEndpoint,qt as PatchGradualrolloutstrategyEndpoint,vn as PatchHarnessEndpoint,Tn as PatchJobCronEndpoint,Nn as PatchJobEndpoint,Gn as PatchJobManualEndpoint,cr as PatchLoadbalancerEndpoint,fr as PatchNetworkpolicyEndpoint,wr as PatchOrgroleEndpoint,Tr as PatchProjectEndpoint,Za as PatchSecretEndpoint,is as PatchServiceBuildEndpoint,ps as PatchServiceCombinedEndpoint,cs as PatchServiceDeploymentEndpoint,Po as PatchTagEndpoint,Eo as PatchTeamEndpoint,Do as PatchTeamroleEndpoint,an as PauseAddonEndpoint,Ma as PauseBlueprinttemplatepreviewEndpoint,An as PauseHarnessEndpoint,ta as PauseJobEndpoint,Ot as PauseLogsinkEndpoint,Ls as PauseServiceEndpoint,i as PostApiEndpoint,bt as PurgeSubdomainCdnEndpoint,$r as PutAddonEndpoint,y as PutApiEndpoint,Ge as PutCloudClusterEndpoint,ze as PutCloudIntegrationEndpoint,dt as PutDomainSubdomainEndpoint,kt as PutEgressipEndpoint,go as PutGlobalsecretEndpoint,Tt as PutGradualrolloutstrategyEndpoint,Cn as PutHarnessEndpoint,Ln as PutJobCronEndpoint,xn as PutJobEndpoint,Dn as PutJobManualEndpoint,mr as PutLoadbalancerEndpoint,Pr as PutOrgroleEndpoint,Lr as PutProjectEndpoint,Ya as PutSecretEndpoint,os as PutServiceBuildEndpoint,ls as PutServiceCombinedEndpoint,us as PutServiceDeploymentEndpoint,rr as PutSshidentitiesEndpoint,yo as PutTagEndpoint,To as PutTeamroleEndpoint,sn as ResetAddonEndpoint,Ja as ResetBlueprinttemplatepreviewEndpoint,Ps as ResetServiceBuildcacheEndpoint,on as RestartAddonEndpoint,Sn as RestartHarnessEndpoint,Bs as RestartServiceEndpoint,Zr as RestoreAddonBackupEndpoint,ln as ResumeAddonEndpoint,_a as ResumeBlueprinttemplatepreviewEndpoint,En as ResumeHarnessEndpoint,na as ResumeJobEndpoint,Mt as ResumeLogsinkEndpoint,Os as ResumeServiceEndpoint,Xr as RetainAddonBackupEndpoint,Ha as RunPreviewblueprintEndpoint,Aa as RunPreviewtemplateEndpoint,xa as RunReleaseflowEndpoint,Fo as RunTemplateEndpoint,oo as RunWorkflowEndpoint,pn as ScaleAddonEndpoint,ma as ScaleJobEndpoint,Hs as ScaleServiceEndpoint,Jn as StartJobBuildEndpoint,sa as StartJobRunEndpoint,hs as StartServiceBuildEndpoint,ca as SuspendJobEndpoint,ut as UnassignSubdomainEndpoint,vt as UnassignSubdomainPathEndpoint,_e as UncordonCloudClusterNodeEndpoint,nn as UpdateAddonNetworksettingsEndpoint,mn as UpdateAddonSecurityEndpoint,cn as UpdateAddonVersionEndpoint,fn as UpdateExternaladdonEndpoint,Hn as UpdateJobBuildargumentsEndpoint,zn as UpdateJobBuildoptionsEndpoint,Vn as UpdateJobBuildsourceEndpoint,Qn as UpdateJobDeploymentEndpoint,ea as UpdateJobHealthchecksEndpoint,la as UpdateJobRuntimeenvironmentEndpoint,ua as UpdateJobSettingsEndpoint,fa as UpdateLlmmodeldeploymentEndpoint,Jt as UpdateLogsinkEndpoint,zt as UpdateNotificationEndpoint,$a as UpdatePreviewblueprintEndpoint,Pa as UpdatePreviewtemplateEndpoint,Zt as UpdateRegistrycredentialsEndpoint,Ua as UpdateReleaseflowEndpoint,es as UpdateSecretEndpoint,ts as UpdateSecretlinkEndpoint,ys as UpdateServiceBuildargumentsEndpoint,vs as UpdateServiceBuildoptionsEndpoint,ws as UpdateServiceBuildsourceEndpoint,Us as UpdateServiceDeploymentEndpoint,js as UpdateServiceHealthchecksEndpoint,$s as UpdateServicePortsEndpoint,Js as UpdateServiceRuntimeenvironmentEndpoint,nr as UpdateSshidentitiesEndpoint,It as UpdateSubdomainGeoroutingEndpoint,Ct as UpdateSubdomainPathEndpoint,_o as UpdateTemplateEndpoint,Ks as UpdateVolumeEndpoint,so as UpdateWorkflowEndpoint,Xo as UpdateWorkloadidentitiesEndpoint,At as VerifyDomainEndpoint,wt as VerifySubdomainEndpoint};
12
12
  //# sourceMappingURL=api-client.mjs.map