@northflank/js-client 0.9.2 → 0.9.3-buncompat.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,4 +1,4 @@
1
- import e,{EventEmitter as t}from"events";import{execSync as n,spawn as r}from"child_process";import*as o from"node:stream";import a,{Transform as i,Readable as d}from"node:stream";import p from"stream";import l from"http";import s,{fileURLToPath as u}from"url";import m from"punycode";import c from"https";import*as v from"zlib";import h from"zlib";import f from"os";import*as I from"net";import w,{Socket as g}from"net";import b from"fs";import y,{parse as R,dirname as j}from"path";import U from"tls";import C,{createHash as E}from"crypto";import _,{Buffer as S}from"buffer";import N from"dgram";import{EventEmitter as A}from"node:events";import{StringDecoder as k}from"node:string_decoder";import P,{win32 as T,posix as D,basename as O,join as x}from"node:path";import L from"node:fs";import q from"assert";import B from"node:assert";import{randomBytes as V}from"node:crypto";import F from"node:fs/promises";var M=function(e,t){return M=Object.setPrototypeOf||{__proto__:[]
1
+ import e,{EventEmitter as t}from"events";import{execSync as n,spawn as r}from"child_process";import*as o from"node:stream";import a,{Transform as i,Readable as d}from"node:stream";import p from"stream";import l from"http";import s,{fileURLToPath as u}from"url";import m from"punycode";import c from"https";import*as v from"zlib";import h from"zlib";import*as f from"net";import I,{Socket as w}from"net";import g from"tls";import b,{createHash as y}from"crypto";import R from"fs";import j,{parse as U,dirname as C}from"path";import E from"os";import _,{Buffer as S}from"buffer";import N from"dgram";import{EventEmitter as A}from"node:events";import{StringDecoder as k}from"node:string_decoder";import P,{win32 as T,posix as D,basename as O,join as x}from"node:path";import L from"node:fs";import q from"assert";import B from"node:assert";import{randomBytes as V}from"node:crypto";import F from"node:fs/promises";var M=function(e,t){return M=Object.setPrototypeOf||{__proto__:[]
2
2
  }instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},M(e,t)};function G(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)};function J(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{p(r.next(e))}catch(e){a(e)}}function d(e){try{p(r.throw(e))}catch(e){a(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,d)}p((r=r.apply(e,t||[])).next())})}function W(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]
3
3
  },i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=d(0),i.throw=d(1),i.return=d(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function d(d){return function(p){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==d[0]&&2!==d[0])){a=0;continue}if(3===d[0]&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(6===d[0]&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(e){d=[6,e],r=0}finally{n=o=0}
4
4
  if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,p])}}}function $(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var H="object"==typeof global&&global&&global.Object===Object&&global,Z="object"==typeof self&&self&&self.Object===Object&&self,Y=H||Z||Function("return this")(),K=Y.Symbol,X=Object.prototype,Q=X.hasOwnProperty,ee=X.toString,te=K?K.toStringTag:void 0;var ne=Object.prototype.toString;var re=K?K.toStringTag:void 0;function oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":re&&re in Object(e)?function(e){var t=Q.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var o=ee.call(e);return r&&(t?e[te]=n:delete e[te]),o}(e):function(e){return ne.call(e)}(e)}function ae(e){return null!=e&&"object"==typeof e}function ie(e){
@@ -69,789 +69,790 @@ configurable:!0}),Object.defineProperties(fo.prototype,{method:{enumerable:!0},u
69
69
  ;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=Wr(e);"number"==typeof t&&(r=String(t))}r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let o=e.agent;return"function"==typeof o&&(o=o(t)),n.has("Connection")||o||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:oo(n),agent:o})}(o),i=("https:"===a.protocol?c:l).request,d=o.signal;let s=null;const u=function(){let e=new Io("The user aborted a request.");r(e),o.body&&o.body instanceof p.Readable&&o.body.destroy(e),s&&s.body&&s.body.emit("error",e)};if(d&&d.aborted)return void u();const m=function(){u(),I()},v=i(a);let f;function I(){v.abort(),d&&d.removeEventListener("abort",m),clearTimeout(f)}d&&d.addEventListener("abort",m),o.timeout&&v.once("socket",function(e){f=setTimeout(function(){
70
70
  r(new Lr(`network timeout at: ${o.url}`,"request-timeout")),I()},o.timeout)}),v.on("error",function(e){r(new Lr(`request to ${o.url} failed, reason: ${e.message}`,"system",e)),I()}),v.on("response",function(e){clearTimeout(f);const t=function(e){const t=new Qr;for(const n of Object.keys(e))if(!$r.test(n))if(Array.isArray(e[n]))for(const r of e[n])Hr.test(r)||(void 0===t[Xr][n]?t[Xr][n]=[r]:t[Xr][n].push(r));else Hr.test(e[n])||(t[Xr][n]=[e[n]]);return t}(e.headers);if(bo.isRedirect(e.statusCode)){const a=t.get("Location");let i=null;try{i=null===a?null:new wo(a,o.url).toString()}catch(e){if("manual"!==o.redirect)return r(new Lr(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect")),void I()}switch(o.redirect){case"error":return r(new Lr(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),void I();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){r(e)}break;case"follow":if(null===i)break
71
71
  ;if(o.counter>=o.follow)return r(new Lr(`maximum redirect reached at: ${o.url}`,"max-redirect")),void I();const a={headers:new Qr(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:o.body,signal:o.signal,timeout:o.timeout,size:o.size};if(!function(e,t){const n=new wo(t).hostname,r=new wo(e).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(o.url,i))for(const e of["authorization","www-authenticate","cookie","cookie2"])a.headers.delete(e);return 303!==e.statusCode&&o.body&&null===Wr(o)?(r(new Lr("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void I()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==o.method)||(a.method="GET",a.body=void 0,a.headers.delete("content-length")),n(bo(new fo(i,a))),void I())}}e.once("end",function(){d&&d.removeEventListener("abort",m)});let a=e.pipe(new go);const i={url:o.url,status:e.statusCode,statusText:e.statusMessage,headers:t,
72
- size:o.size,timeout:o.timeout,counter:o.counter},p=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===p||204===e.statusCode||304===e.statusCode)return s=new po(a,i),void n(s);const l={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==p||"x-gzip"==p)return a=a.pipe(h.createGunzip(l)),s=new po(a,i),void n(s);if("deflate"==p||"x-deflate"==p){return void e.pipe(new go).once("data",function(e){a=8==(15&e[0])?a.pipe(h.createInflate()):a.pipe(h.createInflateRaw()),s=new po(a,i),n(s)})}if("br"==p&&"function"==typeof h.createBrotliDecompress)return a=a.pipe(h.createBrotliDecompress()),s=new po(a,i),void n(s);s=new po(a,i),n(s)}),function(e,t){const n=t.body;null===n?e.end():Gr(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(v,o)})}bo.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},bo.Promise=global.Promise
73
- ;var yo="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,Ro=yo?bo:window.fetch,jo=function(e,t){return void 0===t&&(t=50),function(n){var r=e,o=function(){return J(void 0,void 0,void 0,function(){var e;return W(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,4]),[4,n()];case 1:return[2,a.sent()];case 2:if(e=a.sent(),r<=0)throw e;return r-=1,[4,new Promise(function(e){return setTimeout(function(){return e()},t)})];case 3:return a.sent(),[2,o()];case 4:return[2]}})})};return o()}};var Uo,Co,Eo,_o,So,No,Ao,ko=function(e){return Array.isArray(e)?e:[e]},Po=function(e,t){return J(void 0,void 0,void 0,function(){var n;return W(this,function(r){return n=Promise.resolve([]),[2,e.reduce(function(e,n){return e.then(function(e){return t(n).then(function(t){return e.push(t),e})})},n)]})})},To=function(e){function t(t){void 0===t&&(t=8192);var n=e.call(this)||this;return n.bufferDefaultSize=t,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}
74
- return G(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.getContentsAsString=function(e,t){void 0===e&&(e="utf8");var n=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},t.prototype.adaptBuffer=function(e){if(this.buffer.length-this.size<e){var t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(n,0,0,this.size),this.buffer=n}},t.prototype._write=function(e,t,n){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,n()},t}(a.Writable),Do=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.getTeamScopePrefix=function(e){return void 0!==e?"teams/".concat(e,"/"):""}}return e.prototype.getServiceDetails=function(e,t,n){return J(this,void 0,void 0,function(){var r
75
- ;return W(this,function(o){return r=this.getTeamScopePrefix(n),[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/").concat(r,"projects/").concat(e,"/services/").concat(t))]})})},e.prototype.getAddonDetails=function(e,t,n){return J(this,void 0,void 0,function(){var r;return W(this,function(o){return r=this.getTeamScopePrefix(n),[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/").concat(r,"projects/").concat(e,"/addons/").concat(t))]})})},e.prototype.fetch=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,i,d=this;return W(this,function(p){switch(p.label){case 0:return n="Error while trying to connect, please try again.",r=pr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},z(z({},t),{agent:this.agent})),[4,jo(2)(function(){return J(d,void 0,void 0,function(){return W(this,function(t){return[2,Ro(e,r)]})})
76
- }).catch(function(){throw new Error(n)})];case 1:return(o=p.sent()).ok?[3,3]:[4,o.text()];case 2:a=p.sent(),i=n;try{i=JSON.parse(a)}catch(e){i=null!=a?a:n}finally{throw new Error(JSON.stringify(i))}case 3:return[4,o.json()];case 4:return[2,p.sent()]}})})},e}(),Oo=function(e,t,n){return J(void 0,void 0,void 0,function(){var r,o,a,i,d;return W(this,function(p){switch(p.label){case 0:if(r=qo(t||"127.0.0.1"),(o=qo(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===f.platform()&&(a=function(e){return J(void 0,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,Lo.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,p.label=1;case 1:return i<=o?(d=Bo(i),[4,xo(e,d)]):[3,6];case 2:return p.sent()?a?[4,a(d)]:[3,4]:[3,5];case 3:p.sent(),p.label=4;case 4:return[2,d];case 5:return i+=1,[3,1];case 6:
77
- throw new Error("Not possible to assign port '".concat(e,"' 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."))}})})},xo=function(e,t){return new Promise(function(n){var r=new g,o=!1;r.on("connect",function(){o=!0,r.destroy()}),r.setTimeout(400),r.on("timeout",function(){o=!1,r.destroy()}),r.on("error",function(){o=!1}),r.on("close",function(){n(!o)}),t?r.connect(e,t):r.connect(e)})},Lo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return J(void 0,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return[4,Vo("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}})})},qo=function(e){var t=e.split(".").reverse();if(4!==t.length)throw new Error("Invalid ip address: ".concat(e));for(var n=0,r=0;r<4;r+=1){var o=Number.parseInt(t[r],10);if(o<0||o>255)throw new Error("Invalid ip address: ".concat(e));n+=o<<8*r}
78
- return n},Bo=function(e){if(!Number.isSafeInteger(e))throw new Error("Number is not an integer");if(e<0||e>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var t=[],n=0;n<4;n+=1)t.push(e>>8*n&255);return t.reverse().join(".")},Vo=function(e,t,n){var o=r(e,t,z({windowsHide:!0},n)),a=new Promise(function(n,r){var a="",i="";o.stdout&&o.stdout.on("data",function(e){a+=e}),o.stderr&&o.stderr.on("data",function(e){i+=e}),o.on("close",function(o){var d={code:o,stdout:a,stderr:i};if(0!==o){var p="Error during execution of command '".concat(e," ").concat(t.join(" "),"': ").concat(i);r({message:p,result:d})}else n(d)})});return{process:o,resultPromise:a}},Fo=function(e,t,n){return J(void 0,void 0,void 0,function(){var r,o;return W(this,function(a){switch(a.label){case 0:return r=Mo(e,10),[4,b.promises.writeFile(r,t,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,6]),[4,b.promises.rename(r,e)];case 3:return a.sent(),[3,6];case 4:return o=a.sent(),
79
- [4,b.promises.unlink(r).catch(function(){})];case 5:throw a.sent(),o;case 6:return[2]}})})},Mo=function(e,t){for(var n=function(e){return $([],Array(e),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},r=y.dirname(e),o=y.basename(e),a=0;a<t;a+=1){var i=n(16),d=".".concat(i,".").concat(o),p=y.join(r,d);if(!b.existsSync(p))return p}throw new Error("Could not write file to file '".concat(e,"'."))},Go="win32"===process.platform?"\r\n":"\n",zo=function(){function e(e,t){this.nodes=e,this.config=t}return e.prototype.add=function(e,t,n){var r=this;if(0===t.length)return this;var o=this.findOrCreateEntry(e,n);return t.forEach(function(e){if(!o.hosts.find(function(t){return t.host===e})){var t=1;0===o.hosts.length&&(t=r.config.indent-"".concat(o.ipPrefixWhitespace).concat(o.ip).length),o.hosts.push({whitespace:" ".repeat(t<1?1:t),host:e})}}),this},e.prototype.remove=function(e,t){var n=this;return this.findEntries(e).forEach(function(e){t.forEach(function(t){
80
- var r=e.hosts.findIndex(function(e){return e.host===t});r<0||(0===r&&void 0!==e.hosts[1]&&(e.hosts[1].whitespace=e.hosts[0].whitespace),e.hosts.splice(r,1),0===e.hosts.length&&n.removeEntry(e))})}),this},e.prototype.removeHosts=function(e){var t=this;Ko(this.nodes,"entry").forEach(function(n){t.remove(n.ip,e)})},e.prototype.removeIps=function(e){var t=this;return e.forEach(function(e){t.findEntries(e).forEach(function(e){return t.removeEntry(e)})}),this},e.prototype.resolveHosts=function(e){return nr(this.findEntries(e),function(e){return e.hosts.map(function(e){return e.host})})},e.prototype.resolveIps=function(e){return Ko(this.nodes,"entry").filter(function(t){return t.hosts.some(function(t){return t.host===e})}).map(function(e){return e.ip})},e.prototype.toString=function(){return Ho(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||ae(t)&&"[object Number]"==oe(t)?e:this.nodes.findIndex(function(t){return t===e})
81
- ;n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return Ko(this.nodes,"entry").filter(function(t){return t.ip===e})},e.prototype.findOrCreateEntry=function(e,t){var n=this.findEntries(e)[0];if(n)return n;var r=this.makeEntry(e);if(t){var o=$o(t),a=this.nodes.findIndex(function(e){return"comment"===e.type&&e.line===o});if(a>=0)this.insertAt(a+1,r);else{var i="blank"!==this.nodes[this.nodes.length-1].type?[Jo(),Wo(o),r]:[Wo(o),r];this.insertAt.apply(this,$([this.nodes.length],i,!1))}}else this.insertAt(this.nodes.length,r);return r},e.prototype.insertAt=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.nodes).splice.apply(t,$([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return z({type:"entry",ip:e,ipPrefixWhitespace:n,hosts:[]},t)},e.fromNodes=function(t,n){var r,o;return new e(t.filter(function(e){return"eol"!==e.type}),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){
82
- var e,n=Ko(t,"eol").map(function(e){return e.line});return null!==(e=Xo(n))&&void 0!==e?e:Go}(),indent:null!==(o=null==n?void 0:n.indent)&&void 0!==o?o:function(){var e,n=nr(Ko(t,"entry"),function(e){var t=e.ipPrefixWhitespace,n=e.ip,r=e.hosts[0];return r?["".concat(t).concat(n).concat(r.whitespace).length]:[]});return null!==(e=Xo(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Zo(e),t)},e}(),Jo=function(){return{type:"blank",line:""}},Wo=function(e){return{type:"comment",line:$o(e)}},$o=function(e){return e.startsWith("#")?e:"# ".concat(e)},Ho=function(e,t){return e.map(function(e){switch(e.type){case"entry":var t=e.hosts.map(function(e){var t=e.whitespace,n=e.host;return"".concat(t).concat(n)}).join("");return"".concat(e.ipPrefixWhitespace).concat(e.ip).concat(t);case"blank":case"comment":case"invalid":return e.line;default:return""}}).join(null!=t?t:Go)},Zo=function(e){return e.split(/(\r?\n)/).map(function(e){return function(e){
83
- return e.match(/^\s*#.*$/)}(e)?{type:"comment",line:e}:function(e){return e.match(/^(\r?\n)$/)}(e)?{type:"eol",line:e}:function(e){return e.match(/^\s*$/)}(e)?{type:"blank",line:e}:Yo(e)})},Yo=function(e){var t=e.match(/^(\s*)(\S+)(.+)?$/);if(!t)return{type:"invalid",line:e};var n=t[1],r=t[2],o=t.slice(3),a=!1,i=nr(o.filter(function(e){return void 0!==e}),function(e){var t=e.match(/(\s+)(\S+)/g);return t?t.map(function(e){var t=e.match(/^(\s+)(\S+)$/);t||(a=!0);var n=null!=t?t:[];return{whitespace:n[1],host:n[2]}}):(a=!0,[])});return a?{type:"invalid",line:e}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:i}},Ko=function(e,t){return e.filter(function(e){return e.type===t})},Xo=function(e){var t=new Map;e.forEach(function(e){var n;t.set(e,(null!==(n=t.get(e))&&void 0!==n?n:0)+1)});var n=ir(Array.from(t.entries()),function(e){return e[1]});if(n)return n[0]},Qo="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",ea=function(){function e(e){
84
- this.ast=zo.fromNodes([]);var t={writeMode:"atomic",hostsFile:Qo};this.config=z(z({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.add(e,t,this.config.header),this},e.prototype.remove=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.remove(e,t),this},e.prototype.removeHosts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),
85
- this.ast.removeHosts(e),this},e.prototype.removeIps=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."))}),this.ast.removeIps(e),this},e.prototype.read=function(){return J(this,void 0,void 0,function(){var e;return W(this,function(t){switch(t.label){case 0:return[4,b.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=zo.parse(e.toString(),this.config),[2,this]}})})},e.prototype.write=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:switch(t=z(z({},this.config),e),n=t.hostsFile,r=t.writeMode,o=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,Fo(n,o)];case 2:case 4:return a.sent(),[3,6];case 3:return[4,b.promises.writeFile(n,o)];case 5:return[3,6];case 6:return[2,this]}})})},
86
- e.prototype.backup=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:return b.existsSync(this.config.hostsFile)?(t=y.dirname(this.config.hostsFile),n=y.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),o=y.resolve(t,r),b.existsSync(o)&&!e.rewrite?[3,2]:[4,b.promises.copyFile(this.config.hostsFile,o)]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.load=function(t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}})})},e}(),ta=function(){function e(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(e.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),e.prototype.enter=function(e){return J(this,void 0,void 0,function(){var t,n=this;return W(this,function(r){return this._queueLength+=1,t=this.previousPromise.then(function(){
87
- return n._queueLength-=1,e()},function(){return n._queueLength-=1,e()}),this.previousPromise=t,[2,t]})})},e}(),na={exports:{}};function ra(){if(Eo)return na.exports;Eo=1;var e=(Co||(Co=1,Uo=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),o=e[e.length-1];return"function"==typeof r&&r!==o&&Object.keys(o).forEach(function(e){r[e]=o[e]}),r}}),Uo);function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function n(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}return na.exports=e(t),na.exports.strict=e(n),t.proto=t(function(){
88
- Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}),na.exports}function oa(){if(So)return _o;So=1;var e=ra(),t=function(){},n=lr.Bare?queueMicrotask:process.nextTick.bind(process),r=function(o,a,i){if("function"==typeof a)return r(o,null,a);a||(a={}),i=e(i||t);var d=o._writableState,p=o._readableState,l=a.readable||!1!==a.readable&&o.readable,s=a.writable||!1!==a.writable&&o.writable,u=!1,m=function(){o.writable||c()},c=function(){s=!1,l||i.call(o)},v=function(){l=!1,s||i.call(o)},h=function(e){i.call(o,e?new Error("exited with error code: "+e):null)},f=function(e){i.call(o,e)},I=function(){n(w)},w=function(){if(!u)return(!l||p&&p.ended&&!p.destroyed)&&(!s||d&&d.ended&&!d.destroyed)?void 0:i.call(o,new Error("premature close"))},g=function(){o.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort
89
- }(o)?s&&!d&&(o.on("end",m),o.on("close",m)):(o.on("complete",c),o.on("abort",I),o.req?g():o.on("request",g)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(o)&&o.on("exit",h),o.on("end",v),o.on("finish",c),!1!==a.error&&o.on("error",f),o.on("close",I),function(){u=!0,o.removeListener("complete",c),o.removeListener("abort",I),o.removeListener("request",g),o.req&&o.req.removeListener("finish",c),o.removeListener("end",m),o.removeListener("close",m),o.removeListener("finish",c),o.removeListener("exit",h),o.removeListener("end",v),o.removeListener("error",f),o.removeListener("close",I)}};return _o=r}var aa,ia,da=function(){if(Ao)return No;Ao=1;var e,t=ra(),n=oa();try{e=require("fs")}catch(e){}var r=function(){},o="undefined"!=typeof process&&/^v?\.0/.test(process.version),a=function(e){return"function"==typeof e},i=function(i,d,p,l){l=t(l);var s=!1;i.on("close",function(){s=!0}),n(i,{readable:d,writable:p},function(e){if(e)return l(e);s=!0,l()});var u=!1
90
- ;return function(t){if(!s&&!u)return u=!0,function(t){return!!o&&!!e&&(t instanceof(e.ReadStream||r)||t instanceof(e.WriteStream||r))&&a(t.close)}(i)?i.close(r):function(e){return e.setHeader&&a(e.abort)}(i)?i.abort():a(i.destroy)?i.destroy():void l(t||new Error("stream was destroyed"))}},d=function(e){e()},p=function(e,t){return e.pipe(t)};return No=function(){var e,t=Array.prototype.slice.call(arguments),n=a(t[t.length-1]||r)&&t.pop()||r;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var o=t.map(function(r,a){var p=a<t.length-1;return i(r,p,a>0,function(t){e||(e=t),t&&o.forEach(d),p||(o.forEach(d),n(e))})});return t.reduce(p)},No}(),pa=sr(da),la={exports:{}};function sa(){if(ia)return aa;ia=1;const e=["nodebuffer","arraybuffer","fragments"],t="undefined"!=typeof Blob;return t&&e.push("blob"),aa={BINARY_TYPES:e,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:t,
91
- kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}}var ua={exports:{}};function ma(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ca,va,ha,fa,Ia,wa,ga,ba,ya,Ra,ja,Ua={exports:{}};function Ca(){if(ha)return Ua.exports;ha=1;const e="function"==typeof __webpack_require__?__non_webpack_require__:ma;return"function"==typeof e.addon?Ua.exports=e.addon.bind(e):Ua.exports=function(){if(va)return ca;va=1
92
- ;var e=b,t=y,n=f,r="function"==typeof __webpack_require__?__non_webpack_require__:ma,o=process.config&&process.config.variables||{},a=!!process.env.PREBUILDS_ONLY,i=process.versions.modules,d=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",p=process.env.npm_config_arch||n.arch(),l=process.env.npm_config_platform||n.platform(),s=process.env.LIBC||(function(t){return"linux"===t&&e.existsSync("/etc/alpine-release")}(l)?"musl":"glibc"),u=process.env.ARM_VERSION||("arm64"===p?"8":o.arm_version)||"",m=(process.versions.uv||"").split(".")[0];function c(e){return r(c.resolve(e))}function v(t){try{return e.readdirSync(t)}catch(e){return[]}}function h(e,n){var r=v(e).filter(n);return r[0]&&t.join(e,r[0])}function I(e){return/\.node$/.test(e)}function w(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+")
93
- ;if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function g(e,t){return function(n){return null!=n&&n.platform===e&&n.architectures.includes(t)}}function R(e,t){return e.architectures.length-t.architectures.length}function j(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var o=t[r];if("node"===o||"electron"===o||"node-webkit"===o)n.runtime=o;else if("napi"===o)n.napi=!0;else if("abi"===o.slice(0,3))n.abi=o.slice(3);else if("uv"===o.slice(0,2))n.uv=o.slice(2);else if("armv"===o.slice(0,4))n.armv=o.slice(4);else{if("glibc"!==o&&"musl"!==o)continue;n.libc=o}n.specificity++}return n}}function U(e,t){return function(n){return!(null==n||n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n)||n.abi&&n.abi!==t&&!n.napi||n.uv&&n.uv!==m||n.armv&&n.armv!==u||n.libc&&n.libc!==s)}}function C(e){return function(t,n){
94
- return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}return ca=c,c.resolve=c.path=function(e){e=t.resolve(e||".");try{var n=r(t.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[n+"_PREBUILD"]&&(e=process.env[n+"_PREBUILD"])}catch(e){}if(!a){var o=h(t.join(e,"build/Release"),I);if(o)return o;var c=h(t.join(e,"build/Debug"),I);if(c)return c}var f=E(e);if(f)return f;var b=E(t.dirname(process.execPath));if(b)return b;var y=["platform="+l,"arch="+p,"runtime="+d,"abi="+i,"uv="+m,u?"armv="+u:"","libc="+s,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+y+"\n loaded from: "+e+"\n");function E(e){var n=v(t.join(e,"prebuilds")).map(w).filter(g(l,p)).sort(R)[0];if(n){
95
- var r=t.join(e,"prebuilds",n.name),o=v(r).map(j).filter(U(d,i)).sort(C(d))[0];return o?t.join(r,o.file):void 0}}},c.parseTags=j,c.matchTags=U,c.compareTags=C,c.parseTuple=w,c.matchTuple=g,c.compareTuples=R,ca}(),Ua.exports}function Ea(){if(wa)return ua.exports;wa=1;try{ua.exports=Ca()(__dirname)}catch(e){ua.exports=Ia?fa:(Ia=1,fa={mask:(e,t,n,r,o)=>{for(var a=0;a<o;a++)n[r+a]=e[a]^t[3&a]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}})}return ua.exports}function _a(){if(ga)return la.exports;ga=1;const{EMPTY_BUFFER:e}=sa(),t=Buffer[Symbol.species];function n(e,t,n,r,o){for(let a=0;a<o;a++)n[r+a]=e[a]^t[3&a]}function r(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(la.exports={concat:function(n,r){if(0===n.length)return e;if(1===n.length)return n[0];const o=Buffer.allocUnsafe(r);let a=0;for(let e=0;e<n.length;e++){const t=n[e];o.set(t,a),a+=t.length}return a<r?new t(o.buffer,o.byteOffset,a):o},mask:n,toArrayBuffer:function(e){
96
- return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(n){if(e.readOnly=!0,Buffer.isBuffer(n))return n;let r;return n instanceof ArrayBuffer?r=new t(n):ArrayBuffer.isView(n)?r=new t(n.buffer,n.byteOffset,n.byteLength):(r=Buffer.from(n),e.readOnly=!1),r},unmask:r},!process.env.WS_NO_BUFFER_UTIL)try{const e=Ea();la.exports.mask=function(t,r,o,a,i){i<48?n(t,r,o,a,i):e.mask(t,r,o,a,i)},la.exports.unmask=function(t,n){t.length<32?r(t,n):e.unmask(t,n)}}catch(e){}return la.exports}function Sa(){if(ja)return Ra;ja=1;const e=h,t=_a(),n=function(){if(ya)return ba;ya=1;const e=Symbol("kDone"),t=Symbol("kRun");return ba=class{constructor(n){this[e]=()=>{this.pending--,this[t]()},this.concurrency=n||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[t]()}[t](){if(this.pending!==this.concurrency&&this.jobs.length){const t=this.jobs.shift();this.pending++,t(this[e])}}}
97
- }(),{kStatusCode:r}=sa(),o=Buffer[Symbol.species],a=Buffer.from([0,0,255,255]),i=Symbol("permessage-deflate"),d=Symbol("total-length"),p=Symbol("callback"),l=Symbol("buffers"),s=Symbol("error");let u;function m(e){this[l].push(e),this[d]+=e.length}function c(e){this[d]+=e.length,this[i]._maxPayload<1||this[d]<=this[i]._maxPayload?this[l].push(e):(this[s]=new RangeError("Max payload size exceeded"),this[s].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[s][r]=1009,this.removeListener("data",c),this.reset())}function v(e){this[i]._inflate=null,this[s]?this[p](this[s]):(e[r]=1007,this[p](e))}return Ra=class{constructor(e,t,r){if(this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!u){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;u=new n(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={}
72
+ size:o.size,timeout:o.timeout,counter:o.counter},p=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===p||204===e.statusCode||304===e.statusCode)return s=new po(a,i),void n(s);const l={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==p||"x-gzip"==p)return a=a.pipe(h.createGunzip(l)),s=new po(a,i),void n(s);if("deflate"==p||"x-deflate"==p){return void e.pipe(new go).once("data",function(e){a=8==(15&e[0])?a.pipe(h.createInflate()):a.pipe(h.createInflateRaw()),s=new po(a,i),n(s)})}if("br"==p&&"function"==typeof h.createBrotliDecompress)return a=a.pipe(h.createBrotliDecompress()),s=new po(a,i),void n(s);s=new po(a,i),n(s)}),function(e,t){const n=t.body;null===n?e.end():Gr(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(v,o)})}bo.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},bo.Promise=global.Promise;var yo,Ro,jo={exports:{}};function Uo(){if(Ro)return yo;Ro=1
73
+ ;const e=["nodebuffer","arraybuffer","fragments"],t="undefined"!=typeof Blob;return t&&e.push("blob"),yo={BINARY_TYPES:e,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:t,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}}var Co={exports:{}};function Eo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _o,So,No,Ao,ko,Po,To,Do,Oo,xo,Lo,qo={exports:{}};function Bo(){if(No)return qo.exports;No=1;const e="function"==typeof __webpack_require__?__non_webpack_require__:Eo;return"function"==typeof e.addon?qo.exports=e.addon.bind(e):qo.exports=function(){if(So)return _o;So=1
74
+ ;var e=R,t=j,n=E,r="function"==typeof __webpack_require__?__non_webpack_require__:Eo,o=process.config&&process.config.variables||{},a=!!process.env.PREBUILDS_ONLY,i=process.versions.modules,d=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",p=process.env.npm_config_arch||n.arch(),l=process.env.npm_config_platform||n.platform(),s=process.env.LIBC||(function(t){return"linux"===t&&e.existsSync("/etc/alpine-release")}(l)?"musl":"glibc"),u=process.env.ARM_VERSION||("arm64"===p?"8":o.arm_version)||"",m=(process.versions.uv||"").split(".")[0];function c(e){return r(c.resolve(e))}function v(t){try{return e.readdirSync(t)}catch(e){return[]}}function h(e,n){var r=v(e).filter(n);return r[0]&&t.join(e,r[0])}function f(e){return/\.node$/.test(e)}function I(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+")
75
+ ;if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function w(e,t){return function(n){return null!=n&&n.platform===e&&n.architectures.includes(t)}}function g(e,t){return e.architectures.length-t.architectures.length}function b(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var o=t[r];if("node"===o||"electron"===o||"node-webkit"===o)n.runtime=o;else if("napi"===o)n.napi=!0;else if("abi"===o.slice(0,3))n.abi=o.slice(3);else if("uv"===o.slice(0,2))n.uv=o.slice(2);else if("armv"===o.slice(0,4))n.armv=o.slice(4);else{if("glibc"!==o&&"musl"!==o)continue;n.libc=o}n.specificity++}return n}}function y(e,t){return function(n){return!(null==n||n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n)||n.abi&&n.abi!==t&&!n.napi||n.uv&&n.uv!==m||n.armv&&n.armv!==u||n.libc&&n.libc!==s)}}function U(e){return function(t,n){
76
+ return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}return _o=c,c.resolve=c.path=function(e){e=t.resolve(e||".");try{var n=r(t.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[n+"_PREBUILD"]&&(e=process.env[n+"_PREBUILD"])}catch(e){}if(!a){var o=h(t.join(e,"build/Release"),f);if(o)return o;var c=h(t.join(e,"build/Debug"),f);if(c)return c}var R=E(e);if(R)return R;var j=E(t.dirname(process.execPath));if(j)return j;var C=["platform="+l,"arch="+p,"runtime="+d,"abi="+i,"uv="+m,u?"armv="+u:"","libc="+s,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+C+"\n loaded from: "+e+"\n");function E(e){var n=v(t.join(e,"prebuilds")).map(I).filter(w(l,p)).sort(g)[0];if(n){
77
+ var r=t.join(e,"prebuilds",n.name),o=v(r).map(b).filter(y(d,i)).sort(U(d))[0];return o?t.join(r,o.file):void 0}}},c.parseTags=b,c.matchTags=y,c.compareTags=U,c.parseTuple=I,c.matchTuple=w,c.compareTuples=g,_o}(),qo.exports}function Vo(){if(Po)return Co.exports;Po=1;try{Co.exports=Bo()(__dirname)}catch(e){Co.exports=ko?Ao:(ko=1,Ao={mask:(e,t,n,r,o)=>{for(var a=0;a<o;a++)n[r+a]=e[a]^t[3&a]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}})}return Co.exports}function Fo(){if(To)return jo.exports;To=1;const{EMPTY_BUFFER:e}=Uo(),t=Buffer[Symbol.species];function n(e,t,n,r,o){for(let a=0;a<o;a++)n[r+a]=e[a]^t[3&a]}function r(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(jo.exports={concat:function(n,r){if(0===n.length)return e;if(1===n.length)return n[0];const o=Buffer.allocUnsafe(r);let a=0;for(let e=0;e<n.length;e++){const t=n[e];o.set(t,a),a+=t.length}return a<r?new t(o.buffer,o.byteOffset,a):o},mask:n,toArrayBuffer:function(e){
78
+ return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(n){if(e.readOnly=!0,Buffer.isBuffer(n))return n;let r;return n instanceof ArrayBuffer?r=new t(n):ArrayBuffer.isView(n)?r=new t(n.buffer,n.byteOffset,n.byteLength):(r=Buffer.from(n),e.readOnly=!1),r},unmask:r},!process.env.WS_NO_BUFFER_UTIL)try{const e=Vo();jo.exports.mask=function(t,r,o,a,i){i<48?n(t,r,o,a,i):e.mask(t,r,o,a,i)},jo.exports.unmask=function(t,n){t.length<32?r(t,n):e.unmask(t,n)}}catch(e){}return jo.exports}function Mo(){if(Lo)return xo;Lo=1;const e=h,t=Fo(),n=function(){if(Oo)return Do;Oo=1;const e=Symbol("kDone"),t=Symbol("kRun");return Do=class{constructor(n){this[e]=()=>{this.pending--,this[t]()},this.concurrency=n||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[t]()}[t](){if(this.pending!==this.concurrency&&this.jobs.length){const t=this.jobs.shift();this.pending++,t(this[e])}}}
79
+ }(),{kStatusCode:r}=Uo(),o=Buffer[Symbol.species],a=Buffer.from([0,0,255,255]),i=Symbol("permessage-deflate"),d=Symbol("total-length"),p=Symbol("callback"),l=Symbol("buffers"),s=Symbol("error");let u;function m(e){this[l].push(e),this[d]+=e.length}function c(e){this[d]+=e.length,this[i]._maxPayload<1||this[d]<=this[i]._maxPayload?this[l].push(e):(this[s]=new RangeError("Max payload size exceeded"),this[s].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[s][r]=1009,this.removeListener("data",c),this.reset())}function v(e){this[i]._inflate=null,this[s]?this[p](this[s]):(e[r]=1007,this[p](e))}return xo=class{constructor(e,t,r){if(this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!u){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;u=new n(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={}
98
80
  ;return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[p];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){
99
81
  const t=this._options,n=e.find(e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){
100
82
  if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{
101
83
  if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){u.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){u.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(n,r,o){const u=this._isServer?"client":"server";if(!this._inflate){const t=`${u}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._inflate=e.createInflateRaw({...this._options.zlibInflateOptions,windowBits:n}),this._inflate[i]=this,this._inflate[d]=0,this._inflate[l]=[],this._inflate.on("error",v),this._inflate.on("data",c)}this._inflate[p]=o,this._inflate.write(n),r&&this._inflate.write(a),this._inflate.flush(()=>{const e=this._inflate[s];if(e)return this._inflate.close(),this._inflate=null,void o(e);const n=t.concat(this._inflate[l],this._inflate[d])
102
- ;this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[d]=0,this._inflate[l]=[],r&&this.params[`${u}_no_context_takeover`]&&this._inflate.reset()),o(null,n)})}_compress(n,r,a){const i=this._isServer?"server":"client";if(!this._deflate){const t=`${i}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=e.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[d]=0,this._deflate[l]=[],this._deflate.on("data",m)}this._deflate[p]=a,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[l],this._deflate[d]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[p]=null,this._deflate[d]=0,this._deflate[l]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),a(null,e)})}}}var Na,Aa,ka,Pa,Ta,Da,Oa,xa,La,qa,Ba,Va,Fa,Ma,Ga,za,Ja={exports:{}},Wa={exports:{}};function $a(){if(ka)return Wa.exports
103
- ;ka=1;try{Wa.exports=Ca()(__dirname)}catch(e){Wa.exports=Aa?Na:(Aa=1,Na=function(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0})}return Wa.exports}function Ha(){if(Pa)return Ja.exports;Pa=1;const{isUtf8:e}=_,{hasBlob:t}=sa();function n(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1
104
- ;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(Ja.exports={isBlob:function(e){return t&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:n,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},e)Ja.exports.isValidUTF8=function(t){return t.length<24?n(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=$a();Ja.exports.isValidUTF8=function(t){return t.length<32?n(t):e(t)}}catch(e){}return Ja.exports}
105
- function Za(){if(Da)return Ta;Da=1;const{Writable:e}=p,t=Sa(),{BINARY_TYPES:n,EMPTY_BUFFER:r,kStatusCode:o,kWebSocket:a}=sa(),{concat:i,toArrayBuffer:d,unmask:l}=_a(),{isValidStatusCode:s,isValidUTF8:u}=Ha(),m=Buffer[Symbol.species];return Ta=class extends e{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||n[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[a]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){
84
+ ;this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[d]=0,this._inflate[l]=[],r&&this.params[`${u}_no_context_takeover`]&&this._inflate.reset()),o(null,n)})}_compress(n,r,a){const i=this._isServer?"server":"client";if(!this._deflate){const t=`${i}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=e.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[d]=0,this._deflate[l]=[],this._deflate.on("data",m)}this._deflate[p]=a,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[l],this._deflate[d]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[p]=null,this._deflate[d]=0,this._deflate[l]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),a(null,e)})}}}var Go,zo,Jo,Wo,$o,Ho,Zo,Yo,Ko,Xo,Qo,ea,ta,na,ra,oa,aa={exports:{}},ia={exports:{}};function da(){if(Jo)return ia.exports
85
+ ;Jo=1;try{ia.exports=Bo()(__dirname)}catch(e){ia.exports=zo?Go:(zo=1,Go=function(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0})}return ia.exports}function pa(){if(Wo)return aa.exports;Wo=1;const{isUtf8:e}=_,{hasBlob:t}=Uo();function n(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1
86
+ ;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(aa.exports={isBlob:function(e){return t&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:n,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},e)aa.exports.isValidUTF8=function(t){return t.length<24?n(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=da();aa.exports.isValidUTF8=function(t){return t.length<32?n(t):e(t)}}catch(e){}return aa.exports}
87
+ function la(){if(Ho)return $o;Ho=1;const{Writable:e}=p,t=Mo(),{BINARY_TYPES:n,EMPTY_BUFFER:r,kStatusCode:o,kWebSocket:a}=Uo(),{concat:i,toArrayBuffer:d,unmask:l}=Fo(),{isValidStatusCode:s,isValidUTF8:u}=pa(),m=Buffer[Symbol.species];return $o=class extends e{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||n[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[a]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){
106
88
  if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new m(t.buffer,t.byteOffset+e,t.length-e),new m(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new m(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const n=this.consume(2);if(48&n[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}
107
89
  const r=!(64&~n[0]);if(r&&!this._extensions[t.extensionName]){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._fin=!(128&~n[0]),this._opcode=15&n[0],this._payloadLength=127&n[1],0===this._opcode){if(r){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=r}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(r){
108
90
  return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~n[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),n=t.readUInt32BE(0)
109
91
  ;if(n>Math.pow(2,21)-1){return void e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){return void e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=r;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&l(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,
110
92
  void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,n){this._extensions[t.extensionName].decompress(e,this._fin,(e,t)=>{if(e)return n(e);if(t.length){if(this._messageLength+=t.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void n(e)}this._fragments.push(t)}this.dataMessage(n),0===this._state&&this.startLoop(n)})}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?i(n,t):"arraybuffer"===this._binaryType?d(i(n,t)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{
111
93
  this.emit("message",r,!0),this._state=0,this.startLoop(e)}))}else{const r=i(n,t);if(!this._skipUTF8Validation&&!u(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)}));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,r),this.end();else{const n=e.readUInt16BE(0);if(!s(n)){const e=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!u(r)){
112
- const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,a){this._loop=!1,this._errored=!0;const i=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=a,i[o]=r,i}}}function Ya(){if(xa)return Oa;xa=1;const{Duplex:e}=p,{randomFillSync:t}=C,n=Sa(),{EMPTY_BUFFER:r,kWebSocket:o,NOOP:a}=sa(),{isBlob:i,isValidStatusCode:d}=Ha(),{mask:l,toBuffer:s}=_a(),u=Symbol("kByteLength"),m=Buffer.alloc(4),c=8192;let v,h=c;class f{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=a,this[o]=void 0}static frame(e,n){let r,o,a=!1,i=2,d=!1;n.mask&&(r=n.maskBuffer||m,n.generateMask?n.generateMask(r):(h===c&&(void 0===v&&(v=Buffer.alloc(c)),t(v,0,c),h=0),
94
+ const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,a){this._loop=!1,this._errored=!0;const i=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=a,i[o]=r,i}}}function sa(){if(Yo)return Zo;Yo=1;const{Duplex:e}=p,{randomFillSync:t}=b,n=Mo(),{EMPTY_BUFFER:r,kWebSocket:o,NOOP:a}=Uo(),{isBlob:i,isValidStatusCode:d}=pa(),{mask:l,toBuffer:s}=Fo(),u=Symbol("kByteLength"),m=Buffer.alloc(4),c=8192;let v,h=c;class f{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=a,this[o]=void 0}static frame(e,n){let r,o,a=!1,i=2,d=!1;n.mask&&(r=n.maskBuffer||m,n.generateMask?n.generateMask(r):(h===c&&(void 0===v&&(v=Buffer.alloc(c)),t(v,0,c),h=0),
113
95
  r[0]=v[h++],r[1]=v[h++],r[2]=v[h++],r[3]=v[h++]),d=0===(r[0]|r[1]|r[2]|r[3]),i=6),"string"==typeof e?o=n.mask&&!d||void 0===n[u]?(e=Buffer.from(e)).length:n[u]:(o=e.length,a=n.mask&&n.readOnly&&!d);let p=o;o>=65536?(i+=8,p=127):o>125&&(i+=2,p=126);const s=Buffer.allocUnsafe(a?o+i:i);return s[0]=n.fin?128|n.opcode:n.opcode,n.rsv1&&(s[0]|=64),s[1]=p,126===p?s.writeUInt16BE(o,2):127===p&&(s[2]=s[3]=0,s.writeUIntBE(o,4,6)),n.mask?(s[1]|=128,s[i-4]=r[0],s[i-3]=r[1],s[i-2]=r[2],s[i-1]=r[3],d?[s,e]:a?(l(e,r,s,i,o),[s]):(l(e,r,e,0,o),[s,e])):[s,e]}close(e,t,n,o){let a;if(void 0===e)a=r;else{if("number"!=typeof e||!d(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");a=Buffer.allocUnsafe(2+n),a.writeUInt16BE(e,0),"string"==typeof t?a.write(t,2):a.set(t,2)}else a=Buffer.allocUnsafe(2),a.writeUInt16BE(e,0)}const i={[u]:a.length,fin:!0,
114
96
  generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,a,!1,i,o]):this.sendFrame(f.frame(a,i),o)}ping(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):i(e)?(r=e.size,o=!1):(r=(e=s(e)).length,o=s.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const a={[u]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:o,rsv1:!1};i(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,a,n]):this.getBlobData(e,!1,a,n):0!==this._state?this.enqueue([this.dispatch,e,!1,a,n]):this.sendFrame(f.frame(e,a),n)}pong(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):i(e)?(r=e.size,o=!1):(r=(e=s(e)).length,o=s.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const a={[u]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:o,
115
97
  rsv1:!1};i(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,a,n]):this.getBlobData(e,!1,a,n):0!==this._state?this.enqueue([this.dispatch,e,!1,a,n]):this.sendFrame(f.frame(e,a),n)}send(e,t,r){const o=this._extensions[n.extensionName];let a,d,p=t.binary?2:1,l=t.compress;"string"==typeof e?(a=Buffer.byteLength(e),d=!1):i(e)?(a=e.size,d=!1):(a=(e=s(e)).length,d=s.readOnly),this._firstFragment?(this._firstFragment=!1,l&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(l=a>=o._threshold),this._compress=l):(l=!1,p=0),t.fin&&(this._firstFragment=!0);const m={[u]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:p,readOnly:d,rsv1:l};i(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,m,r]):this.getBlobData(e,this._compress,m,r):0!==this._state?this.enqueue([this.dispatch,e,this._compress,m,r]):this.dispatch(e,this._compress,m,r)}getBlobData(e,t,n,r){this._bufferedBytes+=n[u],this._state=2,
116
98
  e.arrayBuffer().then(e=>{if(this._socket.destroyed){const e=new Error("The socket was closed while the blob was being read");return void process.nextTick(I,this,e,r)}this._bufferedBytes-=n[u];const o=s(e);t?this.dispatch(o,t,n,r):(this._state=0,this.sendFrame(f.frame(o,n),r),this.dequeue())}).catch(e=>{process.nextTick(w,this,e,r)})}dispatch(e,t,r,o){if(!t)return void this.sendFrame(f.frame(e,r),o);const a=this._extensions[n.extensionName];this._bufferedBytes+=r[u],this._state=1,a.compress(e,r.fin,(e,t)=>{if(this._socket.destroyed){return void I(this,new Error("The socket was closed while data was being compressed"),o)}this._bufferedBytes-=r[u],this._state=0,r.readOnly=!1,this.sendFrame(f.frame(t,r),o),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][u],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][u],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),
117
- this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function I(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],o=r[r.length-1];"function"==typeof o&&o(t)}}function w(e,t,n){I(e,t,n),e.onerror(t)}return Oa=f}function Ka(){if(Va)return Ba;Va=1;const{tokenChars:e}=Ha();function t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}return Ba={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(n){const r=Object.create(null);let o,a,i=Object.create(null),d=!1,p=!1,l=!1,s=-1,u=-1,m=-1,c=0;for(;c<n.length;c++)if(u=n.charCodeAt(c),void 0===o)if(-1===m&&1===e[u])-1===s&&(s=c);else if(0===c||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${c}`);{
99
+ this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function I(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],o=r[r.length-1];"function"==typeof o&&o(t)}}function w(e,t,n){I(e,t,n),e.onerror(t)}return Zo=f}function ua(){if(ea)return Qo;ea=1;const{tokenChars:e}=pa();function t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}return Qo={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(n){const r=Object.create(null);let o,a,i=Object.create(null),d=!1,p=!1,l=!1,s=-1,u=-1,m=-1,c=0;for(;c<n.length;c++)if(u=n.charCodeAt(c),void 0===o)if(-1===m&&1===e[u])-1===s&&(s=c);else if(0===c||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${c}`);{
118
100
  if(-1===s)throw new SyntaxError(`Unexpected character at index ${c}`);-1===m&&(m=c);const e=n.slice(s,m);44===u?(t(r,e,i),i=Object.create(null)):o=e,s=m=-1}}else-1===m&&-1!==s&&(m=c);else if(void 0===a)if(-1===m&&1===e[u])-1===s&&(s=c);else if(32===u||9===u)-1===m&&-1!==s&&(m=c);else if(59===u||44===u){if(-1===s)throw new SyntaxError(`Unexpected character at index ${c}`);-1===m&&(m=c),t(i,n.slice(s,m),!0),44===u&&(t(r,o,i),i=Object.create(null),o=void 0),s=m=-1}else{if(61!==u||-1===s||-1!==m)throw new SyntaxError(`Unexpected character at index ${c}`);a=n.slice(s,c),s=m=-1}else if(p){if(1!==e[u])throw new SyntaxError(`Unexpected character at index ${c}`);-1===s?s=c:d||(d=!0),p=!1}else if(l)if(1===e[u])-1===s&&(s=c);else if(34===u&&-1!==s)l=!1,m=c;else{if(92!==u)throw new SyntaxError(`Unexpected character at index ${c}`);p=!0}else if(34===u&&61===n.charCodeAt(c-1))l=!0;else if(-1===m&&1===e[u])-1===s&&(s=c);else if(-1===s||32!==u&&9!==u){
119
- if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${c}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${c}`);-1===m&&(m=c);let e=n.slice(s,m);d&&(e=e.replace(/\\/g,""),d=!1),t(i,a,e),44===u&&(t(r,o,i),i=Object.create(null),o=void 0),a=void 0,s=m=-1}}else-1===m&&(m=c);if(-1===s||l||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===m&&(m=c);const v=n.slice(s,m);return void 0===o?t(r,v,i):(void 0===a?t(i,v,!0):t(i,a,d?v.replace(/\\/g,""):v),t(r,o,i)),r}}}function Xa(){if(Ma)return Fa;Ma=1;const t=e,n=c,r=l,o=w,a=U,{randomBytes:i,createHash:d}=C,{Duplex:u,Readable:m}=p,{URL:v}=s,h=Sa(),f=Za(),I=Ya(),{isBlob:g}=Ha(),{BINARY_TYPES:b,EMPTY_BUFFER:y,GUID:R,kForOnEventAttribute:j,kListener:E,kStatusCode:_,kWebSocket:S,NOOP:N}=sa(),{EventTarget:{addEventListener:A,removeEventListener:k}}=function(){if(qa)return La;qa=1
120
- ;const{kForOnEventAttribute:e,kListener:t}=sa(),n=Symbol("kCode"),r=Symbol("kData"),o=Symbol("kError"),a=Symbol("kMessage"),i=Symbol("kReason"),d=Symbol("kTarget"),p=Symbol("kType"),l=Symbol("kWasClean");class s{constructor(e){this[d]=null,this[p]=e}get target(){return this[d]}get type(){return this[p]}}Object.defineProperty(s.prototype,"target",{enumerable:!0}),Object.defineProperty(s.prototype,"type",{enumerable:!0});class u extends s{constructor(e,t={}){super(e),this[n]=void 0===t.code?0:t.code,this[i]=void 0===t.reason?"":t.reason,this[l]=void 0!==t.wasClean&&t.wasClean}get code(){return this[n]}get reason(){return this[i]}get wasClean(){return this[l]}}Object.defineProperty(u.prototype,"code",{enumerable:!0}),Object.defineProperty(u.prototype,"reason",{enumerable:!0}),Object.defineProperty(u.prototype,"wasClean",{enumerable:!0});class m extends s{constructor(e,t={}){super(e),this[o]=void 0===t.error?null:t.error,this[a]=void 0===t.message?"":t.message}get error(){return this[o]}
101
+ if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${c}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${c}`);-1===m&&(m=c);let e=n.slice(s,m);d&&(e=e.replace(/\\/g,""),d=!1),t(i,a,e),44===u&&(t(r,o,i),i=Object.create(null),o=void 0),a=void 0,s=m=-1}}else-1===m&&(m=c);if(-1===s||l||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===m&&(m=c);const v=n.slice(s,m);return void 0===o?t(r,v,i):(void 0===a?t(i,v,!0):t(i,a,d?v.replace(/\\/g,""):v),t(r,o,i)),r}}}function ma(){if(na)return ta;na=1;const t=e,n=c,r=l,o=I,a=g,{randomBytes:i,createHash:d}=b,{Duplex:u,Readable:m}=p,{URL:v}=s,h=Mo(),f=la(),w=sa(),{isBlob:y}=pa(),{BINARY_TYPES:R,EMPTY_BUFFER:j,GUID:U,kForOnEventAttribute:C,kListener:E,kStatusCode:_,kWebSocket:S,NOOP:N}=Uo(),{EventTarget:{addEventListener:A,removeEventListener:k}}=function(){if(Xo)return Ko;Xo=1
102
+ ;const{kForOnEventAttribute:e,kListener:t}=Uo(),n=Symbol("kCode"),r=Symbol("kData"),o=Symbol("kError"),a=Symbol("kMessage"),i=Symbol("kReason"),d=Symbol("kTarget"),p=Symbol("kType"),l=Symbol("kWasClean");class s{constructor(e){this[d]=null,this[p]=e}get target(){return this[d]}get type(){return this[p]}}Object.defineProperty(s.prototype,"target",{enumerable:!0}),Object.defineProperty(s.prototype,"type",{enumerable:!0});class u extends s{constructor(e,t={}){super(e),this[n]=void 0===t.code?0:t.code,this[i]=void 0===t.reason?"":t.reason,this[l]=void 0!==t.wasClean&&t.wasClean}get code(){return this[n]}get reason(){return this[i]}get wasClean(){return this[l]}}Object.defineProperty(u.prototype,"code",{enumerable:!0}),Object.defineProperty(u.prototype,"reason",{enumerable:!0}),Object.defineProperty(u.prototype,"wasClean",{enumerable:!0});class m extends s{constructor(e,t={}){super(e),this[o]=void 0===t.error?null:t.error,this[a]=void 0===t.message?"":t.message}get error(){return this[o]}
121
103
  get message(){return this[a]}}Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});class c extends s{constructor(e,t={}){super(e),this[r]=void 0===t.data?null:t.data}get data(){return this[r]}}Object.defineProperty(c.prototype,"data",{enumerable:!0});const v={addEventListener(n,r,o={}){for(const a of this.listeners(n))if(!o[e]&&a[t]===r&&!a[e])return;let a;if("message"===n)a=function(e,t){const n=new c("message",{data:t?e:e.toString()});n[d]=this,h(r,this,n)};else if("close"===n)a=function(e,t){const n=new u("close",{code:e,reason:t.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[d]=this,h(r,this,n)};else if("error"===n)a=function(e){const t=new m("error",{error:e,message:e.message});t[d]=this,h(r,this,t)};else{if("open"!==n)return;a=function(){const e=new s("open");e[d]=this,h(r,this,e)}}a[e]=!!o[e],a[t]=r,o.once?this.once(n,a):this.on(n,a)},removeEventListener(n,r){
122
- for(const o of this.listeners(n))if(o[t]===r&&!o[e]){this.removeListener(n,o);break}}};function h(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}return La={CloseEvent:u,ErrorEvent:m,Event:s,EventTarget:v,MessageEvent:c}}(),{format:P,parse:T}=Ka(),{toBuffer:D}=_a(),O=Symbol("kAborted"),x=[8,13],L=["CONNECTING","OPEN","CLOSING","CLOSED"],q=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class B extends t{constructor(e,t,n){super(),this._binaryType=b[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=y,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=B.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),V(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType
123
- }set binaryType(e){b.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new f({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),o=new I(e,this._extensions,n.generateMask);this._receiver=r,this._sender=o,this._socket=e,r[S]=this,o[S]=this,e[S]=this,r.on("conclude",W),r.on("drain",$),r.on("error",H),r.on("message",Y),r.on("ping",K),r.on("pong",X),o.onerror=ee,
104
+ for(const o of this.listeners(n))if(o[t]===r&&!o[e]){this.removeListener(n,o);break}}};function h(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}return Ko={CloseEvent:u,ErrorEvent:m,Event:s,EventTarget:v,MessageEvent:c}}(),{format:P,parse:T}=ua(),{toBuffer:D}=Fo(),O=Symbol("kAborted"),x=[8,13],L=["CONNECTING","OPEN","CLOSING","CLOSED"],q=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class B extends t{constructor(e,t,n){super(),this._binaryType=R[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=j,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=B.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),V(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType
105
+ }set binaryType(e){R.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new f({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),o=new w(e,this._extensions,n.generateMask);this._receiver=r,this._sender=o,this._socket=e,r[S]=this,o[S]=this,e[S]=this,r.on("conclude",W),r.on("drain",$),r.on("error",H),r.on("message",Y),r.on("ping",K),r.on("pong",X),o.onerror=ee,
124
106
  e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",ne),e.on("data",re),e.on("end",oe),e.on("error",ae),this._readyState=B.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=B.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[h.extensionName]&&this._extensions[h.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=B.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==B.CLOSED){if(this.readyState===B.CONNECTING){const e="WebSocket was closed before the connection was established";return void z(this,this._req,e)}this.readyState!==B.CLOSING?(this._readyState=B.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),
125
- te(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==B.CONNECTING&&this.readyState!==B.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===B.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||y,t,n)):J(this,e,n)}pong(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===B.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||y,t,n)):J(this,e,n)}resume(){this.readyState!==B.CONNECTING&&this.readyState!==B.CLOSED&&(this._paused=!1,
126
- this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==B.OPEN)return void J(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[h.extensionName]||(r.compress=!1),this._sender.send(e||y,r,n)}terminate(){if(this.readyState!==B.CLOSED){if(this.readyState===B.CONNECTING){const e="WebSocket was closed before the connection was established";return void z(this,this._req,e)}this._socket&&(this._readyState=B.CLOSING,this._socket.destroy())}}}function V(e,t,o,a){const p={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:x[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...a,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,
107
+ te(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==B.CONNECTING&&this.readyState!==B.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===B.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||j,t,n)):J(this,e,n)}pong(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===B.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||j,t,n)):J(this,e,n)}resume(){this.readyState!==B.CONNECTING&&this.readyState!==B.CLOSED&&(this._paused=!1,
108
+ this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==B.OPEN)return void J(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[h.extensionName]||(r.compress=!1),this._sender.send(e||j,r,n)}terminate(){if(this.readyState!==B.CLOSED){if(this.readyState===B.CONNECTING){const e="WebSocket was closed before the connection was established";return void z(this,this._req,e)}this._socket&&(this._readyState=B.CLOSING,this._socket.destroy())}}}function V(e,t,o,a){const p={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:x[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...a,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,
127
109
  path:void 0,port:void 0};if(e._autoPong=p.autoPong,!x.includes(p.protocolVersion))throw new RangeError(`Unsupported protocol version: ${p.protocolVersion} (supported versions: ${x.join(", ")})`);let l;if(t instanceof v)l=t;else try{l=new v(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===l.protocol?l.protocol="ws:":"https:"===l.protocol&&(l.protocol="wss:"),e._url=l.href;const s="wss:"===l.protocol,u="ws+unix:"===l.protocol;let m;if("ws:"===l.protocol||s||u?u&&!l.pathname?m="The URL's pathname is empty":l.hash&&(m="The URL contains a fragment identifier"):m='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',m){const t=new SyntaxError(m);if(0===e._redirects)throw t;return void F(e,t)}const c=s?443:80,f=i(16).toString("base64"),I=s?n.request:r.request,w=new Set;let g,b;if(p.createConnection=p.createConnection||(s?G:M),p.defaultPort=p.defaultPort||c,p.port=l.port||c,p.host=l.hostname.startsWith("[")?l.hostname.slice(1,-1):l.hostname,
128
110
  p.headers={...p.headers,"Sec-WebSocket-Version":p.protocolVersion,"Sec-WebSocket-Key":f,Connection:"Upgrade",Upgrade:"websocket"},p.path=l.pathname+l.search,p.timeout=p.handshakeTimeout,p.perMessageDeflate&&(g=new h(!0!==p.perMessageDeflate?p.perMessageDeflate:{},!1,p.maxPayload),p.headers["Sec-WebSocket-Extensions"]=P({[h.extensionName]:g.offer()})),o.length){for(const e of o){if("string"!=typeof e||!q.test(e)||w.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");w.add(e)}p.headers["Sec-WebSocket-Protocol"]=o.join(",")}if(p.origin&&(p.protocolVersion<13?p.headers["Sec-WebSocket-Origin"]=p.origin:p.headers.Origin=p.origin),(l.username||l.password)&&(p.auth=`${l.username}:${l.password}`),u){const e=p.path.split(":");p.socketPath=e[0],p.path=e[1]}if(p.followRedirects){if(0===e._redirects){e._originalIpc=u,e._originalSecure=s,e._originalHostOrSocketPath=u?p.socketPath:l.host;const t=a&&a.headers;if(a={...a,headers:{}},
129
111
  t)for(const[e,n]of Object.entries(t))a.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=u?!!e._originalIpc&&p.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&l.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!s)&&(delete p.headers.authorization,delete p.headers.cookie,t||delete p.headers.host,p.auth=void 0)}p.auth&&!a.headers.authorization&&(a.headers.authorization="Basic "+Buffer.from(p.auth).toString("base64")),b=e._req=I(p),e._redirects&&e.emit("redirect",e.url,b)}else b=e._req=I(p);p.timeout&&b.on("timeout",()=>{z(e,b,"Opening handshake has timed out")}),b.on("error",t=>{null===b||b[O]||(b=e._req=null,F(e,t))}),b.on("response",n=>{const r=n.headers.location,i=n.statusCode;if(r&&p.followRedirects&&i>=300&&i<400){if(++e._redirects>p.maxRedirects)return void z(e,b,"Maximum redirects exceeded");let n;b.abort();try{n=new v(r,t)}catch(t){const n=new SyntaxError(`Invalid URL: ${r}`);return void F(e,n)}V(e,n,o,a)
130
- }else e.emit("unexpected-response",b,n)||z(e,b,`Unexpected server response: ${n.statusCode}`)}),b.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==B.CONNECTING)return;b=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void z(e,n,"Invalid Upgrade header");const a=d("sha1").update(f+R).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void z(e,n,"Invalid Sec-WebSocket-Accept header");const i=t.headers["sec-websocket-protocol"];let l;if(void 0!==i?w.size?w.has(i)||(l="Server sent an invalid subprotocol"):l="Server sent a subprotocol but none was requested":w.size&&(l="Server sent no subprotocol"),l)return void z(e,n,l);i&&(e._protocol=i);const s=t.headers["sec-websocket-extensions"];if(void 0!==s){if(!g){return void z(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=T(s)}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t)
112
+ }else e.emit("unexpected-response",b,n)||z(e,b,`Unexpected server response: ${n.statusCode}`)}),b.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==B.CONNECTING)return;b=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void z(e,n,"Invalid Upgrade header");const a=d("sha1").update(f+U).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void z(e,n,"Invalid Sec-WebSocket-Accept header");const i=t.headers["sec-websocket-protocol"];let l;if(void 0!==i?w.size?w.has(i)||(l="Server sent an invalid subprotocol"):l="Server sent a subprotocol but none was requested":w.size&&(l="Server sent no subprotocol"),l)return void z(e,n,l);i&&(e._protocol=i);const s=t.headers["sec-websocket-extensions"];if(void 0!==s){if(!g){return void z(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=T(s)}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t)
131
113
  ;if(1!==r.length||r[0]!==h.extensionName){return void z(e,n,"Server indicated an extension that was not requested")}try{g.accept(t[h.extensionName])}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[h.extensionName]=g}e.setSocket(n,r,{allowSynchronousEvents:p.allowSynchronousEvents,generateMask:p.generateMask,maxPayload:p.maxPayload,skipUTF8Validation:p.skipUTF8Validation})}),p.finishRequest?p.finishRequest(b,e):b.end()}function F(e,t){e._readyState=B.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function M(e){return e.path=e.socketPath,o.connect(e)}function G(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=o.isIP(e.host)?"":e.host),a.connect(e)}function z(e,t,n){e._readyState=B.CLOSING;const r=new Error(n);Error.captureStackTrace(r,z),t.setHeader?(t[O]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(F,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),
132
- t.once("close",e.emitClose.bind(e)))}function J(e,t,n){if(t){const n=g(t)?t.size:D(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${L[e.readyState]})`);process.nextTick(n,t)}}function W(e,t){const n=this[S];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[S]&&(n._socket.removeListener("data",re),process.nextTick(Q,n._socket),1005===e?n.close():n.close(e,t))}function $(){const e=this[S];e.isPaused||e._socket.resume()}function H(e){const t=this[S];void 0!==t._socket[S]&&(t._socket.removeListener("data",re),process.nextTick(Q,t._socket),t.close(e[_])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function Z(){this[S].emitClose()}function Y(e,t){this[S].emit("message",e,t)}function K(e){const t=this[S];t._autoPong&&t.pong(e,!this._isServer,N),t.emit("ping",e)}function X(e){this[S].emit("pong",e)}function Q(e){e.resume()}function ee(e){const t=this[S]
114
+ t.once("close",e.emitClose.bind(e)))}function J(e,t,n){if(t){const n=y(t)?t.size:D(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${L[e.readyState]})`);process.nextTick(n,t)}}function W(e,t){const n=this[S];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[S]&&(n._socket.removeListener("data",re),process.nextTick(Q,n._socket),1005===e?n.close():n.close(e,t))}function $(){const e=this[S];e.isPaused||e._socket.resume()}function H(e){const t=this[S];void 0!==t._socket[S]&&(t._socket.removeListener("data",re),process.nextTick(Q,t._socket),t.close(e[_])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function Z(){this[S].emitClose()}function Y(e,t){this[S].emit("message",e,t)}function K(e){const t=this[S];t._autoPong&&t.pong(e,!this._isServer,N),t.emit("ping",e)}function X(e){this[S].emit("pong",e)}function Q(e){e.resume()}function ee(e){const t=this[S]
133
115
  ;t.readyState!==B.CLOSED&&(t.readyState===B.OPEN&&(t._readyState=B.CLOSING,te(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function te(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function ne(){const e=this[S];let t;this.removeListener("close",ne),this.removeListener("data",re),this.removeListener("end",oe),e._readyState=B.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[S]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",Z),e._receiver.on("finish",Z))}function re(e){this[S]._receiver.write(e)||this.pause()}function oe(){const e=this[S];e._readyState=B.CLOSING,e._receiver.end(),this.end()}function ae(){const e=this[S];this.removeListener("error",ae),this.on("error",N),e&&(e._readyState=B.CLOSING,
134
- this.destroy())}return Object.defineProperty(B,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(B.prototype,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(B,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(B.prototype,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(B,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(B.prototype,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(B,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),Object.defineProperty(B.prototype,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(B.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(B.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[j])return t[E]
135
- ;return null},set(t){for(const t of this.listeners(e))if(t[j]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[j]:!0})}})}),B.prototype.addEventListener=A,B.prototype.removeEventListener=k,Fa=B}var Qa=function(){if(za)return Ga;za=1,Xa();const{Duplex:e}=p;function t(e){e.emit("close")}function n(){!this.destroyed&&this._writableState.finished&&this.destroy()}function r(e){this.removeListener("error",r),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}return Ga=function(o,a){let i=!0;const d=new e({...a,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return o.on("message",function(e,t){const n=!t&&d._readableState.objectMode?e.toString():e;d.push(n)||o.pause()}),o.once("error",function(e){d.destroyed||(i=!1,d.destroy(e))}),o.once("close",function(){d.destroyed||d.push(null)}),d._destroy=function(e,n){if(o.readyState===o.CLOSED)return n(e),void process.nextTick(t,d);let r=!1;o.once("error",function(e){r=!0,n(e)}),
136
- o.once("close",function(){r||n(e),process.nextTick(t,d)}),i&&o.terminate()},d._final=function(e){o.readyState!==o.CONNECTING?null!==o._socket&&(o._socket._writableState.finished?(e(),d._readableState.endEmitted&&d.destroy()):(o._socket.once("finish",function(){e()}),o.close())):o.once("open",function(){d._final(e)})},d._read=function(){o.isPaused&&o.resume()},d._write=function(e,t,n){o.readyState!==o.CONNECTING?o.send(e,n):o.once("open",function(){d._write(e,t,n)})},d.on("end",n),d.on("error",r),d},Ga}(),ei=sr(Qa);Za(),Ya();var ti,ni,ri,oi,ai=sr(Xa());function ii(){if(ni)return ti;ni=1;const{tokenChars:e}=Ha();return ti={parse:function(t){const n=new Set;let r=-1,o=-1,a=0;for(;a<t.length;a++){const i=t.charCodeAt(a);if(-1===o&&1===e[i])-1===r&&(r=a);else if(0===a||32!==i&&9!==i){if(44!==i)throw new SyntaxError(`Unexpected character at index ${a}`);{if(-1===r)throw new SyntaxError(`Unexpected character at index ${a}`);-1===o&&(o=a);const e=t.slice(r,o)
137
- ;if(n.has(e))throw new SyntaxError(`The "${e}" subprotocol is duplicated`);n.add(e),r=o=-1}}else-1===o&&-1!==r&&(o=a)}if(-1===r||-1!==o)throw new SyntaxError("Unexpected end of input");const i=t.slice(r,a);if(n.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return n.add(i),n}}}!function(){if(oi)return ri;oi=1;const t=e,n=l,{Duplex:r}=p,{createHash:o}=C,a=Ka(),i=Sa(),d=ii(),s=Xa(),{GUID:u,kWebSocket:m}=sa(),c=/^[+/0-9A-Za-z]{22}==$/;function v(e){e._state=2,e.emit("close")}function h(){this.destroy()}function f(e,t,r,o){r=r||n.STATUS_CODES[t],o={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...o},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${n.STATUS_CODES[t]}\r\n`+Object.keys(o).map(e=>`${e}: ${o[e]}`).join("\r\n")+"\r\n\r\n"+r)}function I(e,t,n,r,o,a){if(e.listenerCount("wsClientError")){const r=new Error(o);Error.captureStackTrace(r,I),e.emit("wsClientError",r,n,t)}else f(n,r,o,a)}ri=class extends t{constructor(e,t){
116
+ this.destroy())}return Object.defineProperty(B,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(B.prototype,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(B,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(B.prototype,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(B,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(B.prototype,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(B,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),Object.defineProperty(B.prototype,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(B.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(B.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[C])return t[E]
117
+ ;return null},set(t){for(const t of this.listeners(e))if(t[C]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[C]:!0})}})}),B.prototype.addEventListener=A,B.prototype.removeEventListener=k,ta=B}var ca=function(){if(oa)return ra;oa=1,ma();const{Duplex:e}=p;function t(e){e.emit("close")}function n(){!this.destroyed&&this._writableState.finished&&this.destroy()}function r(e){this.removeListener("error",r),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}return ra=function(o,a){let i=!0;const d=new e({...a,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return o.on("message",function(e,t){const n=!t&&d._readableState.objectMode?e.toString():e;d.push(n)||o.pause()}),o.once("error",function(e){d.destroyed||(i=!1,d.destroy(e))}),o.once("close",function(){d.destroyed||d.push(null)}),d._destroy=function(e,n){if(o.readyState===o.CLOSED)return n(e),void process.nextTick(t,d);let r=!1;o.once("error",function(e){r=!0,n(e)}),
118
+ o.once("close",function(){r||n(e),process.nextTick(t,d)}),i&&o.terminate()},d._final=function(e){o.readyState!==o.CONNECTING?null!==o._socket&&(o._socket._writableState.finished?(e(),d._readableState.endEmitted&&d.destroy()):(o._socket.once("finish",function(){e()}),o.close())):o.once("open",function(){d._final(e)})},d._read=function(){o.isPaused&&o.resume()},d._write=function(e,t,n){o.readyState!==o.CONNECTING?o.send(e,n):o.once("open",function(){d._write(e,t,n)})},d.on("end",n),d.on("error",r),d},ra}(),va=sr(ca);la(),sa();var ha,fa,Ia,wa,ga=sr(ma());function ba(){if(fa)return ha;fa=1;const{tokenChars:e}=pa();return ha={parse:function(t){const n=new Set;let r=-1,o=-1,a=0;for(;a<t.length;a++){const i=t.charCodeAt(a);if(-1===o&&1===e[i])-1===r&&(r=a);else if(0===a||32!==i&&9!==i){if(44!==i)throw new SyntaxError(`Unexpected character at index ${a}`);{if(-1===r)throw new SyntaxError(`Unexpected character at index ${a}`);-1===o&&(o=a);const e=t.slice(r,o)
119
+ ;if(n.has(e))throw new SyntaxError(`The "${e}" subprotocol is duplicated`);n.add(e),r=o=-1}}else-1===o&&-1!==r&&(o=a)}if(-1===r||-1!==o)throw new SyntaxError("Unexpected end of input");const i=t.slice(r,a);if(n.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return n.add(i),n}}}!function(){if(wa)return Ia;wa=1;const t=e,n=l,{Duplex:r}=p,{createHash:o}=b,a=ua(),i=Mo(),d=ba(),s=ma(),{GUID:u,kWebSocket:m}=Uo(),c=/^[+/0-9A-Za-z]{22}==$/;function v(e){e._state=2,e.emit("close")}function h(){this.destroy()}function f(e,t,r,o){r=r||n.STATUS_CODES[t],o={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...o},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${n.STATUS_CODES[t]}\r\n`+Object.keys(o).map(e=>`${e}: ${o[e]}`).join("\r\n")+"\r\n\r\n"+r)}function I(e,t,n,r,o,a){if(e.listenerCount("wsClientError")){const r=new Error(o);Error.captureStackTrace(r,I),e.emit("wsClientError",r,n,t)}else f(n,r,o,a)}Ia=class extends t{constructor(e,t){
138
120
  if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:s,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=n.createServer((e,t)=>{const r=n.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),t.end(r)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const n of Object.keys(t))e.on(n,t[n]);return function(){for(const n of Object.keys(t))e.removeListener(n,t[n])}}(this._server,{listening:this.emit.bind(this,"listening"),
139
121
  error:this.emit.bind(this,"error"),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",()=>{e(new Error("The server is not running"))}),void process.nextTick(v,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(v,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{v(this)})}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?")
140
122
  ;if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on("error",h);const o=e.headers["sec-websocket-key"],p=e.headers.upgrade,l=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void I(this,e,t,405,"Invalid HTTP method")}if(void 0===p||"websocket"!==p.toLowerCase()){return void I(this,e,t,400,"Invalid Upgrade header")}if(void 0===o||!c.test(o)){return void I(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(13!==l&&8!==l){return void I(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"})}if(!this.shouldHandle(e))return void f(t,400);const s=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==s)try{u=d.parse(s)}catch(n){return void I(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const m=e.headers["sec-websocket-extensions"],v={};if(this.options.perMessageDeflate&&void 0!==m){const n=new i(this.options.perMessageDeflate,!0,this.options.maxPayload);try{
141
123
  const e=a.parse(m);e[i.extensionName]&&(n.accept(e[i.extensionName]),v[i.extensionName]=n)}catch(n){return void I(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const a={origin:e.headers[""+(8===l?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(a,(a,i,d,p)=>{if(!a)return f(t,i||401,d,p);this.completeUpgrade(v,o,u,e,t,n,r)});if(!this.options.verifyClient(a))return f(t,401)}this.completeUpgrade(v,o,u,e,t,n,r)}completeUpgrade(e,t,n,r,d,p,l){if(!d.readable||!d.writable)return d.destroy();if(d[m])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return f(d,503)
142
- ;const s=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(t+u).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(n.size){const e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(s.push(`Sec-WebSocket-Protocol: ${e}`),c._protocol=e)}if(e[i.extensionName]){const t=e[i.extensionName].params,n=a.format({[i.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),c._extensions=e}this.emit("headers",s,r),d.write(s.concat("\r\n").join("\r\n")),d.removeListener("error",h),c.setSocket(d,p,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(v,this)})),l(c,r)}}}();var di=function(e){function t(t,n,r,o,a,i){
143
- void 0===i&&(i=5e3);var d=e.call(this)||this;d.endpoint=t,d.headers=n,d.rewriteHostHeader=r,d.bindToAssign=o,d.agent=a,d.closeTimeout=i,d.protocol="TCP",d.openConnections=new Set,d.tcpServer=I.createServer(d.handleConnection.bind(d));var p=null==r?void 0:r.altHostnames.map(function(e){return(t=qt(t=e))&&er.test(t)?t.replace(Qn,"\\$&"):t;var t}).join("|");return d.hostRegex=new RegExp("Host: (?:".concat(p,")(:.*$|$)"),"im"),d}return G(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),W(this,function(n){return[2,new Promise(function(n){if(t.bindToAssign){var r=t.bindToAssign,o=r.port,a=r.address,i=!1;e&&t.tcpServer.once("error",function(e){if("EADDRINUSE"!==e.code&&"EACCES"!==e.code)throw e;i=!0,t.tcpServer.listen(0,a,function(){var e=t.tcpServer.address().port
144
- ;t.boundTo={address:a,port:e},t.emit("tunnel-open",{address:a,port:e}),n({address:a,port:e})})}),t.tcpServer.listen(o,a,function(){i||(t.emit("tunnel-open",{address:a,port:o}),n({address:a,port:o}))})}else t.tcpServer.listen(0,function(){var e=t.tcpServer.address(),r=e.address,o=e.port,a="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:a,port:o},t.emit("tunnel-open",t.boundTo),n(t.boundTo)})})]})})},t.prototype.close=function(){return J(this,void 0,void 0,function(){var e,t=this;return W(this,function(n){switch(n.label){case 0:return e=!1,[4,Promise.race([new Promise(function(n){t.tcpServer.close(function(){e=!0,t.emit("tunnel-close"),n()})}),new Promise(function(n){new Promise(function(e){return setTimeout(e,t.closeTimeout)}).then(function(){e||(t.openConnections.forEach(function(e){e.destroy(),t.openConnections.delete(e)}),n())})})])];case 1:return n.sent(),[2]}})})},t.prototype.handleConnection=function(e){var t=this;this.openConnections.add(e)
145
- ;var n=this.endpoint.replace("https:","wss:"),r=new ai(n,{headers:this.headers,agent:this.agent}),o=ei(r),a=this.getHeaderTransform();this.rewriteHostHeader&&a?pa(e,a,o):pa(e,o),pa(o,e),r.on("close",function(e,n,r){t.emit("connection-close",e,n,r)}),o.on("error",function(e){t.emit("connection-error",e)}),e.on("error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t.prototype.getHeaderTransform=function(){var e=function(e,t,n){var r=Buffer.from(n),o=Buffer.from(e);return t.forEach(function(e){o=function(e,t,n){var r=Buffer.from(t),o=e.indexOf(r);if(-1===o)return e;var a=e.subarray(0,o),i=e.subarray(o+r.length);return Buffer.concat([a,n,i])}(o,e,r)}),o};if(this.rewriteHostHeader){var t=this.rewriteHostHeader,n=t.targetHostname,r=t.altHostnames,o=this.hostRegex;return new i({transform:function(t,a,i){var d=t.toString();if(d.split("\n",1)[0].includes("HTTP")&&o.test(d)){var p=r.map(function(e){return"Host: ".concat(e)});i(null,e(t,p,"Host: ".concat(n)))
146
- }else i(null,t)}})}},t}(t),pi=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.endpoint=t,a.headers=n,a.bindToAssign=r,a.agent=o,a.protocol="UDP",a.udpSocket=N.createSocket("udp4"),a.handleConnection(),a}return G(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),W(this,function(n){return[2,new Promise(function(n){if(t.bindToAssign){var r=t.bindToAssign,o=r.port,a=r.address,i=!1;e&&t.udpSocket.once("error",function(e){if("EADDRINUSE"!==e.code)throw e;t.udpSocket.bind(0,a,function(){i=!0;var e=t.udpSocket.address().port;t.boundTo={address:a,port:e},t.emit("tunnel-open",{address:a,port:e}),n({address:a,port:e})})}),t.udpSocket.bind(o,a,function(){i||(i=!0,t.boundTo={address:a,port:o},t.emit("tunnel-open",{address:a,port:o}),n({address:a,port:o}))})
147
- }else t.udpSocket.bind(0,function(){var e=t.udpSocket.address(),r=e.address,o=e.port,a="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:a,port:o},t.emit("tunnel-open",t.boundTo),n(t.boundTo)})})]})})},t.prototype.close=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){e.udpSocket.close(function(){e.emit("tunnel-close"),t()})})];case 1:return t.sent(),[2]}})})},t.prototype.handleConnection=function(){var e,t=this,n=this.endpoint.replace("https:","wss:"),r=new ai(n,{headers:this.headers,agent:this.agent}),o=ei(r);this.udpSocket.on("message",function(t,n){e=n,o.write(t)}),o.on("data",function(n){e&&t.udpSocket.send(n,e.port,e.address,function(e){e&&t.emit("connection-error",e)})}),this.udpSocket.on("error",function(e){t.emit("connection-error",e)}),o.on("error",function(e){t.emit("connection-error",e)}),r.on("connection-close",function(e,n,r){t.emit("connection-close",e,n,r)}),
148
- r.on("connection-error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t}(t),li=function(e){function t(t,r,o,a){var i=e.call(this)||this;return i.contextProvider=t,i.listServices=r,i.listAddons=o,i.agent=a,i.connections=[],i.hostsFileMutex=new ta,i.ipAllocationMutex=new ta,i.stopForwarding=function(e){return J(i,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){switch(p.label){case 0:return[4,e.tunnel.close()];case 1:return p.sent(),t=e.forwardingContext,n=t.projectId,r=t.type,o=t.id,a=t.hostnames,i=t.ipOnly,a.length>0&&!i?[4,this.unregisterHostnames(null===(d=e.tunnel.bindTo)||void 0===d?void 0:d.address,a)]:[3,3];case 2:p.sent(),p.label=3;case 3:return this.connections.splice(this.connections.findIndex(function(e){var t=e.forwardingContext,a=t.type,i=t.id,d=t.projectId;return i===o&&d===n&&a===r}),1),[2]}})})},i.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,
149
- message:"You are not running this command with sufficient privileges (uid=".concat(null===(e=null===process||void 0===process?void 0:process.getuid)||void 0===e?void 0:e.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"}:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return n("fltmc"),!0}catch(e){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var e},i.assertStartedWithNodejs=function(){if(!yo)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new Do(t,a),i}return G(t,e),t.prototype.withProjectForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardProject(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)]
150
- ;case 3:return[2,o.sent()];case 4:return[4,this.stopProjectForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardProject=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d=this;return void 0===t&&(t=!0),W(this,function(p){switch(p.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=p.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return o=p.sent(),[4,Promise.all(r.data.services.map(function(e){return J(d,void 0,void 0,function(){return W(this,function(r){return[2,this.forwardService({projectId:n,serviceId:e.id},t)]})})}))];case 3:return a=p.sent(),[4,Promise.all(o.data.addons.map(function(e){return J(d,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:e.id},t)];case 1:return[2,r.sent()]}})})}))];case 4:return i=p.sent(),[2,{services:a,addons:i}]}})})},
151
- t.prototype.withServiceForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardService(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopServiceForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardService=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p,l,s,u,m,c,v=this;return void 0===t&&(t=!0),W(this,function(h){switch(h.label){case 0:return this.assertStartedWithNodejs(),n=e.teamId,r=e.projectId,o=e.serviceId,a=e.instanceId,i=e.portsFilter,[4,this.proxyApiClient.getServiceDetails(r,o,n)];case 1:return d=h.sent(),p=d.namespace,l=d.targetDomain,s=d.instances,u=d.ports,0===s.length?[2,[]]:(m=function(e){var i=s.map(function(e){return e.podName})
152
- ;if(void 0!==a&&!i.includes(a))throw new Error("Instance id not found: ".concat(a,". Expected one of [").concat(i.join(", "),"]. Ensure that requested instance id is running on service ").concat(o," in project ").concat(r,"."));var d,u=v.proxyApiClient.getTeamScopePrefix(n),m=void 0!==a?"?directConnect=true":"",c="https://".concat(l,"/tunnel/").concat(u,"projects/").concat(r,"/services/").concat(o,"/instance/").concat(null!=a?a:s[0].podName,"/port/").concat(e.internalPort).concat(m),h=void 0!==a?"".concat(a,"."):"",f="".concat(h).concat(o,".").concat(p,".svc.cluster.local"),I=["".concat(h).concat(o)];e.name&&I.push("".concat(h).concat(e.name,".").concat(o)),"HTTP"===e.protocol&&(d={altHostnames:I,targetHostname:f});var w=$([f],I,!0);return v.forwardPort(c,e,w,"service",o,r,t,d)},c=void 0===i?u:u.filter(function(e){return i.includes(e.internalPort)}),[4,Po(c,m)]);case 2:return[2,h.sent()]}})})},t.prototype.withAddonForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){
153
- var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardAddon(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopAddonForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardAddon=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p=this;return void 0===t&&(t=!0),W(this,function(l){switch(l.label){case 0:return this.assertStartedWithNodejs(),n=e.teamId,r=e.addonId,o=e.projectId,[4,this.proxyApiClient.getAddonDetails(o,r,n)];case 1:return a=l.sent(),i=a.instances.map(function(e){var t=e.podName,n=e.internalHostname;return e.ports.map(function(e){return{podName:t,internalHostname:n,port:e}})}),d=this.proxyApiClient.getTeamScopePrefix(n),[4,Po((s=i,null!=s&&s.length?Jt(s,rr):[]),function(e){return J(p,[e],void 0,function(e){var n,i=e.podName,p=e.internalHostname,l=e.port;return W(this,function(e){
154
- return n="https://".concat(a.targetDomain,"/tunnel/").concat(d,"projects/").concat(o,"/addons/").concat(r,"/instance/").concat(i,"/port/").concat(l.internalPort),[2,this.forwardPort(n,l,[p],"addon",r,o,t)]})})})];case 2:return[2,l.sent()]}var s})})},t.prototype.allocateIpAddress=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return J(t,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){switch(i.label){case 0:return t="127.24.1.1",n="127.24.255.255",r=null!==(a=this.nextIpAddress)&&void 0!==a?a:t,[4,Oo(e,r,n)];case 1:return o=i.sent(),this.nextIpAddress=Bo(qo(o)+1),qo(this.nextIpAddress)>qo(n)&&(this.nextIpAddress=t),[2,o]}})})})]})})},t.prototype.forwardPort=function(e,t,n,r,o,a){return J(this,arguments,void 0,function(e,t,n,r,o,a,i,d,p){var l,s,u,m,c,v,h,f=this;return void 0===i&&(i=!0),void 0===p&&(p=!0),W(this,function(I){switch(I.label){case 0:if(l={
155
- Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},!i&&(s=this.canExecuteWithHostnames()).error)throw new Error("".concat(s.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(a,o,n,r,t,i,p)];case 1:return u=I.sent(),m="UDP"===t.protocol?new pi(e,l,u,this.agent):new di(e,l,d,u,this.agent),i?[3,3]:[4,this.registerHostnames(null===(h=m.bindTo)||void 0===h?void 0:h.address,n)];case 2:I.sent(),I.label=3;case 3:return m.on("connection-accept",function(){return f.emit("connection-accept",m)}),m.on("connection-close",function(){return J(f,void 0,void 0,function(){return W(this,function(e){return[2,this.emit("connection-close",m)]})})}),[4,m.open(p)];case 4:return c=I.sent(),v={projectId:a,id:o,type:r,hostnames:n,ipOnly:i,port:c.port,address:c.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort},this.emit("tunnel-open",m,v),
156
- m.on("connection-error",function(e){return f.emit("connection-error",m,v,e)}),m.on("tunnel-close",function(){return f.emit("tunnel-close",m,v)}),this.connections.push({tunnel:m,forwardingContext:v}),[2,{data:v}]}})})},t.prototype.determineSocketAddress=function(e,t,n,r,o,a,i){return J(this,void 0,void 0,function(){var d,p,l,s;return W(this,function(u){switch(u.label){case 0:return a&&"darwin"===f.platform()?i&&void 0!==(null==n?void 0:n[0])?(d="".concat(n[0],":").concat(o.internalPort,"/").concat(o.protocol),[2,{address:"127.0.0.1",port:this.consistentHostnameToPortHashing(d)}]):[2,void 0]:(p=this.connections.filter(function(n){return n.forwardingContext.projectId===e&&n.forwardingContext.id===t&&n.forwardingContext.type===r}),l=null==p?void 0:p.find(function(e){return n.find(function(t){return e.forwardingContext.hostnames.includes(t)})}),l?[2,{address:null==l?void 0:l.forwardingContext.address,port:o.internalPort}]:(s={},[4,this.allocateIpAddress(o.internalPort)]));case 1:
157
- return[2,(s.address=u.sent(),s.port=o.internalPort,s)]}})})},t.prototype.consistentHostnameToPortHashing=function(e){var t=E("sha256").update(e).digest("hex");return 3e4+parseInt(t.slice(0,8),16)%3e4},t.prototype.registerHostnames=function(e,t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,t),n.add.apply(n,$([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.unregisterHostnames=function(e,t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,$([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.modifyHostsFile=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return J(t,void 0,void 0,function(){var t,n=this;return W(this,function(r){switch(r.label){case 0:
158
- return[4,ea.load({header:"Northflank Proxy"})];case 1:return t=r.sent(),e(t),[4,t.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,jo(5)(function(){return J(n,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"atomic"})];case 1:return e.sent(),[2]}})})})];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,jo(5)(function(){return J(n,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"standard"})];case 1:return e.sent(),[2]}})})})];case 6:return r.sent(),[3,7];case 7:return[2]}})})})];case 1:return n.sent(),[2]}})})},t.prototype.stopProjectForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return t.forwardingContext.projectId===e.projectId}).map(function(e){return t.stopForwarding(e)}))];case 1:
159
- return n.sent(),[2]}})})},t.prototype.stopServiceForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"service"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stopAddonForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"addon"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stop=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:
160
- return[4,Promise.all(this.connections.map(function(t){return J(e,void 0,void 0,function(){return W(this,function(e){return[2,this.stopForwarding(t)]})})}))];case 1:return t.sent(),[2]}})})},t}(t),si=function(e){function t(t,n,r,a,i,d,p){void 0===i&&(i=new o.PassThrough),void 0===d&&(d=new o.PassThrough),void 0===p&&(p=new o.PassThrough);var l=e.call(this)||this;return l.baseUrl=t,l.execConfig=n,l.token=r,l.agent=a,l.stdOut=i,l.stdErr=d,l.stdIn=p,l.waitForCommandResult=function(){return J(l,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,e.sent()]}})})},l.sendInputToCurrentCommand=function(e){return J(l,void 0,void 0,function(){var t;return W(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running");return null===(t=this.duplex)||void 0===t||t.write(this.constructPayloadPacket(e)),[2]})})},
161
- l.resizeTerminal=function(e){return J(l,void 0,void 0,function(){var t;return W(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running, can't resize terminal");return null===(t=this.duplex)||void 0===t||t.write(JSON.stringify({type:"resize",data:{ttyRows:null==e?void 0:e.rows,ttyColumns:null==e?void 0:e.columns}})),[2]})})},l.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},l.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),l}return G(t,e),Object.defineProperty(t.prototype,"execEndpoint",{get:function(){var e=this.execConfig,t=e.entityId,n=e.entityType,r=e.projectId,o=e.teamId,a=void 0!==o?"teams/".concat(o,"/"):"",i="".concat(this.baseUrl,"/v1/command-exec/").concat(a,"projects/").concat(r,"/");return"".concat(i).concat(function(){switch(n){case"service":return"services/".concat(t);case"job":return"jobs/".concat(t);case"addon":return"addons/".concat(t);case"build":
162
- return"builds/".concat(t);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise(function(t,n){var r,o,a;if(void 0===e.remote){var i,d=!1,p=function(t){d?e.listenerCount("error")>0&&e.emit("error",new Error(t)):(d=!0,e.listenerCount("error")>0&&e.emit("error",new Error(t)),e.reset(),n(new Error(t)))};try{var l=e.execEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new ai(l,{agent:e.agent}),e.remote.on("error",function(e){p("WebSocket error: ".concat(e.message))}),e.remote.on("close",function(e,t){[1e3,1005].includes(e)||d||p("WebSocket closed unexpectedly: ".concat(e," ").concat(t||"(no reason)"))}),e.duplex=ei(e.remote)}catch(e){
163
- return void p("Failed to establish connection to command execution proxy: ".concat(e.message))}e.stdIn.on("data",function(t){var n;(null===(n=e.duplex)||void 0===n?void 0:n.writable)&&e.duplex.write(e.constructPayloadPacket(t))}),e.stdIn.on("end",function(){var t;(null===(t=e.duplex)||void 0===t?void 0:t.writable)&&e.duplex.write(e.stdInEndPacket)});null===(r=e.duplex)||void 0===r||r.on("data",function(t){var n,r,o,a,d;try{var l=JSON.parse(t.toString());switch(null==l?void 0:l.type){case"init":var s=l.data;"successful"!==s.auth?p("Command initialization failed: ".concat(null!==(n=null==s?void 0:s.message)&&void 0!==n?n:"Reason unknown")):e.emit("auth-success",s);break;case"completion":i=l.data,e.emit("command-result",i),null===(r=e.duplex)||void 0===r||r.end(),e.stdOut.end(),e.stdErr.end(),e.stdIn.end();break;case"stdOut":e.emit("std-out-data",l.data),e.stdOut.write(l.data,null===(o=e.execConfig)||void 0===o?void 0:o.encoding);break;case"stdErr":e.emit("std-err-data",l.data),
164
- e.stdErr.write(l.data,null===(a=e.execConfig)||void 0===a?void 0:a.encoding);break;case"error":p((null===(d=l.data)||void 0===d?void 0:d.message)||"Unknown error");break;default:var u="unable to parse message: ".concat(JSON.stringify(l));p(u)}}catch(e){p("Failed to parse message: ".concat(e.message))}}),null===(o=e.duplex)||void 0===o||o.on("end",function(){i?d||(d=!0,e.emit("command-completed"),e.reset(),t(i)):p("Connection closed before receiving command result")}),null===(a=e.duplex)||void 0===a||a.on("error",function(e){p("Duplex stream error: ".concat(e.message))}),e.initialAuth(),e.emit("command-started")}else n(Error("Command is already running"))}),[2,this.currentCommand]})})},t.prototype.initialAuth=function(){var e,t=this.execConfig,n=t.command,r=t.containerName,o=t.instanceName,a=t.shell,i=t.user,d=this.execConfig,p=d.group,l=d.encoding,s=d.tty,u=d.ttyColumns,m=d.ttyRows,c={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:o,containerName:r,
165
- command:n,shell:a,user:i,group:p,encoding:l,tty:s,ttyColumns:u,ttyRows:m}}};null===(e=this.duplex)||void 0===e||e.write(JSON.stringify(c))},t.prototype.reset=function(){var e;this.remote=void 0,this.currentCommand=void 0,null===(e=this.duplex)||void 0===e||e.destroy(),this.duplex=void 0},t}(t),ui=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.assertStartedWithNodejs=function(){if(!yo)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.serviceId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"service"},t),[2,this.execCommand(a)]})})},e.prototype.execServiceSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.serviceId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"service"
166
- },t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execJobCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.jobId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(a)]})})},e.prototype.execJobSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.jobId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"job"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execAddonCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.addonId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"addon"},t),[2,this.execCommand(a)]})})},e.prototype.execAddonSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){
167
- switch(d.label){case 0:return r=e.addonId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"addon"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execCommand=function(e){return J(this,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){switch(i.label){case 0:this.assertStartedWithNodejs(),t=this.getCommandRunner(z({shell:"none"},e)),n=new To,r=new To,i.label=1;case 1:return i.trys.push([1,3,,4]),t.stdOut.pipe(n),t.stdErr.pipe(r),o=new Promise(function(e,n){t.once("error",function(e){n(new Error("".concat(e.message||e)))})}),[4,Promise.race([t.start(),o])];case 2:return[2,{commandResult:i.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}];case 3:throw a=i.sent(),t.stdOut.unpipe(n),t.stdErr.unpipe(r),new Error("Command execution failed: ".concat(a instanceof Error?a.message:String(a)));case 4:return[2]}})})},e.prototype.shellSession=function(e,t){return J(this,void 0,void 0,function(){var n,r
168
- ;return W(this,function(o){switch(o.label){case 0:return this.assertStartedWithNodejs(),n=this.getCommandRunner(e),r=new Promise(function(e,r){n.once("auth-success",function(n){null==t||t(null==n?void 0:n.context),e()}),n.once("error",function(e){r(new Error("Shell session failed: ".concat(e.message||e)))});var o=setTimeout(function(){r(new Error("Shell session timed out waiting for auth-success"))},3e4);n.once("auth-success",function(){return clearTimeout(o)})}),n.start(),[4,r];case 1:return o.sent(),[2,n]}})})},e.prototype.getCommandRunner=function(e){var t=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new si(t,e,n,this.agent)},e}(),mi=Object.defineProperty,ci="object"==typeof process&&process?process:{stdout:null,stderr:null
169
- },vi=e=>!!e&&"object"==typeof e&&(e instanceof Xi||e instanceof a||hi(e)||fi(e)),hi=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.pipe&&e.pipe!==a.Writable.prototype.pipe,fi=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.write&&"function"==typeof e.end,Ii=Symbol("EOF"),wi=Symbol("maybeEmitEnd"),gi=Symbol("emittedEnd"),bi=Symbol("emittingEnd"),yi=Symbol("emittedError"),Ri=Symbol("closed"),ji=Symbol("read"),Ui=Symbol("flush"),Ci=Symbol("flushChunk"),Ei=Symbol("encoding"),_i=Symbol("decoder"),Si=Symbol("flowing"),Ni=Symbol("paused"),Ai=Symbol("resume"),ki=Symbol("buffer"),Pi=Symbol("pipes"),Ti=Symbol("bufferLength"),Di=Symbol("bufferPush"),Oi=Symbol("bufferShift"),xi=Symbol("objectMode"),Li=Symbol("destroyed"),qi=Symbol("error"),Bi=Symbol("emitData"),Vi=Symbol("emitEnd"),Fi=Symbol("emitEnd2"),Mi=Symbol("async"),Gi=Symbol("abort"),zi=Symbol("aborted"),Ji=Symbol("signal"),Wi=Symbol("dataListeners"),$i=Symbol("discarded"),Hi=e=>Promise.resolve().then(e),Zi=e=>e(),Yi=class{
170
- src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Ai](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ki=class extends Yi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit("error",e),e.on("error",this.proxyErrors)}},Xi=class extends A{[Si]=!1;[Ni]=!1;[Pi]=[];[ki]=[];[xi];[Ei];[Mi];[_i];[Ii]=!1;[gi]=!1;[bi]=!1;[Ri]=!1;[yi]=null;[Ti]=0;[Li]=!1;[Ji];[zi]=!1;[Wi]=0;[$i]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[xi]=!0,this[Ei]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[Ei]=t.encoding,this[xi]=!1):(this[xi]=!1,this[Ei]=null),this[Mi]=!!t.async,
171
- this[_i]=this[Ei]?new k(this[Ei]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[ki]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Pi]});let{signal:n}=t;n&&(this[Ji]=n,n.aborted?this[Gi]():n.addEventListener("abort",()=>this[Gi]()))}get bufferLength(){return this[Ti]}get encoding(){return this[Ei]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[xi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Mi]}set async(e){this[Mi]=this[Mi]||!!e}[Gi](){this[zi]=!0,this.emit("abort",this[Ji]?.reason),this.destroy(this[Ji]?.reason)}get aborted(){return this[zi]}set aborted(e){}write(e,t,n){if(this[zi])return!1;if(this[Ii])throw new Error("write after end")
172
- ;if(this[Li])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");let r=this[Mi]?Hi:Zi;if(!this[xi]&&!Buffer.isBuffer(e))if(o=e,!Buffer.isBuffer(o)&&ArrayBuffer.isView(o))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var o;return this[xi]?(this[Si]&&0!==this[Ti]&&this[Ui](!0),this[Si]?this.emit("data",e):this[Di](e),0!==this[Ti]&&this.emit("readable"),n&&r(n),this[Si]):e.length?("string"==typeof e&&!(t===this[Ei]&&!this[_i]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ei]&&(e=this[_i].write(e)),this[Si]&&0!==this[Ti]&&this[Ui](!0),this[Si]?this.emit("data",e):this[Di](e),
173
- 0!==this[Ti]&&this.emit("readable"),n&&r(n),this[Si]):(0!==this[Ti]&&this.emit("readable"),n&&r(n),this[Si])}read(e){if(this[Li])return null;if(this[$i]=!1,0===this[Ti]||0===e||e&&e>this[Ti])return this[wi](),null;this[xi]&&(e=null),this[ki].length>1&&!this[xi]&&(this[ki]=[this[Ei]?this[ki].join(""):Buffer.concat(this[ki],this[Ti])]);let t=this[ji](e||null,this[ki][0]);return this[wi](),t}[ji](e,t){if(this[xi])this[Oi]();else{let n=t;e===n.length||null===e?this[Oi]():"string"==typeof n?(this[ki][0]=n.slice(e),t=n.slice(0,e),this[Ti]-=e):(this[ki][0]=n.subarray(e),t=n.subarray(0,e),this[Ti]-=e)}return this.emit("data",t),!this[ki].length&&!this[Ii]&&this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[Ii]=!0,this.writable=!1,(this[Si]||!this[Ni])&&this[wi](),this}[Ai](){this[Li]||(!this[Wi]&&!this[Pi].length&&(this[$i]=!0),this[Ni]=!1,this[Si]=!0,this.emit("resume"),
174
- this[ki].length?this[Ui]():this[Ii]?this[wi]():this.emit("drain"))}resume(){return this[Ai]()}pause(){this[Si]=!1,this[Ni]=!0,this[$i]=!1}get destroyed(){return this[Li]}get flowing(){return this[Si]}get paused(){return this[Ni]}[Di](e){this[xi]?this[Ti]+=1:this[Ti]+=e.length,this[ki].push(e)}[Oi](){return this[xi]?this[Ti]-=1:this[Ti]-=this[ki][0].length,this[ki].shift()}[Ui](e=!1){do{}while(this[Ci](this[Oi]())&&this[ki].length);!e&&!this[ki].length&&!this[Ii]&&this.emit("drain")}[Ci](e){return this.emit("data",e),this[Si]}pipe(e,t){if(this[Li])return e;this[$i]=!1;let n=this[gi];return t=t||{},e===ci.stdout||e===ci.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[Pi].push(t.proxyErrors?new Ki(this,e,t):new Yi(this,e,t)),this[Mi]?Hi(()=>this[Ai]()):this[Ai]()),e}unpipe(e){let t=this[Pi].find(t=>t.dest===e);t&&(1===this[Pi].length?(this[Si]&&0===this[Wi]&&(this[Si]=!1),this[Pi]=[]):this[Pi].splice(this[Pi].indexOf(t),1),t.unpipe())}
175
- addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if("data"===e)this[$i]=!1,this[Wi]++,!this[Pi].length&&!this[Si]&&this[Ai]();else if("readable"===e&&0!==this[Ti])super.emit("readable");else if("end"!==(r=e)&&"finish"!==r&&"prefinish"!==r||!this[gi]){if("error"===e&&this[yi]){let e=t;this[Mi]?Hi(()=>e.call(this,this[yi])):e.call(this,this[yi])}}else super.emit(e),this.removeAllListeners(e);var r;return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return"data"===e&&(this[Wi]=this.listeners("data").length,0===this[Wi]&&!this[$i]&&!this[Pi].length&&(this[Si]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return("data"===e||void 0===e)&&(this[Wi]=0,!this[$i]&&!this[Pi].length&&(this[Si]=!1)),t}get emittedEnd(){return this[gi]}[wi](){!this[bi]&&!this[gi]&&!this[Li]&&0===this[ki].length&&this[Ii]&&(this[bi]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ri]&&this.emit("close"),this[bi]=!1)}emit(e,...t){
176
- let n=t[0];if("error"!==e&&"close"!==e&&e!==Li&&this[Li])return!1;if("data"===e)return!(!this[xi]&&!n)&&(this[Mi]?(Hi(()=>this[Bi](n)),!0):this[Bi](n));if("end"===e)return this[Vi]();if("close"===e){if(this[Ri]=!0,!this[gi]&&!this[Li])return!1;let e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[yi]=n,super.emit(qi,n);let e=!(this[Ji]&&!this.listeners("error").length)&&super.emit("error",n);return this[wi](),e}if("resume"===e){let e=super.emit("resume");return this[wi](),e}if("finish"===e||"prefinish"===e){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[wi](),r}[Bi](e){for(let t of this[Pi])!1===t.dest.write(e)&&this.pause();let t=!this[$i]&&super.emit("data",e);return this[wi](),t}[Vi](){return!this[gi]&&(this[gi]=!0,this.readable=!1,this[Mi]?(Hi(()=>this[Fi]()),!0):this[Fi]())}[Fi](){if(this[_i]){let e=this[_i].end();if(e){for(let t of this[Pi])t.dest.write(e);this[$i]||super.emit("data",e)}}
177
- for(let e of this[Pi])e.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[xi]||(e.dataLength=0);let t=this.promise();return this.on("data",t=>{e.push(t),this[xi]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[xi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ei]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Li,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[$i]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[Ii])return t();let r,o,a=e=>{this.off("data",i),this.off("end",d),this.off(Li,p),t(),o(e)},i=e=>{this.off("error",a),this.off("end",d),this.off(Li,p),this.pause(),r({value:e,done:!!this[Ii]})},d=()=>{
178
- this.off("error",a),this.off("data",i),this.off(Li,p),t(),r({done:!0,value:void 0})},p=()=>a(new Error("stream destroyed"));return new Promise((e,t)=>{o=t,r=e,this.once(Li,p),this.once("error",a),this.once("end",d),this.once("data",i)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[$i]=!1;let e=!1,t=()=>(this.pause(),this.off(qi,t),this.off(Li,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(qi,t),this.once(Li,t),{next:()=>{if(e)return t();let n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Li])return e?this.emit("error",e):this.emit(Li),this;this[Li]=!0,this[$i]=!0,this[ki].length=0,this[Ti]=0;return"function"==typeof this.close&&!this[Ri]&&this.close(),e?this.emit("error",e):this.emit(Li),this}static get isStream(){return vi}
179
- },Qi=b.writev,ed=Symbol("_autoClose"),td=Symbol("_close"),nd=Symbol("_ended"),rd=Symbol("_fd"),od=Symbol("_finished"),ad=Symbol("_flags"),id=Symbol("_flush"),dd=Symbol("_handleChunk"),pd=Symbol("_makeBuf"),ld=Symbol("_mode"),sd=Symbol("_needDrain"),ud=Symbol("_onerror"),md=Symbol("_onopen"),cd=Symbol("_onread"),vd=Symbol("_onwrite"),hd=Symbol("_open"),fd=Symbol("_path"),Id=Symbol("_pos"),wd=Symbol("_queue"),gd=Symbol("_read"),bd=Symbol("_readSize"),yd=Symbol("_reading"),Rd=Symbol("_remain"),jd=Symbol("_size"),Ud=Symbol("_write"),Cd=Symbol("_writing"),Ed=Symbol("_defaultFlag"),_d=Symbol("_errored"),Sd=class extends Xi{[_d]=!1;[rd];[fd];[bd];[yd]=!1;[jd];[Rd];[ed];constructor(e,t){if(super(t=t||{}),this.readable=!0,this.writable=!1,"string"!=typeof e)throw new TypeError("path must be a string");this[_d]=!1,this[rd]="number"==typeof t.fd?t.fd:void 0,this[fd]=e,this[bd]=t.readSize||16777216,this[yd]=!1,this[jd]="number"==typeof t.size?t.size:1/0,this[Rd]=this[jd],
180
- this[ed]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[rd]?this[gd]():this[hd]()}get fd(){return this[rd]}get path(){return this[fd]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[hd](){b.open(this[fd],"r",(e,t)=>this[md](e,t))}[md](e,t){e?this[ud](e):(this[rd]=t,this.emit("open",t),this[gd]())}[pd](){return Buffer.allocUnsafe(Math.min(this[bd],this[Rd]))}[gd](){if(!this[yd]){this[yd]=!0;let e=this[pd]();if(0===e.length)return process.nextTick(()=>this[cd](null,0,e));b.read(this[rd],e,0,e.length,null,(e,t,n)=>this[cd](e,t,n))}}[cd](e,t,n){this[yd]=!1,e?this[ud](e):this[dd](t,n)&&this[gd]()}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[ud](e){this[yd]=!0,this[td](),this.emit("error",e)}[dd](e,t){let n=!1;return this[Rd]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[Rd]<=0)&&(n=!1,this[td](),
181
- super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[rd]&&this[gd](),!1;case"error":return!this[_d]&&(this[_d]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}},Nd=class extends Sd{[hd](){let e=!0;try{this[md](null,b.openSync(this[fd],"r")),e=!1}finally{e&&this[td]()}}[gd](){let e=!0;try{if(!this[yd]){for(this[yd]=!0;;){let e=this[pd](),t=0===e.length?0:b.readSync(this[rd],e,0,e.length,null);if(!this[dd](t,e))break}this[yd]=!1}e=!1}finally{e&&this[td]()}}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.closeSync(e),this.emit("close")}}},Ad=class extends e{readable=!1;writable=!0;[_d]=!1;[Cd]=!1;[nd]=!1;[wd]=[];[sd]=!1;[fd];[ld];[ed];[rd];[Ed];[ad];[od]=!1;[Id];constructor(e,t){super(t=t||{}),this[fd]=e,this[rd]="number"==typeof t.fd?t.fd:void 0,this[ld]=void 0===t.mode?438:t.mode,this[Id]="number"==typeof t.start?t.start:void 0,this[ed]="boolean"!=typeof t.autoClose||t.autoClose
182
- ;let n=void 0!==this[Id]?"r+":"w";this[Ed]=void 0===t.flags,this[ad]=void 0===t.flags?n:t.flags,void 0===this[rd]&&this[hd]()}emit(e,...t){if("error"===e){if(this[_d])return!1;this[_d]=!0}return super.emit(e,...t)}get fd(){return this[rd]}get path(){return this[fd]}[ud](e){this[td](),this[Cd]=!0,this.emit("error",e)}[hd](){b.open(this[fd],this[ad],this[ld],(e,t)=>this[md](e,t))}[md](e,t){this[Ed]&&"r+"===this[ad]&&e&&"ENOENT"===e.code?(this[ad]="w",this[hd]()):e?this[ud](e):(this[rd]=t,this.emit("open",t),this[Cd]||this[id]())}end(e,t){return e&&this.write(e,t),this[nd]=!0,!this[Cd]&&!this[wd].length&&"number"==typeof this[rd]&&this[vd](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[nd]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[rd]||this[Cd]||this[wd].length?(this[wd].push(e),this[sd]=!0,!1):(this[Cd]=!0,this[Ud](e),!0)}[Ud](e){b.write(this[rd],e,0,e.length,this[Id],(e,t)=>this[vd](e,t))}[vd](e,t){
183
- e?this[ud](e):(void 0!==this[Id]&&"number"==typeof t&&(this[Id]+=t),this[wd].length?this[id]():(this[Cd]=!1,this[nd]&&!this[od]?(this[od]=!0,this[td](),this.emit("finish")):this[sd]&&(this[sd]=!1,this.emit("drain"))))}[id](){if(0===this[wd].length)this[nd]&&this[vd](null,0);else if(1===this[wd].length)this[Ud](this[wd].pop());else{let e=this[wd];this[wd]=[],Qi(this[rd],e,this[Id],(e,t)=>this[vd](e,t))}}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.close(e,e=>e?this.emit("error",e):this.emit("close"))}}},kd=class extends Ad{[hd](){let e;if(this[Ed]&&"r+"===this[ad])try{e=b.openSync(this[fd],this[ad],this[ld])}catch(e){if("ENOENT"===e?.code)return this[ad]="w",this[hd]();throw e}else e=b.openSync(this[fd],this[ad],this[ld]);this[md](null,e)}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.closeSync(e),this.emit("close")}}[Ud](e){let t=!0;try{this[vd](null,b.writeSync(this[rd],e,0,e.length,this[Id])),t=!1}finally{if(t)try{
184
- this[td]()}catch{}}}},Pd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),Td=e=>Pd.get(e)||e,Dd=(e={})=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e)){t[Td(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},Od=(e,t,n,r,o)=>Object.assign((a=[],i,d)=>{Array.isArray(a)&&(i=a,a={}),"function"==typeof i&&(d=i,i=void 0),i=i?Array.from(i):[];let p=Dd(a);if(o?.(p,i),(e=>!!e.sync&&!!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return e(p,i)}if((e=>!e.sync&&!!e.file)(p)){let e=t(p,i);return d?e.then(()=>d(),d):e}
185
- if((e=>!!e.sync&&!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return n(p,i)}if((e=>!e.sync&&!e.file)(p)){if("function"==typeof d)throw new TypeError("callback only supported with file option");return r(p,i)}throw new Error("impossible options??")},{syncFile:e,asyncFile:t,syncNoFile:n,asyncNoFile:r,validate:o}),xd=h.constants||{ZLIB_VERNUM:4736},Ld=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,
124
+ ;const s=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(t+u).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(n.size){const e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(s.push(`Sec-WebSocket-Protocol: ${e}`),c._protocol=e)}if(e[i.extensionName]){const t=e[i.extensionName].params,n=a.format({[i.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),c._extensions=e}this.emit("headers",s,r),d.write(s.concat("\r\n").join("\r\n")),d.removeListener("error",h),c.setSocket(d,p,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(v,this)})),l(c,r)}}}()
125
+ ;var ya="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,Ra=ya?bo:window.fetch,ja=function(e,t){return void 0===t&&(t=50),function(n){var r=e,o=function(){return J(void 0,void 0,void 0,function(){var e;return W(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,4]),[4,n()];case 1:return[2,a.sent()];case 2:if(e=a.sent(),r<=0)throw e;return r-=1,[4,new Promise(function(e){return setTimeout(function(){return e()},t)})];case 3:return a.sent(),[2,o()];case 4:return[2]}})})};return o()}};var Ua=function(e){return Array.isArray(e)?e:[e]},Ca=void 0!==globalThis.Bun;function Ea(e,t){if(Ca){var n=new globalThis.WebSocket(e);return{on:function(e,t){"open"===e?n.addEventListener("open",function(){return t()}):"message"===e?n.addEventListener("message",function(e){return t(e.data)}):"error"===e?n.addEventListener("error",function(){return t(new Error("WebSocket error"))}):"close"===e&&n.addEventListener("close",function(e){return t(e.code,e.reason)})},
126
+ send:function(e){return n.send(e)},close:function(e){return n.close(e)},terminate:function(){return n.close()},get readyState(){return n.readyState}}}var r=new ga(e,{agent:t});return{on:r.on.bind(r),send:function(e){return r.send(e)},close:function(e){return r.close(e)},terminate:function(){return r.terminate()},get readyState(){return r.readyState}}}var _a,Sa,Na,Aa,ka,Pa,Ta,Da=function(e,t){return J(void 0,void 0,void 0,function(){var n;return W(this,function(r){return n=Promise.resolve([]),[2,e.reduce(function(e,n){return e.then(function(e){return t(n).then(function(t){return e.push(t),e})})},n)]})})},Oa=function(e){function t(t){void 0===t&&(t=8192);var n=e.call(this)||this;return n.bufferDefaultSize=t,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}return G(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.getContentsAsString=function(e,t){void 0===e&&(e="utf8")
127
+ ;var n=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},t.prototype.adaptBuffer=function(e){if(this.buffer.length-this.size<e){var t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(n,0,0,this.size),this.buffer=n}},t.prototype._write=function(e,t,n){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,n()},t}(a.Writable),xa=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.getTeamScopePrefix=function(e){return void 0!==e?"teams/".concat(e,"/"):""}}return e.prototype.getServiceDetails=function(e,t,n){return J(this,void 0,void 0,function(){var r;return W(this,function(o){return r=this.getTeamScopePrefix(n),
128
+ [2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/").concat(r,"projects/").concat(e,"/services/").concat(t))]})})},e.prototype.getAddonDetails=function(e,t,n){return J(this,void 0,void 0,function(){var r;return W(this,function(o){return r=this.getTeamScopePrefix(n),[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/").concat(r,"projects/").concat(e,"/addons/").concat(t))]})})},e.prototype.fetch=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,i,d=this;return W(this,function(p){switch(p.label){case 0:return n="Error while trying to connect, please try again.",r=pr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},z(z({},t),{agent:this.agent})),[4,ja(2)(function(){return J(d,void 0,void 0,function(){return W(this,function(t){return[2,Ra(e,r)]})})}).catch(function(){throw new Error(n)})];case 1:
129
+ return(o=p.sent()).ok?[3,3]:[4,o.text()];case 2:a=p.sent(),i=n;try{i=JSON.parse(a)}catch(e){i=null!=a?a:n}finally{throw new Error(JSON.stringify(i))}case 3:return[4,o.json()];case 4:return[2,p.sent()]}})})},e}(),La=function(e,t,n){return J(void 0,void 0,void 0,function(){var r,o,a,i,d;return W(this,function(p){switch(p.label){case 0:if(r=Va(t||"127.0.0.1"),(o=Va(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===E.platform()&&(a=function(e){return J(void 0,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,Ba.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,p.label=1;case 1:return i<=o?(d=Fa(i),[4,qa(e,d)]):[3,6];case 2:return p.sent()?a?[4,a(d)]:[3,4]:[3,5];case 3:p.sent(),p.label=4;case 4:return[2,d];case 5:return i+=1,[3,1];case 6:
130
+ throw new Error("Not possible to assign port '".concat(e,"' 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."))}})})},qa=function(e,t){return new Promise(function(n){var r=new w,o=!1;r.on("connect",function(){o=!0,r.destroy()}),r.setTimeout(400),r.on("timeout",function(){o=!1,r.destroy()}),r.on("error",function(){o=!1}),r.on("close",function(){n(!o)}),t?r.connect(e,t):r.connect(e)})},Ba=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return J(void 0,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return[4,Ma("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}})})},Va=function(e){var t=e.split(".").reverse();if(4!==t.length)throw new Error("Invalid ip address: ".concat(e));for(var n=0,r=0;r<4;r+=1){var o=Number.parseInt(t[r],10);if(o<0||o>255)throw new Error("Invalid ip address: ".concat(e));n+=o<<8*r}
131
+ return n},Fa=function(e){if(!Number.isSafeInteger(e))throw new Error("Number is not an integer");if(e<0||e>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var t=[],n=0;n<4;n+=1)t.push(e>>8*n&255);return t.reverse().join(".")},Ma=function(e,t,n){var o=r(e,t,z({windowsHide:!0},n)),a=new Promise(function(n,r){var a="",i="";o.stdout&&o.stdout.on("data",function(e){a+=e}),o.stderr&&o.stderr.on("data",function(e){i+=e}),o.on("close",function(o){var d={code:o,stdout:a,stderr:i};if(0!==o){var p="Error during execution of command '".concat(e," ").concat(t.join(" "),"': ").concat(i);r({message:p,result:d})}else n(d)})});return{process:o,resultPromise:a}},Ga=function(e,t,n){return J(void 0,void 0,void 0,function(){var r,o;return W(this,function(a){switch(a.label){case 0:return r=za(e,10),[4,R.promises.writeFile(r,t,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,6]),[4,R.promises.rename(r,e)];case 3:return a.sent(),[3,6];case 4:return o=a.sent(),
132
+ [4,R.promises.unlink(r).catch(function(){})];case 5:throw a.sent(),o;case 6:return[2]}})})},za=function(e,t){for(var n=function(e){return $([],Array(e),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},r=j.dirname(e),o=j.basename(e),a=0;a<t;a+=1){var i=n(16),d=".".concat(i,".").concat(o),p=j.join(r,d);if(!R.existsSync(p))return p}throw new Error("Could not write file to file '".concat(e,"'."))},Ja="win32"===process.platform?"\r\n":"\n",Wa=function(){function e(e,t){this.nodes=e,this.config=t}return e.prototype.add=function(e,t,n){var r=this;if(0===t.length)return this;var o=this.findOrCreateEntry(e,n);return t.forEach(function(e){if(!o.hosts.find(function(t){return t.host===e})){var t=1;0===o.hosts.length&&(t=r.config.indent-"".concat(o.ipPrefixWhitespace).concat(o.ip).length),o.hosts.push({whitespace:" ".repeat(t<1?1:t),host:e})}}),this},e.prototype.remove=function(e,t){var n=this;return this.findEntries(e).forEach(function(e){t.forEach(function(t){
133
+ var r=e.hosts.findIndex(function(e){return e.host===t});r<0||(0===r&&void 0!==e.hosts[1]&&(e.hosts[1].whitespace=e.hosts[0].whitespace),e.hosts.splice(r,1),0===e.hosts.length&&n.removeEntry(e))})}),this},e.prototype.removeHosts=function(e){var t=this;Qa(this.nodes,"entry").forEach(function(n){t.remove(n.ip,e)})},e.prototype.removeIps=function(e){var t=this;return e.forEach(function(e){t.findEntries(e).forEach(function(e){return t.removeEntry(e)})}),this},e.prototype.resolveHosts=function(e){return nr(this.findEntries(e),function(e){return e.hosts.map(function(e){return e.host})})},e.prototype.resolveIps=function(e){return Qa(this.nodes,"entry").filter(function(t){return t.hosts.some(function(t){return t.host===e})}).map(function(e){return e.ip})},e.prototype.toString=function(){return Ya(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||ae(t)&&"[object Number]"==oe(t)?e:this.nodes.findIndex(function(t){return t===e})
134
+ ;n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return Qa(this.nodes,"entry").filter(function(t){return t.ip===e})},e.prototype.findOrCreateEntry=function(e,t){var n=this.findEntries(e)[0];if(n)return n;var r=this.makeEntry(e);if(t){var o=Za(t),a=this.nodes.findIndex(function(e){return"comment"===e.type&&e.line===o});if(a>=0)this.insertAt(a+1,r);else{var i="blank"!==this.nodes[this.nodes.length-1].type?[$a(),Ha(o),r]:[Ha(o),r];this.insertAt.apply(this,$([this.nodes.length],i,!1))}}else this.insertAt(this.nodes.length,r);return r},e.prototype.insertAt=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.nodes).splice.apply(t,$([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return z({type:"entry",ip:e,ipPrefixWhitespace:n,hosts:[]},t)},e.fromNodes=function(t,n){var r,o;return new e(t.filter(function(e){return"eol"!==e.type}),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){
135
+ var e,n=Qa(t,"eol").map(function(e){return e.line});return null!==(e=ei(n))&&void 0!==e?e:Ja}(),indent:null!==(o=null==n?void 0:n.indent)&&void 0!==o?o:function(){var e,n=nr(Qa(t,"entry"),function(e){var t=e.ipPrefixWhitespace,n=e.ip,r=e.hosts[0];return r?["".concat(t).concat(n).concat(r.whitespace).length]:[]});return null!==(e=ei(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Ka(e),t)},e}(),$a=function(){return{type:"blank",line:""}},Ha=function(e){return{type:"comment",line:Za(e)}},Za=function(e){return e.startsWith("#")?e:"# ".concat(e)},Ya=function(e,t){return e.map(function(e){switch(e.type){case"entry":var t=e.hosts.map(function(e){var t=e.whitespace,n=e.host;return"".concat(t).concat(n)}).join("");return"".concat(e.ipPrefixWhitespace).concat(e.ip).concat(t);case"blank":case"comment":case"invalid":return e.line;default:return""}}).join(null!=t?t:Ja)},Ka=function(e){return e.split(/(\r?\n)/).map(function(e){return function(e){
136
+ return e.match(/^\s*#.*$/)}(e)?{type:"comment",line:e}:function(e){return e.match(/^(\r?\n)$/)}(e)?{type:"eol",line:e}:function(e){return e.match(/^\s*$/)}(e)?{type:"blank",line:e}:Xa(e)})},Xa=function(e){var t=e.match(/^(\s*)(\S+)(.+)?$/);if(!t)return{type:"invalid",line:e};var n=t[1],r=t[2],o=t.slice(3),a=!1,i=nr(o.filter(function(e){return void 0!==e}),function(e){var t=e.match(/(\s+)(\S+)/g);return t?t.map(function(e){var t=e.match(/^(\s+)(\S+)$/);t||(a=!0);var n=null!=t?t:[];return{whitespace:n[1],host:n[2]}}):(a=!0,[])});return a?{type:"invalid",line:e}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:i}},Qa=function(e,t){return e.filter(function(e){return e.type===t})},ei=function(e){var t=new Map;e.forEach(function(e){var n;t.set(e,(null!==(n=t.get(e))&&void 0!==n?n:0)+1)});var n=ir(Array.from(t.entries()),function(e){return e[1]});if(n)return n[0]},ti="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",ni=function(){function e(e){
137
+ this.ast=Wa.fromNodes([]);var t={writeMode:"atomic",hostsFile:ti};this.config=z(z({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.add(e,t,this.config.header),this},e.prototype.remove=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.remove(e,t),this},e.prototype.removeHosts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),
138
+ this.ast.removeHosts(e),this},e.prototype.removeIps=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."))}),this.ast.removeIps(e),this},e.prototype.read=function(){return J(this,void 0,void 0,function(){var e;return W(this,function(t){switch(t.label){case 0:return[4,R.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=Wa.parse(e.toString(),this.config),[2,this]}})})},e.prototype.write=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:switch(t=z(z({},this.config),e),n=t.hostsFile,r=t.writeMode,o=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,Ga(n,o)];case 2:case 4:return a.sent(),[3,6];case 3:return[4,R.promises.writeFile(n,o)];case 5:return[3,6];case 6:return[2,this]}})})},
139
+ e.prototype.backup=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:return R.existsSync(this.config.hostsFile)?(t=j.dirname(this.config.hostsFile),n=j.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),o=j.resolve(t,r),R.existsSync(o)&&!e.rewrite?[3,2]:[4,R.promises.copyFile(this.config.hostsFile,o)]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.load=function(t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}})})},e}(),ri=function(){function e(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(e.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),e.prototype.enter=function(e){return J(this,void 0,void 0,function(){var t,n=this;return W(this,function(r){return this._queueLength+=1,t=this.previousPromise.then(function(){
140
+ return n._queueLength-=1,e()},function(){return n._queueLength-=1,e()}),this.previousPromise=t,[2,t]})})},e}(),oi={exports:{}};function ai(){if(Na)return oi.exports;Na=1;var e=(Sa||(Sa=1,_a=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),o=e[e.length-1];return"function"==typeof r&&r!==o&&Object.keys(o).forEach(function(e){r[e]=o[e]}),r}}),_a);function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function n(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}return oi.exports=e(t),oi.exports.strict=e(n),t.proto=t(function(){
141
+ Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}),oi.exports}function ii(){if(ka)return Aa;ka=1;var e=ai(),t=function(){},n=lr.Bare?queueMicrotask:process.nextTick.bind(process),r=function(o,a,i){if("function"==typeof a)return r(o,null,a);a||(a={}),i=e(i||t);var d=o._writableState,p=o._readableState,l=a.readable||!1!==a.readable&&o.readable,s=a.writable||!1!==a.writable&&o.writable,u=!1,m=function(){o.writable||c()},c=function(){s=!1,l||i.call(o)},v=function(){l=!1,s||i.call(o)},h=function(e){i.call(o,e?new Error("exited with error code: "+e):null)},f=function(e){i.call(o,e)},I=function(){n(w)},w=function(){if(!u)return(!l||p&&p.ended&&!p.destroyed)&&(!s||d&&d.ended&&!d.destroyed)?void 0:i.call(o,new Error("premature close"))},g=function(){o.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort
142
+ }(o)?s&&!d&&(o.on("end",m),o.on("close",m)):(o.on("complete",c),o.on("abort",I),o.req?g():o.on("request",g)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(o)&&o.on("exit",h),o.on("end",v),o.on("finish",c),!1!==a.error&&o.on("error",f),o.on("close",I),function(){u=!0,o.removeListener("complete",c),o.removeListener("abort",I),o.removeListener("request",g),o.req&&o.req.removeListener("finish",c),o.removeListener("end",m),o.removeListener("close",m),o.removeListener("finish",c),o.removeListener("exit",h),o.removeListener("end",v),o.removeListener("error",f),o.removeListener("close",I)}};return Aa=r}var di=function(){if(Ta)return Pa;Ta=1;var e,t=ai(),n=ii();try{e=require("fs")}catch(e){}var r=function(){},o="undefined"!=typeof process&&/^v?\.0/.test(process.version),a=function(e){return"function"==typeof e},i=function(i,d,p,l){l=t(l);var s=!1;i.on("close",function(){s=!0}),n(i,{readable:d,writable:p},function(e){if(e)return l(e);s=!0,l()});var u=!1
143
+ ;return function(t){if(!s&&!u)return u=!0,function(t){return!!o&&!!e&&(t instanceof(e.ReadStream||r)||t instanceof(e.WriteStream||r))&&a(t.close)}(i)?i.close(r):function(e){return e.setHeader&&a(e.abort)}(i)?i.abort():a(i.destroy)?i.destroy():void l(t||new Error("stream was destroyed"))}},d=function(e){e()},p=function(e,t){return e.pipe(t)};return Pa=function(){var e,t=Array.prototype.slice.call(arguments),n=a(t[t.length-1]||r)&&t.pop()||r;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var o=t.map(function(r,a){var p=a<t.length-1;return i(r,p,a>0,function(t){e||(e=t),t&&o.forEach(d),p||(o.forEach(d),n(e))})});return t.reduce(p)},Pa}(),pi=sr(di),li=function(e){function t(t,n,r,o,a,i){void 0===i&&(i=5e3);var d=e.call(this)||this;d.endpoint=t,d.headers=n,d.rewriteHostHeader=r,d.bindToAssign=o,d.agent=a,d.closeTimeout=i,d.protocol="TCP",d.openConnections=new Set,d.tcpServer=f.createServer(d.handleConnection.bind(d))
144
+ ;var p=null==r?void 0:r.altHostnames.map(function(e){return(t=qt(t=e))&&er.test(t)?t.replace(Qn,"\\$&"):t;var t}).join("|");return d.hostRegex=new RegExp("Host: (?:".concat(p,")(:.*$|$)"),"im"),d}return G(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),W(this,function(n){return[2,new Promise(function(n){if(t.bindToAssign){var r=t.bindToAssign,o=r.port,a=r.address,i=!1;e&&t.tcpServer.once("error",function(e){if("EADDRINUSE"!==e.code&&"EACCES"!==e.code)throw e;i=!0,t.tcpServer.listen(0,a,function(){var e=t.tcpServer.address().port;t.boundTo={address:a,port:e},t.emit("tunnel-open",{address:a,port:e}),n({address:a,port:e})})}),t.tcpServer.listen(o,a,function(){i||(t.emit("tunnel-open",{address:a,port:o}),n({address:a,port:o}))})}else t.tcpServer.listen(0,function(){
145
+ var e=t.tcpServer.address(),r=e.address,o=e.port,a="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:a,port:o},t.emit("tunnel-open",t.boundTo),n(t.boundTo)})})]})})},t.prototype.close=function(){return J(this,void 0,void 0,function(){var e,t=this;return W(this,function(n){switch(n.label){case 0:return e=!1,[4,Promise.race([new Promise(function(n){t.tcpServer.close(function(){e=!0,t.emit("tunnel-close"),n()})}),new Promise(function(n){new Promise(function(e){return setTimeout(e,t.closeTimeout)}).then(function(){e||(t.openConnections.forEach(function(e){e.destroy(),t.openConnections.delete(e)}),n())})})])];case 1:return n.sent(),[2]}})})},t.prototype.handleConnection=function(e){var t=this;this.openConnections.add(e);var n=this.endpoint.replace("https:","wss:"),r=new ga(n,{headers:this.headers,agent:this.agent}),o=va(r),a=this.getHeaderTransform();this.rewriteHostHeader&&a?pi(e,a,o):pi(e,o),pi(o,e),r.on("close",function(e,n,r){t.emit("connection-close",e,n,r)}),
146
+ o.on("error",function(e){t.emit("connection-error",e)}),e.on("error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t.prototype.getHeaderTransform=function(){var e=function(e,t,n){var r=Buffer.from(n),o=Buffer.from(e);return t.forEach(function(e){o=function(e,t,n){var r=Buffer.from(t),o=e.indexOf(r);if(-1===o)return e;var a=e.subarray(0,o),i=e.subarray(o+r.length);return Buffer.concat([a,n,i])}(o,e,r)}),o};if(this.rewriteHostHeader){var t=this.rewriteHostHeader,n=t.targetHostname,r=t.altHostnames,o=this.hostRegex;return new i({transform:function(t,a,i){var d=t.toString();if(d.split("\n",1)[0].includes("HTTP")&&o.test(d)){var p=r.map(function(e){return"Host: ".concat(e)});i(null,e(t,p,"Host: ".concat(n)))}else i(null,t)}})}},t}(t),si=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.endpoint=t,a.headers=n,a.bindToAssign=r,a.agent=o,a.protocol="UDP",a.udpSocket=N.createSocket("udp4"),a.handleConnection(),a}return G(t,e),
147
+ Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),W(this,function(n){return[2,new Promise(function(n){if(t.bindToAssign){var r=t.bindToAssign,o=r.port,a=r.address,i=!1;e&&t.udpSocket.once("error",function(e){if("EADDRINUSE"!==e.code)throw e;t.udpSocket.bind(0,a,function(){i=!0;var e=t.udpSocket.address().port;t.boundTo={address:a,port:e},t.emit("tunnel-open",{address:a,port:e}),n({address:a,port:e})})}),t.udpSocket.bind(o,a,function(){i||(i=!0,t.boundTo={address:a,port:o},t.emit("tunnel-open",{address:a,port:o}),n({address:a,port:o}))})}else t.udpSocket.bind(0,function(){var e=t.udpSocket.address(),r=e.address,o=e.port,a="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:a,port:o},t.emit("tunnel-open",t.boundTo),n(t.boundTo)})})]})})},t.prototype.close=function(){
148
+ return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){e.udpSocket.close(function(){e.emit("tunnel-close"),t()})})];case 1:return t.sent(),[2]}})})},t.prototype.handleConnection=function(){var e,t=this,n=this.endpoint.replace("https:","wss:"),r=new ga(n,{headers:this.headers,agent:this.agent}),o=va(r);this.udpSocket.on("message",function(t,n){e=n,o.write(t)}),o.on("data",function(n){e&&t.udpSocket.send(n,e.port,e.address,function(e){e&&t.emit("connection-error",e)})}),this.udpSocket.on("error",function(e){t.emit("connection-error",e)}),o.on("error",function(e){t.emit("connection-error",e)}),r.on("connection-close",function(e,n,r){t.emit("connection-close",e,n,r)}),r.on("connection-error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t}(t),ui=function(e){function t(t,r,o,a){var i=e.call(this)||this;return i.contextProvider=t,i.listServices=r,i.listAddons=o,i.agent=a,
149
+ i.connections=[],i.hostsFileMutex=new ri,i.ipAllocationMutex=new ri,i.stopForwarding=function(e){return J(i,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){switch(p.label){case 0:return[4,e.tunnel.close()];case 1:return p.sent(),t=e.forwardingContext,n=t.projectId,r=t.type,o=t.id,a=t.hostnames,i=t.ipOnly,a.length>0&&!i?[4,this.unregisterHostnames(null===(d=e.tunnel.bindTo)||void 0===d?void 0:d.address,a)]:[3,3];case 2:p.sent(),p.label=3;case 3:return this.connections.splice(this.connections.findIndex(function(e){var t=e.forwardingContext,a=t.type,i=t.id,d=t.projectId;return i===o&&d===n&&a===r}),1),[2]}})})},i.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,message:"You are not running this command with sufficient privileges (uid=".concat(null===(e=null===process||void 0===process?void 0:process.getuid)||void 0===e?void 0:e.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"
150
+ }:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return n("fltmc"),!0}catch(e){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var e},i.assertStartedWithNodejs=function(){if(!ya)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new xa(t,a),i}return G(t,e),t.prototype.withProjectForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardProject(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopProjectForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardProject=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d=this
151
+ ;return void 0===t&&(t=!0),W(this,function(p){switch(p.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=p.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return o=p.sent(),[4,Promise.all(r.data.services.map(function(e){return J(d,void 0,void 0,function(){return W(this,function(r){return[2,this.forwardService({projectId:n,serviceId:e.id},t)]})})}))];case 3:return a=p.sent(),[4,Promise.all(o.data.addons.map(function(e){return J(d,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:e.id},t)];case 1:return[2,r.sent()]}})})}))];case 4:return i=p.sent(),[2,{services:a,addons:i}]}})})},t.prototype.withServiceForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardService(e,n)];case 1:r=o.sent(),o.label=2;case 2:
152
+ return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopServiceForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardService=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p,l,s,u,m,c,v=this;return void 0===t&&(t=!0),W(this,function(h){switch(h.label){case 0:return this.assertStartedWithNodejs(),n=e.teamId,r=e.projectId,o=e.serviceId,a=e.instanceId,i=e.portsFilter,[4,this.proxyApiClient.getServiceDetails(r,o,n)];case 1:return d=h.sent(),p=d.namespace,l=d.targetDomain,s=d.instances,u=d.ports,0===s.length?[2,[]]:(m=function(e){var i=s.map(function(e){return e.podName});if(void 0!==a&&!i.includes(a))throw new Error("Instance id not found: ".concat(a,". Expected one of [").concat(i.join(", "),"]. Ensure that requested instance id is running on service ").concat(o," in project ").concat(r,"."))
153
+ ;var d,u=v.proxyApiClient.getTeamScopePrefix(n),m=void 0!==a?"?directConnect=true":"",c="https://".concat(l,"/tunnel/").concat(u,"projects/").concat(r,"/services/").concat(o,"/instance/").concat(null!=a?a:s[0].podName,"/port/").concat(e.internalPort).concat(m),h=void 0!==a?"".concat(a,"."):"",f="".concat(h).concat(o,".").concat(p,".svc.cluster.local"),I=["".concat(h).concat(o)];e.name&&I.push("".concat(h).concat(e.name,".").concat(o)),"HTTP"===e.protocol&&(d={altHostnames:I,targetHostname:f});var w=$([f],I,!0);return v.forwardPort(c,e,w,"service",o,r,t,d)},c=void 0===i?u:u.filter(function(e){return i.includes(e.internalPort)}),[4,Da(c,m)]);case 2:return[2,h.sent()]}})})},t.prototype.withAddonForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardAddon(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:
154
+ return[4,this.stopAddonForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardAddon=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p=this;return void 0===t&&(t=!0),W(this,function(l){switch(l.label){case 0:return this.assertStartedWithNodejs(),n=e.teamId,r=e.addonId,o=e.projectId,[4,this.proxyApiClient.getAddonDetails(o,r,n)];case 1:return a=l.sent(),i=a.instances.map(function(e){var t=e.podName,n=e.internalHostname;return e.ports.map(function(e){return{podName:t,internalHostname:n,port:e}})}),d=this.proxyApiClient.getTeamScopePrefix(n),[4,Da((s=i,null!=s&&s.length?Jt(s,rr):[]),function(e){return J(p,[e],void 0,function(e){var n,i=e.podName,p=e.internalHostname,l=e.port;return W(this,function(e){return n="https://".concat(a.targetDomain,"/tunnel/").concat(d,"projects/").concat(o,"/addons/").concat(r,"/instance/").concat(i,"/port/").concat(l.internalPort),[2,this.forwardPort(n,l,[p],"addon",r,o,t)]})})})];case 2:return[2,l.sent()]}
155
+ var s})})},t.prototype.allocateIpAddress=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return J(t,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){switch(i.label){case 0:return t="127.24.1.1",n="127.24.255.255",r=null!==(a=this.nextIpAddress)&&void 0!==a?a:t,[4,La(e,r,n)];case 1:return o=i.sent(),this.nextIpAddress=Fa(Va(o)+1),Va(this.nextIpAddress)>Va(n)&&(this.nextIpAddress=t),[2,o]}})})})]})})},t.prototype.forwardPort=function(e,t,n,r,o,a){return J(this,arguments,void 0,function(e,t,n,r,o,a,i,d,p){var l,s,u,m,c,v,h,f=this;return void 0===i&&(i=!0),void 0===p&&(p=!0),W(this,function(I){switch(I.label){case 0:if(l={Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},
156
+ !i&&(s=this.canExecuteWithHostnames()).error)throw new Error("".concat(s.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(a,o,n,r,t,i,p)];case 1:return u=I.sent(),m="UDP"===t.protocol?new si(e,l,u,this.agent):new li(e,l,d,u,this.agent),i?[3,3]:[4,this.registerHostnames(null===(h=m.bindTo)||void 0===h?void 0:h.address,n)];case 2:I.sent(),I.label=3;case 3:return m.on("connection-accept",function(){return f.emit("connection-accept",m)}),m.on("connection-close",function(){return J(f,void 0,void 0,function(){return W(this,function(e){return[2,this.emit("connection-close",m)]})})}),[4,m.open(p)];case 4:return c=I.sent(),v={projectId:a,id:o,type:r,hostnames:n,ipOnly:i,port:c.port,address:c.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort},this.emit("tunnel-open",m,v),m.on("connection-error",function(e){return f.emit("connection-error",m,v,e)
157
+ }),m.on("tunnel-close",function(){return f.emit("tunnel-close",m,v)}),this.connections.push({tunnel:m,forwardingContext:v}),[2,{data:v}]}})})},t.prototype.determineSocketAddress=function(e,t,n,r,o,a,i){return J(this,void 0,void 0,function(){var d,p,l,s;return W(this,function(u){switch(u.label){case 0:return a&&"darwin"===E.platform()?i&&void 0!==(null==n?void 0:n[0])?(d="".concat(n[0],":").concat(o.internalPort,"/").concat(o.protocol),[2,{address:"127.0.0.1",port:this.consistentHostnameToPortHashing(d)}]):[2,void 0]:(p=this.connections.filter(function(n){return n.forwardingContext.projectId===e&&n.forwardingContext.id===t&&n.forwardingContext.type===r}),l=null==p?void 0:p.find(function(e){return n.find(function(t){return e.forwardingContext.hostnames.includes(t)})}),l?[2,{address:null==l?void 0:l.forwardingContext.address,port:o.internalPort}]:(s={},[4,this.allocateIpAddress(o.internalPort)]));case 1:return[2,(s.address=u.sent(),s.port=o.internalPort,s)]}})})},
158
+ t.prototype.consistentHostnameToPortHashing=function(e){var t=y("sha256").update(e).digest("hex");return 3e4+parseInt(t.slice(0,8),16)%3e4},t.prototype.registerHostnames=function(e,t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,t),n.add.apply(n,$([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.unregisterHostnames=function(e,t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,$([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.modifyHostsFile=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return J(t,void 0,void 0,function(){var t,n=this;return W(this,function(r){switch(r.label){case 0:return[4,ni.load({header:"Northflank Proxy"})];case 1:return t=r.sent(),
159
+ e(t),[4,t.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,ja(5)(function(){return J(n,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"atomic"})];case 1:return e.sent(),[2]}})})})];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,ja(5)(function(){return J(n,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"standard"})];case 1:return e.sent(),[2]}})})})];case 6:return r.sent(),[3,7];case 7:return[2]}})})})];case 1:return n.sent(),[2]}})})},t.prototype.stopProjectForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return t.forwardingContext.projectId===e.projectId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stopServiceForwarding=function(e){
160
+ return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"service"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stopAddonForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"addon"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stop=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.connections.map(function(t){return J(e,void 0,void 0,function(){
161
+ return W(this,function(e){return[2,this.stopForwarding(t)]})})}))];case 1:return t.sent(),[2]}})})},t}(t),mi=function(e){function t(t,n,r,a,i,d,p){void 0===i&&(i=new o.PassThrough),void 0===d&&(d=new o.PassThrough),void 0===p&&(p=new o.PassThrough);var l=e.call(this)||this;return l.baseUrl=t,l.execConfig=n,l.token=r,l.agent=a,l.stdOut=i,l.stdErr=d,l.stdIn=p,l.waitForCommandResult=function(){return J(l,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,e.sent()]}})})},l.sendInputToCurrentCommand=function(e){return J(l,void 0,void 0,function(){return W(this,function(t){if(void 0===this.currentCommand||void 0===this.remote)throw new Error("No command is running");return this.remote.send(this.constructPayloadPacket(e)),[2]})})},l.resizeTerminal=function(e){return J(l,void 0,void 0,function(){return W(this,function(t){
162
+ if(void 0===this.currentCommand||void 0===this.remote)throw new Error("No command is running, can't resize terminal");return this.remote.send(JSON.stringify({type:"resize",data:{ttyRows:null==e?void 0:e.rows,ttyColumns:null==e?void 0:e.columns}})),[2]})})},l.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},l.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),l}return G(t,e),Object.defineProperty(t.prototype,"execEndpoint",{get:function(){var e=this.execConfig,t=e.entityId,n=e.entityType,r=e.projectId,o=e.teamId,a=void 0!==o?"teams/".concat(o,"/"):"",i="".concat(this.baseUrl,"/v1/command-exec/").concat(a,"projects/").concat(r,"/");return"".concat(i).concat(function(){switch(n){case"service":return"services/".concat(t);case"job":return"jobs/".concat(t);case"addon":return"addons/".concat(t);case"build":return"builds/".concat(t);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}
163
+ }())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise(function(t,n){if(void 0===e.remote){var r,o=!1,a=function(t){o?e.listenerCount("error")>0&&e.emit("error",new Error(t)):(o=!0,e.listenerCount("error")>0&&e.emit("error",new Error(t)),e.reset(),n(new Error(t)))};try{var i=e.execEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=Ea(i,e.agent)}catch(e){return void a("Failed to establish connection to command execution proxy: ".concat(e.message))}e.remote.on("error",function(e){a("WebSocket error: ".concat(e.message))}),e.remote.on("close",function(n,i){[1e3,1005].includes(n)||o?r||o?o||(o=!0,e.emit("command-completed"),e.reset(),t(r)):a("Connection closed before receiving command result"):a("WebSocket closed unexpectedly: ".concat(n," ").concat(i||"(no reason)"))})
164
+ ;e.stdIn.on("data",function(t){var n;1===(null===(n=e.remote)||void 0===n?void 0:n.readyState)&&e.remote.send(e.constructPayloadPacket(t))}),e.stdIn.on("end",function(){var t;1===(null===(t=e.remote)||void 0===t?void 0:t.readyState)&&e.remote.send(e.stdInEndPacket)}),e.remote.on("message",function(t){var n,o,i,d,p;try{var l=JSON.parse(t.toString());switch(null==l?void 0:l.type){case"init":var s=l.data;"successful"!==s.auth?a("Command initialization failed: ".concat(null!==(n=null==s?void 0:s.message)&&void 0!==n?n:"Reason unknown")):e.emit("auth-success",s);break;case"completion":r=l.data,e.emit("command-result",r),e.stdOut.end(),e.stdErr.end(),e.stdIn.end(),null===(o=e.remote)||void 0===o||o.close(1e3);break;case"stdOut":e.emit("std-out-data",l.data),e.stdOut.write(l.data,null===(i=e.execConfig)||void 0===i?void 0:i.encoding);break;case"stdErr":e.emit("std-err-data",l.data),e.stdErr.write(l.data,null===(d=e.execConfig)||void 0===d?void 0:d.encoding);break;case"error":
165
+ a((null===(p=l.data)||void 0===p?void 0:p.message)||"Unknown error");break;default:var u="unable to parse message: ".concat(JSON.stringify(l));a(u)}}catch(e){a("Failed to parse message: ".concat(e.message))}}),e.remote.on("open",function(){e.initialAuth(),e.emit("command-started")})}else n(Error("Command is already running"))}),[2,this.currentCommand]})})},t.prototype.initialAuth=function(){var e,t=this.execConfig,n=t.command,r=t.containerName,o=t.instanceName,a=t.shell,i=t.user,d=this.execConfig,p=d.group,l=d.encoding,s=d.tty,u=d.ttyColumns,m=d.ttyRows,c={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:o,containerName:r,command:n,shell:a,user:i,group:p,encoding:l,tty:s,ttyColumns:u,ttyRows:m}}};null===(e=this.remote)||void 0===e||e.send(JSON.stringify(c))},t.prototype.reset=function(){var e;null===(e=this.remote)||void 0===e||e.terminate(),this.remote=void 0,this.currentCommand=void 0},t}(t),ci=function(){function e(e,t){this.contextProvider=e,
166
+ this.agent=t,this.assertStartedWithNodejs=function(){if(!ya)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.serviceId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"service"},t),[2,this.execCommand(a)]})})},e.prototype.execServiceSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.serviceId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"service"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execJobCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.jobId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(a)]})})},
167
+ e.prototype.execJobSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.jobId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"job"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execAddonCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.addonId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"addon"},t),[2,this.execCommand(a)]})})},e.prototype.execAddonSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.addonId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"addon"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execCommand=function(e){return J(this,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){switch(i.label){
168
+ case 0:this.assertStartedWithNodejs(),t=this.getCommandRunner(z({shell:"none"},e)),n=new Oa,r=new Oa,i.label=1;case 1:return i.trys.push([1,3,,4]),t.stdOut.pipe(n),t.stdErr.pipe(r),o=new Promise(function(e,n){t.once("error",function(e){n(new Error("".concat(e.message||e)))})}),[4,Promise.race([t.start(),o])];case 2:return[2,{commandResult:i.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}];case 3:throw a=i.sent(),t.stdOut.unpipe(n),t.stdErr.unpipe(r),new Error("Command execution failed: ".concat(a instanceof Error?a.message:String(a)));case 4:return[2]}})})},e.prototype.shellSession=function(e,t){return J(this,void 0,void 0,function(){var n,r;return W(this,function(o){switch(o.label){case 0:return this.assertStartedWithNodejs(),n=this.getCommandRunner(e),r=new Promise(function(e,r){n.once("auth-success",function(n){null==t||t(null==n?void 0:n.context),e()}),n.once("error",function(e){r(new Error("Shell session failed: ".concat(e.message||e)))})
169
+ ;var o=setTimeout(function(){r(new Error("Shell session timed out waiting for auth-success"))},3e4);n.once("auth-success",function(){return clearTimeout(o)})}),n.start(),[4,r];case 1:return o.sent(),[2,n]}})})},e.prototype.getCommandRunner=function(e){var t=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new mi(t,e,n,this.agent)},e}(),vi=Object.defineProperty,hi="object"==typeof process&&process?process:{stdout:null,stderr:null
170
+ },fi=e=>!!e&&"object"==typeof e&&(e instanceof ed||e instanceof a||Ii(e)||wi(e)),Ii=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.pipe&&e.pipe!==a.Writable.prototype.pipe,wi=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.write&&"function"==typeof e.end,gi=Symbol("EOF"),bi=Symbol("maybeEmitEnd"),yi=Symbol("emittedEnd"),Ri=Symbol("emittingEnd"),ji=Symbol("emittedError"),Ui=Symbol("closed"),Ci=Symbol("read"),Ei=Symbol("flush"),_i=Symbol("flushChunk"),Si=Symbol("encoding"),Ni=Symbol("decoder"),Ai=Symbol("flowing"),ki=Symbol("paused"),Pi=Symbol("resume"),Ti=Symbol("buffer"),Di=Symbol("pipes"),Oi=Symbol("bufferLength"),xi=Symbol("bufferPush"),Li=Symbol("bufferShift"),qi=Symbol("objectMode"),Bi=Symbol("destroyed"),Vi=Symbol("error"),Fi=Symbol("emitData"),Mi=Symbol("emitEnd"),Gi=Symbol("emitEnd2"),zi=Symbol("async"),Ji=Symbol("abort"),Wi=Symbol("aborted"),$i=Symbol("signal"),Hi=Symbol("dataListeners"),Zi=Symbol("discarded"),Yi=e=>Promise.resolve().then(e),Ki=e=>e(),Xi=class{
171
+ src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Pi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Qi=class extends Xi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit("error",e),e.on("error",this.proxyErrors)}},ed=class extends A{[Ai]=!1;[ki]=!1;[Di]=[];[Ti]=[];[qi];[Si];[zi];[Ni];[gi]=!1;[yi]=!1;[Ri]=!1;[Ui]=!1;[ji]=null;[Oi]=0;[Bi]=!1;[$i];[Wi]=!1;[Hi]=0;[Zi]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[qi]=!0,this[Si]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[Si]=t.encoding,this[qi]=!1):(this[qi]=!1,this[Si]=null),this[zi]=!!t.async,
172
+ this[Ni]=this[Si]?new k(this[Si]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Ti]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Di]});let{signal:n}=t;n&&(this[$i]=n,n.aborted?this[Ji]():n.addEventListener("abort",()=>this[Ji]()))}get bufferLength(){return this[Oi]}get encoding(){return this[Si]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[qi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[zi]}set async(e){this[zi]=this[zi]||!!e}[Ji](){this[Wi]=!0,this.emit("abort",this[$i]?.reason),this.destroy(this[$i]?.reason)}get aborted(){return this[Wi]}set aborted(e){}write(e,t,n){if(this[Wi])return!1;if(this[gi])throw new Error("write after end")
173
+ ;if(this[Bi])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");let r=this[zi]?Yi:Ki;if(!this[qi]&&!Buffer.isBuffer(e))if(o=e,!Buffer.isBuffer(o)&&ArrayBuffer.isView(o))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var o;return this[qi]?(this[Ai]&&0!==this[Oi]&&this[Ei](!0),this[Ai]?this.emit("data",e):this[xi](e),0!==this[Oi]&&this.emit("readable"),n&&r(n),this[Ai]):e.length?("string"==typeof e&&!(t===this[Si]&&!this[Ni]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Si]&&(e=this[Ni].write(e)),this[Ai]&&0!==this[Oi]&&this[Ei](!0),this[Ai]?this.emit("data",e):this[xi](e),
174
+ 0!==this[Oi]&&this.emit("readable"),n&&r(n),this[Ai]):(0!==this[Oi]&&this.emit("readable"),n&&r(n),this[Ai])}read(e){if(this[Bi])return null;if(this[Zi]=!1,0===this[Oi]||0===e||e&&e>this[Oi])return this[bi](),null;this[qi]&&(e=null),this[Ti].length>1&&!this[qi]&&(this[Ti]=[this[Si]?this[Ti].join(""):Buffer.concat(this[Ti],this[Oi])]);let t=this[Ci](e||null,this[Ti][0]);return this[bi](),t}[Ci](e,t){if(this[qi])this[Li]();else{let n=t;e===n.length||null===e?this[Li]():"string"==typeof n?(this[Ti][0]=n.slice(e),t=n.slice(0,e),this[Oi]-=e):(this[Ti][0]=n.subarray(e),t=n.subarray(0,e),this[Oi]-=e)}return this.emit("data",t),!this[Ti].length&&!this[gi]&&this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[gi]=!0,this.writable=!1,(this[Ai]||!this[ki])&&this[bi](),this}[Pi](){this[Bi]||(!this[Hi]&&!this[Di].length&&(this[Zi]=!0),this[ki]=!1,this[Ai]=!0,this.emit("resume"),
175
+ this[Ti].length?this[Ei]():this[gi]?this[bi]():this.emit("drain"))}resume(){return this[Pi]()}pause(){this[Ai]=!1,this[ki]=!0,this[Zi]=!1}get destroyed(){return this[Bi]}get flowing(){return this[Ai]}get paused(){return this[ki]}[xi](e){this[qi]?this[Oi]+=1:this[Oi]+=e.length,this[Ti].push(e)}[Li](){return this[qi]?this[Oi]-=1:this[Oi]-=this[Ti][0].length,this[Ti].shift()}[Ei](e=!1){do{}while(this[_i](this[Li]())&&this[Ti].length);!e&&!this[Ti].length&&!this[gi]&&this.emit("drain")}[_i](e){return this.emit("data",e),this[Ai]}pipe(e,t){if(this[Bi])return e;this[Zi]=!1;let n=this[yi];return t=t||{},e===hi.stdout||e===hi.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[Di].push(t.proxyErrors?new Qi(this,e,t):new Xi(this,e,t)),this[zi]?Yi(()=>this[Pi]()):this[Pi]()),e}unpipe(e){let t=this[Di].find(t=>t.dest===e);t&&(1===this[Di].length?(this[Ai]&&0===this[Hi]&&(this[Ai]=!1),this[Di]=[]):this[Di].splice(this[Di].indexOf(t),1),t.unpipe())}
176
+ addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if("data"===e)this[Zi]=!1,this[Hi]++,!this[Di].length&&!this[Ai]&&this[Pi]();else if("readable"===e&&0!==this[Oi])super.emit("readable");else if("end"!==(r=e)&&"finish"!==r&&"prefinish"!==r||!this[yi]){if("error"===e&&this[ji]){let e=t;this[zi]?Yi(()=>e.call(this,this[ji])):e.call(this,this[ji])}}else super.emit(e),this.removeAllListeners(e);var r;return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return"data"===e&&(this[Hi]=this.listeners("data").length,0===this[Hi]&&!this[Zi]&&!this[Di].length&&(this[Ai]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return("data"===e||void 0===e)&&(this[Hi]=0,!this[Zi]&&!this[Di].length&&(this[Ai]=!1)),t}get emittedEnd(){return this[yi]}[bi](){!this[Ri]&&!this[yi]&&!this[Bi]&&0===this[Ti].length&&this[gi]&&(this[Ri]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ui]&&this.emit("close"),this[Ri]=!1)}emit(e,...t){
177
+ let n=t[0];if("error"!==e&&"close"!==e&&e!==Bi&&this[Bi])return!1;if("data"===e)return!(!this[qi]&&!n)&&(this[zi]?(Yi(()=>this[Fi](n)),!0):this[Fi](n));if("end"===e)return this[Mi]();if("close"===e){if(this[Ui]=!0,!this[yi]&&!this[Bi])return!1;let e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[ji]=n,super.emit(Vi,n);let e=!(this[$i]&&!this.listeners("error").length)&&super.emit("error",n);return this[bi](),e}if("resume"===e){let e=super.emit("resume");return this[bi](),e}if("finish"===e||"prefinish"===e){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[bi](),r}[Fi](e){for(let t of this[Di])!1===t.dest.write(e)&&this.pause();let t=!this[Zi]&&super.emit("data",e);return this[bi](),t}[Mi](){return!this[yi]&&(this[yi]=!0,this.readable=!1,this[zi]?(Yi(()=>this[Gi]()),!0):this[Gi]())}[Gi](){if(this[Ni]){let e=this[Ni].end();if(e){for(let t of this[Di])t.dest.write(e);this[Zi]||super.emit("data",e)}}
178
+ for(let e of this[Di])e.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[qi]||(e.dataLength=0);let t=this.promise();return this.on("data",t=>{e.push(t),this[qi]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[qi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Si]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Bi,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Zi]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[gi])return t();let r,o,a=e=>{this.off("data",i),this.off("end",d),this.off(Bi,p),t(),o(e)},i=e=>{this.off("error",a),this.off("end",d),this.off(Bi,p),this.pause(),r({value:e,done:!!this[gi]})},d=()=>{
179
+ this.off("error",a),this.off("data",i),this.off(Bi,p),t(),r({done:!0,value:void 0})},p=()=>a(new Error("stream destroyed"));return new Promise((e,t)=>{o=t,r=e,this.once(Bi,p),this.once("error",a),this.once("end",d),this.once("data",i)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Zi]=!1;let e=!1,t=()=>(this.pause(),this.off(Vi,t),this.off(Bi,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Vi,t),this.once(Bi,t),{next:()=>{if(e)return t();let n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Bi])return e?this.emit("error",e):this.emit(Bi),this;this[Bi]=!0,this[Zi]=!0,this[Ti].length=0,this[Oi]=0;return"function"==typeof this.close&&!this[Ui]&&this.close(),e?this.emit("error",e):this.emit(Bi),this}static get isStream(){return fi}
180
+ },td=R.writev,nd=Symbol("_autoClose"),rd=Symbol("_close"),od=Symbol("_ended"),ad=Symbol("_fd"),id=Symbol("_finished"),dd=Symbol("_flags"),pd=Symbol("_flush"),ld=Symbol("_handleChunk"),sd=Symbol("_makeBuf"),ud=Symbol("_mode"),md=Symbol("_needDrain"),cd=Symbol("_onerror"),vd=Symbol("_onopen"),hd=Symbol("_onread"),fd=Symbol("_onwrite"),Id=Symbol("_open"),wd=Symbol("_path"),gd=Symbol("_pos"),bd=Symbol("_queue"),yd=Symbol("_read"),Rd=Symbol("_readSize"),jd=Symbol("_reading"),Ud=Symbol("_remain"),Cd=Symbol("_size"),Ed=Symbol("_write"),_d=Symbol("_writing"),Sd=Symbol("_defaultFlag"),Nd=Symbol("_errored"),Ad=class extends ed{[Nd]=!1;[ad];[wd];[Rd];[jd]=!1;[Cd];[Ud];[nd];constructor(e,t){if(super(t=t||{}),this.readable=!0,this.writable=!1,"string"!=typeof e)throw new TypeError("path must be a string");this[Nd]=!1,this[ad]="number"==typeof t.fd?t.fd:void 0,this[wd]=e,this[Rd]=t.readSize||16777216,this[jd]=!1,this[Cd]="number"==typeof t.size?t.size:1/0,this[Ud]=this[Cd],
181
+ this[nd]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[ad]?this[yd]():this[Id]()}get fd(){return this[ad]}get path(){return this[wd]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Id](){R.open(this[wd],"r",(e,t)=>this[vd](e,t))}[vd](e,t){e?this[cd](e):(this[ad]=t,this.emit("open",t),this[yd]())}[sd](){return Buffer.allocUnsafe(Math.min(this[Rd],this[Ud]))}[yd](){if(!this[jd]){this[jd]=!0;let e=this[sd]();if(0===e.length)return process.nextTick(()=>this[hd](null,0,e));R.read(this[ad],e,0,e.length,null,(e,t,n)=>this[hd](e,t,n))}}[hd](e,t,n){this[jd]=!1,e?this[cd](e):this[ld](t,n)&&this[yd]()}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[cd](e){this[jd]=!0,this[rd](),this.emit("error",e)}[ld](e,t){let n=!1;return this[Ud]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[Ud]<=0)&&(n=!1,this[rd](),
182
+ super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[ad]&&this[yd](),!1;case"error":return!this[Nd]&&(this[Nd]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}},kd=class extends Ad{[Id](){let e=!0;try{this[vd](null,R.openSync(this[wd],"r")),e=!1}finally{e&&this[rd]()}}[yd](){let e=!0;try{if(!this[jd]){for(this[jd]=!0;;){let e=this[sd](),t=0===e.length?0:R.readSync(this[ad],e,0,e.length,null);if(!this[ld](t,e))break}this[jd]=!1}e=!1}finally{e&&this[rd]()}}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.closeSync(e),this.emit("close")}}},Pd=class extends e{readable=!1;writable=!0;[Nd]=!1;[_d]=!1;[od]=!1;[bd]=[];[md]=!1;[wd];[ud];[nd];[ad];[Sd];[dd];[id]=!1;[gd];constructor(e,t){super(t=t||{}),this[wd]=e,this[ad]="number"==typeof t.fd?t.fd:void 0,this[ud]=void 0===t.mode?438:t.mode,this[gd]="number"==typeof t.start?t.start:void 0,this[nd]="boolean"!=typeof t.autoClose||t.autoClose
183
+ ;let n=void 0!==this[gd]?"r+":"w";this[Sd]=void 0===t.flags,this[dd]=void 0===t.flags?n:t.flags,void 0===this[ad]&&this[Id]()}emit(e,...t){if("error"===e){if(this[Nd])return!1;this[Nd]=!0}return super.emit(e,...t)}get fd(){return this[ad]}get path(){return this[wd]}[cd](e){this[rd](),this[_d]=!0,this.emit("error",e)}[Id](){R.open(this[wd],this[dd],this[ud],(e,t)=>this[vd](e,t))}[vd](e,t){this[Sd]&&"r+"===this[dd]&&e&&"ENOENT"===e.code?(this[dd]="w",this[Id]()):e?this[cd](e):(this[ad]=t,this.emit("open",t),this[_d]||this[pd]())}end(e,t){return e&&this.write(e,t),this[od]=!0,!this[_d]&&!this[bd].length&&"number"==typeof this[ad]&&this[fd](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[od]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[ad]||this[_d]||this[bd].length?(this[bd].push(e),this[md]=!0,!1):(this[_d]=!0,this[Ed](e),!0)}[Ed](e){R.write(this[ad],e,0,e.length,this[gd],(e,t)=>this[fd](e,t))}[fd](e,t){
184
+ e?this[cd](e):(void 0!==this[gd]&&"number"==typeof t&&(this[gd]+=t),this[bd].length?this[pd]():(this[_d]=!1,this[od]&&!this[id]?(this[id]=!0,this[rd](),this.emit("finish")):this[md]&&(this[md]=!1,this.emit("drain"))))}[pd](){if(0===this[bd].length)this[od]&&this[fd](null,0);else if(1===this[bd].length)this[Ed](this[bd].pop());else{let e=this[bd];this[bd]=[],td(this[ad],e,this[gd],(e,t)=>this[fd](e,t))}}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.close(e,e=>e?this.emit("error",e):this.emit("close"))}}},Td=class extends Pd{[Id](){let e;if(this[Sd]&&"r+"===this[dd])try{e=R.openSync(this[wd],this[dd],this[ud])}catch(e){if("ENOENT"===e?.code)return this[dd]="w",this[Id]();throw e}else e=R.openSync(this[wd],this[dd],this[ud]);this[vd](null,e)}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.closeSync(e),this.emit("close")}}[Ed](e){let t=!0;try{this[fd](null,R.writeSync(this[ad],e,0,e.length,this[gd])),t=!1}finally{if(t)try{
185
+ this[rd]()}catch{}}}},Dd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),Od=e=>Dd.get(e)||e,xd=(e={})=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e)){t[Od(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},Ld=(e,t,n,r,o)=>Object.assign((a=[],i,d)=>{Array.isArray(a)&&(i=a,a={}),"function"==typeof i&&(d=i,i=void 0),i=i?Array.from(i):[];let p=xd(a);if(o?.(p,i),(e=>!!e.sync&&!!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return e(p,i)}if((e=>!e.sync&&!!e.file)(p)){let e=t(p,i);return d?e.then(()=>d(),d):e}
186
+ if((e=>!!e.sync&&!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return n(p,i)}if((e=>!e.sync&&!e.file)(p)){if("function"==typeof d)throw new TypeError("callback only supported with file option");return r(p,i)}throw new Error("impossible options??")},{syncFile:e,asyncFile:t,syncNoFile:n,asyncNoFile:r,validate:o}),qd=h.constants||{ZLIB_VERNUM:4736},Bd=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,
186
187
  Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,
187
188
  BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,
188
- BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},xd)),qd=S.concat,Bd=Object.getOwnPropertyDescriptor(S,"concat"),Vd=e=>e,Fd=!0===Bd?.writable||void 0!==Bd?.set?e=>{S.concat=e?Vd:qd}:e=>{},Md=Symbol("_superWrite"),Gd=class extends Error{code;errno;constructor(e,t){super("zlib: "+e.message,{cause:e}),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,t??this.constructor)}get name(){return"ZlibError"}},zd=Symbol("flushFlag"),Jd=class extends Xi{#e=!1;#t=!1;#n;#r;#o;#a;#i;get sawError(){return this.#e}get handle(){return this.#a}get flushFlag(){return this.#n}constructor(e,t){
189
- if(!e||"object"!=typeof e)throw new TypeError("invalid options for ZlibBase constructor");if(super(e),this.#n=e.flush??0,this.#r=e.finishFlush??0,this.#o=e.fullFlushFlag??0,"function"!=typeof v[t])throw new TypeError("Compression method not supported: "+t);try{this.#a=new v[t](e)}catch(e){throw new Gd(e,this.constructor)}this.#i=e=>{this.#e||(this.#e=!0,this.close(),this.emit("error",e))},this.#a?.on("error",e=>this.#i(new Gd(e))),this.once("end",()=>this.close)}close(){this.#a&&(this.#a.close(),this.#a=void 0,this.emit("close"))}reset(){if(!this.#e)return q(this.#a,"zlib binding closed"),this.#a.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#o),this.write(Object.assign(S.alloc(0),{[zd]:e})))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&(t?this.write(e,t):this.write(e)),this.flush(this.#r),this.#t=!0,super.end(n)}get ended(){return this.#t}[Md](e){return super.write(e)}write(e,t,n){if("function"==typeof t&&(n=t,
190
- t="utf8"),"string"==typeof e&&(e=S.from(e,t)),this.#e)return;q(this.#a,"zlib binding closed");let r=this.#a._handle,o=r.close;r.close=()=>{};let a,i,d=this.#a.close;this.#a.close=()=>{},Fd(!0);try{let t="number"==typeof e[zd]?e[zd]:this.#n;a=this.#a._processChunk(e,t),Fd(!1)}catch(e){Fd(!1),this.#i(new Gd(e,this.write))}finally{this.#a&&(this.#a._handle=r,r.close=o,this.#a.close=d,this.#a.removeAllListeners("error"))}if(this.#a&&this.#a.on("error",e=>this.#i(new Gd(e,this.write))),a)if(Array.isArray(a)&&a.length>0){let e=a[0];i=this[Md](S.from(e));for(let e=1;e<a.length;e++)i=this[Md](a[e])}else i=this[Md](S.from(a));return n&&n(),i}},Wd=class extends Jd{#e;#t;constructor(e,t){(e=e||{}).flush=e.flush||Ld.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Ld.Z_FINISH,e.fullFlushFlag=Ld.Z_FULL_FLUSH,super(e,t),this.#e=e.level,this.#t=e.strategy}params(e,t){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed")
191
- ;if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==e||this.#t!==t){this.flush(Ld.Z_SYNC_FLUSH),q(this.handle,"zlib binding closed");let n=this.handle.flush;this.handle.flush=(e,t)=>{"function"==typeof e&&(t=e,e=this.flushFlag),this.flush(e),t?.()};try{this.handle.params(e,t)}finally{this.handle.flush=n}this.handle&&(this.#e=e,this.#t=t)}}}},$d=class extends Wd{#e;constructor(e){super(e,"Gzip"),this.#e=e&&!!e.portable}[Md](e){return this.#e?(this.#e=!1,e[9]=255,super[Md](e)):super[Md](e)}},Hd=class extends Wd{constructor(e){super(e,"Unzip")}},Zd=class extends Jd{constructor(e,t){(e=e||{}).flush=e.flush||Ld.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Ld.BROTLI_OPERATION_FINISH,e.fullFlushFlag=Ld.BROTLI_OPERATION_FLUSH,super(e,t)}},Yd=class extends Zd{constructor(e){super(e,"BrotliCompress")}},Kd=class extends Zd{constructor(e){super(e,"BrotliDecompress")}},Xd=class extends Jd{constructor(e,t){(e=e||{}).flush=e.flush||Ld.ZSTD_e_continue,
192
- e.finishFlush=e.finishFlush||Ld.ZSTD_e_end,e.fullFlushFlag=Ld.ZSTD_e_flush,super(e,t)}},Qd=class extends Xd{constructor(e){super(e,"ZstdCompress")}},ep=class extends Xd{constructor(e){super(e,"ZstdDecompress")}},tp=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},np=(e,t)=>{t[0]=255;var n=!1;e*=-1;for(var r=t.length;r>1;r--){var o=255&e;e=Math.floor(e/256),n?t[r-1]=ap(o):0===o?t[r-1]=0:(n=!0,t[r-1]=ip(o))}},rp=e=>{for(var t=e.length,n=0,r=!1,o=t-1;o>-1;o--){var a,i=Number(e[o]);r?a=ap(i):0===i?a=i:(r=!0,a=ip(i)),0!==a&&(n-=a*Math.pow(256,t-o-1))}return n},op=e=>{for(var t=e.length,n=0,r=t-1;r>-1;r--){var o=Number(e[r]);0!==o&&(n+=o*Math.pow(256,t-r-1))}return n},ap=e=>255&(255^e),ip=e=>1+(255^e)&255;((e,t)=>{for(var n in t)mi(e,n,{get:t[n],enumerable:!0})})({},{code:()=>sp,isCode:()=>dp,isName:()=>pp,name:()=>lp})
193
- ;var dp=e=>lp.has(e),pp=e=>sp.has(e),lp=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),sp=new Map(Array.from(lp).map(e=>[e[1],e[0]])),up=class{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#e="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(e,t=0,n,r){Buffer.isBuffer(e)?this.decode(e,t||0,n,r):e&&this.#t(e)}decode(e,t,n,r){if(t||(t=0),!(e&&e.length>=t+512))throw new Error("need 512 bytes for header");this.path=n?.path??cp(e,t,100),this.mode=n?.mode??r?.mode??fp(e,t+100,8),this.uid=n?.uid??r?.uid??fp(e,t+108,8),
194
- this.gid=n?.gid??r?.gid??fp(e,t+116,8),this.size=n?.size??r?.size??fp(e,t+124,12),this.mtime=n?.mtime??r?.mtime??vp(e,t+136,12),this.cksum=fp(e,t+148,12),r&&this.#t(r,!0),n&&this.#t(n);let o=cp(e,t+156,1);if(dp(o)&&(this.#e=o||"0"),"0"===this.#e&&"/"===this.path.slice(-1)&&(this.#e="5"),"5"===this.#e&&(this.size=0),this.linkpath=cp(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=n?.uname??r?.uname??cp(e,t+265,32),this.gname=n?.gname??r?.gname??cp(e,t+297,32),this.devmaj=n?.devmaj??r?.devmaj??fp(e,t+329,8)??0,this.devmin=n?.devmin??r?.devmin??fp(e,t+337,8)??0,0!==e[t+475]){let n=cp(e,t+345,155);this.path=n+"/"+this.path}else{let o=cp(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=n?.atime??r?.atime??vp(e,t+476,12),this.ctime=n?.ctime??r?.ctime??vp(e,t+488,12)}let a=256;for(let n=t;n<t+148;n++)a+=e[n];for(let n=t+156;n<t+512;n++)a+=e[n];this.cksumValid=a===this.cksum,void 0===this.cksum&&256===a&&(this.nullBlock=!0)}#t(e,t=!1){
195
- Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t||"linkpath"===e&&t||"global"===e))))}encode(e,t=0){if(e||(e=this.block=Buffer.alloc(512)),"Unsupported"===this.#e&&(this.#e="0"),!(e.length>=t+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,r=mp(this.path||"",n),o=r[0],a=r[1];this.needPax=!!r[2],this.needPax=Cp(e,t,100,o)||this.needPax,this.needPax=gp(e,t+100,8,this.mode)||this.needPax,this.needPax=gp(e,t+108,8,this.uid)||this.needPax,this.needPax=gp(e,t+116,8,this.gid)||this.needPax,this.needPax=gp(e,t+124,12,this.size)||this.needPax,this.needPax=jp(e,t+136,12,this.mtime)||this.needPax,e[t+156]=Number(this.#e.codePointAt(0)),this.needPax=Cp(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Cp(e,t+265,32,this.uname)||this.needPax,this.needPax=Cp(e,t+297,32,this.gname)||this.needPax,this.needPax=gp(e,t+329,8,this.devmaj)||this.needPax,
196
- this.needPax=gp(e,t+337,8,this.devmin)||this.needPax,this.needPax=Cp(e,t+345,n,a)||this.needPax,0!==e[t+475]?this.needPax=Cp(e,t+345,155,a)||this.needPax:(this.needPax=Cp(e,t+345,130,a)||this.needPax,this.needPax=jp(e,t+476,12,this.atime)||this.needPax,this.needPax=jp(e,t+488,12,this.ctime)||this.needPax);let i=256;for(let n=t;n<t+148;n++)i+=e[n];for(let n=t+156;n<t+512;n++)i+=e[n];return this.cksum=i,gp(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#e?this.#e:lp.get(this.#e)}get typeKey(){return this.#e}set type(e){let t=String(sp.get(e));if(dp(t)||"Unsupported"===t)this.#e=t;else{if(!dp(e))throw new TypeError("invalid entry type: "+e);this.#e=e}}},mp=(e,t)=>{let n,r=e,o="",a=D.parse(e).root||".";if(Buffer.byteLength(r)<100)n=[r,o,!1];else{o=D.dirname(r),r=D.basename(r);do{Buffer.byteLength(r)<=100&&Buffer.byteLength(o)<=t?n=[r,o,!1]:Buffer.byteLength(r)>100&&Buffer.byteLength(o)<=t?n=[r.slice(0,99),o,!0]:(r=D.join(D.basename(o),r),
197
- o=D.dirname(o))}while(o!==a&&void 0===n);n||(n=[e.slice(0,99),"",!0])}return n},cp=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),vp=(e,t,n)=>hp(fp(e,t,n)),hp=e=>void 0===e?void 0:new Date(1e3*e),fp=(e,t,n)=>128&Number(e[t])?(e=>{let t=e[0],n=128===t?op(e.subarray(1,e.length)):255===t?rp(e):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(e.subarray(t,t+n)):Ip(e,t,n),Ip=(e,t,n)=>(e=>isNaN(e)?void 0:e)(parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8)),wp={12:8589934591,8:2097151},gp=(e,t,n,r)=>void 0!==r&&(r>wp[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?np(e,t):tp(e,t)})(r,e.subarray(t,t+n)),!0):(bp(e,t,n,r),
198
- !1)),bp=(e,t,n,r)=>e.write(yp(r,n),t,n,"ascii"),yp=(e,t)=>Rp(Math.floor(e).toString(8),t),Rp=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",jp=(e,t,n,r)=>void 0!==r&&gp(e,t,n,r.getTime()/1e3),Up=new Array(156).join("\0"),Cp=(e,t,n,r)=>void 0!==r&&(e.write(r+Up,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n),Ep=class e{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,t=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=t,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){let e=this.encodeBody();if(""===e)return Buffer.allocUnsafe(0);let t=Buffer.byteLength(e),n=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(n);for(let e=0;e<512;e++)r[e]=0;new up({path:("PaxHeader/"+O(this.path??"")).slice(0,99),
189
+ BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},qd)),Vd=S.concat,Fd=Object.getOwnPropertyDescriptor(S,"concat"),Md=e=>e,Gd=!0===Fd?.writable||void 0!==Fd?.set?e=>{S.concat=e?Md:Vd}:e=>{},zd=Symbol("_superWrite"),Jd=class extends Error{code;errno;constructor(e,t){super("zlib: "+e.message,{cause:e}),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,t??this.constructor)}get name(){return"ZlibError"}},Wd=Symbol("flushFlag"),$d=class extends ed{#e=!1;#t=!1;#n;#r;#o;#a;#i;get sawError(){return this.#e}get handle(){return this.#a}get flushFlag(){return this.#n}constructor(e,t){
190
+ if(!e||"object"!=typeof e)throw new TypeError("invalid options for ZlibBase constructor");if(super(e),this.#n=e.flush??0,this.#r=e.finishFlush??0,this.#o=e.fullFlushFlag??0,"function"!=typeof v[t])throw new TypeError("Compression method not supported: "+t);try{this.#a=new v[t](e)}catch(e){throw new Jd(e,this.constructor)}this.#i=e=>{this.#e||(this.#e=!0,this.close(),this.emit("error",e))},this.#a?.on("error",e=>this.#i(new Jd(e))),this.once("end",()=>this.close)}close(){this.#a&&(this.#a.close(),this.#a=void 0,this.emit("close"))}reset(){if(!this.#e)return q(this.#a,"zlib binding closed"),this.#a.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#o),this.write(Object.assign(S.alloc(0),{[Wd]:e})))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&(t?this.write(e,t):this.write(e)),this.flush(this.#r),this.#t=!0,super.end(n)}get ended(){return this.#t}[zd](e){return super.write(e)}write(e,t,n){if("function"==typeof t&&(n=t,
191
+ t="utf8"),"string"==typeof e&&(e=S.from(e,t)),this.#e)return;q(this.#a,"zlib binding closed");let r=this.#a._handle,o=r.close;r.close=()=>{};let a,i,d=this.#a.close;this.#a.close=()=>{},Gd(!0);try{let t="number"==typeof e[Wd]?e[Wd]:this.#n;a=this.#a._processChunk(e,t),Gd(!1)}catch(e){Gd(!1),this.#i(new Jd(e,this.write))}finally{this.#a&&(this.#a._handle=r,r.close=o,this.#a.close=d,this.#a.removeAllListeners("error"))}if(this.#a&&this.#a.on("error",e=>this.#i(new Jd(e,this.write))),a)if(Array.isArray(a)&&a.length>0){let e=a[0];i=this[zd](S.from(e));for(let e=1;e<a.length;e++)i=this[zd](a[e])}else i=this[zd](S.from(a));return n&&n(),i}},Hd=class extends $d{#e;#t;constructor(e,t){(e=e||{}).flush=e.flush||Bd.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Bd.Z_FINISH,e.fullFlushFlag=Bd.Z_FULL_FLUSH,super(e,t),this.#e=e.level,this.#t=e.strategy}params(e,t){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed")
192
+ ;if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==e||this.#t!==t){this.flush(Bd.Z_SYNC_FLUSH),q(this.handle,"zlib binding closed");let n=this.handle.flush;this.handle.flush=(e,t)=>{"function"==typeof e&&(t=e,e=this.flushFlag),this.flush(e),t?.()};try{this.handle.params(e,t)}finally{this.handle.flush=n}this.handle&&(this.#e=e,this.#t=t)}}}},Zd=class extends Hd{#e;constructor(e){super(e,"Gzip"),this.#e=e&&!!e.portable}[zd](e){return this.#e?(this.#e=!1,e[9]=255,super[zd](e)):super[zd](e)}},Yd=class extends Hd{constructor(e){super(e,"Unzip")}},Kd=class extends $d{constructor(e,t){(e=e||{}).flush=e.flush||Bd.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Bd.BROTLI_OPERATION_FINISH,e.fullFlushFlag=Bd.BROTLI_OPERATION_FLUSH,super(e,t)}},Xd=class extends Kd{constructor(e){super(e,"BrotliCompress")}},Qd=class extends Kd{constructor(e){super(e,"BrotliDecompress")}},ep=class extends $d{constructor(e,t){(e=e||{}).flush=e.flush||Bd.ZSTD_e_continue,
193
+ e.finishFlush=e.finishFlush||Bd.ZSTD_e_end,e.fullFlushFlag=Bd.ZSTD_e_flush,super(e,t)}},tp=class extends ep{constructor(e){super(e,"ZstdCompress")}},np=class extends ep{constructor(e){super(e,"ZstdDecompress")}},rp=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},op=(e,t)=>{t[0]=255;var n=!1;e*=-1;for(var r=t.length;r>1;r--){var o=255&e;e=Math.floor(e/256),n?t[r-1]=dp(o):0===o?t[r-1]=0:(n=!0,t[r-1]=pp(o))}},ap=e=>{for(var t=e.length,n=0,r=!1,o=t-1;o>-1;o--){var a,i=Number(e[o]);r?a=dp(i):0===i?a=i:(r=!0,a=pp(i)),0!==a&&(n-=a*Math.pow(256,t-o-1))}return n},ip=e=>{for(var t=e.length,n=0,r=t-1;r>-1;r--){var o=Number(e[r]);0!==o&&(n+=o*Math.pow(256,t-r-1))}return n},dp=e=>255&(255^e),pp=e=>1+(255^e)&255;((e,t)=>{for(var n in t)vi(e,n,{get:t[n],enumerable:!0})})({},{code:()=>mp,isCode:()=>lp,isName:()=>sp,name:()=>up})
194
+ ;var lp=e=>up.has(e),sp=e=>mp.has(e),up=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),mp=new Map(Array.from(up).map(e=>[e[1],e[0]])),cp=class{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#e="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(e,t=0,n,r){Buffer.isBuffer(e)?this.decode(e,t||0,n,r):e&&this.#t(e)}decode(e,t,n,r){if(t||(t=0),!(e&&e.length>=t+512))throw new Error("need 512 bytes for header");this.path=n?.path??hp(e,t,100),this.mode=n?.mode??r?.mode??wp(e,t+100,8),this.uid=n?.uid??r?.uid??wp(e,t+108,8),
195
+ this.gid=n?.gid??r?.gid??wp(e,t+116,8),this.size=n?.size??r?.size??wp(e,t+124,12),this.mtime=n?.mtime??r?.mtime??fp(e,t+136,12),this.cksum=wp(e,t+148,12),r&&this.#t(r,!0),n&&this.#t(n);let o=hp(e,t+156,1);if(lp(o)&&(this.#e=o||"0"),"0"===this.#e&&"/"===this.path.slice(-1)&&(this.#e="5"),"5"===this.#e&&(this.size=0),this.linkpath=hp(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=n?.uname??r?.uname??hp(e,t+265,32),this.gname=n?.gname??r?.gname??hp(e,t+297,32),this.devmaj=n?.devmaj??r?.devmaj??wp(e,t+329,8)??0,this.devmin=n?.devmin??r?.devmin??wp(e,t+337,8)??0,0!==e[t+475]){let n=hp(e,t+345,155);this.path=n+"/"+this.path}else{let o=hp(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=n?.atime??r?.atime??fp(e,t+476,12),this.ctime=n?.ctime??r?.ctime??fp(e,t+488,12)}let a=256;for(let n=t;n<t+148;n++)a+=e[n];for(let n=t+156;n<t+512;n++)a+=e[n];this.cksumValid=a===this.cksum,void 0===this.cksum&&256===a&&(this.nullBlock=!0)}#t(e,t=!1){
196
+ Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t||"linkpath"===e&&t||"global"===e))))}encode(e,t=0){if(e||(e=this.block=Buffer.alloc(512)),"Unsupported"===this.#e&&(this.#e="0"),!(e.length>=t+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,r=vp(this.path||"",n),o=r[0],a=r[1];this.needPax=!!r[2],this.needPax=_p(e,t,100,o)||this.needPax,this.needPax=yp(e,t+100,8,this.mode)||this.needPax,this.needPax=yp(e,t+108,8,this.uid)||this.needPax,this.needPax=yp(e,t+116,8,this.gid)||this.needPax,this.needPax=yp(e,t+124,12,this.size)||this.needPax,this.needPax=Cp(e,t+136,12,this.mtime)||this.needPax,e[t+156]=Number(this.#e.codePointAt(0)),this.needPax=_p(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=_p(e,t+265,32,this.uname)||this.needPax,this.needPax=_p(e,t+297,32,this.gname)||this.needPax,this.needPax=yp(e,t+329,8,this.devmaj)||this.needPax,
197
+ this.needPax=yp(e,t+337,8,this.devmin)||this.needPax,this.needPax=_p(e,t+345,n,a)||this.needPax,0!==e[t+475]?this.needPax=_p(e,t+345,155,a)||this.needPax:(this.needPax=_p(e,t+345,130,a)||this.needPax,this.needPax=Cp(e,t+476,12,this.atime)||this.needPax,this.needPax=Cp(e,t+488,12,this.ctime)||this.needPax);let i=256;for(let n=t;n<t+148;n++)i+=e[n];for(let n=t+156;n<t+512;n++)i+=e[n];return this.cksum=i,yp(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#e?this.#e:up.get(this.#e)}get typeKey(){return this.#e}set type(e){let t=String(mp.get(e));if(lp(t)||"Unsupported"===t)this.#e=t;else{if(!lp(e))throw new TypeError("invalid entry type: "+e);this.#e=e}}},vp=(e,t)=>{let n,r=e,o="",a=D.parse(e).root||".";if(Buffer.byteLength(r)<100)n=[r,o,!1];else{o=D.dirname(r),r=D.basename(r);do{Buffer.byteLength(r)<=100&&Buffer.byteLength(o)<=t?n=[r,o,!1]:Buffer.byteLength(r)>100&&Buffer.byteLength(o)<=t?n=[r.slice(0,99),o,!0]:(r=D.join(D.basename(o),r),
198
+ o=D.dirname(o))}while(o!==a&&void 0===n);n||(n=[e.slice(0,99),"",!0])}return n},hp=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),fp=(e,t,n)=>Ip(wp(e,t,n)),Ip=e=>void 0===e?void 0:new Date(1e3*e),wp=(e,t,n)=>128&Number(e[t])?(e=>{let t=e[0],n=128===t?ip(e.subarray(1,e.length)):255===t?ap(e):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(e.subarray(t,t+n)):gp(e,t,n),gp=(e,t,n)=>(e=>isNaN(e)?void 0:e)(parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8)),bp={12:8589934591,8:2097151},yp=(e,t,n,r)=>void 0!==r&&(r>bp[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?op(e,t):rp(e,t)})(r,e.subarray(t,t+n)),!0):(Rp(e,t,n,r),
199
+ !1)),Rp=(e,t,n,r)=>e.write(jp(r,n),t,n,"ascii"),jp=(e,t)=>Up(Math.floor(e).toString(8),t),Up=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",Cp=(e,t,n,r)=>void 0!==r&&yp(e,t,n,r.getTime()/1e3),Ep=new Array(156).join("\0"),_p=(e,t,n,r)=>void 0!==r&&(e.write(r+Ep,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n),Sp=class e{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,t=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=t,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){let e=this.encodeBody();if(""===e)return Buffer.allocUnsafe(0);let t=Buffer.byteLength(e),n=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(n);for(let e=0;e<512;e++)r[e]=0;new cp({path:("PaxHeader/"+O(this.path??"")).slice(0,99),
199
200
  mode:this.mode||420,uid:this.uid,gid:this.gid,size:t,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),r.write(e,512,t,"utf8");for(let e=t+512;e<r.length;e++)r[e]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(void 0===this[e])return"";let t=this[e],n=" "+("dev"===e||"ino"===e||"nlink"===e?"SCHILY.":"")+e+"="+(t instanceof Date?t.getTime()/1e3:t)+"\n",r=Buffer.byteLength(n),o=Math.floor(Math.log(r)/Math.log(10))+1;return r+o>=Math.pow(10,o)&&(o+=1),o+r+n}
200
- static parse(t,n,r=!1){return new e(_p(Sp(t),n),r)}},_p=(e,t)=>t?Object.assign({},t,e):e,Sp=e=>e.replace(/\n$/,"").split("\n").reduce(Np,Object.create(null)),Np=(e,t)=>{let n=parseInt(t,10);if(n!==Buffer.byteLength(t)+1)return e;let r=(t=t.slice((n+" ").length)).split("="),o=r.shift();if(!o)return e;let a=o.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),i=r.join("=");return e[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(1e3*Number(i)):/^[0-9]+$/.test(i)?+i:i,e},Ap="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replaceAll(/\\/g,"/"),kp=class extends Xi{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(e,t,n){switch(super({}),this.pause(),this.extended=t,this.globalExtended=n,this.header=e,this.remain=e.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),
201
- this.blockRemain=this.startBlockSize,this.type=e.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.path=Ap(e.path),this.mode=e.mode,this.mode&&(this.mode=4095&this.mode),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=this.remain,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath?Ap(e.linkpath):void 0,this.uname=e.uname,this.gname=e.gname,t&&this.#e(t),n&&this.#e(n,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,r=this.blockRemain
202
- ;return this.remain=Math.max(0,n-t),this.blockRemain=Math.max(0,r-t),!!this.ignore||(n>=t?super.write(e):super.write(e.subarray(0,n)))}#e(e,t=!1){e.path&&(e.path=Ap(e.path)),e.linkpath&&(e.linkpath=Ap(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t))))}},Pp=(e,t,n,r={})=>{e.file&&(r.file=e.file),e.cwd&&(r.cwd=e.cwd),r.code=n instanceof Error&&n.code||t,r.tarCode=t,e.strict||!1===r.recoverable?n instanceof Error?e.emit("error",Object.assign(n,r)):e.emit("error",Object.assign(new Error(`${t}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),e.emit("warn",t,n,r))
203
- },Tp=Buffer.from([31,139]),Dp=Buffer.from([40,181,47,253]),Op=Math.max(Tp.length,Dp.length),xp=Symbol("state"),Lp=Symbol("writeEntry"),qp=Symbol("readEntry"),Bp=Symbol("nextEntry"),Vp=Symbol("processEntry"),Fp=Symbol("extendedHeader"),Mp=Symbol("globalExtendedHeader"),Gp=Symbol("meta"),zp=Symbol("emitMeta"),Jp=Symbol("buffer"),Wp=Symbol("queue"),$p=Symbol("ended"),Hp=Symbol("emittedEnd"),Zp=Symbol("emit"),Yp=Symbol("unzip"),Kp=Symbol("consumeChunk"),Xp=Symbol("consumeChunkSub"),Qp=Symbol("consumeBody"),el=Symbol("consumeMeta"),tl=Symbol("consumeHeader"),nl=Symbol("consuming"),rl=Symbol("bufferConcat"),ol=Symbol("maybeEnd"),al=Symbol("writing"),il=Symbol("aborted"),dl=Symbol("onDone"),pl=Symbol("sawValidEntry"),ll=Symbol("sawNullBlock"),sl=Symbol("sawEOF"),ul=Symbol("closeStream"),ml=()=>!0,cl=class extends t{file;strict;maxMetaEntrySize;filter;brotli;zstd;writable=!0;readable=!1;[Wp]=[];[Jp];[qp];[Lp];[xp]="begin";[Gp]="";[Fp];[Mp];[$p]=!1;[Yp];[il]=!1;[pl];[ll]=!1;[sl]=!1;[al]=!1
204
- ;[nl]=!1;[Hp]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(dl,()=>{("begin"===this[xp]||!1===this[pl])&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(dl,e.ondone):this.on(dl,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||1048576,this.filter="function"==typeof e.filter?e.filter:ml;let t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=e.gzip||e.zstd||void 0===e.brotli?!!t&&void 0:e.brotli;let n=e.file&&(e.file.endsWith(".tar.zst")||e.file.endsWith(".tzst"));this.zstd=e.gzip||e.brotli||void 0===e.zstd?!!n||void 0:e.zstd,this.on("end",()=>this[ul]()),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){Pp(this,e,t,n)}[tl](e,t){let n;void 0===this[pl]&&(this[pl]=!1);try{n=new up(e,t,this[Fp],this[Mp])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}
205
- if(n.nullBlock)this[ll]?(this[sl]=!0,"begin"===this[xp]&&(this[xp]="header"),this[Zp]("eof")):(this[ll]=!0,this[Zp]("nullBlock"));else if(this[ll]=!1,n.cksumValid)if(n.path){let e=n.type;if(/^(Symbolic)?Link$/.test(e)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(e)||/^(Global)?ExtendedHeader$/.test(e)||!n.linkpath){let e=this[Lp]=new kp(n,this[Fp],this[Mp]);if(!this[pl])if(e.remain){let t=()=>{e.invalid||(this[pl]=!0)};e.on("end",t)}else this[pl]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[Zp]("ignoredEntry",e),this[xp]="ignore",e.resume()):e.size>0&&(this[Gp]="",e.on("data",e=>this[Gp]+=e),this[xp]="meta"):(this[Fp]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[Zp]("ignoredEntry",e),this[xp]=e.remain?"ignore":"header",e.resume()):(e.remain?this[xp]="body":(this[xp]="header",e.end()),this[qp]?this[Wp].push(e):(this[Wp].push(e),this[Bp]())))
206
- }else this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n})}else this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n})}[ul](){queueMicrotask(()=>this.emit("close"))}[Vp](e){let t=!0;if(e)if(Array.isArray(e)){let[t,...n]=e;this.emit(t,...n)}else this[qp]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",()=>this[Bp]()),t=!1);else this[qp]=void 0,t=!1;return t}[Bp](){do{}while(this[Vp](this[Wp].shift()));if(0===this[Wp].length){let e=this[qp];!e||e.flowing||e.size===e.remain?this[al]||this.emit("drain"):e.once("drain",()=>this.emit("drain"))}}[Qp](e,t){let n=this[Lp];if(!n)throw new Error("attempt to consume body without entry??");let r=n.blockRemain??0,o=r>=e.length&&0===t?e:e.subarray(t,t+r);return n.write(o),n.blockRemain||(this[xp]="header",this[Lp]=void 0,n.end()),o.length}[el](e,t){let n=this[Lp],r=this[Qp](e,t);return!this[Lp]&&n&&this[zp](n),r}[Zp](e,t,n){
207
- 0!==this[Wp].length||this[qp]?this[Wp].push([e,t,n]):this.emit(e,t,n)}[zp](e){switch(this[Zp]("meta",this[Gp]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Fp]=Ep.parse(this[Gp],this[Fp],!1);break;case"GlobalExtendedHeader":this[Mp]=Ep.parse(this[Gp],this[Mp],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let e=this[Fp]??Object.create(null);this[Fp]=e,e.path=this[Gp].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let e=this[Fp]||Object.create(null);this[Fp]=e,e.linkpath=this[Gp].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[il]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this[il])return n?.(),!1;if((void 0===this[Yp]||void 0===this.brotli&&!1===this[Yp])&&e){if(this[Jp]&&(e=Buffer.concat([this[Jp],e]),this[Jp]=void 0),e.length<Op)return this[Jp]=e,n?.(),!0
208
- ;for(let t=0;void 0===this[Yp]&&t<Tp.length;t++)e[t]!==Tp[t]&&(this[Yp]=!1);let t=!1;if(!1===this[Yp]&&!1!==this.zstd){t=!0;for(let n=0;n<Dp.length;n++)if(e[n]!==Dp[n]){t=!1;break}}let r=void 0===this.brotli&&!t;if(!1===this[Yp]&&r)if(e.length<512){if(!this[$p])return this[Jp]=e,n?.(),!0;this.brotli=!0}else try{new up(e.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(void 0===this[Yp]||!1===this[Yp]&&(this.brotli||t)){let r=this[$p];this[$p]=!1,this[Yp]=void 0===this[Yp]?new Hd({}):t?new ep({}):new Kd({}),this[Yp].on("data",e=>this[Kp](e)),this[Yp].on("error",e=>this.abort(e)),this[Yp].on("end",()=>{this[$p]=!0,this[Kp]()}),this[al]=!0;let o=!!this[Yp][r?"end":"write"](e);return this[al]=!1,n?.(),o}}this[al]=!0,this[Yp]?this[Yp].write(e):this[Kp](e),this[al]=!1;let r=!(this[Wp].length>0)&&(!this[qp]||this[qp].flowing);return!r&&0===this[Wp].length&&this[qp]?.once("drain",()=>this.emit("drain")),n?.(),r}[rl](e){e&&!this[il]&&(this[Jp]=this[Jp]?Buffer.concat([this[Jp],e]):e)}
209
- [ol](){if(this[$p]&&!this[Hp]&&!this[il]&&!this[nl]){this[Hp]=!0;let e=this[Lp];if(e&&e.blockRemain){let t=this[Jp]?this[Jp].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Jp]&&e.write(this[Jp]),e.end()}this[Zp](dl)}}[Kp](e){if(this[nl]&&e)this[rl](e);else if(e||this[Jp]){if(e){if(this[nl]=!0,this[Jp]){this[rl](e);let t=this[Jp];this[Jp]=void 0,this[Xp](t)}else this[Xp](e);for(;this[Jp]&&this[Jp]?.length>=512&&!this[il]&&!this[sl];){let e=this[Jp];this[Jp]=void 0,this[Xp](e)}this[nl]=!1}}else this[ol]();(!this[Jp]||this[$p])&&this[ol]()}[Xp](e){let t=0,n=e.length;for(;t+512<=n&&!this[il]&&!this[sl];)switch(this[xp]){case"begin":case"header":this[tl](e,t),t+=512;break;case"ignore":case"body":t+=this[Qp](e,t);break;case"meta":t+=this[el](e,t);break;default:throw new Error("invalid state: "+this[xp])}t<n&&(this[Jp]=this[Jp]?Buffer.concat([e.subarray(t),this[Jp]]):e.subarray(t))}end(e,t,n){
210
- return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t)),n&&this.once("finish",n),this[il]||(this[Yp]?(e&&this[Yp].write(e),this[Yp].end()):(this[$p]=!0,(void 0===this.brotli||void 0===this.zstd)&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[ol]())),this}},vl=e=>{let t=e.length-1,n=-1;for(;t>-1&&"/"===e.charAt(t);)n=t,t--;return-1===n?e:e.slice(0,n)},hl=(e,t)=>{let n=new Map(t.map(e=>[vl(e),!0])),r=e.filter,o=(e,t="")=>{let r,a=t||R(e).root||".";if(e===a)r=!1;else{let t=n.get(e);r=void 0!==t?t:o(j(e),a)}return n.set(e,r),r};e.filter=r?(e,t)=>r(e,t)&&o(vl(e)):e=>o(vl(e))},fl=Od(e=>{let t,n=new cl(e),r=e.file;try{t=L.openSync(r,"r");let o=L.fstatSync(t),a=e.maxReadSize||16777216;if(o.size<a){let e=Buffer.allocUnsafe(o.size),r=L.readSync(t,e,0,o.size,0);n.end(r===e.byteLength?e:e.subarray(0,r))}else{let e=0,r=Buffer.allocUnsafe(a);for(;e<o.size;){let o=L.readSync(t,r,0,a,e);if(0===o)break;e+=o,
211
- n.write(r.subarray(0,o))}n.end()}}finally{if("number"==typeof t)try{L.closeSync(t)}catch{}}},(e,t)=>{let n=new cl(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("end",e),L.stat(o,(e,a)=>{if(e)t(e);else{let e=new Sd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new cl(e),e=>new cl(e),(e,t)=>{t?.length&&hl(e,t),e.noResume||(e=>{let t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)}),Il=(e,t,n)=>(e&=4095,n&&(e=-19&e|384),t&&(256&e&&(e|=64),32&e&&(e|=8),4&e&&(e|=1)),e),{isAbsolute:wl,parse:gl}=T,bl=e=>{let t="",n=gl(e);for(;wl(e)||n.root;){let r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=gl(e)}return[t,e]},yl=["|","<",">","?",":"],Rl=yl.map(e=>String.fromCodePoint(61440+Number(e.codePointAt(0)))),jl=new Map(yl.map((e,t)=>[e,Rl[t]])),Ul=new Map(Rl.map((e,t)=>[e,yl[t]])),Cl=e=>yl.reduce((e,t)=>e.split(t).join(jl.get(t)),e),El=(e,t)=>t?(e=Ap(e).replace(/^\.(\/|$)/,""),
212
- vl(t)+"/"+e):Ap(e),_l=Symbol("process"),Sl=Symbol("file"),Nl=Symbol("directory"),Al=Symbol("symlink"),kl=Symbol("hardlink"),Pl=Symbol("header"),Tl=Symbol("read"),Dl=Symbol("lstat"),Ol=Symbol("onlstat"),xl=Symbol("onread"),Ll=Symbol("onreadlink"),ql=Symbol("openfile"),Bl=Symbol("onopenfile"),Vl=Symbol("close"),Fl=Symbol("mode"),Ml=Symbol("awaitDrain"),Gl=Symbol("ondrain"),zl=Symbol("prefix"),Jl=class extends Xi{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#e=!1;constructor(e,t={}){let n=Dd(t);super(),this.path=Ap(e),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=Ap(n.cwd||process.cwd()),this.strict=!!n.strict,
213
- this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?Ap(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){let[e,t]=bl(this.path);e&&"string"==typeof t&&(this.path=t,r=e)}var o;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(o=this.path.replaceAll(/\\/g,"/"),Rl.reduce((e,t)=>e.split(t).join(Ul.get(t)),o)),e=e.replaceAll(/\\/g,"/")),this.absolute=Ap(n.absolute||y.resolve(this.cwd,e)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});let a=this.statCache.get(this.absolute);a?this[Ol](a):this[Dl]()}warn(e,t,n={}){return Pp(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#e=!0),super.emit(e,...t)}[Dl](){b.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ol](t)})}[Ol](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),
214
- this.type=Hl(e),this.emit("stat",e),this[_l]()}[_l](){switch(this.type){case"File":return this[Sl]();case"Directory":return this[Nl]();case"SymbolicLink":return this[Al]();default:return this.end()}}[Fl](e){return Il(e,"Directory"===this.type,this.portable)}[zl](e){return El(e,this.prefix)}[Pl](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new up({path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,mode:this[Fl](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),
215
- this.header.encode()&&!this.noPax&&super.write(new Ep({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());let e=this.header?.block;if(!e)throw new Error("failed to encode header");super.write(e)}[Nl](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[Pl](),this.end()}[Al](){b.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ll](t)})}[Ll](e){this.linkpath=Ap(e),this[Pl](),this.end()}[kl](e){
216
- if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=Ap(y.relative(this.cwd,e)),this.stat.size=0,this[Pl](),this.end()}[Sl](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){let e=`${this.stat.dev}:${this.stat.ino}`,t=this.linkCache.get(e);if(0===t?.indexOf(this.cwd))return this[kl](t);this.linkCache.set(e,this.absolute)}if(this[Pl](),0===this.stat.size)return this.end();this[ql]()}[ql](){b.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[Bl](t)})}[Bl](e){if(this.fd=e,this.#e)return this[Vl]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Tl]()}[Tl](){let{fd:e,buf:t,offset:n,length:r,pos:o}=this
217
- ;if(void 0===e||void 0===t)throw new Error("cannot read file without first opening");b.read(e,t,n,r,o,(e,t)=>{if(e)return this[Vl](()=>this.emit("error",e));this[xl](t)})}[Vl](e=()=>{}){void 0!==this.fd&&b.close(this.fd,e)}[xl](e){if(e<=0&&this.remain>0){let e=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[Vl](()=>this.emit("error",e))}if(e>this.remain){let e=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[Vl](()=>this.emit("error",e))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(e===this.remain)for(let t=e;t<this.length&&e<this.blockRemain;t++)this.buf[t+this.offset]=0,e++,this.remain++;let t=0===this.offset&&e===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+e);this.write(t)?this[Gl]():this[Ml](()=>this[Gl]())}[Ml](e){this.once("drain",e)}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),
218
- "string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this.blockRemain<e.length){let e=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",e)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e,null,n)}[Gl](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Vl](e=>e?this.emit("error",e):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Tl]()}},Wl=class extends Jl{sync=!0;[Dl](){this[Ol](b.lstatSync(this.absolute))}[Al](){this[Ll](b.readlinkSync(this.absolute))}[ql](){this[Bl](b.openSync(this.absolute,"r"))}[Tl](){let e=!0;try{let{fd:t,buf:n,offset:r,length:o,pos:a}=this
219
- ;if(void 0===t||void 0===n)throw new Error("fd and buf must be set in READ method");let i=b.readSync(t,n,r,o,a);this[xl](i),e=!1}finally{if(e)try{this[Vl](()=>{})}catch{}}}[Ml](e){e()}[Vl](e=()=>{}){void 0!==this.fd&&b.closeSync(this.fd),e()}},$l=class extends Xi{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(e,t,n={}){return Pp(this,e,t,n)}constructor(e,t={}){let n=Dd(t);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=e;let{type:r}=e;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=Ap(e.path),this.mode=void 0!==e.mode?this[Fl](e.mode):void 0,
220
- this.uid=this.portable?void 0:e.uid,this.gid=this.portable?void 0:e.gid,this.uname=this.portable?void 0:e.uname,this.gname=this.portable?void 0:e.gname,this.size=e.size,this.mtime=this.noMtime?void 0:n.mtime||e.mtime,this.atime=this.portable?void 0:e.atime,this.ctime=this.portable?void 0:e.ctime,this.linkpath=void 0!==e.linkpath?Ap(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let o=!1;if(!this.preservePaths){let[e,t]=bl(this.path);e&&"string"==typeof t&&(this.path=t,o=e)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.onWriteEntry?.(this),this.header=new up({path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),
221
- o&&this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:this,path:o+this.path}),this.header.encode()&&!this.noPax&&super.write(new Ep({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());let a=this.header?.block;if(!a)throw new Error("failed to encode header");super.write(a),e.pipe(this)}[zl](e){return El(e,this.prefix)}[Fl](e){return Il(e,"Directory"===this.type,this.portable)}write(e,t,n){"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8"));let r=e.length
222
- ;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e,n)}end(e,t,n){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t??"utf8")),n&&this.once("finish",n),e?super.end(e,n):super.end(n),this}},Hl=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported",Zl=class e{tail;head;length=0;static create(t=[]){return new e(t)}constructor(e=[]){for(let t of e)this.push(t)}*[Symbol.iterator](){for(let e=this.head;e;e=e.next)yield e.value}removeNode(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");let t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),this.length--,e.next=void 0,e.prev=void 0,e.list=void 0,t}unshiftNode(e){if(e===this.head)return
223
- ;e.list&&e.list.removeNode(e);let t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}pushNode(e){if(e===this.tail)return;e.list&&e.list.removeNode(e);let t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}push(...e){for(let t=0,n=e.length;t<n;t++)Kl(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)Xl(this,e[t]);return this.length}pop(){if(!this.tail)return;let e=this.tail.value,t=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,t.list=void 0,this.length--,e}shift(){if(!this.head)return;let e=this.head.value,t=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,t.list=void 0,this.length--,e}forEach(e,t){t=t||this;for(let n=this.head,r=0;n;r++)e.call(t,n.value,r,this),n=n.next}forEachReverse(e,t){t=t||this;for(let n=this.tail,r=this.length-1;n;r--)e.call(t,n.value,r,this),n=n.prev}get(e){
201
+ static parse(t,n,r=!1){return new e(Np(Ap(t),n),r)}},Np=(e,t)=>t?Object.assign({},t,e):e,Ap=e=>e.replace(/\n$/,"").split("\n").reduce(kp,Object.create(null)),kp=(e,t)=>{let n=parseInt(t,10);if(n!==Buffer.byteLength(t)+1)return e;let r=(t=t.slice((n+" ").length)).split("="),o=r.shift();if(!o)return e;let a=o.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),i=r.join("=");return e[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(1e3*Number(i)):/^[0-9]+$/.test(i)?+i:i,e},Pp="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replaceAll(/\\/g,"/"),Tp=class extends ed{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(e,t,n){switch(super({}),this.pause(),this.extended=t,this.globalExtended=n,this.header=e,this.remain=e.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),
202
+ this.blockRemain=this.startBlockSize,this.type=e.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.path=Pp(e.path),this.mode=e.mode,this.mode&&(this.mode=4095&this.mode),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=this.remain,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath?Pp(e.linkpath):void 0,this.uname=e.uname,this.gname=e.gname,t&&this.#e(t),n&&this.#e(n,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,r=this.blockRemain
203
+ ;return this.remain=Math.max(0,n-t),this.blockRemain=Math.max(0,r-t),!!this.ignore||(n>=t?super.write(e):super.write(e.subarray(0,n)))}#e(e,t=!1){e.path&&(e.path=Pp(e.path)),e.linkpath&&(e.linkpath=Pp(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t))))}},Dp=(e,t,n,r={})=>{e.file&&(r.file=e.file),e.cwd&&(r.cwd=e.cwd),r.code=n instanceof Error&&n.code||t,r.tarCode=t,e.strict||!1===r.recoverable?n instanceof Error?e.emit("error",Object.assign(n,r)):e.emit("error",Object.assign(new Error(`${t}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),e.emit("warn",t,n,r))
204
+ },Op=Buffer.from([31,139]),xp=Buffer.from([40,181,47,253]),Lp=Math.max(Op.length,xp.length),qp=Symbol("state"),Bp=Symbol("writeEntry"),Vp=Symbol("readEntry"),Fp=Symbol("nextEntry"),Mp=Symbol("processEntry"),Gp=Symbol("extendedHeader"),zp=Symbol("globalExtendedHeader"),Jp=Symbol("meta"),Wp=Symbol("emitMeta"),$p=Symbol("buffer"),Hp=Symbol("queue"),Zp=Symbol("ended"),Yp=Symbol("emittedEnd"),Kp=Symbol("emit"),Xp=Symbol("unzip"),Qp=Symbol("consumeChunk"),el=Symbol("consumeChunkSub"),tl=Symbol("consumeBody"),nl=Symbol("consumeMeta"),rl=Symbol("consumeHeader"),ol=Symbol("consuming"),al=Symbol("bufferConcat"),il=Symbol("maybeEnd"),dl=Symbol("writing"),pl=Symbol("aborted"),ll=Symbol("onDone"),sl=Symbol("sawValidEntry"),ul=Symbol("sawNullBlock"),ml=Symbol("sawEOF"),cl=Symbol("closeStream"),vl=()=>!0,hl=class extends t{file;strict;maxMetaEntrySize;filter;brotli;zstd;writable=!0;readable=!1;[Hp]=[];[$p];[Vp];[Bp];[qp]="begin";[Jp]="";[Gp];[zp];[Zp]=!1;[Xp];[pl]=!1;[sl];[ul]=!1;[ml]=!1;[dl]=!1
205
+ ;[ol]=!1;[Yp]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(ll,()=>{("begin"===this[qp]||!1===this[sl])&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(ll,e.ondone):this.on(ll,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||1048576,this.filter="function"==typeof e.filter?e.filter:vl;let t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=e.gzip||e.zstd||void 0===e.brotli?!!t&&void 0:e.brotli;let n=e.file&&(e.file.endsWith(".tar.zst")||e.file.endsWith(".tzst"));this.zstd=e.gzip||e.brotli||void 0===e.zstd?!!n||void 0:e.zstd,this.on("end",()=>this[cl]()),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){Dp(this,e,t,n)}[rl](e,t){let n;void 0===this[sl]&&(this[sl]=!1);try{n=new cp(e,t,this[Gp],this[zp])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}
206
+ if(n.nullBlock)this[ul]?(this[ml]=!0,"begin"===this[qp]&&(this[qp]="header"),this[Kp]("eof")):(this[ul]=!0,this[Kp]("nullBlock"));else if(this[ul]=!1,n.cksumValid)if(n.path){let e=n.type;if(/^(Symbolic)?Link$/.test(e)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(e)||/^(Global)?ExtendedHeader$/.test(e)||!n.linkpath){let e=this[Bp]=new Tp(n,this[Gp],this[zp]);if(!this[sl])if(e.remain){let t=()=>{e.invalid||(this[sl]=!0)};e.on("end",t)}else this[sl]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[Kp]("ignoredEntry",e),this[qp]="ignore",e.resume()):e.size>0&&(this[Jp]="",e.on("data",e=>this[Jp]+=e),this[qp]="meta"):(this[Gp]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[Kp]("ignoredEntry",e),this[qp]=e.remain?"ignore":"header",e.resume()):(e.remain?this[qp]="body":(this[qp]="header",e.end()),this[Vp]?this[Hp].push(e):(this[Hp].push(e),this[Fp]())))
207
+ }else this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n})}else this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n})}[cl](){queueMicrotask(()=>this.emit("close"))}[Mp](e){let t=!0;if(e)if(Array.isArray(e)){let[t,...n]=e;this.emit(t,...n)}else this[Vp]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",()=>this[Fp]()),t=!1);else this[Vp]=void 0,t=!1;return t}[Fp](){do{}while(this[Mp](this[Hp].shift()));if(0===this[Hp].length){let e=this[Vp];!e||e.flowing||e.size===e.remain?this[dl]||this.emit("drain"):e.once("drain",()=>this.emit("drain"))}}[tl](e,t){let n=this[Bp];if(!n)throw new Error("attempt to consume body without entry??");let r=n.blockRemain??0,o=r>=e.length&&0===t?e:e.subarray(t,t+r);return n.write(o),n.blockRemain||(this[qp]="header",this[Bp]=void 0,n.end()),o.length}[nl](e,t){let n=this[Bp],r=this[tl](e,t);return!this[Bp]&&n&&this[Wp](n),r}[Kp](e,t,n){
208
+ 0!==this[Hp].length||this[Vp]?this[Hp].push([e,t,n]):this.emit(e,t,n)}[Wp](e){switch(this[Kp]("meta",this[Jp]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Gp]=Sp.parse(this[Jp],this[Gp],!1);break;case"GlobalExtendedHeader":this[zp]=Sp.parse(this[Jp],this[zp],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let e=this[Gp]??Object.create(null);this[Gp]=e,e.path=this[Jp].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let e=this[Gp]||Object.create(null);this[Gp]=e,e.linkpath=this[Jp].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[pl]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this[pl])return n?.(),!1;if((void 0===this[Xp]||void 0===this.brotli&&!1===this[Xp])&&e){if(this[$p]&&(e=Buffer.concat([this[$p],e]),this[$p]=void 0),e.length<Lp)return this[$p]=e,n?.(),!0
209
+ ;for(let t=0;void 0===this[Xp]&&t<Op.length;t++)e[t]!==Op[t]&&(this[Xp]=!1);let t=!1;if(!1===this[Xp]&&!1!==this.zstd){t=!0;for(let n=0;n<xp.length;n++)if(e[n]!==xp[n]){t=!1;break}}let r=void 0===this.brotli&&!t;if(!1===this[Xp]&&r)if(e.length<512){if(!this[Zp])return this[$p]=e,n?.(),!0;this.brotli=!0}else try{new cp(e.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(void 0===this[Xp]||!1===this[Xp]&&(this.brotli||t)){let r=this[Zp];this[Zp]=!1,this[Xp]=void 0===this[Xp]?new Yd({}):t?new np({}):new Qd({}),this[Xp].on("data",e=>this[Qp](e)),this[Xp].on("error",e=>this.abort(e)),this[Xp].on("end",()=>{this[Zp]=!0,this[Qp]()}),this[dl]=!0;let o=!!this[Xp][r?"end":"write"](e);return this[dl]=!1,n?.(),o}}this[dl]=!0,this[Xp]?this[Xp].write(e):this[Qp](e),this[dl]=!1;let r=!(this[Hp].length>0)&&(!this[Vp]||this[Vp].flowing);return!r&&0===this[Hp].length&&this[Vp]?.once("drain",()=>this.emit("drain")),n?.(),r}[al](e){e&&!this[pl]&&(this[$p]=this[$p]?Buffer.concat([this[$p],e]):e)}
210
+ [il](){if(this[Zp]&&!this[Yp]&&!this[pl]&&!this[ol]){this[Yp]=!0;let e=this[Bp];if(e&&e.blockRemain){let t=this[$p]?this[$p].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[$p]&&e.write(this[$p]),e.end()}this[Kp](ll)}}[Qp](e){if(this[ol]&&e)this[al](e);else if(e||this[$p]){if(e){if(this[ol]=!0,this[$p]){this[al](e);let t=this[$p];this[$p]=void 0,this[el](t)}else this[el](e);for(;this[$p]&&this[$p]?.length>=512&&!this[pl]&&!this[ml];){let e=this[$p];this[$p]=void 0,this[el](e)}this[ol]=!1}}else this[il]();(!this[$p]||this[Zp])&&this[il]()}[el](e){let t=0,n=e.length;for(;t+512<=n&&!this[pl]&&!this[ml];)switch(this[qp]){case"begin":case"header":this[rl](e,t),t+=512;break;case"ignore":case"body":t+=this[tl](e,t);break;case"meta":t+=this[nl](e,t);break;default:throw new Error("invalid state: "+this[qp])}t<n&&(this[$p]=this[$p]?Buffer.concat([e.subarray(t),this[$p]]):e.subarray(t))}end(e,t,n){
211
+ return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t)),n&&this.once("finish",n),this[pl]||(this[Xp]?(e&&this[Xp].write(e),this[Xp].end()):(this[Zp]=!0,(void 0===this.brotli||void 0===this.zstd)&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[il]())),this}},fl=e=>{let t=e.length-1,n=-1;for(;t>-1&&"/"===e.charAt(t);)n=t,t--;return-1===n?e:e.slice(0,n)},Il=(e,t)=>{let n=new Map(t.map(e=>[fl(e),!0])),r=e.filter,o=(e,t="")=>{let r,a=t||U(e).root||".";if(e===a)r=!1;else{let t=n.get(e);r=void 0!==t?t:o(C(e),a)}return n.set(e,r),r};e.filter=r?(e,t)=>r(e,t)&&o(fl(e)):e=>o(fl(e))},wl=Ld(e=>{let t,n=new hl(e),r=e.file;try{t=L.openSync(r,"r");let o=L.fstatSync(t),a=e.maxReadSize||16777216;if(o.size<a){let e=Buffer.allocUnsafe(o.size),r=L.readSync(t,e,0,o.size,0);n.end(r===e.byteLength?e:e.subarray(0,r))}else{let e=0,r=Buffer.allocUnsafe(a);for(;e<o.size;){let o=L.readSync(t,r,0,a,e);if(0===o)break;e+=o,
212
+ n.write(r.subarray(0,o))}n.end()}}finally{if("number"==typeof t)try{L.closeSync(t)}catch{}}},(e,t)=>{let n=new hl(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("end",e),L.stat(o,(e,a)=>{if(e)t(e);else{let e=new Ad(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new hl(e),e=>new hl(e),(e,t)=>{t?.length&&Il(e,t),e.noResume||(e=>{let t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)}),gl=(e,t,n)=>(e&=4095,n&&(e=-19&e|384),t&&(256&e&&(e|=64),32&e&&(e|=8),4&e&&(e|=1)),e),{isAbsolute:bl,parse:yl}=T,Rl=e=>{let t="",n=yl(e);for(;bl(e)||n.root;){let r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=yl(e)}return[t,e]},jl=["|","<",">","?",":"],Ul=jl.map(e=>String.fromCodePoint(61440+Number(e.codePointAt(0)))),Cl=new Map(jl.map((e,t)=>[e,Ul[t]])),El=new Map(Ul.map((e,t)=>[e,jl[t]])),_l=e=>jl.reduce((e,t)=>e.split(t).join(Cl.get(t)),e),Sl=(e,t)=>t?(e=Pp(e).replace(/^\.(\/|$)/,""),
213
+ fl(t)+"/"+e):Pp(e),Nl=Symbol("process"),Al=Symbol("file"),kl=Symbol("directory"),Pl=Symbol("symlink"),Tl=Symbol("hardlink"),Dl=Symbol("header"),Ol=Symbol("read"),xl=Symbol("lstat"),Ll=Symbol("onlstat"),ql=Symbol("onread"),Bl=Symbol("onreadlink"),Vl=Symbol("openfile"),Fl=Symbol("onopenfile"),Ml=Symbol("close"),Gl=Symbol("mode"),zl=Symbol("awaitDrain"),Jl=Symbol("ondrain"),Wl=Symbol("prefix"),$l=class extends ed{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#e=!1;constructor(e,t={}){let n=xd(t);super(),this.path=Pp(e),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=Pp(n.cwd||process.cwd()),this.strict=!!n.strict,
214
+ this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?Pp(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){let[e,t]=Rl(this.path);e&&"string"==typeof t&&(this.path=t,r=e)}var o;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(o=this.path.replaceAll(/\\/g,"/"),Ul.reduce((e,t)=>e.split(t).join(El.get(t)),o)),e=e.replaceAll(/\\/g,"/")),this.absolute=Pp(n.absolute||j.resolve(this.cwd,e)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});let a=this.statCache.get(this.absolute);a?this[Ll](a):this[xl]()}warn(e,t,n={}){return Dp(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#e=!0),super.emit(e,...t)}[xl](){R.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ll](t)})}[Ll](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),
215
+ this.type=Yl(e),this.emit("stat",e),this[Nl]()}[Nl](){switch(this.type){case"File":return this[Al]();case"Directory":return this[kl]();case"SymbolicLink":return this[Pl]();default:return this.end()}}[Gl](e){return gl(e,"Directory"===this.type,this.portable)}[Wl](e){return Sl(e,this.prefix)}[Dl](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new cp({path:this[Wl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Wl](this.linkpath):this.linkpath,mode:this[Gl](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),
216
+ this.header.encode()&&!this.noPax&&super.write(new Sp({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[Wl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Wl](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());let e=this.header?.block;if(!e)throw new Error("failed to encode header");super.write(e)}[kl](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[Dl](),this.end()}[Pl](){R.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Bl](t)})}[Bl](e){this.linkpath=Pp(e),this[Dl](),this.end()}[Tl](e){
217
+ if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=Pp(j.relative(this.cwd,e)),this.stat.size=0,this[Dl](),this.end()}[Al](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){let e=`${this.stat.dev}:${this.stat.ino}`,t=this.linkCache.get(e);if(0===t?.indexOf(this.cwd))return this[Tl](t);this.linkCache.set(e,this.absolute)}if(this[Dl](),0===this.stat.size)return this.end();this[Vl]()}[Vl](){R.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[Fl](t)})}[Fl](e){if(this.fd=e,this.#e)return this[Ml]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Ol]()}[Ol](){let{fd:e,buf:t,offset:n,length:r,pos:o}=this
218
+ ;if(void 0===e||void 0===t)throw new Error("cannot read file without first opening");R.read(e,t,n,r,o,(e,t)=>{if(e)return this[Ml](()=>this.emit("error",e));this[ql](t)})}[Ml](e=()=>{}){void 0!==this.fd&&R.close(this.fd,e)}[ql](e){if(e<=0&&this.remain>0){let e=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[Ml](()=>this.emit("error",e))}if(e>this.remain){let e=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[Ml](()=>this.emit("error",e))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(e===this.remain)for(let t=e;t<this.length&&e<this.blockRemain;t++)this.buf[t+this.offset]=0,e++,this.remain++;let t=0===this.offset&&e===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+e);this.write(t)?this[Jl]():this[zl](()=>this[Jl]())}[zl](e){this.once("drain",e)}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),
219
+ "string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this.blockRemain<e.length){let e=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",e)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e,null,n)}[Jl](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Ml](e=>e?this.emit("error",e):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Ol]()}},Hl=class extends $l{sync=!0;[xl](){this[Ll](R.lstatSync(this.absolute))}[Pl](){this[Bl](R.readlinkSync(this.absolute))}[Vl](){this[Fl](R.openSync(this.absolute,"r"))}[Ol](){let e=!0;try{let{fd:t,buf:n,offset:r,length:o,pos:a}=this
220
+ ;if(void 0===t||void 0===n)throw new Error("fd and buf must be set in READ method");let i=R.readSync(t,n,r,o,a);this[ql](i),e=!1}finally{if(e)try{this[Ml](()=>{})}catch{}}}[zl](e){e()}[Ml](e=()=>{}){void 0!==this.fd&&R.closeSync(this.fd),e()}},Zl=class extends ed{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(e,t,n={}){return Dp(this,e,t,n)}constructor(e,t={}){let n=xd(t);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=e;let{type:r}=e;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=Pp(e.path),this.mode=void 0!==e.mode?this[Gl](e.mode):void 0,
221
+ this.uid=this.portable?void 0:e.uid,this.gid=this.portable?void 0:e.gid,this.uname=this.portable?void 0:e.uname,this.gname=this.portable?void 0:e.gname,this.size=e.size,this.mtime=this.noMtime?void 0:n.mtime||e.mtime,this.atime=this.portable?void 0:e.atime,this.ctime=this.portable?void 0:e.ctime,this.linkpath=void 0!==e.linkpath?Pp(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let o=!1;if(!this.preservePaths){let[e,t]=Rl(this.path);e&&"string"==typeof t&&(this.path=t,o=e)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.onWriteEntry?.(this),this.header=new cp({path:this[Wl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Wl](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),
222
+ o&&this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:this,path:o+this.path}),this.header.encode()&&!this.noPax&&super.write(new Sp({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[Wl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Wl](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());let a=this.header?.block;if(!a)throw new Error("failed to encode header");super.write(a),e.pipe(this)}[Wl](e){return Sl(e,this.prefix)}[Gl](e){return gl(e,"Directory"===this.type,this.portable)}write(e,t,n){"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8"));let r=e.length
223
+ ;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e,n)}end(e,t,n){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,t??"utf8")),n&&this.once("finish",n),e?super.end(e,n):super.end(n),this}},Yl=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported",Kl=class e{tail;head;length=0;static create(t=[]){return new e(t)}constructor(e=[]){for(let t of e)this.push(t)}*[Symbol.iterator](){for(let e=this.head;e;e=e.next)yield e.value}removeNode(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");let t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),this.length--,e.next=void 0,e.prev=void 0,e.list=void 0,t}unshiftNode(e){if(e===this.head)return
224
+ ;e.list&&e.list.removeNode(e);let t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}pushNode(e){if(e===this.tail)return;e.list&&e.list.removeNode(e);let t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}push(...e){for(let t=0,n=e.length;t<n;t++)Ql(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)es(this,e[t]);return this.length}pop(){if(!this.tail)return;let e=this.tail.value,t=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,t.list=void 0,this.length--,e}shift(){if(!this.head)return;let e=this.head.value,t=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,t.list=void 0,this.length--,e}forEach(e,t){t=t||this;for(let n=this.head,r=0;n;r++)e.call(t,n.value,r,this),n=n.next}forEachReverse(e,t){t=t||this;for(let n=this.tail,r=this.length-1;n;r--)e.call(t,n.value,r,this),n=n.prev}get(e){
224
225
  let t=0,n=this.head;for(;n&&t<e;t++)n=n.next;if(t===e&&n)return n.value}getReverse(e){let t=0,n=this.tail;for(;n&&t<e;t++)n=n.prev;if(t===e&&n)return n.value}map(t,n){n=n||this;let r=new e;for(let e=this.head;e;)r.push(t.call(n,e.value,this)),e=e.next;return r}mapReverse(t,n){n=n||this;var r=new e;for(let e=this.tail;e;)r.push(t.call(n,e.value,this)),e=e.prev;return r}reduce(e,t){let n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;r;o++)n=e(n,r.value,o),r=r.next;return n}reduceReverse(e,t){let n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(let t=this.length-1;r;t--)n=e(n,r.value,t),r=r.prev;return n}toArray(){let e=new Array(this.length);for(let t=0,n=this.head;n;t++)e[t]=n.value,n=n.next;return e}toArrayReverse(){let e=new Array(this.length)
225
- ;for(let t=0,n=this.tail;n;t++)e[t]=n.value,n=n.prev;return e}slice(t=0,n=this.length){n<0&&(n+=this.length),t<0&&(t+=this.length);let r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);let o=this.head,a=0;for(a=0;o&&a<t;a++)o=o.next;for(;o&&a<n;a++,o=o.next)r.push(o.value);return r}sliceReverse(t=0,n=this.length){n<0&&(n+=this.length),t<0&&(t+=this.length);let r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);let o=this.length,a=this.tail;for(;a&&o>n;o--)a=a.prev;for(;a&&o>t;o--,a=a.prev)r.push(a.value);return r}splice(e,t=0,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);let r=this.head;for(let t=0;r&&t<e;t++)r=r.next;let o=[];for(let e=0;r&&e<t;e++)o.push(r.value),r=this.removeNode(r);r?r!==this.tail&&(r=r.prev):r=this.tail;for(let e of n)r=Yl(this,r,e);return o}reverse(){let e=this.head,t=this.tail;for(let t=e;t;t=t.prev){let e=t.prev;t.prev=t.next,t.next=e}return this.head=t,this.tail=e,this}};function Yl(e,t,n){
226
- let r=t,o=t?t.next:e.head,a=new Ql(n,r,o,e);return void 0===a.next&&(e.tail=a),void 0===a.prev&&(e.head=a),e.length++,a}function Kl(e,t){e.tail=new Ql(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function Xl(e,t){e.head=new Ql(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}var Ql=class{list;next;prev;value;constructor(e,t,n,r){this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}},es=class{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}
227
- },ts=Buffer.alloc(1024),ns=Symbol("onStat"),rs=Symbol("ended"),os=Symbol("queue"),as=Symbol("current"),is=Symbol("process"),ds=Symbol("processing"),ps=Symbol("processJob"),ls=Symbol("jobs"),ss=Symbol("jobDone"),us=Symbol("addFSEntry"),ms=Symbol("addTarEntry"),cs=Symbol("stat"),vs=Symbol("readdir"),hs=Symbol("onreaddir"),fs=Symbol("pipe"),Is=Symbol("entry"),ws=Symbol("entryOpt"),gs=Symbol("writeEntryClass"),bs=Symbol("write"),ys=Symbol("ondrain"),Rs=class extends Xi{sync=!1;opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[gs];onWriteEntry;[os];[ls]=0;[ds]=!1;[rs]=!1;constructor(e={}){if(super(),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Ap(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,
228
- this.readdirCache=e.readdirCache||new Map,this.onWriteEntry=e.onWriteEntry,this[gs]=Jl,"function"==typeof e.onwarn&&this.on("warn",e.onwarn),this.portable=!!e.portable,e.gzip||e.brotli||e.zstd){if((e.gzip?1:0)+(e.brotli?1:0)+(e.zstd?1:0)>1)throw new TypeError("gzip, brotli, zstd are mutually exclusive");if(e.gzip&&("object"!=typeof e.gzip&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new $d(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new Yd(e.brotli)),e.zstd&&("object"!=typeof e.zstd&&(e.zstd={}),this.zip=new Qd(e.zstd)),!this.zip)throw new Error("impossible");let t=this.zip;t.on("data",e=>super.write(e)),t.on("end",()=>super.end()),t.on("drain",()=>this[ys]()),this.on("resume",()=>t.resume())}else this.on("drain",this[ys]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,e.mtime&&(this.mtime=e.mtime),this.filter="function"==typeof e.filter?e.filter:()=>!0,this[os]=new Zl,this[ls]=0,this.jobs=Number(e.jobs)||4,
229
- this[ds]=!1,this[rs]=!1}[bs](e){return super.write(e)}add(e){return this.write(e),this}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&this.add(e),this[rs]=!0,this[is](),n&&n(),this}write(e){if(this[rs])throw new Error("write after end");return e instanceof kp?this[ms](e):this[us](e),this.flowing}[ms](e){let t=Ap(y.resolve(this.cwd,e.path));if(this.filter(e.path,e)){let n=new es(e.path,t);n.entry=new $l(e,this[ws](n)),n.entry.on("end",()=>this[ss](n)),this[ls]+=1,this[os].push(n)}else e.resume();this[is]()}[us](e){let t=Ap(y.resolve(this.cwd,e));this[os].push(new es(e,t)),this[is]()}[cs](e){e.pending=!0,this[ls]+=1;let t=this.follow?"stat":"lstat";b[t](e.absolute,(t,n)=>{e.pending=!1,this[ls]-=1,t?this.emit("error",t):this[ns](e,n)})}[ns](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)?t.isFile()&&t.nlink>1&&e===this[as]&&!this.linkCache.get(`${t.dev}:${t.ino}`)&&!this.sync&&this[ps](e):e.ignore=!0,this[is]()}[vs](e){
230
- e.pending=!0,this[ls]+=1,b.readdir(e.absolute,(t,n)=>{if(e.pending=!1,this[ls]-=1,t)return this.emit("error",t);this[hs](e,n)})}[hs](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[is]()}[is](){if(!this[ds]){this[ds]=!0;for(let e=this[os].head;e&&this[ls]<this.jobs;e=e.next)if(this[ps](e.value),e.value.ignore){let t=e.next;this[os].removeNode(e),e.next=t}this[ds]=!1,this[rs]&&0===this[os].length&&0===this[ls]&&(this.zip?this.zip.end(ts):(super.write(ts),super.end()))}}get[as](){return this[os]&&this[os].head&&this[os].head.value}[ss](e){this[os].shift(),this[ls]-=1,this[is]()}[ps](e){if(!e.pending){if(e.entry)return void(e===this[as]&&!e.piped&&this[fs](e));if(!e.stat){let t=this.statCache.get(e.absolute);t?this[ns](e,t):this[cs](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){let t=this.readdirCache.get(e.absolute);if(t?this[hs](e,t):this[vs](e),!e.readdir)return}if(e.entry=this[Is](e),!e.entry)return void(e.ignore=!0)
231
- ;e===this[as]&&!e.piped&&this[fs](e)}}}[ws](e){return{onwarn:(e,t,n)=>this.warn(e,t,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[Is](e){this[ls]+=1;try{return new this[gs](e.path,this[ws](e)).on("end",()=>this[ss](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[ys](){this[as]&&this[as].entry&&this[as].entry.resume()}[fs](e){e.piped=!0,e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[us](r+t)});let t=e.entry,n=this.zip;if(!t)throw new Error("cannot pipe without source");n?t.on("data",e=>{n.write(e)||t.pause()}):t.on("data",e=>{super.write(e)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(e,t,n={}){Pp(this,e,t,n)}},js=class extends Rs{sync=!0
232
- ;constructor(e){super(e),this[gs]=Wl}pause(){}resume(){}[cs](e){let t=this.follow?"statSync":"lstatSync";this[ns](e,b[t](e.absolute))}[vs](e){this[hs](e,b.readdirSync(e.absolute))}[fs](e){let t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[us](r+t)}),!t)throw new Error("Cannot pipe without source");n?t.on("data",e=>{n.write(e)}):t.on("data",e=>{super[bs](e)})}},Us=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?fl({file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Cs=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await fl({file:P.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(n);e.end()},Es=Od((e,t)=>{let n=new js(e),r=new kd(e.file,{mode:e.mode||438});n.pipe(r),Us(n,t)},(e,t)=>{let n=new Rs(e),r=new Ad(e.file,{mode:e.mode||438});n.pipe(r);let o=new Promise((e,t)=>{r.on("error",t),r.on("close",e),n.on("error",t)})
233
- ;return Cs(n,t).catch(e=>n.emit("error",e)),o},(e,t)=>{let n=new js(e);return Us(n,t),n},(e,t)=>{let n=new Rs(e);return Cs(n,t).catch(e=>n.emit("error",e)),n},(e,t)=>{if(!t?.length)throw new TypeError("no paths specified to add to archive")}),_s="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:Ss,O_NOFOLLOW:Ns,O_TRUNC:As,O_WRONLY:ks}=b.constants,Ps=Number(process.env.__FAKE_FS_O_FILENAME__)||b.constants.UV_FS_O_FILEMAP||0,Ts=Ps|As|Ss|ks,Ds=_s||"number"!=typeof Ns?null:Ns|As|Ss|ks,Os=null!==Ds?()=>Ds:_s&&!!Ps?e=>e<524288?Ts:"w":()=>"w",xs=(e,t,n)=>{try{return L.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},Ls=(e,t,n,r)=>{L.lchown(e,t,n,e=>{r(e&&"ENOENT"!==e?.code?e:null)})},qs=(e,t,n,r,o)=>{if(t.isDirectory())Bs(P.resolve(e,t.name),n,r,a=>{if(a)return o(a);let i=P.resolve(e,t.name);Ls(i,n,r,o)});else{let a=P.resolve(e,t.name);Ls(a,n,r,o)}},Bs=(e,t,n,r)=>{L.readdir(e,{withFileTypes:!0},(o,a)=>{if(o){if("ENOENT"===o.code)return r()
234
- ;if("ENOTDIR"!==o.code&&"ENOTSUP"!==o.code)return r(o)}if(o||!a.length)return Ls(e,t,n,r);let i=a.length,d=null,p=o=>{if(!d){if(o)return r(d=o);if(0===--i)return Ls(e,t,n,r)}};for(let r of a)qs(e,r,t,n,p)})},Vs=(e,t,n,r)=>{t.isDirectory()&&Fs(P.resolve(e,t.name),n,r),xs(P.resolve(e,t.name),n,r)},Fs=(e,t,n)=>{let r;try{r=L.readdirSync(e,{withFileTypes:!0})}catch(r){let o=r;if("ENOENT"===o?.code)return;if("ENOTDIR"===o?.code||"ENOTSUP"===o?.code)return xs(e,t,n);throw o}for(let o of r)Vs(e,o,t,n);return xs(e,t,n)},Ms=class extends Error{path;code;syscall="chdir";constructor(e,t){super(`${t}: Cannot cd into '${e}'`),this.path=e,this.code=t}get name(){return"CwdError"}},Gs=class extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(e,t){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=e,this.path=t}get name(){return"SymlinkError"}},zs=(e,t,n)=>{e=Ap(e)
235
- ;let r=t.umask??18,o=448|t.mode,a=0!==(o&r),i=t.uid,d=t.gid,p="number"==typeof i&&"number"==typeof d&&(i!==t.processUid||d!==t.processGid),l=t.preserve,s=t.unlink,u=Ap(t.cwd),m=(t,r)=>{t?n(t):r&&p?Bs(r,i,d,e=>m(e)):a?L.chmod(e,o,n):n()};if(e===u)return((e,t)=>{L.stat(e,(n,r)=>{(n||!r.isDirectory())&&(n=new Ms(e,n?.code||"ENOTDIR")),t(n)})})(e,m);if(l)return F.mkdir(e,{mode:o,recursive:!0}).then(e=>m(null,e??void 0),m);let c=Ap(P.relative(u,e)).split("/");Js(u,c,o,s,u,void 0,m)},Js=(e,t,n,r,o,a,i)=>{if(0===t.length)return i(null,a);let d=t.shift(),p=Ap(P.resolve(e+"/"+d));L.mkdir(p,n,Ws(p,t,n,r,o,a,i))},Ws=(e,t,n,r,o,a,i)=>d=>{d?L.lstat(e,(p,l)=>{if(p)p.path=p.path&&Ap(p.path),i(p);else if(l.isDirectory())Js(e,t,n,r,o,a,i);else if(r)L.unlink(e,d=>{if(d)return i(d);L.mkdir(e,n,Ws(e,t,n,r,o,a,i))});else{if(l.isSymbolicLink())return i(new Gs(e,e+"/"+t.join("/")));i(d)}}):Js(e,t,n,r,o,a=a||e,i)},$s=(e,t)=>{e=Ap(e)
236
- ;let n=t.umask??18,r=448|t.mode,o=0!==(r&n),a=t.uid,i=t.gid,d="number"==typeof a&&"number"==typeof i&&(a!==t.processUid||i!==t.processGid),p=t.preserve,l=t.unlink,s=Ap(t.cwd),u=t=>{t&&d&&Fs(t,a,i),o&&L.chmodSync(e,r)};if(e===s)return(e=>{let t,n=!1;try{n=L.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new Ms(e,t??"ENOTDIR")}})(s),u();if(p)return u(L.mkdirSync(e,{mode:r,recursive:!0})??void 0);let m,c=Ap(P.relative(s,e)).split("/");for(let e=c.shift(),t=s;e&&(t+="/"+e);e=c.shift()){t=Ap(P.resolve(t));try{L.mkdirSync(t,r),m=m||t}catch{let e=L.lstatSync(t);if(e.isDirectory())continue;if(l){L.unlinkSync(t),L.mkdirSync(t,r),m=m||t;continue}if(e.isSymbolicLink())return new Gs(t,t+"/"+c.join("/"))}}return u(m)},Hs=Object.create(null),Zs=new Set,Ys="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Ks=class{#e=new Map;#t=new Map;#n=new Set;reserve(e,t){e=Ys?["win32 parallelization disabled"]:e.map(e=>vl(x((e=>{
237
- Zs.has(e)?Zs.delete(e):Hs[e]=e.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),Zs.add(e);let t=Hs[e],n=Zs.size-1e4;if(n>1e3)for(let e of Zs)if(Zs.delete(e),delete Hs[e],--n<=0)break;return t})(e))));let n=new Set(e.map(e=>e.split("/").slice(0,-1).reduce((e,t)=>{let n=e.at(-1);return void 0!==n&&(t=x(n,t)),e.push(t||"/"),e},[])).reduce((e,t)=>e.concat(t)));this.#t.set(t,{dirs:n,paths:e});for(let n of e){let e=this.#e.get(n);e?e.push(t):this.#e.set(n,[t])}for(let e of n){let n=this.#e.get(e);if(n){let e=n.at(-1);e instanceof Set?e.add(t):n.push(new Set([t]))}else this.#e.set(e,[new Set([t])])}return this.#o(t)}#r(e){let t=this.#t.get(e);if(!t)throw new Error("function does not have any path reservations");return{paths:t.paths.map(e=>this.#e.get(e)),dirs:[...t.dirs].map(e=>this.#e.get(e))}}check(e){let{paths:t,dirs:n}=this.#r(e);return t.every(t=>t&&t[0]===e)&&n.every(t=>t&&t[0]instanceof Set&&t[0].has(e))}#o(e){return!(this.#n.has(e)||!this.check(e))&&(this.#n.add(e),
226
+ ;for(let t=0,n=this.tail;n;t++)e[t]=n.value,n=n.prev;return e}slice(t=0,n=this.length){n<0&&(n+=this.length),t<0&&(t+=this.length);let r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);let o=this.head,a=0;for(a=0;o&&a<t;a++)o=o.next;for(;o&&a<n;a++,o=o.next)r.push(o.value);return r}sliceReverse(t=0,n=this.length){n<0&&(n+=this.length),t<0&&(t+=this.length);let r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);let o=this.length,a=this.tail;for(;a&&o>n;o--)a=a.prev;for(;a&&o>t;o--,a=a.prev)r.push(a.value);return r}splice(e,t=0,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);let r=this.head;for(let t=0;r&&t<e;t++)r=r.next;let o=[];for(let e=0;r&&e<t;e++)o.push(r.value),r=this.removeNode(r);r?r!==this.tail&&(r=r.prev):r=this.tail;for(let e of n)r=Xl(this,r,e);return o}reverse(){let e=this.head,t=this.tail;for(let t=e;t;t=t.prev){let e=t.prev;t.prev=t.next,t.next=e}return this.head=t,this.tail=e,this}};function Xl(e,t,n){
227
+ let r=t,o=t?t.next:e.head,a=new ts(n,r,o,e);return void 0===a.next&&(e.tail=a),void 0===a.prev&&(e.head=a),e.length++,a}function Ql(e,t){e.tail=new ts(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function es(e,t){e.head=new ts(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}var ts=class{list;next;prev;value;constructor(e,t,n,r){this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}},ns=class{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}
228
+ },rs=Buffer.alloc(1024),os=Symbol("onStat"),as=Symbol("ended"),is=Symbol("queue"),ds=Symbol("current"),ps=Symbol("process"),ls=Symbol("processing"),ss=Symbol("processJob"),us=Symbol("jobs"),ms=Symbol("jobDone"),cs=Symbol("addFSEntry"),vs=Symbol("addTarEntry"),hs=Symbol("stat"),fs=Symbol("readdir"),Is=Symbol("onreaddir"),ws=Symbol("pipe"),gs=Symbol("entry"),bs=Symbol("entryOpt"),ys=Symbol("writeEntryClass"),Rs=Symbol("write"),js=Symbol("ondrain"),Us=class extends ed{sync=!1;opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[ys];onWriteEntry;[is];[us]=0;[ls]=!1;[as]=!1;constructor(e={}){if(super(),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Pp(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,
229
+ this.readdirCache=e.readdirCache||new Map,this.onWriteEntry=e.onWriteEntry,this[ys]=$l,"function"==typeof e.onwarn&&this.on("warn",e.onwarn),this.portable=!!e.portable,e.gzip||e.brotli||e.zstd){if((e.gzip?1:0)+(e.brotli?1:0)+(e.zstd?1:0)>1)throw new TypeError("gzip, brotli, zstd are mutually exclusive");if(e.gzip&&("object"!=typeof e.gzip&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new Zd(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new Xd(e.brotli)),e.zstd&&("object"!=typeof e.zstd&&(e.zstd={}),this.zip=new tp(e.zstd)),!this.zip)throw new Error("impossible");let t=this.zip;t.on("data",e=>super.write(e)),t.on("end",()=>super.end()),t.on("drain",()=>this[js]()),this.on("resume",()=>t.resume())}else this.on("drain",this[js]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,e.mtime&&(this.mtime=e.mtime),this.filter="function"==typeof e.filter?e.filter:()=>!0,this[is]=new Kl,this[us]=0,this.jobs=Number(e.jobs)||4,
230
+ this[ls]=!1,this[as]=!1}[Rs](e){return super.write(e)}add(e){return this.write(e),this}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&this.add(e),this[as]=!0,this[ps](),n&&n(),this}write(e){if(this[as])throw new Error("write after end");return e instanceof Tp?this[vs](e):this[cs](e),this.flowing}[vs](e){let t=Pp(j.resolve(this.cwd,e.path));if(this.filter(e.path,e)){let n=new ns(e.path,t);n.entry=new Zl(e,this[bs](n)),n.entry.on("end",()=>this[ms](n)),this[us]+=1,this[is].push(n)}else e.resume();this[ps]()}[cs](e){let t=Pp(j.resolve(this.cwd,e));this[is].push(new ns(e,t)),this[ps]()}[hs](e){e.pending=!0,this[us]+=1;let t=this.follow?"stat":"lstat";R[t](e.absolute,(t,n)=>{e.pending=!1,this[us]-=1,t?this.emit("error",t):this[os](e,n)})}[os](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)?t.isFile()&&t.nlink>1&&e===this[ds]&&!this.linkCache.get(`${t.dev}:${t.ino}`)&&!this.sync&&this[ss](e):e.ignore=!0,this[ps]()}[fs](e){
231
+ e.pending=!0,this[us]+=1,R.readdir(e.absolute,(t,n)=>{if(e.pending=!1,this[us]-=1,t)return this.emit("error",t);this[Is](e,n)})}[Is](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[ps]()}[ps](){if(!this[ls]){this[ls]=!0;for(let e=this[is].head;e&&this[us]<this.jobs;e=e.next)if(this[ss](e.value),e.value.ignore){let t=e.next;this[is].removeNode(e),e.next=t}this[ls]=!1,this[as]&&0===this[is].length&&0===this[us]&&(this.zip?this.zip.end(rs):(super.write(rs),super.end()))}}get[ds](){return this[is]&&this[is].head&&this[is].head.value}[ms](e){this[is].shift(),this[us]-=1,this[ps]()}[ss](e){if(!e.pending){if(e.entry)return void(e===this[ds]&&!e.piped&&this[ws](e));if(!e.stat){let t=this.statCache.get(e.absolute);t?this[os](e,t):this[hs](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){let t=this.readdirCache.get(e.absolute);if(t?this[Is](e,t):this[fs](e),!e.readdir)return}if(e.entry=this[gs](e),!e.entry)return void(e.ignore=!0)
232
+ ;e===this[ds]&&!e.piped&&this[ws](e)}}}[bs](e){return{onwarn:(e,t,n)=>this.warn(e,t,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[gs](e){this[us]+=1;try{return new this[ys](e.path,this[bs](e)).on("end",()=>this[ms](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[js](){this[ds]&&this[ds].entry&&this[ds].entry.resume()}[ws](e){e.piped=!0,e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[cs](r+t)});let t=e.entry,n=this.zip;if(!t)throw new Error("cannot pipe without source");n?t.on("data",e=>{n.write(e)||t.pause()}):t.on("data",e=>{super.write(e)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(e,t,n={}){Dp(this,e,t,n)}},Cs=class extends Us{sync=!0
233
+ ;constructor(e){super(e),this[ys]=Hl}pause(){}resume(){}[hs](e){let t=this.follow?"statSync":"lstatSync";this[os](e,R[t](e.absolute))}[fs](e){this[Is](e,R.readdirSync(e.absolute))}[ws](e){let t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[cs](r+t)}),!t)throw new Error("Cannot pipe without source");n?t.on("data",e=>{n.write(e)}):t.on("data",e=>{super[Rs](e)})}},Es=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?wl({file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},_s=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await wl({file:P.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(n);e.end()},Ss=Ld((e,t)=>{let n=new Cs(e),r=new Td(e.file,{mode:e.mode||438});n.pipe(r),Es(n,t)},(e,t)=>{let n=new Us(e),r=new Pd(e.file,{mode:e.mode||438});n.pipe(r);let o=new Promise((e,t)=>{r.on("error",t),r.on("close",e),n.on("error",t)})
234
+ ;return _s(n,t).catch(e=>n.emit("error",e)),o},(e,t)=>{let n=new Cs(e);return Es(n,t),n},(e,t)=>{let n=new Us(e);return _s(n,t).catch(e=>n.emit("error",e)),n},(e,t)=>{if(!t?.length)throw new TypeError("no paths specified to add to archive")}),Ns="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:As,O_NOFOLLOW:ks,O_TRUNC:Ps,O_WRONLY:Ts}=R.constants,Ds=Number(process.env.__FAKE_FS_O_FILENAME__)||R.constants.UV_FS_O_FILEMAP||0,Os=Ds|Ps|As|Ts,xs=Ns||"number"!=typeof ks?null:ks|Ps|As|Ts,Ls=null!==xs?()=>xs:Ns&&!!Ds?e=>e<524288?Os:"w":()=>"w",qs=(e,t,n)=>{try{return L.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},Bs=(e,t,n,r)=>{L.lchown(e,t,n,e=>{r(e&&"ENOENT"!==e?.code?e:null)})},Vs=(e,t,n,r,o)=>{if(t.isDirectory())Fs(P.resolve(e,t.name),n,r,a=>{if(a)return o(a);let i=P.resolve(e,t.name);Bs(i,n,r,o)});else{let a=P.resolve(e,t.name);Bs(a,n,r,o)}},Fs=(e,t,n,r)=>{L.readdir(e,{withFileTypes:!0},(o,a)=>{if(o){if("ENOENT"===o.code)return r()
235
+ ;if("ENOTDIR"!==o.code&&"ENOTSUP"!==o.code)return r(o)}if(o||!a.length)return Bs(e,t,n,r);let i=a.length,d=null,p=o=>{if(!d){if(o)return r(d=o);if(0===--i)return Bs(e,t,n,r)}};for(let r of a)Vs(e,r,t,n,p)})},Ms=(e,t,n,r)=>{t.isDirectory()&&Gs(P.resolve(e,t.name),n,r),qs(P.resolve(e,t.name),n,r)},Gs=(e,t,n)=>{let r;try{r=L.readdirSync(e,{withFileTypes:!0})}catch(r){let o=r;if("ENOENT"===o?.code)return;if("ENOTDIR"===o?.code||"ENOTSUP"===o?.code)return qs(e,t,n);throw o}for(let o of r)Ms(e,o,t,n);return qs(e,t,n)},zs=class extends Error{path;code;syscall="chdir";constructor(e,t){super(`${t}: Cannot cd into '${e}'`),this.path=e,this.code=t}get name(){return"CwdError"}},Js=class extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(e,t){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=e,this.path=t}get name(){return"SymlinkError"}},Ws=(e,t,n)=>{e=Pp(e)
236
+ ;let r=t.umask??18,o=448|t.mode,a=0!==(o&r),i=t.uid,d=t.gid,p="number"==typeof i&&"number"==typeof d&&(i!==t.processUid||d!==t.processGid),l=t.preserve,s=t.unlink,u=Pp(t.cwd),m=(t,r)=>{t?n(t):r&&p?Fs(r,i,d,e=>m(e)):a?L.chmod(e,o,n):n()};if(e===u)return((e,t)=>{L.stat(e,(n,r)=>{(n||!r.isDirectory())&&(n=new zs(e,n?.code||"ENOTDIR")),t(n)})})(e,m);if(l)return F.mkdir(e,{mode:o,recursive:!0}).then(e=>m(null,e??void 0),m);let c=Pp(P.relative(u,e)).split("/");$s(u,c,o,s,u,void 0,m)},$s=(e,t,n,r,o,a,i)=>{if(0===t.length)return i(null,a);let d=t.shift(),p=Pp(P.resolve(e+"/"+d));L.mkdir(p,n,Hs(p,t,n,r,o,a,i))},Hs=(e,t,n,r,o,a,i)=>d=>{d?L.lstat(e,(p,l)=>{if(p)p.path=p.path&&Pp(p.path),i(p);else if(l.isDirectory())$s(e,t,n,r,o,a,i);else if(r)L.unlink(e,d=>{if(d)return i(d);L.mkdir(e,n,Hs(e,t,n,r,o,a,i))});else{if(l.isSymbolicLink())return i(new Js(e,e+"/"+t.join("/")));i(d)}}):$s(e,t,n,r,o,a=a||e,i)},Zs=(e,t)=>{e=Pp(e)
237
+ ;let n=t.umask??18,r=448|t.mode,o=0!==(r&n),a=t.uid,i=t.gid,d="number"==typeof a&&"number"==typeof i&&(a!==t.processUid||i!==t.processGid),p=t.preserve,l=t.unlink,s=Pp(t.cwd),u=t=>{t&&d&&Gs(t,a,i),o&&L.chmodSync(e,r)};if(e===s)return(e=>{let t,n=!1;try{n=L.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new zs(e,t??"ENOTDIR")}})(s),u();if(p)return u(L.mkdirSync(e,{mode:r,recursive:!0})??void 0);let m,c=Pp(P.relative(s,e)).split("/");for(let e=c.shift(),t=s;e&&(t+="/"+e);e=c.shift()){t=Pp(P.resolve(t));try{L.mkdirSync(t,r),m=m||t}catch{let e=L.lstatSync(t);if(e.isDirectory())continue;if(l){L.unlinkSync(t),L.mkdirSync(t,r),m=m||t;continue}if(e.isSymbolicLink())return new Js(t,t+"/"+c.join("/"))}}return u(m)},Ys=Object.create(null),Ks=new Set,Xs="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Qs=class{#e=new Map;#t=new Map;#n=new Set;reserve(e,t){e=Xs?["win32 parallelization disabled"]:e.map(e=>fl(x((e=>{
238
+ Ks.has(e)?Ks.delete(e):Ys[e]=e.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),Ks.add(e);let t=Ys[e],n=Ks.size-1e4;if(n>1e3)for(let e of Ks)if(Ks.delete(e),delete Ys[e],--n<=0)break;return t})(e))));let n=new Set(e.map(e=>e.split("/").slice(0,-1).reduce((e,t)=>{let n=e.at(-1);return void 0!==n&&(t=x(n,t)),e.push(t||"/"),e},[])).reduce((e,t)=>e.concat(t)));this.#t.set(t,{dirs:n,paths:e});for(let n of e){let e=this.#e.get(n);e?e.push(t):this.#e.set(n,[t])}for(let e of n){let n=this.#e.get(e);if(n){let e=n.at(-1);e instanceof Set?e.add(t):n.push(new Set([t]))}else this.#e.set(e,[new Set([t])])}return this.#o(t)}#r(e){let t=this.#t.get(e);if(!t)throw new Error("function does not have any path reservations");return{paths:t.paths.map(e=>this.#e.get(e)),dirs:[...t.dirs].map(e=>this.#e.get(e))}}check(e){let{paths:t,dirs:n}=this.#r(e);return t.every(t=>t&&t[0]===e)&&n.every(t=>t&&t[0]instanceof Set&&t[0].has(e))}#o(e){return!(this.#n.has(e)||!this.check(e))&&(this.#n.add(e),
238
239
  e(()=>this.#a(e)),!0)}#a(e){if(!this.#n.has(e))return!1;let t=this.#t.get(e);if(!t)throw new Error("invalid reservation");let{paths:n,dirs:r}=t,o=new Set;for(let t of n){let n=this.#e.get(t);if(!n||n?.[0]!==e)continue;let r=n[1];if(r)if(n.shift(),"function"==typeof r)o.add(r);else for(let e of r)o.add(e);else this.#e.delete(t)}for(let t of r){let n=this.#e.get(t),r=n?.[0];if(n&&r instanceof Set){if(1===r.size&&1===n.length){this.#e.delete(t);continue}if(1===r.size){n.shift();let e=n[0];"function"==typeof e&&o.add(e)}else r.delete(e)}}return this.#n.delete(e),o.forEach(e=>this.#o(e)),!0}
239
- },Xs=Symbol("onEntry"),Qs=Symbol("checkFs"),eu=Symbol("checkFs2"),tu=Symbol("isReusable"),nu=Symbol("makeFs"),ru=Symbol("file"),ou=Symbol("directory"),au=Symbol("link"),iu=Symbol("symlink"),du=Symbol("hardlink"),pu=Symbol("ensureNoSymlink"),lu=Symbol("unsupported"),su=Symbol("checkPath"),uu=Symbol("stripAbsolutePath"),mu=Symbol("mkdir"),cu=Symbol("onError"),vu=Symbol("pending"),hu=Symbol("pend"),fu=Symbol("unpend"),Iu=Symbol("ended"),wu=Symbol("maybeClose"),gu=Symbol("skip"),bu=Symbol("doChown"),yu=Symbol("uid"),Ru=Symbol("gid"),ju=Symbol("checkedCwd"),Uu="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Cu=(e,t,n)=>void 0!==e&&e===e>>>0?e:void 0!==t&&t===t>>>0?t:n,Eu=class extends cl{[Iu]=!1;[ju]=!1;[vu]=0;reservations=new Ks;transform;writable=!0;readable=!1;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(e={}){if(e.ondone=()=>{
240
- this[Iu]=!0,this[wu]()},super(e),this.transform=e.transform,this.chmod=!!e.chmod,"number"==typeof e.uid||"number"==typeof e.gid){if("number"!=typeof e.uid||"number"!=typeof e.gid)throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;this.preserveOwner=void 0===e.preserveOwner&&"number"!=typeof e.uid?!(!process.getuid||0!==process.getuid()):!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1024,this.forceChown=!0===e.forceChown,this.win32=!!e.win32||Uu,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,
241
- this.unlink=!!e.unlink,this.cwd=Ap(P.resolve(e.cwd||process.cwd())),this.strip=Number(e.strip)||0,this.processUmask=this.chmod?"number"==typeof e.processUmask?e.processUmask:process.umask():0,this.umask="number"==typeof e.umask?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",e=>this[Xs](e))}warn(e,t,n={}){return("TAR_BAD_ARCHIVE"===e||"TAR_ABORT"===e)&&(n.recoverable=!1),super.warn(e,t,n)}[wu](){this[Iu]&&0===this[vu]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[uu](e,t){let n=e[t],{type:r}=e;if(!n||this.preservePaths)return!0;let[o,a]=bl(n),i=a.replaceAll(/\\/g,"/").split("/");if(i.includes("..")||Uu&&/^[a-z]:\.\.$/i.test(i[0]??"")){if("path"===t||"Link"===r)return this.warn("TAR_ENTRY_ERROR",`${t} contains '..'`,{entry:e,[t]:n}),!1;let o=P.posix.dirname(e.path),a=P.posix.normalize(P.posix.join(o,i.join("/")))
242
- ;if(a.startsWith("../")||".."===a)return this.warn("TAR_ENTRY_ERROR",`${t} escapes extraction directory`,{entry:e,[t]:n}),!1}return o&&(e[t]=String(a),this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute ${t}`,{entry:e,[t]:n})),!0}[su](e){let t=Ap(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){let t=Ap(String(e.linkpath)).split("/");if(!(t.length>=this.strip))return!1;e.linkpath=t.slice(this.strip).join("/")}n.splice(0,this.strip),e.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this[uu](e,"path")||!this[uu](e,"linkpath"))return!1;if(e.absolute=P.isAbsolute(e.path)?Ap(P.resolve(e.path)):Ap(P.resolve(this.cwd,e.path)),!this.preservePaths&&"string"==typeof e.absolute&&0!==e.absolute.indexOf(this.cwd+"/")&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{
243
- entry:e,path:Ap(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&"Directory"!==e.type&&"GNUDumpDir"!==e.type)return!1;if(this.win32){let{root:t}=P.win32.parse(String(e.absolute));e.absolute=t+Cl(String(e.absolute).slice(t.length));let{root:n}=P.win32.parse(e.path);e.path=n+Cl(e.path.slice(n.length))}return!0}[Xs](e){if(!this[su](e))return e.resume();switch(B.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=448|e.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Qs](e);default:return this[lu](e)}}[cu](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[fu](),t.resume())}[mu](e,t,n){zs(Ap(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t},n)}[bu](e){
244
- return this.forceChown||this.preserveOwner&&("number"==typeof e.uid&&e.uid!==this.processUid||"number"==typeof e.gid&&e.gid!==this.processGid)||"number"==typeof this.uid&&this.uid!==this.processUid||"number"==typeof this.gid&&this.gid!==this.processGid}[yu](e){return Cu(this.uid,e.uid,this.processUid)}[Ru](e){return Cu(this.gid,e.gid,this.processGid)}[ru](e,t){let n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new Ad(String(e.absolute),{flags:Os(e.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&L.close(r.fd,()=>{}),r.write=()=>!0,this[cu](n,e),t()});let o=1,a=n=>{if(n)return r.fd&&L.close(r.fd,()=>{}),this[cu](n,e),void t();0===--o&&void 0!==r.fd&&L.close(r.fd,n=>{n?this[cu](n,e):this[fu](),t()})};r.on("finish",()=>{let t=String(e.absolute),n=r.fd;if("number"==typeof n&&e.mtime&&!this.noMtime){o++;let r=e.atime||new Date,i=e.mtime;L.futimes(n,r,i,e=>e?L.utimes(t,r,i,t=>a(t&&e)):a())}if("number"==typeof n&&this[bu](e)){o++;let r=this[yu](e),i=this[Ru](e)
245
- ;"number"==typeof r&&"number"==typeof i&&L.fchown(n,r,i,e=>e?L.chown(t,r,i,t=>a(t&&e)):a())}a()});let i=this.transform&&this.transform(e)||e;i!==e&&(i.on("error",n=>{this[cu](n,e),t()}),e.pipe(i)),i.pipe(r)}[ou](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode;this[mu](String(e.absolute),n,n=>{if(n)return this[cu](n,e),void t();let r=1,o=()=>{0===--r&&(t(),this[fu](),e.resume())};e.mtime&&!this.noMtime&&(r++,L.utimes(String(e.absolute),e.atime||new Date,e.mtime,o)),this[bu](e)&&(r++,L.chown(String(e.absolute),Number(this[yu](e)),Number(this[Ru](e)),o)),o()})}[lu](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[iu](e,t){let n=Ap(P.relative(this.cwd,P.resolve(P.dirname(String(e.absolute)),String(e.linkpath)))).split("/");this[pu](e,this.cwd,n,()=>this[au](e,String(e.linkpath),"symlink",t),n=>{this[cu](n,e),t()})}[du](e,t){let n=Ap(P.resolve(this.cwd,String(e.linkpath))),r=Ap(String(e.linkpath)).split("/")
246
- ;this[pu](e,this.cwd,r,()=>this[au](e,n,"link",t),n=>{this[cu](n,e),t()})}[pu](e,t,n,r,o){let a=n.shift();if(this.preservePaths||void 0===a)return r();let i=P.resolve(t,a);L.lstat(i,(t,a)=>t?r():a?.isSymbolicLink()?o(new Gs(i,P.resolve(i,n.join("/")))):void this[pu](e,i,n,r,o))}[hu](){this[vu]++}[fu](){this[vu]--,this[wu]()}[gu](e){this[fu](),e.resume()}[tu](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!Uu}[Qs](e){this[hu]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,t=>this[eu](e,t))}[eu](e,t){let n=e=>{t(e)},r=()=>{if(e.absolute!==this.cwd){let t=Ap(P.dirname(String(e.absolute)));if(t!==this.cwd)return this[mu](t,this.dmode,t=>{if(t)return this[cu](t,e),void n();o()})}o()},o=()=>{L.lstat(String(e.absolute),(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[gu](e),void n();if(t||this[tu](e,r))return this[nu](null,e,n);if(r.isDirectory()){if("Directory"===e.type){let t=t=>this[nu](t??null,e,n)
247
- ;return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?L.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return L.rmdir(String(e.absolute),t=>this[nu](t??null,e,n))}if(e.absolute===this.cwd)return this[nu](null,e,n);((e,t)=>{if(!Uu)return L.unlink(e,t);let n=e+".DELETE."+V(16).toString("hex");L.rename(e,n,e=>{if(e)return t(e);L.unlink(n,t)})})(String(e.absolute),t=>this[nu](t??null,e,n))})};this[ju]?r():(()=>{this[mu](this.cwd,this.dmode,t=>{if(t)return this[cu](t,e),void n();this[ju]=!0,r()})})()}[nu](e,t,n){if(e)return this[cu](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[ru](t,n);case"Link":return this[du](t,n);case"SymbolicLink":return this[iu](t,n);case"Directory":case"GNUDumpDir":return this[ou](t,n)}}[au](e,t,n,r){L[n](t,String(e.absolute),t=>{t?this[cu](t,e):(this[fu](),e.resume()),r()})}},_u=e=>{try{return[null,e()]}catch(e){return[e,null]}},Su=class extends Eu{sync=!0;[nu](e,t){return super[nu](e,t,()=>{})}[Qs](e){
248
- if(!this[ju]){let t=this[mu](this.cwd,this.dmode);if(t)return this[cu](t,e);this[ju]=!0}if(e.absolute!==this.cwd){let t=Ap(P.dirname(String(e.absolute)));if(t!==this.cwd){let n=this[mu](t,this.dmode);if(n)return this[cu](n,e)}}let[t,n]=_u(()=>L.lstatSync(String(e.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[gu](e);if(t||this[tu](e,n))return this[nu](null,e);if(n.isDirectory()){if("Directory"===e.type){let t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?_u(()=>{L.chmodSync(String(e.absolute),Number(e.mode))}):[];return this[nu](r,e)}let[t]=_u(()=>L.rmdirSync(String(e.absolute)));this[nu](t,e)}let[r]=e.absolute===this.cwd?[]:_u(()=>(e=>{if(!Uu)return L.unlinkSync(e);let t=e+".DELETE."+V(16).toString("hex");L.renameSync(e,t),L.unlinkSync(t)})(String(e.absolute)));this[nu](r,e)}[ru](e,t){let n,r="number"==typeof e.mode?4095&e.mode:this.fmode,o=r=>{let o;try{L.closeSync(n)}catch(e){o=e}(r||o)&&this[cu](r||o,e),t()};try{
249
- n=L.openSync(String(e.absolute),Os(e.size),r)}catch(e){return o(e)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",t=>this[cu](t,e)),e.pipe(a)),a.on("data",e=>{try{L.writeSync(n,e,0,e.length)}catch(e){o(e)}}),a.on("end",()=>{let t=null;if(e.mtime&&!this.noMtime){let r=e.atime||new Date,o=e.mtime;try{L.futimesSync(n,r,o)}catch(n){try{L.utimesSync(String(e.absolute),r,o)}catch{t=n}}}if(this[bu](e)){let r=this[yu](e),o=this[Ru](e);try{L.fchownSync(n,Number(r),Number(o))}catch(n){try{L.chownSync(String(e.absolute),Number(r),Number(o))}catch{t=t||n}}}o(t)})}[ou](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[mu](String(e.absolute),n);if(r)return this[cu](r,e),void t();if(e.mtime&&!this.noMtime)try{L.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch{}if(this[bu](e))try{L.chownSync(String(e.absolute),Number(this[yu](e)),Number(this[Ru](e)))}catch{}t(),e.resume()}[mu](e,t){try{return $s(Ap(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,
250
- processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t})}catch(e){return e}}[pu](e,t,n,r,o){if(this.preservePaths||0===n.length)return r();let a=t;for(let e of n){a=P.resolve(a,e);let[i,d]=_u(()=>L.lstatSync(a));if(i)return r();if(d.isSymbolicLink())return o(new Gs(a,P.resolve(t,n.join("/"))))}r()}[au](e,t,n,r){let o=`${n}Sync`;try{L[o](t,String(e.absolute)),r(),e.resume()}catch(t){return this[cu](t,e)}}},Nu=Od(e=>{let t=new Su(e),n=e.file,r=L.statSync(n),o=e.maxReadSize||16777216;new Nd(n,{readSize:o,size:r.size}).pipe(t)},(e,t)=>{let n=new Eu(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("close",e),L.stat(o,(e,a)=>{if(e)t(e);else{let e=new Sd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new Su(e),e=>new Eu(e),(e,t)=>{t?.length&&hl(e,t)}),Au=(e,t,n,r,o)=>{let a=new kd(e.file,{fd:r,start:n});t.pipe(a),ku(t,o)},ku=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?fl({
251
- file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Pu=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await fl({file:P.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(n);e.end()},Tu=Od((e,t)=>{let n,r,o=new js(e),a=!0;try{try{n=L.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;n=L.openSync(e.file,"w+")}let i=L.fstatSync(n),d=Buffer.alloc(512);e:for(r=0;r<i.size;r+=512){for(let e=0,t=0;e<512;e+=t){if(t=L.readSync(n,d,e,d.length-e,r+e),0===r&&31===d[0]&&139===d[1])throw new Error("cannot append to compressed archives");if(!t)break e}let t=new up(d);if(!t.cksumValid)break;let o=512*Math.ceil((t.size||0)/512);if(r+o+512>i.size)break;r+=o,e.mtimeCache&&t.mtime&&e.mtimeCache.set(String(t.path),t.mtime)}a=!1,Au(e,o,r,n,t)}finally{if(a)try{L.closeSync(n)}catch{}}},(e,t)=>{t=Array.from(t);let n=new Rs(e);return new Promise((r,o)=>{n.on("error",o);let a="r+",i=(d,p)=>d&&"ENOENT"===d.code&&"r+"===a?(a="w+",
252
- L.open(e.file,a,i)):d||!p?o(d):void L.fstat(p,(a,i)=>{if(a)return L.close(p,()=>o(a));((t,n,r)=>{let o=(e,n)=>{e?L.close(t,t=>r(e)):r(null,n)},a=0;if(0===n)return o(null,0);let i=0,d=Buffer.alloc(512),p=(r,l)=>{if(r||void 0===l)return o(r);if(i+=l,i<512&&l)return L.read(t,d,i,d.length-i,a+i,p);if(0===a&&31===d[0]&&139===d[1])return o(new Error("cannot append to compressed archives"));if(i<512)return o(null,a);let s=new up(d);if(!s.cksumValid)return o(null,a);let u=512*Math.ceil((s.size??0)/512);if(a+u+512>n||(a+=u+512,a>=n))return o(null,a);e.mtimeCache&&s.mtime&&e.mtimeCache.set(String(s.path),s.mtime),i=0,L.read(t,d,0,512,a,p)};L.read(t,d,0,512,a,p)})(p,i.size,(a,i)=>{if(a)return o(a);let d=new Ad(e.file,{fd:p,start:i});n.pipe(d),d.on("error",o),d.on("close",r),Pu(n,t)})});L.open(e.file,a,i)})},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(e,t)=>{if(!(e=>!!e.file)(e))throw new TypeError("file is required")
253
- ;if(e.gzip||e.brotli||e.zstd||e.file.endsWith(".br")||e.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t?.length)throw new TypeError("no paths specified to add/replace")});Od(Tu.syncFile,Tu.asyncFile,Tu.syncNoFile,Tu.asyncNoFile,(e,t=[])=>{Tu.validate?.(e,t),xu(e)});var Du,Ou,xu=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(n,r)=>t(n,r)&&!((e.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(t,n)=>!((e.mtimeCache?.get(t)??n.mtime??0)>(n.mtime??0))};var Lu,qu=function(){if(Ou)return Du;function e(e){return Array.isArray(e)?e:[e]}Ou=1;const t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,o=/^\\#/,a=/\r?\n/g,i=/^\.*\/|^\.+$/;let d="node-ignore";"undefined"!=typeof Symbol&&(d=Symbol.for("node-ignore"));const p=d,l=/([0-z])-([0-z])/g,s=()=>!1,u=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "
240
+ },eu=Symbol("onEntry"),tu=Symbol("checkFs"),nu=Symbol("checkFs2"),ru=Symbol("isReusable"),ou=Symbol("makeFs"),au=Symbol("file"),iu=Symbol("directory"),du=Symbol("link"),pu=Symbol("symlink"),lu=Symbol("hardlink"),su=Symbol("ensureNoSymlink"),uu=Symbol("unsupported"),mu=Symbol("checkPath"),cu=Symbol("stripAbsolutePath"),vu=Symbol("mkdir"),hu=Symbol("onError"),fu=Symbol("pending"),Iu=Symbol("pend"),wu=Symbol("unpend"),gu=Symbol("ended"),bu=Symbol("maybeClose"),yu=Symbol("skip"),Ru=Symbol("doChown"),ju=Symbol("uid"),Uu=Symbol("gid"),Cu=Symbol("checkedCwd"),Eu="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),_u=(e,t,n)=>void 0!==e&&e===e>>>0?e:void 0!==t&&t===t>>>0?t:n,Su=class extends hl{[gu]=!1;[Cu]=!1;[fu]=0;reservations=new Qs;transform;writable=!0;readable=!1;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(e={}){if(e.ondone=()=>{
241
+ this[gu]=!0,this[bu]()},super(e),this.transform=e.transform,this.chmod=!!e.chmod,"number"==typeof e.uid||"number"==typeof e.gid){if("number"!=typeof e.uid||"number"!=typeof e.gid)throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;this.preserveOwner=void 0===e.preserveOwner&&"number"!=typeof e.uid?!(!process.getuid||0!==process.getuid()):!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1024,this.forceChown=!0===e.forceChown,this.win32=!!e.win32||Eu,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,
242
+ this.unlink=!!e.unlink,this.cwd=Pp(P.resolve(e.cwd||process.cwd())),this.strip=Number(e.strip)||0,this.processUmask=this.chmod?"number"==typeof e.processUmask?e.processUmask:process.umask():0,this.umask="number"==typeof e.umask?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",e=>this[eu](e))}warn(e,t,n={}){return("TAR_BAD_ARCHIVE"===e||"TAR_ABORT"===e)&&(n.recoverable=!1),super.warn(e,t,n)}[bu](){this[gu]&&0===this[fu]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[cu](e,t){let n=e[t],{type:r}=e;if(!n||this.preservePaths)return!0;let[o,a]=Rl(n),i=a.replaceAll(/\\/g,"/").split("/");if(i.includes("..")||Eu&&/^[a-z]:\.\.$/i.test(i[0]??"")){if("path"===t||"Link"===r)return this.warn("TAR_ENTRY_ERROR",`${t} contains '..'`,{entry:e,[t]:n}),!1;let o=P.posix.dirname(e.path),a=P.posix.normalize(P.posix.join(o,i.join("/")))
243
+ ;if(a.startsWith("../")||".."===a)return this.warn("TAR_ENTRY_ERROR",`${t} escapes extraction directory`,{entry:e,[t]:n}),!1}return o&&(e[t]=String(a),this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute ${t}`,{entry:e,[t]:n})),!0}[mu](e){let t=Pp(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){let t=Pp(String(e.linkpath)).split("/");if(!(t.length>=this.strip))return!1;e.linkpath=t.slice(this.strip).join("/")}n.splice(0,this.strip),e.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this[cu](e,"path")||!this[cu](e,"linkpath"))return!1;if(e.absolute=P.isAbsolute(e.path)?Pp(P.resolve(e.path)):Pp(P.resolve(this.cwd,e.path)),!this.preservePaths&&"string"==typeof e.absolute&&0!==e.absolute.indexOf(this.cwd+"/")&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{
244
+ entry:e,path:Pp(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&"Directory"!==e.type&&"GNUDumpDir"!==e.type)return!1;if(this.win32){let{root:t}=P.win32.parse(String(e.absolute));e.absolute=t+_l(String(e.absolute).slice(t.length));let{root:n}=P.win32.parse(e.path);e.path=n+_l(e.path.slice(n.length))}return!0}[eu](e){if(!this[mu](e))return e.resume();switch(B.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=448|e.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[tu](e);default:return this[uu](e)}}[hu](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[wu](),t.resume())}[vu](e,t,n){Ws(Pp(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t},n)}[Ru](e){
245
+ return this.forceChown||this.preserveOwner&&("number"==typeof e.uid&&e.uid!==this.processUid||"number"==typeof e.gid&&e.gid!==this.processGid)||"number"==typeof this.uid&&this.uid!==this.processUid||"number"==typeof this.gid&&this.gid!==this.processGid}[ju](e){return _u(this.uid,e.uid,this.processUid)}[Uu](e){return _u(this.gid,e.gid,this.processGid)}[au](e,t){let n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new Pd(String(e.absolute),{flags:Ls(e.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&L.close(r.fd,()=>{}),r.write=()=>!0,this[hu](n,e),t()});let o=1,a=n=>{if(n)return r.fd&&L.close(r.fd,()=>{}),this[hu](n,e),void t();0===--o&&void 0!==r.fd&&L.close(r.fd,n=>{n?this[hu](n,e):this[wu](),t()})};r.on("finish",()=>{let t=String(e.absolute),n=r.fd;if("number"==typeof n&&e.mtime&&!this.noMtime){o++;let r=e.atime||new Date,i=e.mtime;L.futimes(n,r,i,e=>e?L.utimes(t,r,i,t=>a(t&&e)):a())}if("number"==typeof n&&this[Ru](e)){o++;let r=this[ju](e),i=this[Uu](e)
246
+ ;"number"==typeof r&&"number"==typeof i&&L.fchown(n,r,i,e=>e?L.chown(t,r,i,t=>a(t&&e)):a())}a()});let i=this.transform&&this.transform(e)||e;i!==e&&(i.on("error",n=>{this[hu](n,e),t()}),e.pipe(i)),i.pipe(r)}[iu](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode;this[vu](String(e.absolute),n,n=>{if(n)return this[hu](n,e),void t();let r=1,o=()=>{0===--r&&(t(),this[wu](),e.resume())};e.mtime&&!this.noMtime&&(r++,L.utimes(String(e.absolute),e.atime||new Date,e.mtime,o)),this[Ru](e)&&(r++,L.chown(String(e.absolute),Number(this[ju](e)),Number(this[Uu](e)),o)),o()})}[uu](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[pu](e,t){let n=Pp(P.relative(this.cwd,P.resolve(P.dirname(String(e.absolute)),String(e.linkpath)))).split("/");this[su](e,this.cwd,n,()=>this[du](e,String(e.linkpath),"symlink",t),n=>{this[hu](n,e),t()})}[lu](e,t){let n=Pp(P.resolve(this.cwd,String(e.linkpath))),r=Pp(String(e.linkpath)).split("/")
247
+ ;this[su](e,this.cwd,r,()=>this[du](e,n,"link",t),n=>{this[hu](n,e),t()})}[su](e,t,n,r,o){let a=n.shift();if(this.preservePaths||void 0===a)return r();let i=P.resolve(t,a);L.lstat(i,(t,a)=>t?r():a?.isSymbolicLink()?o(new Js(i,P.resolve(i,n.join("/")))):void this[su](e,i,n,r,o))}[Iu](){this[fu]++}[wu](){this[fu]--,this[bu]()}[yu](e){this[wu](),e.resume()}[ru](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!Eu}[tu](e){this[Iu]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,t=>this[nu](e,t))}[nu](e,t){let n=e=>{t(e)},r=()=>{if(e.absolute!==this.cwd){let t=Pp(P.dirname(String(e.absolute)));if(t!==this.cwd)return this[vu](t,this.dmode,t=>{if(t)return this[hu](t,e),void n();o()})}o()},o=()=>{L.lstat(String(e.absolute),(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[yu](e),void n();if(t||this[ru](e,r))return this[ou](null,e,n);if(r.isDirectory()){if("Directory"===e.type){let t=t=>this[ou](t??null,e,n)
248
+ ;return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?L.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return L.rmdir(String(e.absolute),t=>this[ou](t??null,e,n))}if(e.absolute===this.cwd)return this[ou](null,e,n);((e,t)=>{if(!Eu)return L.unlink(e,t);let n=e+".DELETE."+V(16).toString("hex");L.rename(e,n,e=>{if(e)return t(e);L.unlink(n,t)})})(String(e.absolute),t=>this[ou](t??null,e,n))})};this[Cu]?r():(()=>{this[vu](this.cwd,this.dmode,t=>{if(t)return this[hu](t,e),void n();this[Cu]=!0,r()})})()}[ou](e,t,n){if(e)return this[hu](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[au](t,n);case"Link":return this[lu](t,n);case"SymbolicLink":return this[pu](t,n);case"Directory":case"GNUDumpDir":return this[iu](t,n)}}[du](e,t,n,r){L[n](t,String(e.absolute),t=>{t?this[hu](t,e):(this[wu](),e.resume()),r()})}},Nu=e=>{try{return[null,e()]}catch(e){return[e,null]}},Au=class extends Su{sync=!0;[ou](e,t){return super[ou](e,t,()=>{})}[tu](e){
249
+ if(!this[Cu]){let t=this[vu](this.cwd,this.dmode);if(t)return this[hu](t,e);this[Cu]=!0}if(e.absolute!==this.cwd){let t=Pp(P.dirname(String(e.absolute)));if(t!==this.cwd){let n=this[vu](t,this.dmode);if(n)return this[hu](n,e)}}let[t,n]=Nu(()=>L.lstatSync(String(e.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[yu](e);if(t||this[ru](e,n))return this[ou](null,e);if(n.isDirectory()){if("Directory"===e.type){let t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?Nu(()=>{L.chmodSync(String(e.absolute),Number(e.mode))}):[];return this[ou](r,e)}let[t]=Nu(()=>L.rmdirSync(String(e.absolute)));this[ou](t,e)}let[r]=e.absolute===this.cwd?[]:Nu(()=>(e=>{if(!Eu)return L.unlinkSync(e);let t=e+".DELETE."+V(16).toString("hex");L.renameSync(e,t),L.unlinkSync(t)})(String(e.absolute)));this[ou](r,e)}[au](e,t){let n,r="number"==typeof e.mode?4095&e.mode:this.fmode,o=r=>{let o;try{L.closeSync(n)}catch(e){o=e}(r||o)&&this[hu](r||o,e),t()};try{
250
+ n=L.openSync(String(e.absolute),Ls(e.size),r)}catch(e){return o(e)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",t=>this[hu](t,e)),e.pipe(a)),a.on("data",e=>{try{L.writeSync(n,e,0,e.length)}catch(e){o(e)}}),a.on("end",()=>{let t=null;if(e.mtime&&!this.noMtime){let r=e.atime||new Date,o=e.mtime;try{L.futimesSync(n,r,o)}catch(n){try{L.utimesSync(String(e.absolute),r,o)}catch{t=n}}}if(this[Ru](e)){let r=this[ju](e),o=this[Uu](e);try{L.fchownSync(n,Number(r),Number(o))}catch(n){try{L.chownSync(String(e.absolute),Number(r),Number(o))}catch{t=t||n}}}o(t)})}[iu](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[vu](String(e.absolute),n);if(r)return this[hu](r,e),void t();if(e.mtime&&!this.noMtime)try{L.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch{}if(this[Ru](e))try{L.chownSync(String(e.absolute),Number(this[ju](e)),Number(this[Uu](e)))}catch{}t(),e.resume()}[vu](e,t){try{return Zs(Pp(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,
251
+ processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t})}catch(e){return e}}[su](e,t,n,r,o){if(this.preservePaths||0===n.length)return r();let a=t;for(let e of n){a=P.resolve(a,e);let[i,d]=Nu(()=>L.lstatSync(a));if(i)return r();if(d.isSymbolicLink())return o(new Js(a,P.resolve(t,n.join("/"))))}r()}[du](e,t,n,r){let o=`${n}Sync`;try{L[o](t,String(e.absolute)),r(),e.resume()}catch(t){return this[hu](t,e)}}},ku=Ld(e=>{let t=new Au(e),n=e.file,r=L.statSync(n),o=e.maxReadSize||16777216;new kd(n,{readSize:o,size:r.size}).pipe(t)},(e,t)=>{let n=new Su(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("close",e),L.stat(o,(e,a)=>{if(e)t(e);else{let e=new Ad(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new Au(e),e=>new Su(e),(e,t)=>{t?.length&&Il(e,t)}),Pu=(e,t,n,r,o)=>{let a=new Td(e.file,{fd:r,start:n});t.pipe(a),Tu(t,o)},Tu=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?wl({
252
+ file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Du=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await wl({file:P.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(n);e.end()},Ou=Ld((e,t)=>{let n,r,o=new Cs(e),a=!0;try{try{n=L.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;n=L.openSync(e.file,"w+")}let i=L.fstatSync(n),d=Buffer.alloc(512);e:for(r=0;r<i.size;r+=512){for(let e=0,t=0;e<512;e+=t){if(t=L.readSync(n,d,e,d.length-e,r+e),0===r&&31===d[0]&&139===d[1])throw new Error("cannot append to compressed archives");if(!t)break e}let t=new cp(d);if(!t.cksumValid)break;let o=512*Math.ceil((t.size||0)/512);if(r+o+512>i.size)break;r+=o,e.mtimeCache&&t.mtime&&e.mtimeCache.set(String(t.path),t.mtime)}a=!1,Pu(e,o,r,n,t)}finally{if(a)try{L.closeSync(n)}catch{}}},(e,t)=>{t=Array.from(t);let n=new Us(e);return new Promise((r,o)=>{n.on("error",o);let a="r+",i=(d,p)=>d&&"ENOENT"===d.code&&"r+"===a?(a="w+",
253
+ L.open(e.file,a,i)):d||!p?o(d):void L.fstat(p,(a,i)=>{if(a)return L.close(p,()=>o(a));((t,n,r)=>{let o=(e,n)=>{e?L.close(t,t=>r(e)):r(null,n)},a=0;if(0===n)return o(null,0);let i=0,d=Buffer.alloc(512),p=(r,l)=>{if(r||void 0===l)return o(r);if(i+=l,i<512&&l)return L.read(t,d,i,d.length-i,a+i,p);if(0===a&&31===d[0]&&139===d[1])return o(new Error("cannot append to compressed archives"));if(i<512)return o(null,a);let s=new cp(d);if(!s.cksumValid)return o(null,a);let u=512*Math.ceil((s.size??0)/512);if(a+u+512>n||(a+=u+512,a>=n))return o(null,a);e.mtimeCache&&s.mtime&&e.mtimeCache.set(String(s.path),s.mtime),i=0,L.read(t,d,0,512,a,p)};L.read(t,d,0,512,a,p)})(p,i.size,(a,i)=>{if(a)return o(a);let d=new Pd(e.file,{fd:p,start:i});n.pipe(d),d.on("error",o),d.on("close",r),Du(n,t)})});L.open(e.file,a,i)})},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(e,t)=>{if(!(e=>!!e.file)(e))throw new TypeError("file is required")
254
+ ;if(e.gzip||e.brotli||e.zstd||e.file.endsWith(".br")||e.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t?.length)throw new TypeError("no paths specified to add/replace")});Ld(Ou.syncFile,Ou.asyncFile,Ou.syncNoFile,Ou.asyncNoFile,(e,t=[])=>{Ou.validate?.(e,t),qu(e)});var xu,Lu,qu=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(n,r)=>t(n,r)&&!((e.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(t,n)=>!((e.mtimeCache?.get(t)??n.mtime??0)>(n.mtime??0))};var Bu,Vu=function(){if(Lu)return xu;function e(e){return Array.isArray(e)?e:[e]}Lu=1;const t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,o=/^\\#/,a=/\r?\n/g,i=/^\.*\/|^\.+$/;let d="node-ignore";"undefined"!=typeof Symbol&&(d=Symbol.for("node-ignore"));const p=d,l=/([0-z])-([0-z])/g,s=()=>!1,u=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "
254
255
  }],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,o)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${o}`:"]"===o&&r.length%2==0?`[${(e=>e.replace(l,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:""))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],m=Object.create(null),c=e=>"string"==typeof e;class v{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const h=(e,t)=>{const n=e;let a=!1;0===e.indexOf("!")&&(a=!0,e=e.substr(1));const i=((e,t)=>{let n=m[e]
255
256
  ;return n||(n=u.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),m[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(r,"!").replace(o,"#"),t);return new v(n,e,a,i)},f=(e,t)=>{throw new t(e)},I=(e,t,n)=>{if(!c(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(I.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},w=e=>i.test(e);I.isNotRelative=w,I.convert=e=>e;class g{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,o,a;r=this,o=p,a=!0,Object.defineProperty(r,o,{value:a}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[p])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&c(e)&&!t.test(e)&&!n.test(e)&&0!==e.indexOf("#"))(e)){const t=h(e,this._ignoreCase)
256
- ;this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(c(t)?(e=>e.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(o=>{const{negative:a}=o;if(r===a&&n!==r||a&&!n&&!r&&!t)return;o.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){const o=e&&I.convert(e);return I(o,e,this._allowRelativePaths?s:f),this._t(o,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const o=this._t(r.join("/")+"/",t,n,r);return t[e]=o.ignored?o:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const b=e=>new g(e);if(b.isPathValid=e=>I(e&&I.convert(e),e,s),b.default=b,Du=b,
257
- "undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");I.convert=e;const t=/^[a-z]:\//i;I.isNotRelative=e=>t.test(e)||w(e)}return Du}(),Bu=sr(qu);!function(e){e.DIRECTORY_UPLOAD="directory-upload",e.FILE_UPLOAD="file-upload",e.DIRECTORY_DOWNLOAD="directory-download",e.FILE_DOWNLOAD="file-download"}(Lu||(Lu={}));var Vu,Fu=function(){function e(e,t){var n=this;if(this.exec=e,this.parameters=t,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(e){if(void 0!==e){var t=Bu({allowRelativePaths:!0}).add(e);return function(e){return!t.ignores(e)}}},this.getTarTransformFn=function(e,t){return function(n){n.path=n.path.replace(e,t)}},this.ensureDirRemote=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){switch(o.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)];case 1:if(n=o.sent(),
257
+ ;this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(c(t)?(e=>e.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(o=>{const{negative:a}=o;if(r===a&&n!==r||a&&!n&&!r&&!t)return;o.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){const o=e&&I.convert(e);return I(o,e,this._allowRelativePaths?s:f),this._t(o,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const o=this._t(r.join("/")+"/",t,n,r);return t[e]=o.ignored?o:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const b=e=>new g(e);if(b.isPathValid=e=>I(e&&I.convert(e),e,s),b.default=b,xu=b,
258
+ "undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");I.convert=e;const t=/^[a-z]:\//i;I.isNotRelative=e=>t.test(e)||w(e)}return xu}(),Fu=sr(Vu);!function(e){e.DIRECTORY_UPLOAD="directory-upload",e.FILE_UPLOAD="file-upload",e.DIRECTORY_DOWNLOAD="directory-download",e.FILE_DOWNLOAD="file-download"}(Bu||(Bu={}));var Mu,Gu=function(){function e(e,t){var n=this;if(this.exec=e,this.parameters=t,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(e){if(void 0!==e){var t=Fu({allowRelativePaths:!0}).add(e);return function(e){return!t.ignores(e)}}},this.getTarTransformFn=function(e,t){return function(n){n.path=n.path.replace(e,t)}},this.ensureDirRemote=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){switch(o.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)];case 1:if(n=o.sent(),
258
259
  "Success"!==(null===(r=null==n?void 0:n.commandResult)||void 0===r?void 0:r.status))throw new Error("Failed creating remote directory.");return[2]}})})},this.ensureTarCmd=function(){return J(n,void 0,void 0,function(){var e,t,n;return W(this,function(r){switch(r.label){case 0:return e=["tar","--version"],[4,this.runCommand(e)];case 1:if(t=r.sent(),"Success"!==(null===(n=null==t?void 0:t.commandResult)||void 0===n?void 0:n.status))throw new Error("Tar command not found on remote container. Required for file copy.");return[2]}})})},this.pathExistsRemote=function(e){return J(n,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsDirRemote=function(e){return J(n,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=["test","-d",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},
259
260
  this.checkIsFileRemote=function(e){return J(n,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.runCommand=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return J(n,$([e],t,!0),void 0,function(e,t){var n,r,o,a,i,d,p,l,s,u,m;return void 0===t&&(t="none"),W(this,function(c){switch(c.label){case 0:return r=(n=this).exec,o=n.parameters,a=o.teamId,i=o.projectId,d=o.resourceId,p=o.resourceType,l=o.containerName,s=o.instanceName,u={command:e,shell:t,containerName:l,instanceName:s},"service"!==p?[3,2]:[4,r.execServiceCommand({teamId:a,projectId:i,serviceId:d},u)];case 1:return m=c.sent(),[3,4];case 2:return[4,r.execJobCommand({teamId:a,projectId:i,jobId:d},u)];case 3:m=c.sent(),c.label=4;case 4:return[2,m]}})})},this.runSession=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i,d,p,l,s,u;return W(this,function(m){
260
- switch(m.label){case 0:return n=(t=this).exec,r=t.parameters,o=r.teamId,a=r.projectId,i=r.resourceId,d=r.resourceType,p=r.containerName,l=r.instanceName,s={command:e,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:p,instanceName:l},"service"!==d?[3,2]:[4,n.execServiceSession({teamId:o,projectId:a,serviceId:i},s)];case 1:return u=m.sent(),[3,4];case 2:return[4,n.execJobSession({teamId:o,projectId:a,jobId:i},s)];case 3:u=m.sent(),m.label=4;case 4:return[2,u]}})})},!["service","job"].includes(t.resourceType))throw new Error("Invalid resource type: ".concat(t.resourceType,", only 'service' and 'job' supported"))}return e.prototype.uploadFiles=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,u,m,c,v;return W(this,function(h){switch(h.label){case 0:if(void 0===e||!b.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."));return r=b.lstatSync(e).isFile(),o=r?y.dirname(e):e,a=r?y.basename(e):".",
261
- i=r&&void 0!==t&&""!==y.extname(t),d=i?y.dirname(t):null!=t?t:o,p=void 0!==t?y.basename(t):a,l=Es({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(a,p):void 0},ko(a)),[4,this.ensureTarCmd()];case 1:return h.sent(),[4,this.ensureDirRemote(d)];case 2:return h.sent(),s=$($(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",d],!1),[4,this.runSession(s)];case 3:return u=h.sent(),m=new To,c=new To,u.stdErr.pipe(m),u.stdOut.pipe(c),l.pipe(u.stdIn),[4,u.waitForCommandResult()];case 4:if("Success"!==(null==(v=h.sent())?void 0:v.status))throw new Error("Failed to upload file to container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString(),"; ").concat(c.getContentsAsString()));return r?[2,{type:Lu.FILE_UPLOAD,sourceDirectory:o,sourceFile:a,targetDirectory:d,targetFile:p}]:[2,{type:Lu.DIRECTORY_UPLOAD,sourceDirectory:o,targetDirectory:d}]}})})},
262
- e.prototype.uploadStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,p,l,s;return W(this,function(u){switch(u.label){case 0:return n=function(e){var t=new i({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),n="string"==typeof e,r=Buffer.isBuffer(e);return n||r?d.from(e).pipe(t):e.pipe(t)},r=y.dirname(t),[4,this.ensureTarCmd()];case 1:return u.sent(),[4,this.ensureDirRemote(r)];case 2:return u.sent(),o=["tee",t],[4,this.runSession(o)];case 3:return a=u.sent(),p=new To,l=new To,a.stdErr.pipe(p),a.stdOut.pipe(l),n(e).pipe(a.stdIn),[4,a.waitForCommandResult()];case 4:return s=u.sent(),[4,this.runCommand(["cat",t])];case 5:if(u.sent(),"Success"!==(null==s?void 0:s.status))throw new Error("Failed to upload file to container: ".concat(null==s?void 0:s.message,", error details: ").concat(p.getContentsAsString(),"; ").concat(l.getContentsAsString()));return[2]}})})},e.prototype.downloadFiles=function(e,t,n){return J(this,void 0,void 0,function(){
263
- var r,o,a,i,d,p,l,s,u,m,c,v,h,f;return W(this,function(I){switch(I.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!I.sent(),I.label=2;case 2:if(r)throw new Error("Remote path '".concat(e,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(e)];case 3:return o=I.sent(),a=o?e:y.dirname(e),i=o?".":y.basename(e),d=void 0!==t&&""!==y.extname(t),p=!o&&d?y.basename(t):i,(l=void 0!==t?d?y.dirname(t):t:".")&&b.mkdirSync(l,{recursive:!0}),s=ko(null!=n?n:[]).map(function(e){return"--exclude=".concat(e)}),u=$($(["tar","-zcf","-"],["--no-same-owner"],!0),s,!0),m=$($([],u,!0),["-C",a,i],!1),[4,this.runSession(m)];case 4:return c=I.sent(),v=Nu({cwd:l,gzip:{encoding:this.defaultEncoding},onReadEntry:p?this.getTarTransformFn(i,p):void 0}),h=new To,c.stdErr.pipe(h),c.stdOut.pipe(v),[4,c.waitForCommandResult()];case 5:
264
- if("Success"!==(null==(f=I.sent())?void 0:f.status))throw new Error("Failed to download file from container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString()));return o?[2,{type:Lu.DIRECTORY_DOWNLOAD,sourceDirectory:a,targetDirectory:l}]:[2,{type:Lu.FILE_DOWNLOAD,sourceDirectory:a,sourceFile:i,targetDirectory:l,targetFile:p}]}})})},e.prototype.downloadStream=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:return[4,this.checkIsFileRemote(e)];case 1:if(!a.sent())throw new Error("Remote path '".concat(e,"' must be a file."));return t=y.dirname(e),[4,this.ensureTarCmd()];case 2:return a.sent(),[4,this.ensureDirRemote(t)];case 3:return a.sent(),n=["cat",e],[4,this.runSession(n)];case 4:return r=a.sent(),o=new To,r.stdErr.pipe(o),[2,{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(function(e){return 0===e.exitCode})}]}})})},e}(),Mu=function(){function e(e,t){this.exec=e,
265
- this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,
266
- projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.downloadJobFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadJobFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,
267
- r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.copy=function(e,t,n){
268
- return J(this,void 0,void 0,function(){var r,o,a;return W(this,function(i){switch(i.label){case 0:switch(r=new Fu(this.exec,z(z({},e),{instanceName:t.instanceName,containerName:t.containerName})),o=$($([],null!==(a=t.ignoreList)&&void 0!==a?a:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,r.downloadFiles(t.remotePath,t.localPath,o)];case 2:case 4:return[2,i.sent()];case 3:return[4,r.uploadFiles(t.localPath,t.remotePath,o)];case 5:return[2]}})})},e}(),Gu=function(e){function t(t){var n=this.constructor,r=e.call(this,t.message)||this;r.name="NorthflankApiCallError",r.message=t.message,r.status=t.status,r.id=t.id,r.details=t.details;var o=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o,r}return G(t,e),t}(Error);!function(e){e.CDN="cdn",e.Mesh="mesh",e.Ingress="ingress",e.Runtime="runtime"}(Vu||(Vu={}));var zu,Ju=function(e){return{containerId:e.containerId,log:e.log,ts:new Date(e.ts)}
269
- },Wu=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.baseUrl=t,a.logsConfig=n,a.token=r,a.agent=o,a.stop=function(){return J(a,void 0,void 0,function(){var e;return W(this,function(t){if(void 0===this.logSession)throw new Error("No command is running");return null===(e=this.remote)||void 0===e||e.close(),[2]})})},a}return G(t,e),t.getLogsEndpoint=function(e){var t=e.containerName,n=e.types,r=e.entityId,o=e.entityType,a=e.buildId,i=e.runId,d=e.backupId,p=e.restoreId,l=e.deploymentId,s=e.isBuild,u=e.lineLimit,m=e.teamId,c=e.projectId,v=e.queryType,h=e.startTime,f=e.endTime,I=e.duration,w=e.direction,g=e.textIncludes,b=e.textNotIncludes,y=e.regexIncludes,R=e.regexNotIncludes,j=void 0!==m?"teams/".concat(m,"/"):"",U="/v1/".concat(j,"projects/").concat(c,"/"),C=new URLSearchParams;return C.append("queryType",v),void 0!==h&&C.append("startTime",h.toISOString()),void 0!==f&&C.append("endTime",f.toISOString()),void 0!==u&&C.append("lineLimit",u.toString()),
261
+ switch(m.label){case 0:return n=(t=this).exec,r=t.parameters,o=r.teamId,a=r.projectId,i=r.resourceId,d=r.resourceType,p=r.containerName,l=r.instanceName,s={command:e,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:p,instanceName:l},"service"!==d?[3,2]:[4,n.execServiceSession({teamId:o,projectId:a,serviceId:i},s)];case 1:return u=m.sent(),[3,4];case 2:return[4,n.execJobSession({teamId:o,projectId:a,jobId:i},s)];case 3:u=m.sent(),m.label=4;case 4:return[2,u]}})})},!["service","job"].includes(t.resourceType))throw new Error("Invalid resource type: ".concat(t.resourceType,", only 'service' and 'job' supported"))}return e.prototype.uploadFiles=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,u,m,c,v;return W(this,function(h){switch(h.label){case 0:if(void 0===e||!R.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."));return r=R.lstatSync(e).isFile(),o=r?j.dirname(e):e,a=r?j.basename(e):".",
262
+ i=r&&void 0!==t&&""!==j.extname(t),d=i?j.dirname(t):null!=t?t:o,p=void 0!==t?j.basename(t):a,l=Ss({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(a,p):void 0},Ua(a)),[4,this.ensureTarCmd()];case 1:return h.sent(),[4,this.ensureDirRemote(d)];case 2:return h.sent(),s=$($(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",d],!1),[4,this.runSession(s)];case 3:return u=h.sent(),m=new Oa,c=new Oa,u.stdErr.pipe(m),u.stdOut.pipe(c),l.pipe(u.stdIn),[4,u.waitForCommandResult()];case 4:if("Success"!==(null==(v=h.sent())?void 0:v.status))throw new Error("Failed to upload file to container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString(),"; ").concat(c.getContentsAsString()));return r?[2,{type:Bu.FILE_UPLOAD,sourceDirectory:o,sourceFile:a,targetDirectory:d,targetFile:p}]:[2,{type:Bu.DIRECTORY_UPLOAD,sourceDirectory:o,targetDirectory:d}]}})})},
263
+ e.prototype.uploadStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,p,l,s;return W(this,function(u){switch(u.label){case 0:return n=function(e){var t=new i({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),n="string"==typeof e,r=Buffer.isBuffer(e);return n||r?d.from(e).pipe(t):e.pipe(t)},r=j.dirname(t),[4,this.ensureTarCmd()];case 1:return u.sent(),[4,this.ensureDirRemote(r)];case 2:return u.sent(),o=["tee",t],[4,this.runSession(o)];case 3:return a=u.sent(),p=new Oa,l=new Oa,a.stdErr.pipe(p),a.stdOut.pipe(l),n(e).pipe(a.stdIn),[4,a.waitForCommandResult()];case 4:return s=u.sent(),[4,this.runCommand(["cat",t])];case 5:if(u.sent(),"Success"!==(null==s?void 0:s.status))throw new Error("Failed to upload file to container: ".concat(null==s?void 0:s.message,", error details: ").concat(p.getContentsAsString(),"; ").concat(l.getContentsAsString()));return[2]}})})},e.prototype.downloadFiles=function(e,t,n){return J(this,void 0,void 0,function(){
264
+ var r,o,a,i,d,p,l,s,u,m,c,v,h,f;return W(this,function(I){switch(I.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!I.sent(),I.label=2;case 2:if(r)throw new Error("Remote path '".concat(e,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(e)];case 3:return o=I.sent(),a=o?e:j.dirname(e),i=o?".":j.basename(e),d=void 0!==t&&""!==j.extname(t),p=!o&&d?j.basename(t):i,(l=void 0!==t?d?j.dirname(t):t:".")&&R.mkdirSync(l,{recursive:!0}),s=Ua(null!=n?n:[]).map(function(e){return"--exclude=".concat(e)}),u=$($(["tar","-zcf","-"],["--no-same-owner"],!0),s,!0),m=$($([],u,!0),["-C",a,i],!1),[4,this.runSession(m)];case 4:return c=I.sent(),v=ku({cwd:l,gzip:{encoding:this.defaultEncoding},onReadEntry:p?this.getTarTransformFn(i,p):void 0}),h=new Oa,c.stdErr.pipe(h),c.stdOut.pipe(v),[4,c.waitForCommandResult()];case 5:
265
+ if("Success"!==(null==(f=I.sent())?void 0:f.status))throw new Error("Failed to download file from container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString()));return o?[2,{type:Bu.DIRECTORY_DOWNLOAD,sourceDirectory:a,targetDirectory:l}]:[2,{type:Bu.FILE_DOWNLOAD,sourceDirectory:a,sourceFile:i,targetDirectory:l,targetFile:p}]}})})},e.prototype.downloadStream=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:return[4,this.checkIsFileRemote(e)];case 1:if(!a.sent())throw new Error("Remote path '".concat(e,"' must be a file."));return t=j.dirname(e),[4,this.ensureTarCmd()];case 2:return a.sent(),[4,this.ensureDirRemote(t)];case 3:return a.sent(),n=["cat",e],[4,this.runSession(n)];case 4:return r=a.sent(),o=new Oa,r.stdErr.pipe(o),[2,{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(function(e){return 0===e.exitCode})}]}})})},e}(),zu=function(){function e(e,t){this.exec=e,
266
+ this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new Gu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,
267
+ projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new Gu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.downloadJobFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadJobFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,
268
+ r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Gu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Gu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.copy=function(e,t,n){
269
+ return J(this,void 0,void 0,function(){var r,o,a;return W(this,function(i){switch(i.label){case 0:switch(r=new Gu(this.exec,z(z({},e),{instanceName:t.instanceName,containerName:t.containerName})),o=$($([],null!==(a=t.ignoreList)&&void 0!==a?a:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,r.downloadFiles(t.remotePath,t.localPath,o)];case 2:case 4:return[2,i.sent()];case 3:return[4,r.uploadFiles(t.localPath,t.remotePath,o)];case 5:return[2]}})})},e}(),Ju=function(e){function t(t){var n=this.constructor,r=e.call(this,t.message)||this;r.name="NorthflankApiCallError",r.message=t.message,r.status=t.status,r.id=t.id,r.details=t.details;var o=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o,r}return G(t,e),t}(Error);!function(e){e.CDN="cdn",e.Mesh="mesh",e.Ingress="ingress",e.Runtime="runtime"}(Mu||(Mu={}));var Wu,$u=function(e){return{containerId:e.containerId,log:e.log,ts:new Date(e.ts)}
270
+ },Hu=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.baseUrl=t,a.logsConfig=n,a.token=r,a.agent=o,a.stop=function(){return J(a,void 0,void 0,function(){var e;return W(this,function(t){if(void 0===this.logSession)throw new Error("No command is running");return null===(e=this.remote)||void 0===e||e.close(),[2]})})},a}return G(t,e),t.getLogsEndpoint=function(e){var t=e.containerName,n=e.types,r=e.entityId,o=e.entityType,a=e.buildId,i=e.runId,d=e.backupId,p=e.restoreId,l=e.deploymentId,s=e.isBuild,u=e.lineLimit,m=e.teamId,c=e.projectId,v=e.queryType,h=e.startTime,f=e.endTime,I=e.duration,w=e.direction,g=e.textIncludes,b=e.textNotIncludes,y=e.regexIncludes,R=e.regexNotIncludes,j=void 0!==m?"teams/".concat(m,"/"):"",U="/v1/".concat(j,"projects/").concat(c,"/"),C=new URLSearchParams;return C.append("queryType",v),void 0!==h&&C.append("startTime",h.toISOString()),void 0!==f&&C.append("endTime",f.toISOString()),void 0!==u&&C.append("lineLimit",u.toString()),
270
271
  void 0!==t&&C.append("containerName",t),void 0!==l&&C.append("deploymentId",l),void 0!==i&&C.append("runId",i),void 0!==a&&C.append("buildId",a),void 0!==g&&C.append("textIncludes",g),void 0!==b&&C.append("textNotIncludes",b),void 0!==y&&C.append("regexIncludes",y),void 0!==R&&C.append("regexNotIncludes",R),void 0!==w&&C.append("direction",w),void 0!==I&&C.append("duration",I.toString()),void 0!==n&&n.forEach(function(e){return C.append("type",e)}),"".concat(U).concat(function(){var e=s?"/build-logs":"/logs";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);case"addonBackup":return"addons/".concat(r,"/backups/").concat(d).concat(e);case"addonRestore":return"addons/".concat(r,"/backups/").concat(d,"/restores/").concat(p).concat(e);default:throw new Error("Unexpected Northflank entity type received in logs endpoint generation: ".concat(o))}}(),"?").concat(C.toString())},
271
- Object.defineProperty(t.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(t.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(t,n){var r,o,a,i;void 0!==e.remote&&n(Error("Command is already running"));var d=e.logsEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new ai(d,{agent:e.agent}),null===(r=e.remote)||void 0===r||r.on("message",function(t){var n,r,o=JSON.parse(t.toString());switch(null==o?void 0:o.type){case"init":var a=o.data;"successful"!==a.auth&&p("Log tail initialization failed: ".concat(null!==(n=null==a?void 0:a.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var i=o.data;e.emit("logs-received",i.map(Ju));break;case"error":
272
- p(null===(r=o.data)||void 0===r?void 0:r.message);break;default:var d="unable to parse message: ".concat(JSON.stringify(o));p(d)}}),null===(o=e.remote)||void 0===o||o.on("close",function(){e.emit("close"),e.reset(),t()}),null===(a=e.remote)||void 0===a||a.on("open",function(){e.emit("open")}),null===(i=e.remote)||void 0===i||i.on("error",function(n){e.emit("error",n),e.reset(),t()});var p=function(t){e.emit("error",{message:t}),e.reset(),n(new Error(t))}}),[4,new Promise(function(t){var n;e.remote.on("open",function(){return t()}),null===(n=e.remote)||void 0===n||n.on("error",function(){t()})})];case 1:return t.sent(),this.initialAuth(),[2,this.logSession]}})})},t.prototype.initialAuth=function(){var e,t={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};null===(e=this.remote)||void 0===e||e.send(JSON.stringify(t))},t.prototype.reset=function(){this.remote=void 0,this.logSession=void 0},t}(t),$u=function(){if(yo)try{
273
- return JSON.parse(b.readFileSync(y.join(y.dirname(u(import.meta.url)),"../../package.json")).toString())}catch(e){return{}}return{}},Hu=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return J(n,void 0,void 0,function(){return W(this,function(t){return[2,this.executeCall(e)]})})},this.contextProvider=e}return e.prototype.getDefaultHeaders=function(){var e,t,n=this.contextProvider.getCurrentToken(),r=(null===(e=this.opts)||void 0===e?void 0:e.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(t=$u())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){return J(this,void 0,void 0,function(){var t,n,r,o,a,i,d,p,l,s,u,m,c,v=this;return W(this,function(h){switch(h.label){case 0:if(t=this.method,n=this.opts.agent,r={method:t,headers:this.getDefaultHeaders(),agent:n},
274
- !(o=null===(c=this.contextProvider)||void 0===c?void 0:c.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return a="".concat(o).concat(this.endpointUrl(e)),i=this.body(e),d=z(z({url:a},r),{body:i}),[4,rm(a,z(z({},r),{body:i}))];case 1:return[4,(p=h.sent()).text()];case 2:return l=h.sent(),s=function(){if(200!==p.status){var e=null==u?void 0:u.error,t=(null==e?void 0:e.message)||"",n={status:p.status,message:t,id:null==e?void 0:e.id,details:null==e?void 0:e.details};if(v.opts.throwErrorOnHttpErrorCode)throw new Gu(n);return n}},u=function(){try{return JSON.parse(l)}catch(e){throw Error("Failed reading api request result: \n\tStatus: ".concat(p.statusText," (").concat(p.status,")\n\tMessage: ").concat(l))}}(),m=s(),[2,{data:null==u?void 0:u.data,rawResponse:p,request:d,error:m,pagination:null==u?void 0:u.pagination}]}})})},e}(),Zu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
275
- ;return t.method="get",t.body=function(){},t}return G(t,e),t}(Hu),Yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return J(t,void 0,void 0,function(){return W(this,function(t){return[2,new tm(this,e).getAll()]})})},t.call=function(n){return J(t,void 0,void 0,function(){var t,r=this;return W(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,z(z({},t),{pagination:z(z({},t.pagination),{getNextPage:function(){return J(r,void 0,void 0,function(){var e,r,o,a,i,d,p,l=this;return W(this,function(s){return void 0===(null===(d=t.pagination)||void 0===d?void 0:d.cursor)?(e=Object.keys(t.data),r=1===e.length?((i={})[e[0]]=[],i):{},o=z(z({},t),{pagination:z(z({},t.pagination),{count:0}),data:r}),[2,(a=function(e){return z(z({},e),{pagination:z(z({},e.pagination),{getNextPage:function(){return J(l,void 0,void 0,function(){return W(this,function(t){return[2,a(e)]})})}})})
276
- })(o)]):[2,new tm(this,n,null===(p=t.pagination)||void 0===p?void 0:p.cursor).getNext()]})})}})})]}})})},t}return G(t,e),t}(Zu),Ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return G(t,e),t}(Hu),Xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t.body=function(){},t}return G(t,e),t}(Hu),Qu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return G(t,e),t}(Hu),em=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return G(t,e),t}(Hu),tm=function(){function e(e,t,n){void 0===n&&(n=null);var r=this;this.endpoint=e,this.opts=t,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){
277
- return J(this,void 0,void 0,function(){var e,t,n,r,o,a,i,d,p;return W(this,function(l){switch(l.label){case 0:return[4,this.endpoint.call(z(z({},this.opts),{options:z(z({},null===(i=this.opts)||void 0===i?void 0:i.options),{cursor:null!==(d=this.cursor)&&void 0!==d?d:void 0})}))];case 1:return e=l.sent(),t=e.data,n=e.request,r=e.error,o=e.pagination,a=e.rawResponse,this.cursor=null==o?void 0:o.cursor,this._currentOffset+=null!==(p=null==o?void 0:o.count)&&void 0!==p?p:0,[2,{data:t,request:n,error:r,pagination:o,rawResponse:a}]}})})},e.prototype.getAll=function(){return J(this,void 0,void 0,function(){var e,t,n,r,o,a,i;return W(this,function(d){switch(d.label){case 0:e=[],d.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(t=d.sent()).error?[2,t]:(e.push(t),[3,1]);case 3:return r=e.flatMap(function(e){var t=Object.keys(e.data);return 1===t.length?(n=t[0],e.data[t[0]]):e.data}),[2,{data:void 0===n?r:(o={},o[n]=r,o),
278
- request:null===(a=e[0])||void 0===a?void 0:a.request,rawResponse:null===(i=e[0])||void 0===i?void 0:i.rawResponse}]}})})},e}(),nm=function(e){return new Promise(function(t){setTimeout(function(){t()},e)})},rm=function(e,t,n,r){return void 0===t&&(t={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise(function(o,a){var i=function(n){return Ro(e,t).then(function(e){o(e)}).catch(function(e){return J(void 0,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return n>0?[4,nm(r)]:[3,2];case 1:return t.sent(),[2,i(n-1)];case 2:return[2,a(e)]}})})})};return i(n)})},om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch log lines over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){return Wu.getLogsEndpoint(e)},t.body=function(){},t}return G(t,e),t}(Zu),am=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,
279
- this.clientOpts=t,this.getServiceLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,
280
- teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]})})},this.getAddonBackupLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){return t=e.parameters,n=e.options,r=t.teamId,o=t.projectId,a=t.addonId,i={entityId:a,projectId:o,teamId:r},d={backupId:t.backupId,restoreId:t.restoreId},[2,this.logRange(i,z(z({},n),d),"addonRestore")]})})},this.logRange=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p
281
- ;return W(this,function(l){switch(l.label){case 0:return n=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:n,entityType:r},t),{queryType:"range"}),[4,new om(this.contextProvider,this.clientOpts).call(i)];case 1:return(d=l.sent()).error?[2,d]:[2,z(z({},d),{data:null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.map(Ju)})]}})})},this.tailServiceLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.logTail(i,z(z({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){
282
- return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"job")]})})},this.tailJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a={entityId:o,projectId:r,teamId:t.teamId},[2,this.logTail(a,z(z({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"addon")]})})},this.tailAddonBackupLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){
283
- var t,n,r,o;return W(this,function(a){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},o={backupId:t.backupId,restoreId:t.restoreId},[2,this.logTail(r,z(z({},n),o),"addonRestore")]})})},this.logTail=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p;return W(this,function(l){if(n=e.entityId,o=e.projectId,a=e.teamId,i=z({queryType:"tail",teamId:a,projectId:o,entityId:n,entityType:r},t),this.assertStartedWithNodejs(),d=this.contextProvider.getCurrentBaseUrl(!0),!(p=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new Wu(d,i,p,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!yo)throw new Error("Command exec only possible when started with nodejs")}},im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch metrics entries over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",
284
- t.endpointUrl=function(e){var t=e.teamId,n=e.projectId,r=e.entityId,o=e.entityType,a=e.deploymentId,i=e.runId,d=e.buildId,p=e.isBuild,l=e.queryType,s=e.metricTypes,u=e.startTime,m=e.endTime,c=e.duration,v=e.containerName,h=e.timestamp,f=void 0!==t?"teams/".concat(t,"/"):"",I="/v1/".concat(f,"projects/").concat(n,"/");var w=new URLSearchParams;return w.append("queryType",l),void 0!==u&&w.append("startTime",u.toISOString()),void 0!==m&&w.append("endTime",m.toISOString()),void 0!==v&&w.append("containerName",v),void 0!==a&&w.append("deploymentId",a),void 0!==i&&w.append("runId",i),void 0!==d&&w.append("buildId",d),void 0!==h&&w.append("timestamp",h.toISOString()),void 0!==c&&w.append("duration",c.toString()),void 0!==s&&s.forEach(function(e){return w.append("metricTypes",e)}),"".concat(I).concat(function(){var e=p?"/build-metrics":"/metrics";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":
285
- return"addons/".concat(r).concat(e);default:throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(o))}}(),"?").concat(w.toString())},t.body=function(){},t}return G(t,e),t}(Zu),dm=function(e){return{metadata:e.metadata,data:e.data.map(function(e){return{value:e.value,ts:new Date(e.ts)}})}};!function(e){e.Cpu="cpu",e.Memory="memory",e.NetworkIngress="networkIngress",e.NetworkEgress="networkEgress",e.TcpConnectionOpen="tcpConnectionsOpen",e.PvcUsage="diskUsage",e.Requests="requests",e.Http4xxResponses="http4xxResponses",e.Http5xxResponses="http5xxResponses",e.Bandwidth="bandwidth",e.BandwidthVolume="bandwidthVolume"}(zu||(zu={}));var pm=function(e){var t=this;this.contextProvider=e,this.getServiceMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={teamId:a,entityId:r,projectId:o},
286
- [2,this.metricsSingle(i,null!=n?n:{},"service")]})})},this.getServiceBuildMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,null!=n?n:{},"job")]})})},this.getJobBuildMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i
287
- ;return W(this,function(d){return t=e.parameters,n=e.options,r=t.addonId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,null!=n?n:{},"addon")]})})},this.metricsSingle=function(e,n,r){return J(t,void 0,void 0,function(){var t,o,a,i;return W(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(i)]})})},this.getServiceMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"service")]})})},this.getServiceBuildMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,z(z({},n),{
288
- isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"job")]})})},this.getJobBuildMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.addonId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"addon")]})})},this.metricsRange=function(e,n,r){return J(t,void 0,void 0,function(){var t,o,a,i;return W(this,function(d){return t=e.entityId,o=e.projectId,
289
- a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(i)]})})},this.getMetrics=function(e){return J(t,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return[4,new im(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,z(z({},t),{data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,z(z({},n),{values:n.values.map(dm)})]}))})]}})})}},lm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the available addon types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/addon-types"},t.body=function(){},t}return G(t,e),t}(Zu),sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backup destinations saved to this account. Does not display secrets.",t.withAuth=!0,
290
- t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new backup destination to this account.",t.withAuth=!0,
291
- t.requiredPermissions="Account > BackupDestinations > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),mm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a backup destination, including secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
292
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t
293
- }return G(t,e),t}(Zu),cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{
294
- if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
295
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
272
+ Object.defineProperty(t.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(t.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(t,n){var r,o,a,i;void 0!==e.remote&&n(Error("Command is already running"));var d=e.logsEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=Ea(d,e.agent),null===(r=e.remote)||void 0===r||r.on("message",function(t){var n,r,o=JSON.parse(t.toString());switch(null==o?void 0:o.type){case"init":var a=o.data;"successful"!==a.auth&&p("Log tail initialization failed: ".concat(null!==(n=null==a?void 0:a.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var i=o.data;e.emit("logs-received",i.map($u));break;case"error":p(null===(r=o.data)||void 0===r?void 0:r.message);break;default:
273
+ var d="unable to parse message: ".concat(JSON.stringify(o));p(d)}}),null===(o=e.remote)||void 0===o||o.on("close",function(){e.emit("close"),e.reset(),t()}),null===(a=e.remote)||void 0===a||a.on("open",function(){e.emit("open"),e.initialAuth()}),null===(i=e.remote)||void 0===i||i.on("error",function(n){e.emit("error",n),e.reset(),t()});var p=function(t){e.emit("error",{message:t}),e.reset(),n(new Error(t))}}),[2,this.logSession]})})},t.prototype.initialAuth=function(){var e,t={type:"init",data:{auth:{type:"apiToken",apiToken:this.token}}};null===(e=this.remote)||void 0===e||e.send(JSON.stringify(t))},t.prototype.reset=function(){this.remote=void 0,this.logSession=void 0},t}(t),Zu=function(){if(ya)try{return JSON.parse(R.readFileSync(j.join(j.dirname(u(import.meta.url)),"../../package.json")).toString())}catch(e){return{}}return{}},Yu=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return J(n,void 0,void 0,function(){return W(this,function(t){
274
+ return[2,this.executeCall(e)]})})},this.contextProvider=e}return e.prototype.getDefaultHeaders=function(){var e,t,n=this.contextProvider.getCurrentToken(),r=(null===(e=this.opts)||void 0===e?void 0:e.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(t=Zu())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){return J(this,void 0,void 0,function(){var t,n,r,o,a,i,d,p,l,s,u,m,c,v=this;return W(this,function(h){switch(h.label){case 0:if(t=this.method,n=this.opts.agent,r={method:t,headers:this.getDefaultHeaders(),agent:n},!(o=null===(c=this.contextProvider)||void 0===c?void 0:c.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return a="".concat(o).concat(this.endpointUrl(e)),i=this.body(e),d=z(z({url:a},r),{body:i}),
275
+ [4,am(a,z(z({},r),{body:i}))];case 1:return[4,(p=h.sent()).text()];case 2:return l=h.sent(),s=function(){if(200!==p.status){var e=null==u?void 0:u.error,t=(null==e?void 0:e.message)||"",n={status:p.status,message:t,id:null==e?void 0:e.id,details:null==e?void 0:e.details};if(v.opts.throwErrorOnHttpErrorCode)throw new Ju(n);return n}},u=function(){try{return JSON.parse(l)}catch(e){throw Error("Failed reading api request result: \n\tStatus: ".concat(p.statusText," (").concat(p.status,")\n\tMessage: ").concat(l))}}(),m=s(),[2,{data:null==u?void 0:u.data,rawResponse:p,request:d,error:m,pagination:null==u?void 0:u.pagination}]}})})},e}(),Ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="get",t.body=function(){},t}return G(t,e),t}(Yu),Xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return J(t,void 0,void 0,function(){return W(this,function(t){return[2,new rm(this,e).getAll()]})})},t.call=function(n){
276
+ return J(t,void 0,void 0,function(){var t,r=this;return W(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,z(z({},t),{pagination:z(z({},t.pagination),{getNextPage:function(){return J(r,void 0,void 0,function(){var e,r,o,a,i,d,p,l=this;return W(this,function(s){return void 0===(null===(d=t.pagination)||void 0===d?void 0:d.cursor)?(e=Object.keys(t.data),r=1===e.length?((i={})[e[0]]=[],i):{},o=z(z({},t),{pagination:z(z({},t.pagination),{count:0}),data:r}),[2,(a=function(e){return z(z({},e),{pagination:z(z({},e.pagination),{getNextPage:function(){return J(l,void 0,void 0,function(){return W(this,function(t){return[2,a(e)]})})}})})})(o)]):[2,new rm(this,n,null===(p=t.pagination)||void 0===p?void 0:p.cursor).getNext()]})})}})})]}})})},t}return G(t,e),t}(Ku),Qu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return G(t,e),t}(Yu),em=function(e){function t(){
277
+ var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t.body=function(){},t}return G(t,e),t}(Yu),tm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return G(t,e),t}(Yu),nm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return G(t,e),t}(Yu),rm=function(){function e(e,t,n){void 0===n&&(n=null);var r=this;this.endpoint=e,this.opts=t,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){return J(this,void 0,void 0,function(){var e,t,n,r,o,a,i,d,p;return W(this,function(l){switch(l.label){case 0:return[4,this.endpoint.call(z(z({},this.opts),{options:z(z({},null===(i=this.opts)||void 0===i?void 0:i.options),{cursor:null!==(d=this.cursor)&&void 0!==d?d:void 0})}))];case 1:
278
+ return e=l.sent(),t=e.data,n=e.request,r=e.error,o=e.pagination,a=e.rawResponse,this.cursor=null==o?void 0:o.cursor,this._currentOffset+=null!==(p=null==o?void 0:o.count)&&void 0!==p?p:0,[2,{data:t,request:n,error:r,pagination:o,rawResponse:a}]}})})},e.prototype.getAll=function(){return J(this,void 0,void 0,function(){var e,t,n,r,o,a,i;return W(this,function(d){switch(d.label){case 0:e=[],d.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(t=d.sent()).error?[2,t]:(e.push(t),[3,1]);case 3:return r=e.flatMap(function(e){var t=Object.keys(e.data);return 1===t.length?(n=t[0],e.data[t[0]]):e.data}),[2,{data:void 0===n?r:(o={},o[n]=r,o),request:null===(a=e[0])||void 0===a?void 0:a.request,rawResponse:null===(i=e[0])||void 0===i?void 0:i.rawResponse}]}})})},e}(),om=function(e){return new Promise(function(t){setTimeout(function(){t()},e)})},am=function(e,t,n,r){return void 0===t&&(t={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise(function(o,a){var i=function(n){
279
+ return Ra(e,t).then(function(e){o(e)}).catch(function(e){return J(void 0,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return n>0?[4,om(r)]:[3,2];case 1:return t.sent(),[2,i(n-1)];case 2:return[2,a(e)]}})})})};return i(n)})},im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch log lines over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){return Hu.getLogsEndpoint(e)},t.body=function(){},t}return G(t,e),t}(Ku),dm=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,this.clientOpts=t,this.getServiceLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){
280
+ var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]})})},this.getAddonBackupLogs=function(e){
281
+ return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){return t=e.parameters,n=e.options,r=t.teamId,o=t.projectId,a=t.addonId,i={entityId:a,projectId:o,teamId:r},d={backupId:t.backupId,restoreId:t.restoreId},[2,this.logRange(i,z(z({},n),d),"addonRestore")]})})},this.logRange=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p;return W(this,function(l){switch(l.label){case 0:return n=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:n,entityType:r},t),{queryType:"range"}),[4,new im(this.contextProvider,this.clientOpts).call(i)];case 1:return(d=l.sent()).error?[2,d]:[2,z(z({},d),{data:null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.map($u)})]}})
282
+ })},this.tailServiceLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.logTail(i,z(z({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"job")]})})},this.tailJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a={entityId:o,projectId:r,teamId:t.teamId},
283
+ [2,this.logTail(a,z(z({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"addon")]})})},this.tailAddonBackupLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},o={backupId:t.backupId,restoreId:t.restoreId},[2,this.logTail(r,z(z({},n),o),"addonRestore")]})})},this.logTail=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p;return W(this,function(l){if(n=e.entityId,
284
+ o=e.projectId,a=e.teamId,i=z({queryType:"tail",teamId:a,projectId:o,entityId:n,entityType:r},t),this.assertStartedWithNodejs(),d=this.contextProvider.getCurrentBaseUrl(!0),!(p=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new Hu(d,i,p,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!ya)throw new Error("Command exec only possible when started with nodejs")}},pm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch metrics entries over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){var t=e.teamId,n=e.projectId,r=e.entityId,o=e.entityType,a=e.deploymentId,i=e.runId,d=e.buildId,p=e.isBuild,l=e.queryType,s=e.metricTypes,u=e.startTime,m=e.endTime,c=e.duration,v=e.containerName,h=e.timestamp,f=void 0!==t?"teams/".concat(t,"/"):"",I="/v1/".concat(f,"projects/").concat(n,"/")
285
+ ;var w=new URLSearchParams;return w.append("queryType",l),void 0!==u&&w.append("startTime",u.toISOString()),void 0!==m&&w.append("endTime",m.toISOString()),void 0!==v&&w.append("containerName",v),void 0!==a&&w.append("deploymentId",a),void 0!==i&&w.append("runId",i),void 0!==d&&w.append("buildId",d),void 0!==h&&w.append("timestamp",h.toISOString()),void 0!==c&&w.append("duration",c.toString()),void 0!==s&&s.forEach(function(e){return w.append("metricTypes",e)}),"".concat(I).concat(function(){var e=p?"/build-metrics":"/metrics";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);default:throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(o))}}(),"?").concat(w.toString())},t.body=function(){},t}return G(t,e),t}(Ku),lm=function(e){return{metadata:e.metadata,data:e.data.map(function(e){return{value:e.value,ts:new Date(e.ts)}})}}
286
+ ;!function(e){e.Cpu="cpu",e.Memory="memory",e.NetworkIngress="networkIngress",e.NetworkEgress="networkEgress",e.TcpConnectionOpen="tcpConnectionsOpen",e.PvcUsage="diskUsage",e.Requests="requests",e.Http4xxResponses="http4xxResponses",e.Http5xxResponses="http5xxResponses",e.Bandwidth="bandwidth",e.BandwidthVolume="bandwidthVolume"}(Wu||(Wu={}));var sm=function(e){var t=this;this.contextProvider=e,this.getServiceMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={teamId:a,entityId:r,projectId:o},[2,this.metricsSingle(i,null!=n?n:{},"service")]})})},this.getServiceBuildMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(e){
287
+ return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,null!=n?n:{},"job")]})})},this.getJobBuildMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.addonId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,null!=n?n:{},"addon")]})})},this.metricsSingle=function(e,n,r){return J(t,void 0,void 0,function(){var t,o,a,i;return W(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:t,entityType:r},n),{
288
+ queryType:"single"}),[2,this.getMetrics(i)]})})},this.getServiceMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"service")]})})},this.getServiceBuildMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"job")]})})},this.getJobBuildMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i
289
+ ;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.addonId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"addon")]})})},this.metricsRange=function(e,n,r){return J(t,void 0,void 0,function(){var t,o,a,i;return W(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(i)]})})},this.getMetrics=function(e){return J(t,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return[4,new pm(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,z(z({},t),{
290
+ data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,z(z({},n),{values:n.values.map(lm)})]}))})]}})})}},um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the available addon types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/addon-types"},t.body=function(){},t}return G(t,e),t}(Ku),mm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backup destinations saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
291
+ r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new backup destination to this account.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
292
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a backup destination, including secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
293
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
294
+ ;return t.description="Updates a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{
295
+ if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
296
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(em),Im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
296
297
  ;return t.description="Lists the backups associated with a backup destinations.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups");else{
297
- if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of past invoices",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n
298
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/billing/invoices"):"/v1/billing/invoices";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
298
+ if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),wm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of past invoices",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n
299
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/billing/invoices"):"/v1/billing/invoices";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),gm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
299
300
  ;return t.description="Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/billing/invoices/details"):"/v1/billing/invoices/details";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){
300
- return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Zu),wm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud providers",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/cloud-providers"},t.body=function(){},t}return G(t,e),t}(Zu),gm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists clusters for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
301
- r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),bm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
302
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or update a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
303
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Rm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
304
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cluster.",t.withAuth=!0,
301
+ return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Ku),bm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud providers",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/cloud-providers"},t.body=function(){},t}return G(t,e),t}(Ku),ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists clusters for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
302
+ r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Rm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
303
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or update a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
304
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
305
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),Cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cluster.",t.withAuth=!0,
305
306
  t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters")
306
- ;o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given cluster. Fails if the cluster has associated projects.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
307
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of nodes for the given cluster",t.withAuth=!0,
307
+ ;o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Em=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given cluster. Fails if the cluster has associated projects.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
308
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(em),_m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of nodes for the given cluster",t.withAuth=!0,
308
309
  t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId),"/nodes");else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters")
309
- ;a="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Em=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
310
+ ;a="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),Sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
310
311
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.nodeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/cordon");else{
311
- if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/cordon")}return i},t.body=function(){},t}return G(t,e),t}(Ku),_m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Drain a node by evicting all running pods.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
312
+ if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/cordon")}return i},t.body=function(){},t}return G(t,e),t}(Qu),Nm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Drain a node by evicting all running pods.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
312
313
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.nodeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/drain");else{
313
- if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/drain")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Uncordon a node on the cluster if it was previously cordoned.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
314
+ if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/drain")}return i},t.body=function(){},t}return G(t,e),t}(Qu),Am=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Uncordon a node on the cluster if it was previously cordoned.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
314
315
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.nodeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/uncordon");else{
315
- if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/uncordon")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Nm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n
316
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Am=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
317
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
318
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Pm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given integration",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
319
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Tm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a integration.",t.withAuth=!0,
316
+ if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/uncordon")}return i},t.body=function(){},t}return G(t,e),t}(Qu),km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n
317
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Pm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
318
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Tm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
319
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Dm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given integration",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
320
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),Om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a integration.",t.withAuth=!0,
320
321
  t.requiredPermissions="Account > Cloud > Integrations > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters")
321
- ;o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Dm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given integration. Fails if the integration is associated with existing clusters.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
322
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
323
- ;return t.description="Lists supported cloud provider node types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),Lm=function(e){function t(){
324
- var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the Directory Sync directory groups for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return"/v1/directory-groups"},t.body=function(){},t}return G(t,e),t}(Zu),qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the partially random string used when generating host names for the authenticated account.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
325
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/dns-id"):"/v1/dns-id"},t.body=function(){},t}return G(t,e),t}(Zu),Bm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available domains",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains"):"/v1/domains"
326
- ;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Registers a new domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains"):"/v1/domains"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t
327
- }(Ku),Fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{
328
- if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Mm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a domain and each of its registered subdomains.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
329
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Gm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve certificate data for a domain to verify its contents.",t.withAuth=!0,
322
+ ;o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given integration. Fails if the integration is associated with existing clusters.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
323
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(em),Lm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
324
+ ;return t.description="Lists supported cloud provider node types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),Bm=function(e){function t(){
325
+ var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the Directory Sync directory groups for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return"/v1/directory-groups"},t.body=function(){},t}return G(t,e),t}(Ku),Vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the partially random string used when generating host names for the authenticated account.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
326
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/dns-id"):"/v1/dns-id"},t.body=function(){},t}return G(t,e),t}(Ku),Fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available domains",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains"):"/v1/domains"
327
+ ;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Mm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Registers a new domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains"):"/v1/domains"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t
328
+ }(Qu),Gm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{
329
+ if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(Ku),zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a domain and each of its registered subdomains.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
330
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(em),Jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve certificate data for a domain to verify its contents.",t.withAuth=!0,
330
331
  t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/certificate");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters")
331
- ;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/certificate")}return o},t.body=function(){},t}return G(t,e),t}(Zu),zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Import a certificate for the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/import");else{
332
- if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/import")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new subdomain to the domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
333
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Wm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates subdomain to the domain.",t.withAuth=!0,
332
+ ;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/certificate")}return o},t.body=function(){},t}return G(t,e),t}(Ku),Wm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Import a certificate for the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/import");else{
333
+ if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/import")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),$m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new subdomain to the domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
334
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates subdomain to the domain.",t.withAuth=!0,
334
335
  t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters")
335
- ;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),$m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
336
+ ;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
336
337
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain));else{
337
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))}return i},t.body=function(){},t}return G(t,e),t}(Zu),Hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from a domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
338
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))}return i},t.body=function(){},t}return G(t,e),t}(Ku),Ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from a domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
338
339
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain));else{
339
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assigns a service port to the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
340
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))}return i},t.body=function(){},t}return G(t,e),t}(em),Km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assigns a service port to the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
340
341
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign");else{
341
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from its assigned service",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
342
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from its assigned service",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
342
343
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign");else{
343
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes the CDN integration from the given subdomain",t.withAuth=!0,
344
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(em),Qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes the CDN integration from the given subdomain",t.withAuth=!0,
344
345
  t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/disable");else{
345
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/disable")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Enables a CDN integration on the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
346
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/disable")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Enables a CDN integration on the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
346
347
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/enable");else{
347
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/enable")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new path to the subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Create",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
348
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/enable")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new path to the subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Create",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
348
349
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths");else{
349
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List paths for a given subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
350
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List paths for a given subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
350
351
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths");else{
351
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")}return i},t.body=function(){},t}return G(t,e),t}(Zu),tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get subdomain path details.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
352
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")}return i},t.body=function(){},t}return G(t,e),t}(Ku),rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get subdomain path details.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
352
353
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
353
354
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.subdomainPath))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath));else{
354
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(){},t}return G(t,e),t}(Zu),nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",
355
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(){},t}return G(t,e),t}(Ku),oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",
355
356
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
356
357
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.subdomainPath))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath));else{
357
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(){},t}return G(t,e),t}(Xu),rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a subdomain path.",t.withAuth=!0,
358
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(){},t}return G(t,e),t}(em),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a subdomain path.",t.withAuth=!0,
358
359
  t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
359
360
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.subdomainPath))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath));else{
360
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assign a subdomain path to a port.",t.withAuth=!0,
361
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assign a subdomain path to a port.",t.withAuth=!0,
361
362
  t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
362
363
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.subdomainPath))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign");else{
363
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unassign a subdomain path to a port.",t.withAuth=!0,
364
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unassign a subdomain path to a port.",t.withAuth=!0,
364
365
  t.requiredPermissions="Account > SubdomainPaths > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
365
366
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.subdomainPath))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign");else{
366
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")}return p},t.body=function(){},t}return G(t,e),t}(Xu),ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,
367
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")}return p},t.body=function(){},t}return G(t,e),t}(em),pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,
367
368
  t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.subdomain))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/verify");else{
368
- if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/verify")}return i},t.body=function(){},t}return G(t,e),t}(Ku),dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attempts to verify the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
369
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/verify");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/verify")}return o},t.body=function(){},t}return G(t,e),t}(Ku),pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of egress IPs belonging to the team",t.withAuth=!0,
370
- t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Create",
371
- t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
372
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
373
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an egress IP",t.withAuth=!0,
369
+ if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/verify")}return i},t.body=function(){},t}return G(t,e),t}(Qu),lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attempts to verify the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
370
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/verify");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/verify")}return o},t.body=function(){},t}return G(t,e),t}(Qu),sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of egress IPs belonging to the team",t.withAuth=!0,
371
+ t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Create",
372
+ t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
373
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
374
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an egress IP",t.withAuth=!0,
374
375
  t.requiredPermissions="Account > EgressIps > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters")
375
- ;o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given egress IP.",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
376
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new gradual rollout strategy.",t.withAuth=!0,
377
- t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
378
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
379
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"gradualRolloutStrategyId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.gradualRolloutStrategyId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies/").concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId));else{if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Ic=function(e){function t(){
376
+ ;o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given egress IP.",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
377
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(em),fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new gradual rollout strategy.",t.withAuth=!0,
378
+ t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
379
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),wc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
380
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"gradualRolloutStrategyId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.gradualRolloutStrategyId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies/").concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId));else{if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),gc=function(e){function t(){
380
381
  var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"gradualRolloutStrategyId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.gradualRolloutStrategyId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies/").concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId));else{
381
- if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),wc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of log sinks added to this account.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
382
- r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),gc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
383
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
384
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId));else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a log sink.",t.withAuth=!0,
382
+ if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(){},t}return G(t,e),t}(em),bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of log sinks added to this account.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
383
+ r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
384
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
385
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId));else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a log sink.",t.withAuth=!0,
385
386
  t.requiredPermissions="Account > Sinks > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId));else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters")
386
- ;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pauses a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
387
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/pause");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/pause")}return o},t.body=function(){},t}return G(t,e),t}(Ku),jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes a paused log sink.",t.withAuth=!0,
387
+ ;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(em),Uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pauses a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
388
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/pause");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/pause")}return o},t.body=function(){},t}return G(t,e),t}(Qu),Cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes a paused log sink.",t.withAuth=!0,
388
389
  t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/resume");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters")
389
- ;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/resume")}return o},t.body=function(){},t}return G(t,e),t}(Ku),Uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the settings for a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
390
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/settings");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/settings")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
391
- ;return t.description="Lists notification integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Ec=function(e){function t(){
392
- var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),_c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n,r,o
390
+ ;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/resume")}return o},t.body=function(){},t}return G(t,e),t}(Qu),Ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the settings for a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
391
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/settings");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/settings")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),_c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
392
+ ;return t.description="Lists notification integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Sc=function(e){function t(){
393
+ var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n,r,o
393
394
  ;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},
394
- t.body=function(){},t}return G(t,e),t}(Zu),Sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{
395
- if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
396
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
397
- ;return t.description="Lists the container registry credentials saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),kc=function(e){function t(){
398
- var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new set of container registry credentials to this account.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read Encrypted",
395
+ t.body=function(){},t}return G(t,e),t}(Ku),Ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{
396
+ if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),kc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
397
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(){},t}return G(t,e),t}(em),Pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
398
+ ;return t.description="Lists the container registry credentials saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Tc=function(e){function t(){
399
+ var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new set of container registry credentials to this account.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read Encrypted",
399
400
  t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"credentialId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.credentialId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries/").concat(encodeURIComponent(e.parameters.credentialId));else{if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters")
400
- ;o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
401
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"credentialId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.credentialId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries/").concat(encodeURIComponent(e.parameters.credentialId));else{if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
401
+ ;o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),Oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
402
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"credentialId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.credentialId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries/").concat(encodeURIComponent(e.parameters.credentialId));else{if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
402
403
  ;return t.description="Deletes a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"credentialId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.credentialId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries/").concat(encodeURIComponent(e.parameters.credentialId));else{
403
- if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the SSH identities saved to this account. Does not display SSH public keys.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
404
- r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new SSH identity to this account.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
405
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views SSH identity data including public keys.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
406
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates SSH identity data.",t.withAuth=!0,
404
+ if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return G(t,e),t}(em),Lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the SSH identities saved to this account. Does not display SSH public keys.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
405
+ r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new SSH identity to this account.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
406
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views SSH identity data including public keys.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
407
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),Vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates SSH identity data.",t.withAuth=!0,
407
408
  t.requiredPermissions="Account > Ssh > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters")
408
- ;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates SSH identity data.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
409
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes an SSH identity.",
409
+ ;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates SSH identity data.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
410
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes an SSH identity.",
410
411
  t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters")
411
- ;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists linked version control providers",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs"):"/v1/integrations/vcs"},t.body=function(){},t}return G(t,e),t}(Zu),Mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generate a token for a specific VCS link.",
412
+ ;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(em),Gc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists linked version control providers",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs"):"/v1/integrations/vcs"},t.body=function(){},t}return G(t,e),t}(Ku),zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generate a token for a specific VCS link.",
412
413
  t.withAuth=!0,t.requiredPermissions="Account > Git > Tokens > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"customVCSId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.customVCSId)&&(null==e?void 0:e.parameters)&&"vcsLinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.vcsLinkId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs/custom/").concat(encodeURIComponent(e.parameters.customVCSId),"/token/").concat(encodeURIComponent(e.parameters.vcsLinkId));else{
413
- if(!((null==e?void 0:e.parameters)&&"customVCSId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.customVCSId)&&(null==e?void 0:e.parameters)&&"vcsLinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.vcsLinkId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/integrations/vcs/custom/".concat(encodeURIComponent(e.parameters.customVCSId),"/token/").concat(encodeURIComponent(e.parameters.vcsLinkId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Ku),Gc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of repositories accessible to this account",t.withAuth=!0,
414
- t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs/repos"):"/v1/integrations/vcs/repos";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of branches for the repo",t.withAuth=!0,
414
+ if(!((null==e?void 0:e.parameters)&&"customVCSId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.customVCSId)&&(null==e?void 0:e.parameters)&&"vcsLinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.vcsLinkId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/integrations/vcs/custom/".concat(encodeURIComponent(e.parameters.customVCSId),"/token/").concat(encodeURIComponent(e.parameters.vcsLinkId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Qu),Jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of repositories accessible to this account",t.withAuth=!0,
415
+ t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs/repos"):"/v1/integrations/vcs/repos";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Wc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of branches for the repo",t.withAuth=!0,
415
416
  t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
416
417
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"vcsService"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.vcsService)&&(null==e?void 0:e.parameters)&&"repositoryOwner"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.repositoryOwner)&&(null==e?void 0:e.parameters)&&"repositoryName"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.repositoryName))l="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs/repos/").concat(encodeURIComponent(e.parameters.vcsService),"/").concat(encodeURIComponent(e.parameters.repositoryOwner),"/").concat(encodeURIComponent(e.parameters.repositoryName),"/branches");else{
417
418
  if(!((null==e?void 0:e.parameters)&&"vcsService"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.vcsService)&&(null==e?void 0:e.parameters)&&"repositoryOwner"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.repositoryOwner)&&(null==e?void 0:e.parameters)&&"repositoryName"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.repositoryName)))throw new Error("No matching endpoint URL found for provided parameters");l="/v1/integrations/vcs/repos/".concat(encodeURIComponent(e.parameters.vcsService),"/").concat(encodeURIComponent(e.parameters.repositoryOwner),"/").concat(encodeURIComponent(e.parameters.repositoryName),"/branches")}var s=Object.entries(null!==(p=null==e?void 0:e.options)&&void 0!==p?p:{}).filter(function(e){return void 0!==e[1]}),u=s.length>0?"?".concat(s.map(function(e){return"".concat(e[0],"=").concat(e[1])
418
- }).join("&")):"";return"".concat(l).concat(u)},t.body=function(){},t}return G(t,e),t}(Yu),Jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of load balancers belonging to the team",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
419
- ;return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Wc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),$c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a load balancer",t.withAuth=!0,
420
- t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
421
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Zc=function(e){
419
+ }).join("&")):"";return"".concat(l).concat(u)},t.body=function(){},t}return G(t,e),t}(Xu),$c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of load balancers belonging to the team",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
420
+ ;return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),Hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a load balancer",t.withAuth=!0,
421
+ t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
422
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),Kc=function(e){
422
423
  function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{
423
- if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given load balancer.",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
424
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Kc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of platform roles for the authenticated org.",
425
- t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/org-roles".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),Xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new platform role for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates role or updates all user-editable fields on a platform role for the authenticated org.",t.withAuth=!0,
426
- t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a specific org platform role.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Zu),tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Partially updates a platform role for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){
427
- return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a platform role from the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Xu),rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
428
- ;return t.description="Adds a user to a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a user from a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
429
- "/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(Xu),av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available billing plans",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/plans"},t.body=function(){},t}return G(t,e),t}(Zu),iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists projects for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
430
- r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
431
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){
432
- return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{
433
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given project",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
434
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given project. Fails if the project isn't empty.",t.withAuth=!0,
424
+ if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given load balancer.",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
425
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(em),Qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of platform roles for the authenticated org.",
426
+ t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/org-roles".concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new platform role for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates role or updates all user-editable fields on a platform role for the authenticated org.",t.withAuth=!0,
427
+ t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a specific org platform role.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Ku),rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Partially updates a platform role for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){
428
+ return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a platform role from the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(em),av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
429
+ ;return t.description="Adds a user to a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a user from a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
430
+ "/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(em),dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available billing plans",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/plans"},t.body=function(){},t}return G(t,e),t}(Ku),pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists projects for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
431
+ r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
432
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){
433
+ return JSON.stringify(e.data)},t}return G(t,e),t}(tm),uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{
434
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given project",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
435
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(){},t}return G(t,e),t}(Ku),cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given project. Fails if the project isn't empty.",t.withAuth=!0,
435
436
  t.requiredPermissions="Project > Projects > Manage > Delete",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters")
436
- ;a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
437
+ ;a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(em),vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
437
438
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
438
- ;return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{
439
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
440
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given addon",t.withAuth=!0,
439
+ ;return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{
440
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
441
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given addon",t.withAuth=!0,
441
442
  t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId));else{
442
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
443
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
443
444
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId));else{
444
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
445
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
445
446
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId));else{
446
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about an addon's backup schedules",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
447
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(){},t}return G(t,e),t}(em),bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about an addon's backup schedules",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
447
448
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules");else{
448
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new backup schedule for an addon.",t.withAuth=!0,
449
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new backup schedule for an addon.",t.withAuth=!0,
449
450
  t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules");else{
450
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
451
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
451
452
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
452
453
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"scheduleId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.scheduleId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(e.parameters.scheduleId));else{
453
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"scheduleId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.scheduleId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(e.parameters.scheduleId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of backups for the given addon.",t.withAuth=!0,
454
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"scheduleId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.scheduleId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(e.parameters.scheduleId))}return p},t.body=function(){},t}return G(t,e),t}(em),jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of backups for the given addon.",t.withAuth=!0,
454
455
  t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups");else{
455
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for the given addon",t.withAuth=!0,
456
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for the given addon",t.withAuth=!0,
456
457
  t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups");else{
457
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
458
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
458
459
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
459
460
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId));else{
460
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a given backup",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",
461
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),Ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a given backup",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",
461
462
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
462
463
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId));else{
463
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the in progress backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",
464
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(em),_v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the in progress backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",
464
465
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
465
466
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort");else{
466
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Ku),Ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts an in-progress backup restore.",t.withAuth=!0,
467
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Qu),Sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts an in-progress backup restore.",t.withAuth=!0,
467
468
  t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
468
469
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))l="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort-restore");else{
469
470
  if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");l="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort-restore")}var s=Object.entries(null!==(p=null==e?void 0:e.options)&&void 0!==p?p:{}).filter(function(e){return void 0!==e[1]}),u=s.length>0?"?".concat(s.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(l).concat(u)},
470
- t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),_v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generates a temporary download link for downloading the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
471
+ t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generates a temporary download link for downloading the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
471
472
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/download-link");else{
472
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/download-link")}return p},t.body=function(){},t}return G(t,e),t}(Zu),Sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restores the given addon to the given backup state.",t.withAuth=!0,
473
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/download-link")}return p},t.body=function(){},t}return G(t,e),t}(Ku),Av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restores the given addon to the given backup state.",t.withAuth=!0,
473
474
  t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
474
475
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))l="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restore");else{
475
476
  if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");l="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restore")}var s=Object.entries(null!==(p=null==e?void 0:e.options)&&void 0!==p?p:{}).filter(function(e){return void 0!==e[1]}),u=s.length>0?"?".concat(s.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(l).concat(u)},
476
- t.body=function(){},t}return G(t,e),t}(Ku),Nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of restores for the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
477
+ t.body=function(){},t}return G(t,e),t}(Qu),kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of restores for the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
477
478
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))l="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restores");else{
478
479
  if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");l="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/restores")}var s=Object.entries(null!==(p=null==e?void 0:e.options)&&void 0!==p?p:{}).filter(function(e){return void 0!==e[1]}),u=s.length>0?"?".concat(s.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(l).concat(u)},
479
- t.body=function(){},t}return G(t,e),t}(Yu),Av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
480
+ t.body=function(){},t}return G(t,e),t}(Xu),Pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
480
481
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/retain");else{
481
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/retain")}return p},t.body=function(){},t}return G(t,e),t}(Ku),kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given addon.",t.withAuth=!0,
482
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/retain")}return p},t.body=function(){},t}return G(t,e),t}(Qu),Tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given addon.",t.withAuth=!0,
482
483
  t.requiredPermissions="Project > Addons > Deployment > View Instances",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/containers");else{
483
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the credentials for connecting to the given addon.",t.withAuth=!0,
484
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the credentials for connecting to the given addon.",t.withAuth=!0,
484
485
  t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/credentials");else{
485
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/credentials")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Imports a database from an external archive or existing live database.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return[].forEach(function(t){var n
486
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the network settings for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
486
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/credentials")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Imports a database from an external archive or existing live database.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return[].forEach(function(t){var n
487
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the network settings for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
487
488
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/network-settings");else{
488
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/network-settings")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
489
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/network-settings")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
489
490
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/pause");else{
490
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Ku),xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Reset the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
491
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Qu),qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Reset the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
491
492
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/reset");else{
492
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/reset")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restart the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
493
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/reset")}return i},t.body=function(){},t}return G(t,e),t}(Qu),Bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restart the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
493
494
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restart");else{
494
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restart")}return i},t.body=function(){},t}return G(t,e),t}(Ku),qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of restores for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
495
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restart")}return i},t.body=function(){},t}return G(t,e),t}(Qu),Vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of restores for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
495
496
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restores");else{
496
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restores")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resume the given addon if it is paused.",t.withAuth=!0,
497
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restores")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resume the given addon if it is paused.",t.withAuth=!0,
497
498
  t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/resume");else{
498
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/resume")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the allocated resources for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
499
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/resume")}return i},t.body=function(){},t}return G(t,e),t}(Qu),Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the allocated resources for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
499
500
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/scale");else{
500
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the security rules for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
501
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the security rules for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
501
502
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/security");else{
502
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/security")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the current addon version including available upgrades and upgrade history.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
503
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/security")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the current addon version including available upgrades and upgrade history.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
503
504
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version");else{
504
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Upgrades the addon to a new version.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
505
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Upgrades the addon to a new version.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
505
506
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.addonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version");else{
506
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of external addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
507
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of external addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
507
508
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons")}
508
- var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new external addon (third-party cloud resource provisioned via OpenTofu)",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
509
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
509
+ var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),$v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new external addon (third-party cloud resource provisioned via OpenTofu)",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
510
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
510
511
  ;return t.description="Gets information about the given external addon",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
511
512
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.externalAddonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId));else{
512
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),$v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates configuration for an external addon",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
513
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),Zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates configuration for an external addon",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
513
514
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.externalAddonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId));else{
514
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes an external addon and destroys the associated cloud resource",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
515
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes an external addon and destroys the associated cloud resource",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
515
516
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.externalAddonId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId));else{
516
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of jobs belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
517
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(){},t}return G(t,e),t}(em),Kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of jobs belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
517
518
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){
518
- return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new job (manual or cron based on settings.cron presence)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
519
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
519
+ return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),Xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new job (manual or cron based on settings.cron presence)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
520
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
520
521
  ;return t.description="Creates or updates a job (manual or cron based on settings.cron presence)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs");else{
521
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
522
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a cron job",t.withAuth=!0,
522
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
523
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a cron job",t.withAuth=!0,
523
524
  t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters")
524
- ;o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
525
+ ;o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),nh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
525
526
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(e.parameters.jobId));else{
526
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
527
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
527
528
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t
528
- }(Ku),nh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual");else{
529
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
529
+ }(Qu),oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual");else{
530
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
530
531
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(e.parameters.jobId));else{
531
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
532
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
532
533
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId));else{
533
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a job (manual or cron based on current type and settings.cron)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
534
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a job (manual or cron based on current type and settings.cron)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
534
535
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId));else{
535
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
536
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),ph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
536
537
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId));else{
537
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))
538
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(){},t}return G(t,e),t}(em),lh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))
538
539
  }),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/branches");else{
539
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/branches")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),ph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists builds for the given job.",t.withAuth=!0,
540
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/branches")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists builds for the given job.",t.withAuth=!0,
540
541
  t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build");else{
541
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),lh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given job. Given a commit sha, it will build that commit.",
542
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given job. Given a commit sha, it will build that commit.",
542
543
  t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build");else{
543
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d
544
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),mh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d
544
545
  ;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments");else{
545
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets build arguments for the given job.",t.withAuth=!0,
546
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Ku),ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets build arguments for the given job.",t.withAuth=!0,
546
547
  t.requiredPermissions="Project > Secrets > Jobs > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments");else{
547
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),mh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
548
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
548
549
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments/details");else{
549
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
550
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments/details")}return i},t.body=function(){},t}return G(t,e),t}(Ku),hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
550
551
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-options");else{
551
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-options")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
552
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-options")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
552
553
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-source");else{
553
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-source")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
554
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-source")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
554
555
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.buildId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId));else{
555
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job build",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",
556
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),wh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job build",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",
556
557
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
557
558
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.buildId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId));else{
558
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given job.",t.withAuth=!0,
559
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(em),gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given job.",t.withAuth=!0,
559
560
  t.requiredPermissions="Project > Jobs > Deployment > View Instance Logs",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/containers");else{
560
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),wh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given job.",t.withAuth=!0,
561
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given job.",t.withAuth=!0,
561
562
  t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment");else{
562
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")}return i},t.body=function(){},t}return G(t,e),t}(Zu),gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
563
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")}return i},t.body=function(){},t}return G(t,e),t}(Ku),yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
563
564
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment");else{
564
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
565
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
565
566
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks");else{
566
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")}return i},t.body=function(){},t}return G(t,e),t}(Zu),yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
567
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")}return i},t.body=function(){},t}return G(t,e),t}(Ku),jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
567
568
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks");else{
568
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
569
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
569
570
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pause");else{
570
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Ku),jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
571
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Qu),Ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
571
572
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pull-requests");else{
572
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pull-requests")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",
573
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pull-requests")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",
573
574
  t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/resume");else{
574
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/resume")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetches run history for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
575
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/resume")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),_h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetches run history for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
575
576
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs");else{
576
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Starts a new job run for the given job",t.withAuth=!0,
577
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Starts a new job run for the given job",t.withAuth=!0,
577
578
  t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs");else{
578
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),_h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns data about the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
579
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Nh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns data about the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
579
580
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.runId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId));else{
580
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){
581
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),Ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){
581
582
  var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
582
583
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.runId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId));else{
583
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Nh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
584
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(em),kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
584
585
  ;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
585
586
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment");else{
586
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),Ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given job.",t.withAuth=!0,
587
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Ku),Ph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given job.",t.withAuth=!0,
587
588
  t.requiredPermissions="Project > Secrets > Jobs > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment");else{
588
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
589
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
589
590
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment/details");else{
590
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Ph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Scale Job",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
591
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment/details")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Scale Job",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
591
592
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/scale");else{
592
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates settings for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
593
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates settings for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
593
594
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/settings");else{
594
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/settings")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modify cron job to toggle suspending of its schedule.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
595
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/settings")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modify cron job to toggle suspending of its schedule.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
595
596
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.jobId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/suspend");else{
596
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/suspend")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all AI models for a project",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
597
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/suspend")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Lh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all AI models for a project",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
597
598
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments")}
598
- var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
599
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Lh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
599
+ var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
600
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
600
601
  ;return t.description="Gets details about an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
601
602
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.llmModelDeploymentId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId));else{
602
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
603
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),Vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
603
604
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.llmModelDeploymentId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId));else{
604
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
605
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
605
606
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.llmModelDeploymentId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId));else{
606
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all pipelines for a project",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
607
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(){},t}return G(t,e),t}(em),Mh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all pipelines for a project",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
607
608
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines")}
608
- var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a pipeline",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
609
+ var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),Gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a pipeline",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
609
610
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId));else{
610
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),Mh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
611
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
611
612
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs");else{
612
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a given preview template.",t.withAuth=!0,
613
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a given preview template.",t.withAuth=!0,
613
614
  t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs");else{
614
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active preview environments for a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
615
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Wh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active preview environments for a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
615
616
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews");else{
616
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
617
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),$h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
617
618
  ;return t.description="Delete a preview environment generated by a preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
618
619
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.previewId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(e.parameters.previewId));else{
619
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(e.parameters.previewId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Wh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run the given preview template.",t.withAuth=!0,
620
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(e.parameters.previewId))}return p},t.body=function(){},t}return G(t,e),t}(em),Hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run the given preview template.",t.withAuth=!0,
620
621
  t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs");else{
621
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),$h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of preview template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
622
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of preview template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
622
623
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs");else{
623
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template run.",
624
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template run.",
624
625
  t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
625
626
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateRunId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(e.parameters.templateRunId));else{
626
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(e.parameters.templateRunId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a release flow",t.withAuth=!0,
627
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(e.parameters.templateRunId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),Kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a release flow",t.withAuth=!0,
627
628
  t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
628
629
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.stage))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage));else{
629
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",
630
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))}return p},t.body=function(){},t}return G(t,e),t}(Ku),Xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",
630
631
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
631
632
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.stage))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage));else{
632
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
633
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
633
634
  ;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
634
635
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.stage))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs");else{
635
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a release flow",t.withAuth=!0,
636
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a release flow",t.withAuth=!0,
636
637
  t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
637
638
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.stage))l="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs");else{
638
639
  if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");l="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs")}var s=Object.entries(null!==(p=null==e?void 0:e.options)&&void 0!==p?p:{}).filter(function(e){return void 0!==e[1]}),u=s.length>0?"?".concat(s.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(l).concat(u)},
639
- t.body=function(){},t}return G(t,e),t}(Yu),Qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l,s;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
640
+ t.body=function(){},t}return G(t,e),t}(Xu),tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l,s;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
640
641
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.stage)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.runId))s="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId));else{
641
642
  if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(p=null==e?void 0:e.parameters)||void 0===p?void 0:p.stage)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(l=null==e?void 0:e.parameters)||void 0===l?void 0:l.runId)))throw new Error("No matching endpoint URL found for provided parameters");s="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return s},t.body=function(){},t}return G(t,e),t
642
- }(Zu),ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l,s;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
643
+ }(Ku),nf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l,s;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
643
644
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.stage)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.runId))s="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort");else{
644
645
  if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(p=null==e?void 0:e.parameters)||void 0===p?void 0:p.stage)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(l=null==e?void 0:e.parameters)||void 0===l?void 0:l.runId)))throw new Error("No matching endpoint URL found for provided parameters");s="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return s},t.body=function(){},t}
645
- return G(t,e),t}(Ku),tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all preview blueprints for a project",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints");else{
646
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),nf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
646
+ return G(t,e),t}(Qu),rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all preview blueprints for a project",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints");else{
647
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
647
648
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints")}return o},t.body=function(e){return JSON.stringify(e.data)},t}
648
- return G(t,e),t}(Ku),rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
649
+ return G(t,e),t}(Qu),af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
649
650
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId));else{
650
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
651
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
651
652
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId));else{
652
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
653
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
653
654
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId));else{
654
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active previews for a preview blueprint.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
655
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(){},t}return G(t,e),t}(em),lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active previews for a preview blueprint.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
655
656
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews");else{
656
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
657
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
657
658
  ;return t.description="Delete a preview environment generated by a preview blueprint.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Previews > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
658
659
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.previewId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId));else{
659
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause a preview environment generated by a preview blueprint.",
660
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId))}return p},t.body=function(){},t}return G(t,e),t}(em),uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause a preview environment generated by a preview blueprint.",
660
661
  t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Previews > Pause",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
661
662
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.previewId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/pause");else{
662
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/pause")}return p},t.body=function(){},t}return G(t,e),t}(Ku),sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
663
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/pause")}return p},t.body=function(){},t}return G(t,e),t}(Qu),mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
663
664
  ;return t.description="Reset the expiry of a preview environment generated by a preview blueprint.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
664
665
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.previewId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/reset");else{
665
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/reset")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
666
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/reset")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
666
667
  ;return t.description="Resume a preview environment generated by a preview blueprint.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Previews > Resume",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
667
668
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.previewId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/resume");else{
668
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/resume")}return p},t.body=function(){},t}return G(t,e),t}(Ku),mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
669
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/resume")}return p},t.body=function(){},t}return G(t,e),t}(Qu),vf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
669
670
  ;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Runs > Start",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
670
671
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs");else{
671
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a previewBlueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
672
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a previewBlueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
672
673
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs");else{
673
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),vf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
674
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
674
675
  ;return t.description="Get information about the given preview blueprint run",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
675
676
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.runId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId));else{
676
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given preview blueprint run",t.withAuth=!0,
677
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),If=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given preview blueprint run",t.withAuth=!0,
677
678
  t.requiredPermissions="Project > PreviewBlueprints > Runs > Abort",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
678
679
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.runId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort");else{
679
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Ku),ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of project secrets belonging to the project",t.withAuth=!0,
680
- t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets").concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),If=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
681
- "/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n
682
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a project secret including its contents",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
683
- ;return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId)).concat(r)},t.body=function(){},t}return G(t,e),t}(Zu),yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a project secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(){},t}return G(t,e),t}(Xu),Rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a project secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n
684
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Link an addon to a project secret or edit the settings of the linked addon.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(e){
685
- return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a given addon link.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return G(t,e),t}(Zu),Cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unlinks an addon from the project secret.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n
686
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return G(t,e),t}(Xu),Ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a project secret with details about its linked addons",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/details")},t.body=function(){},t}return G(t,e),t}(Zu),_f=function(e){function t(){
680
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Qu),wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of project secrets belonging to the project",t.withAuth=!0,
681
+ t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets").concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
682
+ "/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n
683
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a project secret including its contents",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
684
+ ;return"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId)).concat(r)},t.body=function(){},t}return G(t,e),t}(Ku),jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a project secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(){},t}return G(t,e),t}(em),Uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a project secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n
685
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Link an addon to a project secret or edit the settings of the linked addon.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(e){
686
+ return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a given addon link.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return G(t,e),t}(Ku),_f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unlinks an addon from the project secret.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n
687
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))},t.body=function(){},t}return G(t,e),t}(em),Sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a project secret with details about its linked addons",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/details")},t.body=function(){},t}return G(t,e),t}(Ku),Nf=function(e){function t(){
687
688
  var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of services belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services");else{
688
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
689
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),Af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
689
690
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/build");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t
690
- }(Ku),Nf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/build");else{
691
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
691
+ }(Qu),kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/build");else{
692
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
692
693
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/build/").concat(encodeURIComponent(e.parameters.serviceId));else{
693
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
694
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
694
695
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/combined");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")}return o},t.body=function(e){return JSON.stringify(e.data)},t}
695
- return G(t,e),t}(Ku),Pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/combined");else{
696
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
696
+ return G(t,e),t}(Qu),Df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/combined");else{
697
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),Of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
697
698
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/combined/").concat(encodeURIComponent(e.parameters.serviceId));else{
698
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
699
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
699
700
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/deployment");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")}return o},t.body=function(e){return JSON.stringify(e.data)},t}
700
- return G(t,e),t}(Ku),Of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/deployment");else{
701
- if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
701
+ return G(t,e),t}(Qu),Lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/deployment");else{
702
+ if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
702
703
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(e.parameters.serviceId));else{
703
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
704
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),Bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
704
705
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId));else{
705
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
706
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),Vf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
706
707
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId));else{
707
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given service.",t.withAuth=!0,
708
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(em),Ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given service.",t.withAuth=!0,
708
709
  t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/branches");else{
709
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/branches")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Vf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the builds for the service",t.withAuth=!0,
710
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/branches")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the builds for the service",t.withAuth=!0,
710
711
  t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build");else{
711
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
712
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
712
713
  ;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Deploy Build",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
713
714
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build");else{
714
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",
715
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",
715
716
  t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments");else{
716
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),Gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the build arguments for the given service.",t.withAuth=!0,
717
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Ku),Jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the build arguments for the given service.",t.withAuth=!0,
717
718
  t.requiredPermissions="Project > Secrets > Services > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments");else{
718
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t,n,r,o,a,i
719
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t,n,r,o,a,i
719
720
  ;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments/details");else{
720
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
721
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments/details")}return i},t.body=function(){},t}return G(t,e),t}(Ku),$f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
721
722
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-options");else{
722
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-options")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given build or combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
723
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-options")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given build or combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
723
724
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-source");else{
724
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-source")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),$f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
725
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-source")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
725
726
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
726
727
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.buildId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId));else{
727
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given service build",t.withAuth=!0,
728
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),Yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given service build",t.withAuth=!0,
728
729
  t.requiredPermissions="Project > Services > Deployment > Deploy Build",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
729
730
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.buildId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId));else{
730
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given service.",t.withAuth=!0,
731
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(em),Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given service.",t.withAuth=!0,
731
732
  t.requiredPermissions="Project > Services > Deployment > View Instances",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/containers");else{
732
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given service.",t.withAuth=!0,
733
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given service.",t.withAuth=!0,
733
734
  t.requiredPermissions="Project > Services > Deployment > View Instances",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment");else{
734
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
735
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
735
736
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment");else{
736
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
737
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),eI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
737
738
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks");else{
738
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
739
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")}return i},t.body=function(){},t}return G(t,e),t}(Ku),tI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
739
740
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks");else{
740
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),eI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
741
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/health-checks")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),nI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
741
742
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pause");else{
742
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Ku),tI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
743
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Qu),rI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
743
744
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports");else{
744
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")}return i},t.body=function(){},t}return G(t,e),t}(Zu),nI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the list of ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
745
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")}return i},t.body=function(){},t}return G(t,e),t}(Ku),oI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the list of ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
745
746
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports");else{
746
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),rI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
747
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),aI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
747
748
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pull-requests");else{
748
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pull-requests")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),oI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restarts the given service.",t.withAuth=!0,
749
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pull-requests")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),iI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restarts the given service.",t.withAuth=!0,
749
750
  t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/restart");else{
750
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/restart")}return i},t.body=function(){},t}return G(t,e),t}(Ku),aI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
751
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/restart")}return i},t.body=function(){},t}return G(t,e),t}(Qu),dI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
751
752
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/resume");else{
752
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/resume")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),iI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",
753
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/resume")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),pI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",
753
754
  t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment");else{
754
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),dI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given service.",t.withAuth=!0,
755
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Ku),lI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given service.",t.withAuth=!0,
755
756
  t.requiredPermissions="Project > Secrets > Services > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment");else{
756
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),pI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t,n,r,o,a,i
757
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),sI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t,n,r,o,a,i
757
758
  ;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment/details");else{
758
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),lI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Scale Service",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
759
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment/details")}return i},t.body=function(){},t}return G(t,e),t}(Ku),uI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Scale Service",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
759
760
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.serviceId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/scale");else{
760
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),sI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of volumes belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
761
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),mI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of volumes belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
761
762
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")}
762
- var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),uI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a volume with the specified payload",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
763
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),mI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve a volume",t.withAuth=!0,
763
+ var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),cI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a volume with the specified payload",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
764
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),vI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve a volume",t.withAuth=!0,
764
765
  t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId));else{
765
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),cI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update volume mounts and storage size",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
766
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),hI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update volume mounts and storage size",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
766
767
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId));else{
767
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),vI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes this volume and its associated data.",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
768
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),fI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes this volume and its associated data.",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
768
769
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId));else{
769
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),hI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
770
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(){},t}return G(t,e),t}(em),II=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
770
771
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/attach");else{
771
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/attach")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),fI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get list of backups associated with a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
772
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/attach")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),wI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get list of backups associated with a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
772
773
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups");else{
773
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),II=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for a given volume",t.withAuth=!0,
774
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),gI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for a given volume",t.withAuth=!0,
774
775
  t.requiredPermissions="Project > Volumes > Backups > Create",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups");else{
775
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),wI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details for a specific volume backup",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
776
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),bI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details for a specific volume backup",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
776
777
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
777
778
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId));else{
778
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),gI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the volume backup",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Delete",
779
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),yI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the volume backup",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Delete",
779
780
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
780
781
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.backupId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId));else{
781
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),bI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Detach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",
782
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(em),RI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Detach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",
782
783
  t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.volumeId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/detach");else{
783
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/detach")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),yI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all workflows for a project",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
784
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/detach")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),jI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all workflows for a project",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
784
785
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows")}
785
- var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),RI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
786
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),jI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a workflow",t.withAuth=!0,
786
+ var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),UI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
787
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),CI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a workflow",t.withAuth=!0,
787
788
  t.requiredPermissions="Project > Workflows > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.workflowId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId));else{
788
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),UI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
789
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),EI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
789
790
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.workflowId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId));else{
790
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),CI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Start",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
791
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),_I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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.",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Start",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
791
792
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.workflowId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs");else{
792
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),EI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
793
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),SI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
793
794
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.workflowId))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs");else{
794
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),_I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given workflow run",t.withAuth=!0,
795
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),NI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given workflow run",t.withAuth=!0,
795
796
  t.requiredPermissions="Project > Workflows > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
796
797
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.runId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId));else{
797
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),SI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given workflow run",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Abort",
798
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Ku),AI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given workflow run",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Abort",
798
799
  t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
799
800
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.runId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort");else{
800
- if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Ku),NI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available project regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){
801
- return"/v1/regions"},t.body=function(){},t}return G(t,e),t}(Zu),AI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of global secrets",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),kI=function(e){function t(){
802
- var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),PI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
803
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),TI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
804
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),DI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a global secret including its contents",t.withAuth=!0,
801
+ if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Qu),kI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available project regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){
802
+ return"/v1/regions"},t.body=function(){},t}return G(t,e),t}(Ku),PI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of global secrets",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),TI=function(e){function t(){
803
+ var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),DI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
804
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),OI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
805
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),xI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a global secret including its contents",t.withAuth=!0,
805
806
  t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},
806
- t.body=function(){},t}return G(t,e),t}(Zu),OI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a global secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{
807
- if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),xI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List the resource tags for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"
808
- ;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),LI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Add a new resource tag for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}
809
- return G(t,e),t}(Ku),qI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update or create a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),BI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View details for a given resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n,r,o
807
+ t.body=function(){},t}return G(t,e),t}(Ku),LI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a global secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{
808
+ if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(){},t}return G(t,e),t}(em),qI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List the resource tags for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"
809
+ ;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),BI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Add a new resource tag for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}
810
+ return G(t,e),t}(Qu),VI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update or create a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),FI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View details for a given resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n,r,o
810
811
  ;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(){},t}return G(t,e),t
811
- }(Zu),VI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Patch a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{
812
- if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),FI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
813
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),MI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new team belonging to the authenticated org.",t.withAuth=!0,
814
- t.requiredPermissions="Organisation > Team > General > Create",t.endpointUrl=function(e){return"/v1/teams"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),GI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of teams belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),zI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a team belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Read",t.endpointUrl=function(e){
815
- return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(){},t}return G(t,e),t}(Zu),JI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the description of a team belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Update",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),WI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
816
- ;return t.description="Gets a list of members belonging to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members").concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),$I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sends an invitation email to add a user to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n
817
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),HI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a member from a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(Xu),ZI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of platform roles for a team.",
818
- t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles").concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),YI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new platform role for a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n
819
- ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),KI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates role or updates all user-editable fields on a platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),XI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
820
- ;return t.description="Gets details about a specific platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Zu),QI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a platform role for a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
821
- "/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),ew=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a platform role from a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Xu),tw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a user to a platform role in a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){
822
- return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),nw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a user from a platform role in a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t
823
- }return G(t,e),t}(Xu),rw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of templates",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),ow=function(e){function t(){
824
- var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),aw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
812
+ }(Ku),MI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Patch a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{
813
+ if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),GI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
814
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(){},t}return G(t,e),t}(em),zI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new team belonging to the authenticated org.",t.withAuth=!0,
815
+ t.requiredPermissions="Organisation > Team > General > Create",t.endpointUrl=function(e){return"/v1/teams"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),JI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of teams belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams".concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),WI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a team belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Read",t.endpointUrl=function(e){
816
+ return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(){},t}return G(t,e),t}(Ku),$I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the description of a team belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Update",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),HI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
817
+ ;return t.description="Gets a list of members belonging to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members").concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),ZI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sends an invitation email to add a user to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n
818
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),YI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a member from a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(em),KI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of platform roles for a team.",
819
+ t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles").concat(r)},t.body=function(){},t}return G(t,e),t}(Xu),XI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new platform role for a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n
820
+ ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),QI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates role or updates all user-editable fields on a platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(tm),ew=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
821
+ ;return t.description="Gets details about a specific platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Ku),tw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a platform role for a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
822
+ "/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(nm),nw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a platform role from a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(em),rw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a user to a platform role in a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){
823
+ return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),ow=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a user from a platform role in a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t
824
+ }return G(t,e),t}(em),aw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of templates",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Xu),iw=function(e){function t(){
825
+ var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),dw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
825
826
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId));else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){
826
- return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),iw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
827
- (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId));else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),dw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a template",t.withAuth=!0,
827
+ return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),pw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
828
+ (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId));else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),lw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a template",t.withAuth=!0,
828
829
  t.requiredPermissions="Account > Templates > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId));else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters")
829
- ;o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),pw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Run",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId),"/runs");else{
830
- if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),lw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
830
+ ;o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(){},t}return G(t,e),t}(em),sw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Run",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId),"/runs");else{
831
+ if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),uw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
831
832
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId),"/runs");else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
832
- ;return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),sw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
833
+ ;return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),mw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
833
834
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateRunId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId));else{
834
- if(!((null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),uw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > Runs > Abort",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
835
+ if(!((null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId))}return i},t.body=function(){},t}return G(t,e),t}(Ku),cw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > Runs > Abort",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
835
836
  ;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateRunId))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId),"/abort");else{
836
- if(!((null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId),"/abort")}return i},t.body=function(){},t}return G(t,e),t}(Ku),mw=function(){function e(){}return e.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},e.prototype.getInfo=function(){return""},e.prototype.storeContext=function(e){this.writeContext(e),this.contextWrapper=e},e.prototype.addContext=function(e,t){if(void 0===t&&(t=!0),this.loadContext(),
837
+ if(!((null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId),"/abort")}return i},t.body=function(){},t}return G(t,e),t}(Qu),vw=function(){function e(){}return e.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},e.prototype.getInfo=function(){return""},e.prototype.storeContext=function(e){this.writeContext(e),this.contextWrapper=e},e.prototype.addContext=function(e,t){if(void 0===t&&(t=!0),this.loadContext(),
837
838
  !t&&void 0!==this.findContext(e.name))throw new Error("Context with name ".concat(e.name," already exists"));this.removeContext(e.name);var n=z({host:"https://api.northflank.com"},e),r=this.contextWrapper,o={current:n.name,contexts:$($([],r.contexts,!0),[n],!1),lastUpdateCheck:r.lastUpdateCheck};this.storeContext(o)},e.prototype.removeContext=function(e){this.loadContext();var t=this.contextWrapper,n=t.contexts.filter(function(t){return t.name!==e}),r={current:t.current===e?void 0:t.current,contexts:$([],n,!0),lastUpdateCheck:t.lastUpdateCheck};this.storeContext(r)},e.prototype.getCurrentContext=function(){var e,t=null===(e=this.contextWrapper)||void 0===e?void 0:e.current;return void 0===t?t:this.findContext(t)},e.prototype.findContext=function(e){return this.contextWrapper.contexts.find(function(t){return t.name===e})},e.prototype.getCurrentBaseUrl=function(e){var t=this.getCurrentContext()
838
839
  ;if(!0===e&&!(null==t?void 0:t.host))throw new Error("Context (".concat(null==t?void 0:t.name,") doesn't have a target API host. Please login again."));return null==t?void 0:t.host},e.prototype.getCurrentProjectName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.project},e.prototype.getCurrentName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.name},e.prototype.getCurrentToken=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.token},e.prototype.getCurrentServiceName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.service},e.prototype.getCurrentJobName=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.job},e.prototype.getTokenScope=function(){var e,t=this.getCurrentContext();if(void 0!==t){var n=null==t?void 0:t.tokenScope;if(void 0!==n)return n;if(void 0!==(null==t?void 0:t.token)){var r=function(e){try{
839
840
  var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(Buffer.from(t,"base64").toString("utf8"))}catch(e){return}}(t.token),o=null!==(e=null==r?void 0:r.entityType)&&void 0!==e?e:"team";return this.updateContext(z(z({},t),{tokenScope:o})),o}}},e.prototype.getCurrentPlanId=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.plan},e.prototype.getCurrentRegion=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.region},e.prototype.useContext=function(e){if(this.loadContext(),!this.findContext(e))throw new Error("Context with name ".concat(e," doesn't exist"));var t=this.contextWrapper,n=z(z({},t),{current:e});this.storeContext(n)},e.prototype.updateContext=function(e){if(this.loadContext(),!this.findContext(e.name))throw new Error("Context with name ".concat(e.name," doesn't exist"));var t=this.contextWrapper.contexts.map(function(t){return t.name===e.name?z(z({},t),e):t}),n=z(z({},this.contextWrapper),{
840
841
  contexts:t});this.storeContext(n)},e.prototype.updateToken=function(e,t){this.loadContext();var n=null!=t?t:this.getCurrentName(),r=this.findContext(n);if(!r)throw new Error("Context with name ".concat(t," doesn't exist"));this.updateContext(z(z({},r),{token:e}))},e.prototype.useProjectId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set project id to current context, current context not defined");var n=z(z({},t),{project:e});this.addContext(n)},e.prototype.useServiceId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set service id to current context, current context not defined");var n=z(z({},t),{service:e});this.addContext(n)},e.prototype.useJobId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set job id to current context, current context not defined");var n=z(z({},t),{job:e});this.addContext(n)},
841
- e.prototype.usePlanId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set plan id to current context, current context not defined");var n=z(z({},t),{plan:e});this.addContext(n)},e.prototype.useRegion=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set region id to current context, current context not defined");var n=z(z({},t),{region:e});this.addContext(n)},e.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},e.prototype.setLastUpdateCheck=function(e){this.loadContext();var t=this.contextWrapper,n=z(z({},t),{lastUpdateCheck:e});this.storeContext(n)},e}(),cw=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){try{b.existsSync(e)||b.mkdirSync(e,{recursive:!0})}catch(t){throw console.log("Failed to login, local files could not be created: ".concat(e,", error: ").concat(t.message)),t}},
842
- n.configPath=t||"".concat(f.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return G(t,e),t.prototype.loadContextWrapper=function(){var e;try{e=b.readFileSync(this.configFile,"utf8")}catch(e){if("ENOENT"===e.code)return{contexts:[],lastUpdateCheck:new Date(0)};throw new Error("Failed to read config file ".concat(this.configFile,": ").concat(e.message))}try{return JSON.parse(e)}catch(e){throw new Error("Config file ".concat(this.configFile," contains invalid JSON: ").concat(e.message))}},t.prototype.writeContext=function(e){this.assertConfigDir();try{b.writeFileSync(this.configFile,JSON.stringify(e,null,"\t"),{mode:416})}catch(e){throw console.log("Failed to persist api context, local files could not be created, error: ".concat(e.message)),e}},t.prototype.assertConfigDir=function(){this.assertDir(this.configPath)},t.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},t}(mw),vw=function(e){function t(){
843
- var t=e.call(this)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t.loadContext(),t}return G(t,e),t.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},t.prototype.writeContext=function(e){this.inMemoryContextWrapper=e},t}(mw),hw=function(e,t){void 0===t&&(t={});var n,r,o,a=this;this.baseUrl=function(){return a.contextProvider.getCurrentBaseUrl()},this.contextProvider=e,this.forwarding=new li(e,new _f(e,t),new mv(e,t),t.agent),this.exec=new ui(e,t.agent),this.logs=new am(e,t),this.metrics=new pm(e),this.fileCopy=new Mu(this.exec),this.endpoints={get:(o={},o.addon=((r=new hv(e,t)).types=new lm(e,t),r.backupSchedules=new wv(e,t),r.backups=new yv(e,t),r.backup=((n=new jv(e,t)).download=new _v(e,t),n.restores=new Nv(e,t),n),r.containers=new kv(e,t),r.credentials=new Pv(e,t),r.restores=new qv(e,t),r.version=new Mv(e,t),r),
844
- o.backupDestination=new mm(e,t),o.invoice=function(){var n={};return n.details=new Im(e,t),n}(),o.cloud=function(){var n={};return n.cluster=new Rm(e,t),n.integration=new Pm(e,t),n}(),o.orgDirectoryGroups=new Lm(e,t),o.dnsId=new qm(e,t),o.domain=new Fm(e,t),o.domainCertificate=new Gm(e,t),o.subdomain=function(){var n=new $m(e,t);return n.path=new tc(e,t),n}(),o.egressIp=new uc(e,t),o.logSink=new bc(e,t),o.notification=new _c(e,t),o.registryCredentials=new Pc(e,t),o.sshIdentities=new Lc(e,t),o.loadBalancer=new Hc(e,t),o.orgRole=new ev(e,t),o.project=new sv(e,t),o.externalAddon=new Wv(e,t),o.job=function(){var n=new oh(e,t);return n.branches=new dh(e,t),n.builds=new ph(e,t),n.buildArguments=new sh(e,t),n.buildArgumentDetails=new mh(e,t),n.build=new hh(e,t),n.containers=new Ih(e,t),n.deployment=new wh(e,t),n.healthChecks=new bh(e,t),n.pullRequests=new jh(e,t),n.runs=new Ch(e,t),n.run=new _h(e,t),n.runtimeEnvironment=new Nh(e,t),n.runtimeEnvironmentDetails=new kh(e,t),n}(),
845
- o.llmModelDeployment=new Lh(e,t),o.pipeline=new Fh(e,t),o.previewTemplate=new Mh(e,t),o.previewTemplateRun=new Hh(e,t),o.releaseFlow=new Zh(e,t),o.releaseFlowRun=new Qh(e,t),o.previewBlueprint=new rf(e,t),o.previewBlueprintRun=new vf(e,t),o.secret=new bf(e,t),o.secretLink=new Uf(e,t),o.secretDetails=new Ef(e,t),o.service=function(){var n=new Lf(e,t);return n.branches=new Bf(e,t),n.builds=new Vf(e,t),n.buildArguments=new Mf(e,t),n.buildArgumentDetails=new zf(e,t),n.build=new $f(e,t),n.containers=new Zf(e,t),n.deployment=new Yf(e,t),n.healthChecks=new Xf(e,t),n.ports=new tI(e,t),n.pullRequests=new rI(e,t),n.runtimeEnvironment=new iI(e,t),n.runtimeEnvironmentDetails=new pI(e,t),n}(),o.volume=function(){var n=new mI(e,t);return n.backups=new fI(e,t),n.backup=new wI(e,t),n}(),o.workflow=new jI(e,t),o.workflowRun=new _I(e,t),o.globalSecret=new DI(e,t),o.tag=new BI(e,t),o.team=new zI(e,t),o.teamRole=new XI(e,t),o.template=new aw(e,t),o.templateRun=new sw(e,t),o),list:function(){var n={}
846
- ;return n.backupDestinations=new sm(e,t),n.backupDestinationsBackups=new hm(e,t),n.invoices=new fm(e,t),n.cloud=function(){var n={};return n.providers=new wm(e,t),n.clusters=new gm(e,t),n.cluster=function(){var n={};return n.nodes=new Cm(e,t),n}(),n.integrations=new Nm(e,t),n.nodeTypes=new Om(e,t),n.regions=new xm(e,t),n}(),n.domains=new Bm(e,t),n.subdomain=function(){var n={};return n.path=new ec(e,t),n}(),n.egressIps=new pc(e,t),n.logSinks=new wc(e,t),n.notifications=new Cc(e,t),n.registryCredentials=new Ac(e,t),n.sshIdentities=new Oc(e,t),n.vcs=new Fc(e,t),n.repos=new Gc(e,t),n.branches=new zc(e,t),n.loadBalancers=new Jc(e,t),n.orgRoles=new Kc(e,t),n.plans=new av(e,t),n.projects=new iv(e,t),n.addons=new mv(e,t),n.externalAddons=new zv(e,t),n.jobs=new Zv(e,t),n.llmModelDeployments=new Oh(e,t),n.pipelines=new Vh(e,t),n.pipelineTemplatePreviews=new zh(e,t),n.previewTemplateRuns=new $h(e,t),n.releaseFlowRuns=new Xh(e,t),n.previewBlueprints=new tf(e,t),
847
- n.blueprintTemplatePreviews=new df(e,t),n.previewBlueprintRuns=new cf(e,t),n.secrets=new ff(e,t),n.services=new _f(e,t),n.volumes=new sI(e,t),n.workflows=new yI(e,t),n.workflowRuns=new EI(e,t),n.regions=new NI(e,t),n.globalSecrets=new AI(e,t),n.tags=new xI(e,t),n.teams=new GI(e,t),n.teamMembers=new WI(e,t),n.teamRoles=new ZI(e,t),n.templates=new rw(e,t),n.templateRuns=new lw(e,t),n}(),add:function(){var n={};return n.backupDestination=new um(e,t),n.domain=function(){var n={};return n.subdomain=new Jm(e,t),n}(),n.subdomain=function(){var n={};return n.path=new Qm(e,t),n}(),n.registryCredentials=new kc(e,t),n.sshIdentities=new xc(e,t),n.tag=new LI(e,t),n}(),patch:function(){var n={};return n.backupDestination=new cm(e,t),n.cloud=function(){var n={};return n.cluster=new jm(e,t),n.integration=new Tm(e,t),n}(),n.egressIp=new mc(e,t),n.gradualRolloutStrategy=new fc(e,t),n.loadBalancer=new Zc(e,t),n.orgRole=new tv(e,t),n.project=new lv(e,t),n.addon=new fv(e,t),n.job=function(){
848
- var n=new ah(e,t);return n.cron=new eh(e,t),n.manual=new rh(e,t),n}(),n.secret=new gf(e,t),n.service=function(){var n={};return n.build=new Af(e,t),n.combined=new Tf(e,t),n.deployment=new xf(e,t),n}(),n.globalSecret=new TI(e,t),n.tag=new VI(e,t),n.team=new JI(e,t),n.teamRole=new QI(e,t),n}(),delete:function(){var n={};return n.backupDestination=new vm(e,t),n.cloud=function(){var n={};return n.cluster=new Um(e,t),n.integration=new Dm(e,t),n}(),n.domain=new Mm(e,t),n.subdomain=function(){var n=new Hm(e,t);return n.path=new nc(e,t),n}(),n.egressIp=new cc(e,t),n.gradualRolloutStrategy=new Ic(e,t),n.logSink=new yc(e,t),n.notification=new Nc(e,t),n.registryCredentials=new Dc(e,t),n.sshIdentities=new Vc(e,t),n.loadBalancer=new Yc(e,t),n.orgRole=new nv(e,t),n.orgRoleMember=new ov(e,t),n.project=new uv(e,t),n.addon=function(){var n=new Iv(e,t);return n.backupSchedule=new bv(e,t),n}(),n.backup=new Uv(e,t),n.externalAddon=new Hv(e,t),n.job=new ih(e,t),n.llmModelDeployment=new Bh(e,t),
849
- n.pipelineTemplatePreview=new Jh(e,t),n.previewBlueprint=new af(e,t),n.blueprintTemplatePreview=new pf(e,t),n.secret=new yf(e,t),n.secretLink=new Cf(e,t),n.service=new qf(e,t),n.volume=function(){var n=new vI(e,t);return n.backup=new gI(e,t),n}(),n.globalSecret=new OI(e,t),n.tag=new FI(e,t),n.teamMember=new HI(e,t),n.teamRole=new ew(e,t),n.teamRoleMember=new nw(e,t),n.template=new dw(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new bm(e,t),n.integration=new Am(e,t),n}(),n.domain=new Vm(e,t),n.egressIp=new lc(e,t),n.gradualRolloutStrategy=new vc(e,t),n.logSink=new gc(e,t),n.notification=new Ec(e,t),n.customVcs=function(){var n={};return n.token=new Mc(e,t),n}(),n.loadBalancer=new Wc(e,t),n.orgRole=new Xc(e,t),n.orgRoleMember=new rv(e,t),n.project=new dv(e,t),n.addon=function(){var n=new cv(e,t);return n.backupSchedule=new gv(e,t),n}(),n.externalAddon=new Jv(e,t),n.job=function(){var n=new Yv(e,t);return n.cron=new Xv(e,t),n.manual=new th(e,t),
850
- n}(),n.llmModelDeployment=new xh(e,t),n.previewBlueprint=new nf(e,t),n.secret=new If(e,t),n.service=function(){var n={};return n.build=new Sf(e,t),n.combined=new kf(e,t),n.deployment=new Df(e,t),n}(),n.volume=new uI(e,t),n.workflow=new RI(e,t),n.globalSecret=new kI(e,t),n.team=new MI(e,t),n.teamMemberInvite=new $I(e,t),n.teamRole=new YI(e,t),n.teamRoleMember=new tw(e,t),n.template=new ow(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new ym(e,t),n.integration=new km(e,t),n}(),n.domain=function(){var n={};return n.subdomain=new Wm(e,t),n}(),n.egressIp=new sc(e,t),n.gradualRolloutStrategy=new hc(e,t),n.sshIdentities=new qc(e,t),n.loadBalancer=new $c(e,t),n.orgRole=new Qc(e,t),n.project=new pv(e,t),n.addon=new vv(e,t),n.job=function(){var n=new Kv(e,t);return n.cron=new Qv(e,t),n.manual=new nh(e,t),n}(),n.secret=new wf(e,t),n.service=function(){var n={};return n.build=new Nf(e,t),n.combined=new Pf(e,t),n.deployment=new Of(e,t),n}(),
851
- n.globalSecret=new PI(e,t),n.tag=new qI(e,t),n.teamRole=new KI(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Em(e,t),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new _m(e,t),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Sm(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new zm(e,t),n.addon=function(){var n={};return n.backup=new Tv(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Zm(e,t),n.path=new oc(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Ym(e,t);return n.path=new ac(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Km(e,t),n}(),n}(),enable:function(){var n={}
852
- ;return n.subdomain=function(){var n={};return n.cdn=new Xm(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new rc(e,t),n}(),n.logSink=new Uc(e,t),n.notification=new Sc(e,t),n.registryCredentials=new Tc(e,t),n.sshIdentities=new Bc(e,t),n.addon=function(){var n={};return n.networkSettings=new Dv(e,t),n.security=new Fv(e,t),n.version=new Gv(e,t),n}(),n.externalAddon=new $v(e,t),n.job=function(){var n={};return n.buildArguments=new uh(e,t),n.buildOptions=new ch(e,t),n.buildSource=new vh(e,t),n.deployment=new gh(e,t),n.healthChecks=new yh(e,t),n.runtimeEnvironment=new Ah(e,t),n.settings=new Th(e,t),n}(),n.llmModelDeployment=new qh(e,t),n.previewTemplate=new Gh(e,t),n.releaseFlow=new Yh(e,t),n.previewBlueprint=new of(e,t),n.secret=new Rf(e,t),n.secretLink=new jf(e,t),n.service=function(){var n={};return n.buildArguments=new Gf(e,t),n.buildOptions=new Jf(e,t),n.buildSource=new Wf(e,t),n.deployment=new Kf(e,t),n.healthChecks=new Qf(e,t),
853
- n.ports=new nI(e,t),n.runtimeEnvironment=new dI(e,t),n}(),n.volume=new cI(e,t),n.workflow=new UI(e,t),n.template=new iw(e,t),n}(),verify:function(){var n={};return n.subdomain=new ic(e,t),n.domain=new dc(e,t),n}(),pause:function(){var n={};return n.logSink=new Rc(e,t),n.addon=new Ov(e,t),n.job=new Rh(e,t),n.blueprintTemplatePreview=new lf(e,t),n.service=new eI(e,t),n}(),resume:function(){var n={};return n.logSink=new jc(e,t),n.addon=new Bv(e,t),n.job=new Uh(e,t),n.blueprintTemplatePreview=new uf(e,t),n.service=new aI(e,t),n}(),backup:function(){var n={};return n.addon=new Rv(e,t),n.volume=new II(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new Cv(e,t),n.restore=new Ev(e,t),n}(),n.job=function(){var n={};return n.build=new fh(e,t),n.run=new Sh(e,t),n}(),n.releaseFlowRun=new ef(e,t),n.previewBlueprintRun=new hf(e,t),n.service=function(){var n={};return n.build=new Hf(e,t),n}(),n.workflowRun=new SI(e,t),n.templateRun=new uw(e,t),n}(),
854
- restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new Sv(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new Av(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new xv(e,t),n.blueprintTemplatePreview=new sf(e,t),n}(),restart:function(){var n={};return n.addon=new Lv(e,t),n.service=new oI(e,t),n}(),scale:function(){var n={};return n.addon=new Vv(e,t),n.job=new Ph(e,t),n.service=new lI(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new lh(e,t),n.run=new Eh(e,t),n}(),n.service=function(){var n={};return n.build=new Ff(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new Dh(e,t),n}(),run:function(){var n={};return n.previewTemplate=new Wh(e,t),n.releaseFlow=new Kh(e,t),n.previewBlueprint=new mf(e,t),n.workflow=new CI(e,t),n.template=new pw(e,t),n}(),attach:function(){var n={};return n.volume=new hI(e,t),n}(),detach:function(){var n={};return n.volume=new bI(e,t),n
842
+ e.prototype.usePlanId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set plan id to current context, current context not defined");var n=z(z({},t),{plan:e});this.addContext(n)},e.prototype.useRegion=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set region id to current context, current context not defined");var n=z(z({},t),{region:e});this.addContext(n)},e.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},e.prototype.setLastUpdateCheck=function(e){this.loadContext();var t=this.contextWrapper,n=z(z({},t),{lastUpdateCheck:e});this.storeContext(n)},e}(),hw=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){try{R.existsSync(e)||R.mkdirSync(e,{recursive:!0})}catch(t){throw console.log("Failed to login, local files could not be created: ".concat(e,", error: ").concat(t.message)),t}},
843
+ n.configPath=t||"".concat(E.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return G(t,e),t.prototype.loadContextWrapper=function(){var e;try{e=R.readFileSync(this.configFile,"utf8")}catch(e){if("ENOENT"===e.code)return{contexts:[],lastUpdateCheck:new Date(0)};throw new Error("Failed to read config file ".concat(this.configFile,": ").concat(e.message))}try{return JSON.parse(e)}catch(e){throw new Error("Config file ".concat(this.configFile," contains invalid JSON: ").concat(e.message))}},t.prototype.writeContext=function(e){this.assertConfigDir();try{R.writeFileSync(this.configFile,JSON.stringify(e,null,"\t"),{mode:416})}catch(e){throw console.log("Failed to persist api context, local files could not be created, error: ".concat(e.message)),e}},t.prototype.assertConfigDir=function(){this.assertDir(this.configPath)},t.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},t}(vw),fw=function(e){function t(){
844
+ var t=e.call(this)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t.loadContext(),t}return G(t,e),t.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},t.prototype.writeContext=function(e){this.inMemoryContextWrapper=e},t}(vw),Iw=function(e,t){void 0===t&&(t={});var n,r,o,a=this;this.baseUrl=function(){return a.contextProvider.getCurrentBaseUrl()},this.contextProvider=e,this.forwarding=new ui(e,new Nf(e,t),new vv(e,t),t.agent),this.exec=new ci(e,t.agent),this.logs=new dm(e,t),this.metrics=new sm(e),this.fileCopy=new zu(this.exec),this.endpoints={get:(o={},o.addon=((r=new Iv(e,t)).types=new um(e,t),r.backupSchedules=new bv(e,t),r.backups=new jv(e,t),r.backup=((n=new Cv(e,t)).download=new Nv(e,t),n.restores=new kv(e,t),n),r.containers=new Tv(e,t),r.credentials=new Dv(e,t),r.restores=new Vv(e,t),r.version=new zv(e,t),r),
845
+ o.backupDestination=new vm(e,t),o.invoice=function(){var n={};return n.details=new gm(e,t),n}(),o.cloud=function(){var n={};return n.cluster=new Um(e,t),n.integration=new Dm(e,t),n}(),o.orgDirectoryGroups=new Bm(e,t),o.dnsId=new Vm(e,t),o.domain=new Gm(e,t),o.domainCertificate=new Jm(e,t),o.subdomain=function(){var n=new Zm(e,t);return n.path=new rc(e,t),n}(),o.egressIp=new cc(e,t),o.logSink=new Rc(e,t),o.notification=new Nc(e,t),o.registryCredentials=new Dc(e,t),o.sshIdentities=new Bc(e,t),o.loadBalancer=new Yc(e,t),o.orgRole=new nv(e,t),o.project=new mv(e,t),o.externalAddon=new Hv(e,t),o.job=function(){var n=new ih(e,t);return n.branches=new lh(e,t),n.builds=new sh(e,t),n.buildArguments=new mh(e,t),n.buildArgumentDetails=new vh(e,t),n.build=new Ih(e,t),n.containers=new gh(e,t),n.deployment=new bh(e,t),n.healthChecks=new Rh(e,t),n.pullRequests=new Ch(e,t),n.runs=new _h(e,t),n.run=new Nh(e,t),n.runtimeEnvironment=new kh(e,t),n.runtimeEnvironmentDetails=new Th(e,t),n}(),
846
+ o.llmModelDeployment=new Bh(e,t),o.pipeline=new Gh(e,t),o.previewTemplate=new zh(e,t),o.previewTemplateRun=new Yh(e,t),o.releaseFlow=new Kh(e,t),o.releaseFlowRun=new tf(e,t),o.previewBlueprint=new af(e,t),o.previewBlueprintRun=new ff(e,t),o.secret=new Rf(e,t),o.secretLink=new Ef(e,t),o.secretDetails=new Sf(e,t),o.service=function(){var n=new Bf(e,t);return n.branches=new Ff(e,t),n.builds=new Mf(e,t),n.buildArguments=new zf(e,t),n.buildArgumentDetails=new Wf(e,t),n.build=new Zf(e,t),n.containers=new Kf(e,t),n.deployment=new Xf(e,t),n.healthChecks=new eI(e,t),n.ports=new rI(e,t),n.pullRequests=new aI(e,t),n.runtimeEnvironment=new pI(e,t),n.runtimeEnvironmentDetails=new sI(e,t),n}(),o.volume=function(){var n=new vI(e,t);return n.backups=new wI(e,t),n.backup=new bI(e,t),n}(),o.workflow=new CI(e,t),o.workflowRun=new NI(e,t),o.globalSecret=new xI(e,t),o.tag=new FI(e,t),o.team=new WI(e,t),o.teamRole=new ew(e,t),o.template=new dw(e,t),o.templateRun=new mw(e,t),o),list:function(){var n={}
847
+ ;return n.backupDestinations=new mm(e,t),n.backupDestinationsBackups=new Im(e,t),n.invoices=new wm(e,t),n.cloud=function(){var n={};return n.providers=new bm(e,t),n.clusters=new ym(e,t),n.cluster=function(){var n={};return n.nodes=new _m(e,t),n}(),n.integrations=new km(e,t),n.nodeTypes=new Lm(e,t),n.regions=new qm(e,t),n}(),n.domains=new Fm(e,t),n.subdomain=function(){var n={};return n.path=new nc(e,t),n}(),n.egressIps=new sc(e,t),n.logSinks=new bc(e,t),n.notifications=new _c(e,t),n.registryCredentials=new Pc(e,t),n.sshIdentities=new Lc(e,t),n.vcs=new Gc(e,t),n.repos=new Jc(e,t),n.branches=new Wc(e,t),n.loadBalancers=new $c(e,t),n.orgRoles=new Qc(e,t),n.plans=new dv(e,t),n.projects=new pv(e,t),n.addons=new vv(e,t),n.externalAddons=new Wv(e,t),n.jobs=new Kv(e,t),n.llmModelDeployments=new Lh(e,t),n.pipelines=new Mh(e,t),n.pipelineTemplatePreviews=new Wh(e,t),n.previewTemplateRuns=new Zh(e,t),n.releaseFlowRuns=new ef(e,t),n.previewBlueprints=new rf(e,t),
848
+ n.blueprintTemplatePreviews=new lf(e,t),n.previewBlueprintRuns=new hf(e,t),n.secrets=new wf(e,t),n.services=new Nf(e,t),n.volumes=new mI(e,t),n.workflows=new jI(e,t),n.workflowRuns=new SI(e,t),n.regions=new kI(e,t),n.globalSecrets=new PI(e,t),n.tags=new qI(e,t),n.teams=new JI(e,t),n.teamMembers=new HI(e,t),n.teamRoles=new KI(e,t),n.templates=new aw(e,t),n.templateRuns=new uw(e,t),n}(),add:function(){var n={};return n.backupDestination=new cm(e,t),n.domain=function(){var n={};return n.subdomain=new $m(e,t),n}(),n.subdomain=function(){var n={};return n.path=new tc(e,t),n}(),n.registryCredentials=new Tc(e,t),n.sshIdentities=new qc(e,t),n.tag=new BI(e,t),n}(),patch:function(){var n={};return n.backupDestination=new hm(e,t),n.cloud=function(){var n={};return n.cluster=new Cm(e,t),n.integration=new Om(e,t),n}(),n.egressIp=new vc(e,t),n.gradualRolloutStrategy=new wc(e,t),n.loadBalancer=new Kc(e,t),n.orgRole=new rv(e,t),n.project=new uv(e,t),n.addon=new wv(e,t),n.job=function(){
849
+ var n=new dh(e,t);return n.cron=new nh(e,t),n.manual=new ah(e,t),n}(),n.secret=new yf(e,t),n.service=function(){var n={};return n.build=new Pf(e,t),n.combined=new Of(e,t),n.deployment=new qf(e,t),n}(),n.globalSecret=new OI(e,t),n.tag=new MI(e,t),n.team=new $I(e,t),n.teamRole=new tw(e,t),n}(),delete:function(){var n={};return n.backupDestination=new fm(e,t),n.cloud=function(){var n={};return n.cluster=new Em(e,t),n.integration=new xm(e,t),n}(),n.domain=new zm(e,t),n.subdomain=function(){var n=new Ym(e,t);return n.path=new oc(e,t),n}(),n.egressIp=new hc(e,t),n.gradualRolloutStrategy=new gc(e,t),n.logSink=new jc(e,t),n.notification=new kc(e,t),n.registryCredentials=new xc(e,t),n.sshIdentities=new Mc(e,t),n.loadBalancer=new Xc(e,t),n.orgRole=new ov(e,t),n.orgRoleMember=new iv(e,t),n.project=new cv(e,t),n.addon=function(){var n=new gv(e,t);return n.backupSchedule=new Rv(e,t),n}(),n.backup=new Ev(e,t),n.externalAddon=new Yv(e,t),n.job=new ph(e,t),n.llmModelDeployment=new Fh(e,t),
850
+ n.pipelineTemplatePreview=new $h(e,t),n.previewBlueprint=new pf(e,t),n.blueprintTemplatePreview=new sf(e,t),n.secret=new jf(e,t),n.secretLink=new _f(e,t),n.service=new Vf(e,t),n.volume=function(){var n=new fI(e,t);return n.backup=new yI(e,t),n}(),n.globalSecret=new LI(e,t),n.tag=new GI(e,t),n.teamMember=new YI(e,t),n.teamRole=new nw(e,t),n.teamRoleMember=new ow(e,t),n.template=new lw(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new Rm(e,t),n.integration=new Pm(e,t),n}(),n.domain=new Mm(e,t),n.egressIp=new uc(e,t),n.gradualRolloutStrategy=new fc(e,t),n.logSink=new yc(e,t),n.notification=new Sc(e,t),n.customVcs=function(){var n={};return n.token=new zc(e,t),n}(),n.loadBalancer=new Hc(e,t),n.orgRole=new ev(e,t),n.orgRoleMember=new av(e,t),n.project=new lv(e,t),n.addon=function(){var n=new hv(e,t);return n.backupSchedule=new yv(e,t),n}(),n.externalAddon=new $v(e,t),n.job=function(){var n=new Xv(e,t);return n.cron=new eh(e,t),n.manual=new rh(e,t),
851
+ n}(),n.llmModelDeployment=new qh(e,t),n.previewBlueprint=new of(e,t),n.secret=new gf(e,t),n.service=function(){var n={};return n.build=new Af(e,t),n.combined=new Tf(e,t),n.deployment=new xf(e,t),n}(),n.volume=new cI(e,t),n.workflow=new UI(e,t),n.globalSecret=new TI(e,t),n.team=new zI(e,t),n.teamMemberInvite=new ZI(e,t),n.teamRole=new XI(e,t),n.teamRoleMember=new rw(e,t),n.template=new iw(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new jm(e,t),n.integration=new Tm(e,t),n}(),n.domain=function(){var n={};return n.subdomain=new Hm(e,t),n}(),n.egressIp=new mc(e,t),n.gradualRolloutStrategy=new Ic(e,t),n.sshIdentities=new Vc(e,t),n.loadBalancer=new Zc(e,t),n.orgRole=new tv(e,t),n.project=new sv(e,t),n.addon=new fv(e,t),n.job=function(){var n=new Qv(e,t);return n.cron=new th(e,t),n.manual=new oh(e,t),n}(),n.secret=new bf(e,t),n.service=function(){var n={};return n.build=new kf(e,t),n.combined=new Df(e,t),n.deployment=new Lf(e,t),n}(),
852
+ n.globalSecret=new DI(e,t),n.tag=new VI(e,t),n.teamRole=new QI(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Sm(e,t),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Nm(e,t),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Am(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Wm(e,t),n.addon=function(){var n={};return n.backup=new Ov(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Km(e,t),n.path=new ic(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Xm(e,t);return n.path=new dc(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Qm(e,t),n}(),n}(),enable:function(){var n={}
853
+ ;return n.subdomain=function(){var n={};return n.cdn=new ec(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new ac(e,t),n}(),n.logSink=new Ec(e,t),n.notification=new Ac(e,t),n.registryCredentials=new Oc(e,t),n.sshIdentities=new Fc(e,t),n.addon=function(){var n={};return n.networkSettings=new xv(e,t),n.security=new Gv(e,t),n.version=new Jv(e,t),n}(),n.externalAddon=new Zv(e,t),n.job=function(){var n={};return n.buildArguments=new ch(e,t),n.buildOptions=new hh(e,t),n.buildSource=new fh(e,t),n.deployment=new yh(e,t),n.healthChecks=new jh(e,t),n.runtimeEnvironment=new Ph(e,t),n.settings=new Oh(e,t),n}(),n.llmModelDeployment=new Vh(e,t),n.previewTemplate=new Jh(e,t),n.releaseFlow=new Xh(e,t),n.previewBlueprint=new df(e,t),n.secret=new Uf(e,t),n.secretLink=new Cf(e,t),n.service=function(){var n={};return n.buildArguments=new Jf(e,t),n.buildOptions=new $f(e,t),n.buildSource=new Hf(e,t),n.deployment=new Qf(e,t),n.healthChecks=new tI(e,t),
854
+ n.ports=new oI(e,t),n.runtimeEnvironment=new lI(e,t),n}(),n.volume=new hI(e,t),n.workflow=new EI(e,t),n.template=new pw(e,t),n}(),verify:function(){var n={};return n.subdomain=new pc(e,t),n.domain=new lc(e,t),n}(),pause:function(){var n={};return n.logSink=new Uc(e,t),n.addon=new Lv(e,t),n.job=new Uh(e,t),n.blueprintTemplatePreview=new uf(e,t),n.service=new nI(e,t),n}(),resume:function(){var n={};return n.logSink=new Cc(e,t),n.addon=new Fv(e,t),n.job=new Eh(e,t),n.blueprintTemplatePreview=new cf(e,t),n.service=new dI(e,t),n}(),backup:function(){var n={};return n.addon=new Uv(e,t),n.volume=new gI(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new _v(e,t),n.restore=new Sv(e,t),n}(),n.job=function(){var n={};return n.build=new wh(e,t),n.run=new Ah(e,t),n}(),n.releaseFlowRun=new nf(e,t),n.previewBlueprintRun=new If(e,t),n.service=function(){var n={};return n.build=new Yf(e,t),n}(),n.workflowRun=new AI(e,t),n.templateRun=new cw(e,t),n}(),
855
+ restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new Av(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new Pv(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new qv(e,t),n.blueprintTemplatePreview=new mf(e,t),n}(),restart:function(){var n={};return n.addon=new Bv(e,t),n.service=new iI(e,t),n}(),scale:function(){var n={};return n.addon=new Mv(e,t),n.job=new Dh(e,t),n.service=new uI(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new uh(e,t),n.run=new Sh(e,t),n}(),n.service=function(){var n={};return n.build=new Gf(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new xh(e,t),n}(),run:function(){var n={};return n.previewTemplate=new Hh(e,t),n.releaseFlow=new Qh(e,t),n.previewBlueprint=new vf(e,t),n.workflow=new _I(e,t),n.template=new sw(e,t),n}(),attach:function(){var n={};return n.volume=new II(e,t),n}(),detach:function(){var n={};return n.volume=new RI(e,t),n
855
856
  }(),download:function(){var e={};return e.service=function(){var e={};return e.files=a.fileCopy.downloadServiceFiles.bind(a.fileCopy),e.fileStream=a.fileCopy.downloadServiceFileStream.bind(a.fileCopy),e}(),e.job=function(){var e={};return e.files=a.fileCopy.downloadJobFiles.bind(a.fileCopy),e.fileStream=a.fileCopy.downloadJobFileStream.bind(a.fileCopy),e}(),e}(),upload:function(){var e={};return e.service=function(){var e={};return e.files=a.fileCopy.uploadServiceFiles.bind(a.fileCopy),e.fileStream=a.fileCopy.uploadServiceFileStream.bind(a.fileCopy),e}(),e.job=function(){var e={};return e.files=a.fileCopy.uploadJobFiles.bind(a.fileCopy),e.fileStream=a.fileCopy.uploadJobFileStream.bind(a.fileCopy),e}(),e}()},this.download=function(){var e={};return e.service=function(){var e={};return e.files=a.endpoints.download.service.files,e}(),e.job=function(){var e={};return e.files=a.endpoints.download.job.files,e}(),e}(),this.upload=function(){var e={};return e.service=function(){var e={}
856
857
  ;return e.files=a.endpoints.upload.service.files,e}(),e.job=function(){var e={};return e.files=a.endpoints.upload.job.files,e}(),e}(),this.get=function(){var e={};return e.addon=function(){var e=a.endpoints.get.addon.call;return e.types=a.endpoints.get.addon.types.call,e.backupSchedules=function(){var e=a.endpoints.get.addon.backupSchedules.call;return e.all=a.endpoints.get.addon.backupSchedules.all,e}(),e.backups=function(){var e=a.endpoints.get.addon.backups.call;return e.all=a.endpoints.get.addon.backups.all,e}(),e.backup=function(){var e=a.endpoints.get.addon.backup.call;return e.download=a.endpoints.get.addon.backup.download.call,e.restores=function(){var e=a.endpoints.get.addon.backup.restores.call;return e.all=a.endpoints.get.addon.backup.restores.all,e}(),e.logs=a.logs.getAddonBackupLogs,e.logTail=a.logs.tailAddonBackupLogs,e}(),e.containers=function(){var e=a.endpoints.get.addon.containers.call;return e.all=a.endpoints.get.addon.containers.all,e}(),
857
858
  e.credentials=a.endpoints.get.addon.credentials.call,e.restores=function(){var e=function(){var e=a.endpoints.get.addon.restores.call;return e.all=a.endpoints.get.addon.restores.all,e}();return e.logs=a.logs.getAddonRestoresLogs,e.logTail=a.logs.tailAddonRestoresLogs,e}(),e.version=a.endpoints.get.addon.version.call,e.logs=a.logs.getAddonLogs,e.logTail=a.logs.tailAddonLogs,e.metrics=a.metrics.getAddonMetrics,e.metricsRange=a.metrics.getAddonMetricsRange,e}(),e.backupDestination=a.endpoints.get.backupDestination.call,e.invoice=function(){var e={};return e.details=a.endpoints.get.invoice.details.call,e}(),e.cloud=function(){var e={};return e.cluster=a.endpoints.get.cloud.cluster.call,e.integration=a.endpoints.get.cloud.integration.call,e}(),e.orgDirectoryGroups=a.endpoints.get.orgDirectoryGroups.call,e.dnsId=a.endpoints.get.dnsId.call,e.domain=a.endpoints.get.domain.call,e.domainCertificate=a.endpoints.get.domainCertificate.call,e.subdomain=function(){var e=a.endpoints.get.subdomain.call
@@ -878,4 +879,4 @@ e.llmModelDeployment=a.endpoints.update.llmModelDeployment.call,e.previewTemplat
878
879
  e.domain=a.endpoints.verify.domain.call,e}(),this.pause=function(){var e={};return e.logSink=a.endpoints.pause.logSink.call,e.addon=a.endpoints.pause.addon.call,e.job=a.endpoints.pause.job.call,e.blueprintTemplatePreview=a.endpoints.pause.blueprintTemplatePreview.call,e.service=a.endpoints.pause.service.call,e}(),this.resume=function(){var e={};return e.logSink=a.endpoints.resume.logSink.call,e.addon=a.endpoints.resume.addon.call,e.job=a.endpoints.resume.job.call,e.blueprintTemplatePreview=a.endpoints.resume.blueprintTemplatePreview.call,e.service=a.endpoints.resume.service.call,e}(),this.backup=function(){var e={};return e.addon=a.endpoints.backup.addon.call,e.volume=a.endpoints.backup.volume.call,e}(),this.abort=function(){var e={};return e.addon=function(){var e={};return e.backup=a.endpoints.abort.addon.backup.call,e.restore=a.endpoints.abort.addon.restore.call,e}(),e.job=function(){var e={};return e.build=a.endpoints.abort.job.build.call,e.run=a.endpoints.abort.job.run.call,e}(),
879
880
  e.releaseFlowRun=a.endpoints.abort.releaseFlowRun.call,e.previewBlueprintRun=a.endpoints.abort.previewBlueprintRun.call,e.service=function(){var e={};return e.build=a.endpoints.abort.service.build.call,e}(),e.workflowRun=a.endpoints.abort.workflowRun.call,e.templateRun=a.endpoints.abort.templateRun.call,e}(),this.restore=function(){var e={};return e.addon=function(){var e={};return e.backup=a.endpoints.restore.addon.backup.call,e}(),e}(),this.retain=function(){var e={};return e.addon=function(){var e={};return e.backup=a.endpoints.retain.addon.backup.call,e}(),e}(),this.reset=function(){var e={};return e.addon=a.endpoints.reset.addon.call,e.blueprintTemplatePreview=a.endpoints.reset.blueprintTemplatePreview.call,e}(),this.restart=function(){var e={};return e.addon=a.endpoints.restart.addon.call,e.service=a.endpoints.restart.service.call,e}(),this.scale=function(){var e={};return e.addon=a.endpoints.scale.addon.call,e.job=a.endpoints.scale.job.call,
880
881
  e.service=a.endpoints.scale.service.call,e}(),this.start=function(){var e={};return e.job=function(){var e={};return e.build=a.endpoints.start.job.build.call,e.run=a.endpoints.start.job.run.call,e}(),e.service=function(){var e={};return e.build=a.endpoints.start.service.build.call,e}(),e}(),this.suspend=function(){var e={};return e.job=a.endpoints.suspend.job.call,e}(),this.run=function(){var e={};return e.previewTemplate=a.endpoints.run.previewTemplate.call,e.releaseFlow=a.endpoints.run.releaseFlow.call,e.previewBlueprint=a.endpoints.run.previewBlueprint.call,e.workflow=a.endpoints.run.workflow.call,e.template=a.endpoints.run.template.call,e}(),this.attach=function(){var e={};return e.volume=a.endpoints.attach.volume.call,e}(),this.detach=function(){var e={};return e.volume=a.endpoints.detach.volume.call,e}()}
881
- ;export{Cv as AbortAddonBackupEndpoint,Ev as AbortAddonRestoreEndpoint,fh as AbortJobBuildEndpoint,Sh as AbortJobRunEndpoint,hf as AbortPreviewblueprintrunEndpoint,ef as AbortReleaseflowrunEndpoint,Hf as AbortServiceBuildEndpoint,uw as AbortTemplaterunEndpoint,SI as AbortWorkflowrunEndpoint,um as AddBackupdestinationEndpoint,Jm as AddDomainSubdomainEndpoint,kc as AddRegistrycredentialsEndpoint,xc as AddSshidentitiesEndpoint,Qm as AddSubdomainPathEndpoint,LI as AddTagEndpoint,hw as ApiClient,mw as ApiClientContextProvider,cw as ApiClientFileContextProvider,vw as ApiClientInMemoryContextProvider,Hu as ApiEndpoint,oc as AssignSubdomainPathEndpoint,Zm as AssignSubdomainServiceEndpoint,hI as AttachVolumeEndpoint,Rv as BackupAddonEndpoint,II as BackupVolumeEndpoint,Lu as CopyType,Em as CordonCloudClusterNodeEndpoint,gv as CreateAddonBackupscheduleEndpoint,cv as CreateAddonEndpoint,bm as CreateCloudClusterEndpoint,Am as CreateCloudIntegrationEndpoint,Mc as CreateCustomvcsTokenEndpoint,Vm as CreateDomainEndpoint,lc as CreateEgressipEndpoint,Jv as CreateExternaladdonEndpoint,kI as CreateGlobalsecretEndpoint,vc as CreateGradualrolloutstrategyEndpoint,Xv as CreateJobCronEndpoint,Yv as CreateJobEndpoint,th as CreateJobManualEndpoint,xh as CreateLlmmodeldeploymentEndpoint,Wc as CreateLoadbalancerEndpoint,gc as CreateLogsinkEndpoint,Ec as CreateNotificationEndpoint,Xc as CreateOrgroleEndpoint,rv as CreateOrgrolememberEndpoint,nf as CreatePreviewblueprintEndpoint,dv as CreateProjectEndpoint,If as CreateSecretEndpoint,Sf as CreateServiceBuildEndpoint,kf as CreateServiceCombinedEndpoint,Df as CreateServiceDeploymentEndpoint,MI as CreateTeamEndpoint,$I as CreateTeammemberinviteEndpoint,YI as CreateTeamroleEndpoint,tw as CreateTeamrolememberEndpoint,ow as CreateTemplateEndpoint,uI as CreateVolumeEndpoint,RI as CreateWorkflowEndpoint,bv as DeleteAddonBackupscheduleEndpoint,Iv as DeleteAddonEndpoint,Xu as DeleteApiEndpoint,Uv as DeleteBackupEndpoint,vm as DeleteBackupdestinationEndpoint,pf as DeleteBlueprinttemplatepreviewEndpoint,Um as DeleteCloudClusterEndpoint,Dm as DeleteCloudIntegrationEndpoint,Mm as DeleteDomainEndpoint,cc as DeleteEgressipEndpoint,Hv as DeleteExternaladdonEndpoint,OI as DeleteGlobalsecretEndpoint,Ic as DeleteGradualrolloutstrategyEndpoint,ih as DeleteJobEndpoint,Bh as DeleteLlmmodeldeploymentEndpoint,Yc as DeleteLoadbalancerEndpoint,yc as DeleteLogsinkEndpoint,Nc as DeleteNotificationEndpoint,nv as DeleteOrgroleEndpoint,ov as DeleteOrgrolememberEndpoint,Jh as DeletePipelinetemplatepreviewEndpoint,af as DeletePreviewblueprintEndpoint,uv as DeleteProjectEndpoint,Dc as DeleteRegistrycredentialsEndpoint,yf as DeleteSecretEndpoint,Cf as DeleteSecretlinkEndpoint,qf as DeleteServiceEndpoint,Vc as DeleteSshidentitiesEndpoint,Hm as DeleteSubdomainEndpoint,nc as DeleteSubdomainPathEndpoint,FI as DeleteTagEndpoint,HI as DeleteTeammemberEndpoint,ew as DeleteTeamroleEndpoint,nw as DeleteTeamrolememberEndpoint,dw as DeleteTemplateEndpoint,gI as DeleteVolumeBackupEndpoint,vI as DeleteVolumeEndpoint,bI as DetachVolumeEndpoint,Km as DisableSubdomainCdnEndpoint,_m as DrainCloudClusterNodeEndpoint,Xm as EnableSubdomainCdnEndpoint,si as ExecCommandStandard,_v as GetAddonBackupDownloadEndpoint,jv as GetAddonBackupEndpoint,Nv as GetAddonBackupRestoresEndpoint,yv as GetAddonBackupsEndpoint,wv as GetAddonBackupschedulesEndpoint,kv as GetAddonContainersEndpoint,Pv as GetAddonCredentialsEndpoint,hv as GetAddonEndpoint,qv as GetAddonRestoresEndpoint,lm as GetAddonTypesEndpoint,Mv as GetAddonVersionEndpoint,Zu as GetApiEndpoint,Yu as GetApiEndpointPaginated,mm as GetBackupdestinationEndpoint,Rm as GetCloudClusterEndpoint,Pm as GetCloudIntegrationEndpoint,qm as GetDnsidEndpoint,Fm as GetDomainEndpoint,Gm as GetDomaincertificateEndpoint,uc as GetEgressipEndpoint,Wv as GetExternaladdonEndpoint,DI as GetGlobalsecretEndpoint,Im as GetInvoiceDetailsEndpoint,dh as GetJobBranchesEndpoint,hh as GetJobBuildEndpoint,mh as GetJobBuildargumentdetailsEndpoint,sh as GetJobBuildargumentsEndpoint,ph as GetJobBuildsEndpoint,Ih as GetJobContainersEndpoint,wh as GetJobDeploymentEndpoint,oh as GetJobEndpoint,bh as GetJobHealthchecksEndpoint,jh as GetJobPullrequestsEndpoint,_h as GetJobRunEndpoint,Ch as GetJobRunsEndpoint,Nh as GetJobRuntimeenvironmentEndpoint,kh as GetJobRuntimeenvironmentdetailsEndpoint,Lh as GetLlmmodeldeploymentEndpoint,Hc as GetLoadbalancerEndpoint,bc as GetLogsinkEndpoint,_c as GetNotificationEndpoint,Lm as GetOrgdirectorygroupsEndpoint,ev as GetOrgroleEndpoint,Fh as GetPipelineEndpoint,rf as GetPreviewblueprintEndpoint,vf as GetPreviewblueprintrunEndpoint,Mh as GetPreviewtemplateEndpoint,Hh as GetPreviewtemplaterunEndpoint,sv as GetProjectEndpoint,Pc as GetRegistrycredentialsEndpoint,Zh as GetReleaseflowEndpoint,Qh as GetReleaseflowrunEndpoint,bf as GetSecretEndpoint,Ef as GetSecretdetailsEndpoint,Uf as GetSecretlinkEndpoint,Bf as GetServiceBranchesEndpoint,$f as GetServiceBuildEndpoint,zf as GetServiceBuildargumentdetailsEndpoint,Mf as GetServiceBuildargumentsEndpoint,Vf as GetServiceBuildsEndpoint,Zf as GetServiceContainersEndpoint,Yf as GetServiceDeploymentEndpoint,Lf as GetServiceEndpoint,Xf as GetServiceHealthchecksEndpoint,tI as GetServicePortsEndpoint,rI as GetServicePullrequestsEndpoint,iI as GetServiceRuntimeenvironmentEndpoint,pI as GetServiceRuntimeenvironmentdetailsEndpoint,Lc as GetSshidentitiesEndpoint,$m as GetSubdomainEndpoint,tc as GetSubdomainPathEndpoint,BI as GetTagEndpoint,zI as GetTeamEndpoint,XI as GetTeamroleEndpoint,aw as GetTemplateEndpoint,sw as GetTemplaterunEndpoint,wI as GetVolumeBackupEndpoint,fI as GetVolumeBackupsEndpoint,mI as GetVolumeEndpoint,jI as GetWorkflowEndpoint,_I as GetWorkflowrunEndpoint,Tv as ImportAddonBackupEndpoint,zm as ImportDomaincertificateEndpoint,mv as ListAddonsEndpoint,sm as ListBackupdestinationsEndpoint,hm as ListBackupdestinationsbackupsEndpoint,df as ListBlueprinttemplatepreviewsEndpoint,zc as ListBranchesEndpoint,Cm as ListCloudClusterNodesEndpoint,gm as ListCloudClustersEndpoint,Nm as ListCloudIntegrationsEndpoint,Om as ListCloudNodetypesEndpoint,wm as ListCloudProvidersEndpoint,xm as ListCloudRegionsEndpoint,Bm as ListDomainsEndpoint,pc as ListEgressipsEndpoint,zv as ListExternaladdonsEndpoint,AI as ListGlobalsecretsEndpoint,fm as ListInvoicesEndpoint,Zv as ListJobsEndpoint,Oh as ListLlmmodeldeploymentsEndpoint,Jc as ListLoadbalancersEndpoint,wc as ListLogsinksEndpoint,Cc as ListNotificationsEndpoint,Kc as ListOrgrolesEndpoint,Vh as ListPipelinesEndpoint,zh as ListPipelinetemplatepreviewsEndpoint,av as ListPlansEndpoint,cf as ListPreviewblueprintrunsEndpoint,tf as ListPreviewblueprintsEndpoint,$h as ListPreviewtemplaterunsEndpoint,iv as ListProjectsEndpoint,NI as ListRegionsEndpoint,Ac as ListRegistrycredentialsEndpoint,Xh as ListReleaseflowrunsEndpoint,Gc as ListReposEndpoint,ff as ListSecretsEndpoint,_f as ListServicesEndpoint,Oc as ListSshidentitiesEndpoint,ec as ListSubdomainPathEndpoint,xI as ListTagsEndpoint,WI as ListTeammembersEndpoint,ZI as ListTeamrolesEndpoint,GI as ListTeamsEndpoint,lw as ListTemplaterunsEndpoint,rw as ListTemplatesEndpoint,Fc as ListVcsEndpoint,sI as ListVolumesEndpoint,EI as ListWorkflowrunsEndpoint,yI as ListWorkflowsEndpoint,Vu as LogType,zu as MetricType,Gu as NorthflankApiCallError,ui as NorthflankExecCommand,Mu as NorthflankFileCopy,am as NorthflankLogFetch,pm as NorthflankMetricFetch,li as NorthflankPortForwarder,fv as PatchAddonEndpoint,em as PatchApiEndpoint,cm as PatchBackupdestinationEndpoint,jm as PatchCloudClusterEndpoint,Tm as PatchCloudIntegrationEndpoint,mc as PatchEgressipEndpoint,TI as PatchGlobalsecretEndpoint,fc as PatchGradualrolloutstrategyEndpoint,eh as PatchJobCronEndpoint,ah as PatchJobEndpoint,rh as PatchJobManualEndpoint,Zc as PatchLoadbalancerEndpoint,tv as PatchOrgroleEndpoint,lv as PatchProjectEndpoint,gf as PatchSecretEndpoint,Af as PatchServiceBuildEndpoint,Tf as PatchServiceCombinedEndpoint,xf as PatchServiceDeploymentEndpoint,VI as PatchTagEndpoint,JI as PatchTeamEndpoint,QI as PatchTeamroleEndpoint,Ov as PauseAddonEndpoint,lf as PauseBlueprinttemplatepreviewEndpoint,Rh as PauseJobEndpoint,Rc as PauseLogsinkEndpoint,eI as PauseServiceEndpoint,Ku as PostApiEndpoint,vv as PutAddonEndpoint,Qu as PutApiEndpoint,ym as PutCloudClusterEndpoint,km as PutCloudIntegrationEndpoint,Wm as PutDomainSubdomainEndpoint,sc as PutEgressipEndpoint,PI as PutGlobalsecretEndpoint,hc as PutGradualrolloutstrategyEndpoint,Qv as PutJobCronEndpoint,Kv as PutJobEndpoint,nh as PutJobManualEndpoint,$c as PutLoadbalancerEndpoint,Qc as PutOrgroleEndpoint,pv as PutProjectEndpoint,wf as PutSecretEndpoint,Nf as PutServiceBuildEndpoint,Pf as PutServiceCombinedEndpoint,Of as PutServiceDeploymentEndpoint,qc as PutSshidentitiesEndpoint,qI as PutTagEndpoint,KI as PutTeamroleEndpoint,xv as ResetAddonEndpoint,sf as ResetBlueprinttemplatepreviewEndpoint,Lv as RestartAddonEndpoint,oI as RestartServiceEndpoint,Sv as RestoreAddonBackupEndpoint,Bv as ResumeAddonEndpoint,uf as ResumeBlueprinttemplatepreviewEndpoint,Uh as ResumeJobEndpoint,jc as ResumeLogsinkEndpoint,aI as ResumeServiceEndpoint,Av as RetainAddonBackupEndpoint,mf as RunPreviewblueprintEndpoint,Wh as RunPreviewtemplateEndpoint,Kh as RunReleaseflowEndpoint,pw as RunTemplateEndpoint,CI as RunWorkflowEndpoint,Vv as ScaleAddonEndpoint,Ph as ScaleJobEndpoint,lI as ScaleServiceEndpoint,lh as StartJobBuildEndpoint,Eh as StartJobRunEndpoint,Ff as StartServiceBuildEndpoint,Dh as SuspendJobEndpoint,Ym as UnassignSubdomainEndpoint,ac as UnassignSubdomainPathEndpoint,Sm as UncordonCloudClusterNodeEndpoint,Dv as UpdateAddonNetworksettingsEndpoint,Fv as UpdateAddonSecurityEndpoint,Gv as UpdateAddonVersionEndpoint,$v as UpdateExternaladdonEndpoint,uh as UpdateJobBuildargumentsEndpoint,ch as UpdateJobBuildoptionsEndpoint,vh as UpdateJobBuildsourceEndpoint,gh as UpdateJobDeploymentEndpoint,yh as UpdateJobHealthchecksEndpoint,Ah as UpdateJobRuntimeenvironmentEndpoint,Th as UpdateJobSettingsEndpoint,qh as UpdateLlmmodeldeploymentEndpoint,Uc as UpdateLogsinkEndpoint,Sc as UpdateNotificationEndpoint,of as UpdatePreviewblueprintEndpoint,Gh as UpdatePreviewtemplateEndpoint,Tc as UpdateRegistrycredentialsEndpoint,Yh as UpdateReleaseflowEndpoint,Rf as UpdateSecretEndpoint,jf as UpdateSecretlinkEndpoint,Gf as UpdateServiceBuildargumentsEndpoint,Jf as UpdateServiceBuildoptionsEndpoint,Wf as UpdateServiceBuildsourceEndpoint,Kf as UpdateServiceDeploymentEndpoint,Qf as UpdateServiceHealthchecksEndpoint,nI as UpdateServicePortsEndpoint,dI as UpdateServiceRuntimeenvironmentEndpoint,Bc as UpdateSshidentitiesEndpoint,rc as UpdateSubdomainPathEndpoint,iw as UpdateTemplateEndpoint,cI as UpdateVolumeEndpoint,UI as UpdateWorkflowEndpoint,dc as VerifyDomainEndpoint,ic as VerifySubdomainEndpoint};
882
+ ;export{_v as AbortAddonBackupEndpoint,Sv as AbortAddonRestoreEndpoint,wh as AbortJobBuildEndpoint,Ah as AbortJobRunEndpoint,If as AbortPreviewblueprintrunEndpoint,nf as AbortReleaseflowrunEndpoint,Yf as AbortServiceBuildEndpoint,cw as AbortTemplaterunEndpoint,AI as AbortWorkflowrunEndpoint,cm as AddBackupdestinationEndpoint,$m as AddDomainSubdomainEndpoint,Tc as AddRegistrycredentialsEndpoint,qc as AddSshidentitiesEndpoint,tc as AddSubdomainPathEndpoint,BI as AddTagEndpoint,Iw as ApiClient,vw as ApiClientContextProvider,hw as ApiClientFileContextProvider,fw as ApiClientInMemoryContextProvider,Yu as ApiEndpoint,ic as AssignSubdomainPathEndpoint,Km as AssignSubdomainServiceEndpoint,II as AttachVolumeEndpoint,Uv as BackupAddonEndpoint,gI as BackupVolumeEndpoint,Bu as CopyType,Sm as CordonCloudClusterNodeEndpoint,yv as CreateAddonBackupscheduleEndpoint,hv as CreateAddonEndpoint,Rm as CreateCloudClusterEndpoint,Pm as CreateCloudIntegrationEndpoint,zc as CreateCustomvcsTokenEndpoint,Mm as CreateDomainEndpoint,uc as CreateEgressipEndpoint,$v as CreateExternaladdonEndpoint,TI as CreateGlobalsecretEndpoint,fc as CreateGradualrolloutstrategyEndpoint,eh as CreateJobCronEndpoint,Xv as CreateJobEndpoint,rh as CreateJobManualEndpoint,qh as CreateLlmmodeldeploymentEndpoint,Hc as CreateLoadbalancerEndpoint,yc as CreateLogsinkEndpoint,Sc as CreateNotificationEndpoint,ev as CreateOrgroleEndpoint,av as CreateOrgrolememberEndpoint,of as CreatePreviewblueprintEndpoint,lv as CreateProjectEndpoint,gf as CreateSecretEndpoint,Af as CreateServiceBuildEndpoint,Tf as CreateServiceCombinedEndpoint,xf as CreateServiceDeploymentEndpoint,zI as CreateTeamEndpoint,ZI as CreateTeammemberinviteEndpoint,XI as CreateTeamroleEndpoint,rw as CreateTeamrolememberEndpoint,iw as CreateTemplateEndpoint,cI as CreateVolumeEndpoint,UI as CreateWorkflowEndpoint,Rv as DeleteAddonBackupscheduleEndpoint,gv as DeleteAddonEndpoint,em as DeleteApiEndpoint,Ev as DeleteBackupEndpoint,fm as DeleteBackupdestinationEndpoint,sf as DeleteBlueprinttemplatepreviewEndpoint,Em as DeleteCloudClusterEndpoint,xm as DeleteCloudIntegrationEndpoint,zm as DeleteDomainEndpoint,hc as DeleteEgressipEndpoint,Yv as DeleteExternaladdonEndpoint,LI as DeleteGlobalsecretEndpoint,gc as DeleteGradualrolloutstrategyEndpoint,ph as DeleteJobEndpoint,Fh as DeleteLlmmodeldeploymentEndpoint,Xc as DeleteLoadbalancerEndpoint,jc as DeleteLogsinkEndpoint,kc as DeleteNotificationEndpoint,ov as DeleteOrgroleEndpoint,iv as DeleteOrgrolememberEndpoint,$h as DeletePipelinetemplatepreviewEndpoint,pf as DeletePreviewblueprintEndpoint,cv as DeleteProjectEndpoint,xc as DeleteRegistrycredentialsEndpoint,jf as DeleteSecretEndpoint,_f as DeleteSecretlinkEndpoint,Vf as DeleteServiceEndpoint,Mc as DeleteSshidentitiesEndpoint,Ym as DeleteSubdomainEndpoint,oc as DeleteSubdomainPathEndpoint,GI as DeleteTagEndpoint,YI as DeleteTeammemberEndpoint,nw as DeleteTeamroleEndpoint,ow as DeleteTeamrolememberEndpoint,lw as DeleteTemplateEndpoint,yI as DeleteVolumeBackupEndpoint,fI as DeleteVolumeEndpoint,RI as DetachVolumeEndpoint,Qm as DisableSubdomainCdnEndpoint,Nm as DrainCloudClusterNodeEndpoint,ec as EnableSubdomainCdnEndpoint,mi as ExecCommandStandard,Nv as GetAddonBackupDownloadEndpoint,Cv as GetAddonBackupEndpoint,kv as GetAddonBackupRestoresEndpoint,jv as GetAddonBackupsEndpoint,bv as GetAddonBackupschedulesEndpoint,Tv as GetAddonContainersEndpoint,Dv as GetAddonCredentialsEndpoint,Iv as GetAddonEndpoint,Vv as GetAddonRestoresEndpoint,um as GetAddonTypesEndpoint,zv as GetAddonVersionEndpoint,Ku as GetApiEndpoint,Xu as GetApiEndpointPaginated,vm as GetBackupdestinationEndpoint,Um as GetCloudClusterEndpoint,Dm as GetCloudIntegrationEndpoint,Vm as GetDnsidEndpoint,Gm as GetDomainEndpoint,Jm as GetDomaincertificateEndpoint,cc as GetEgressipEndpoint,Hv as GetExternaladdonEndpoint,xI as GetGlobalsecretEndpoint,gm as GetInvoiceDetailsEndpoint,lh as GetJobBranchesEndpoint,Ih as GetJobBuildEndpoint,vh as GetJobBuildargumentdetailsEndpoint,mh as GetJobBuildargumentsEndpoint,sh as GetJobBuildsEndpoint,gh as GetJobContainersEndpoint,bh as GetJobDeploymentEndpoint,ih as GetJobEndpoint,Rh as GetJobHealthchecksEndpoint,Ch as GetJobPullrequestsEndpoint,Nh as GetJobRunEndpoint,_h as GetJobRunsEndpoint,kh as GetJobRuntimeenvironmentEndpoint,Th as GetJobRuntimeenvironmentdetailsEndpoint,Bh as GetLlmmodeldeploymentEndpoint,Yc as GetLoadbalancerEndpoint,Rc as GetLogsinkEndpoint,Nc as GetNotificationEndpoint,Bm as GetOrgdirectorygroupsEndpoint,nv as GetOrgroleEndpoint,Gh as GetPipelineEndpoint,af as GetPreviewblueprintEndpoint,ff as GetPreviewblueprintrunEndpoint,zh as GetPreviewtemplateEndpoint,Yh as GetPreviewtemplaterunEndpoint,mv as GetProjectEndpoint,Dc as GetRegistrycredentialsEndpoint,Kh as GetReleaseflowEndpoint,tf as GetReleaseflowrunEndpoint,Rf as GetSecretEndpoint,Sf as GetSecretdetailsEndpoint,Ef as GetSecretlinkEndpoint,Ff as GetServiceBranchesEndpoint,Zf as GetServiceBuildEndpoint,Wf as GetServiceBuildargumentdetailsEndpoint,zf as GetServiceBuildargumentsEndpoint,Mf as GetServiceBuildsEndpoint,Kf as GetServiceContainersEndpoint,Xf as GetServiceDeploymentEndpoint,Bf as GetServiceEndpoint,eI as GetServiceHealthchecksEndpoint,rI as GetServicePortsEndpoint,aI as GetServicePullrequestsEndpoint,pI as GetServiceRuntimeenvironmentEndpoint,sI as GetServiceRuntimeenvironmentdetailsEndpoint,Bc as GetSshidentitiesEndpoint,Zm as GetSubdomainEndpoint,rc as GetSubdomainPathEndpoint,FI as GetTagEndpoint,WI as GetTeamEndpoint,ew as GetTeamroleEndpoint,dw as GetTemplateEndpoint,mw as GetTemplaterunEndpoint,bI as GetVolumeBackupEndpoint,wI as GetVolumeBackupsEndpoint,vI as GetVolumeEndpoint,CI as GetWorkflowEndpoint,NI as GetWorkflowrunEndpoint,Ov as ImportAddonBackupEndpoint,Wm as ImportDomaincertificateEndpoint,vv as ListAddonsEndpoint,mm as ListBackupdestinationsEndpoint,Im as ListBackupdestinationsbackupsEndpoint,lf as ListBlueprinttemplatepreviewsEndpoint,Wc as ListBranchesEndpoint,_m as ListCloudClusterNodesEndpoint,ym as ListCloudClustersEndpoint,km as ListCloudIntegrationsEndpoint,Lm as ListCloudNodetypesEndpoint,bm as ListCloudProvidersEndpoint,qm as ListCloudRegionsEndpoint,Fm as ListDomainsEndpoint,sc as ListEgressipsEndpoint,Wv as ListExternaladdonsEndpoint,PI as ListGlobalsecretsEndpoint,wm as ListInvoicesEndpoint,Kv as ListJobsEndpoint,Lh as ListLlmmodeldeploymentsEndpoint,$c as ListLoadbalancersEndpoint,bc as ListLogsinksEndpoint,_c as ListNotificationsEndpoint,Qc as ListOrgrolesEndpoint,Mh as ListPipelinesEndpoint,Wh as ListPipelinetemplatepreviewsEndpoint,dv as ListPlansEndpoint,hf as ListPreviewblueprintrunsEndpoint,rf as ListPreviewblueprintsEndpoint,Zh as ListPreviewtemplaterunsEndpoint,pv as ListProjectsEndpoint,kI as ListRegionsEndpoint,Pc as ListRegistrycredentialsEndpoint,ef as ListReleaseflowrunsEndpoint,Jc as ListReposEndpoint,wf as ListSecretsEndpoint,Nf as ListServicesEndpoint,Lc as ListSshidentitiesEndpoint,nc as ListSubdomainPathEndpoint,qI as ListTagsEndpoint,HI as ListTeammembersEndpoint,KI as ListTeamrolesEndpoint,JI as ListTeamsEndpoint,uw as ListTemplaterunsEndpoint,aw as ListTemplatesEndpoint,Gc as ListVcsEndpoint,mI as ListVolumesEndpoint,SI as ListWorkflowrunsEndpoint,jI as ListWorkflowsEndpoint,Mu as LogType,Wu as MetricType,Ju as NorthflankApiCallError,ci as NorthflankExecCommand,zu as NorthflankFileCopy,dm as NorthflankLogFetch,sm as NorthflankMetricFetch,ui as NorthflankPortForwarder,wv as PatchAddonEndpoint,nm as PatchApiEndpoint,hm as PatchBackupdestinationEndpoint,Cm as PatchCloudClusterEndpoint,Om as PatchCloudIntegrationEndpoint,vc as PatchEgressipEndpoint,OI as PatchGlobalsecretEndpoint,wc as PatchGradualrolloutstrategyEndpoint,nh as PatchJobCronEndpoint,dh as PatchJobEndpoint,ah as PatchJobManualEndpoint,Kc as PatchLoadbalancerEndpoint,rv as PatchOrgroleEndpoint,uv as PatchProjectEndpoint,yf as PatchSecretEndpoint,Pf as PatchServiceBuildEndpoint,Of as PatchServiceCombinedEndpoint,qf as PatchServiceDeploymentEndpoint,MI as PatchTagEndpoint,$I as PatchTeamEndpoint,tw as PatchTeamroleEndpoint,Lv as PauseAddonEndpoint,uf as PauseBlueprinttemplatepreviewEndpoint,Uh as PauseJobEndpoint,Uc as PauseLogsinkEndpoint,nI as PauseServiceEndpoint,Qu as PostApiEndpoint,fv as PutAddonEndpoint,tm as PutApiEndpoint,jm as PutCloudClusterEndpoint,Tm as PutCloudIntegrationEndpoint,Hm as PutDomainSubdomainEndpoint,mc as PutEgressipEndpoint,DI as PutGlobalsecretEndpoint,Ic as PutGradualrolloutstrategyEndpoint,th as PutJobCronEndpoint,Qv as PutJobEndpoint,oh as PutJobManualEndpoint,Zc as PutLoadbalancerEndpoint,tv as PutOrgroleEndpoint,sv as PutProjectEndpoint,bf as PutSecretEndpoint,kf as PutServiceBuildEndpoint,Df as PutServiceCombinedEndpoint,Lf as PutServiceDeploymentEndpoint,Vc as PutSshidentitiesEndpoint,VI as PutTagEndpoint,QI as PutTeamroleEndpoint,qv as ResetAddonEndpoint,mf as ResetBlueprinttemplatepreviewEndpoint,Bv as RestartAddonEndpoint,iI as RestartServiceEndpoint,Av as RestoreAddonBackupEndpoint,Fv as ResumeAddonEndpoint,cf as ResumeBlueprinttemplatepreviewEndpoint,Eh as ResumeJobEndpoint,Cc as ResumeLogsinkEndpoint,dI as ResumeServiceEndpoint,Pv as RetainAddonBackupEndpoint,vf as RunPreviewblueprintEndpoint,Hh as RunPreviewtemplateEndpoint,Qh as RunReleaseflowEndpoint,sw as RunTemplateEndpoint,_I as RunWorkflowEndpoint,Mv as ScaleAddonEndpoint,Dh as ScaleJobEndpoint,uI as ScaleServiceEndpoint,uh as StartJobBuildEndpoint,Sh as StartJobRunEndpoint,Gf as StartServiceBuildEndpoint,xh as SuspendJobEndpoint,Xm as UnassignSubdomainEndpoint,dc as UnassignSubdomainPathEndpoint,Am as UncordonCloudClusterNodeEndpoint,xv as UpdateAddonNetworksettingsEndpoint,Gv as UpdateAddonSecurityEndpoint,Jv as UpdateAddonVersionEndpoint,Zv as UpdateExternaladdonEndpoint,ch as UpdateJobBuildargumentsEndpoint,hh as UpdateJobBuildoptionsEndpoint,fh as UpdateJobBuildsourceEndpoint,yh as UpdateJobDeploymentEndpoint,jh as UpdateJobHealthchecksEndpoint,Ph as UpdateJobRuntimeenvironmentEndpoint,Oh as UpdateJobSettingsEndpoint,Vh as UpdateLlmmodeldeploymentEndpoint,Ec as UpdateLogsinkEndpoint,Ac as UpdateNotificationEndpoint,df as UpdatePreviewblueprintEndpoint,Jh as UpdatePreviewtemplateEndpoint,Oc as UpdateRegistrycredentialsEndpoint,Xh as UpdateReleaseflowEndpoint,Uf as UpdateSecretEndpoint,Cf as UpdateSecretlinkEndpoint,Jf as UpdateServiceBuildargumentsEndpoint,$f as UpdateServiceBuildoptionsEndpoint,Hf as UpdateServiceBuildsourceEndpoint,Qf as UpdateServiceDeploymentEndpoint,tI as UpdateServiceHealthchecksEndpoint,oI as UpdateServicePortsEndpoint,lI as UpdateServiceRuntimeenvironmentEndpoint,Fc as UpdateSshidentitiesEndpoint,ac as UpdateSubdomainPathEndpoint,pw as UpdateTemplateEndpoint,hI as UpdateVolumeEndpoint,EI as UpdateWorkflowEndpoint,lc as VerifyDomainEndpoint,pc as VerifySubdomainEndpoint};