@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
- "use strict";var e=require("events"),t=require("child_process"),n=require("node:stream"),r=require("stream"),o=require("http"),a=require("url"),i=require("punycode"),d=require("https"),p=require("zlib"),l=require("os"),s=require("net"),u=require("fs"),m=require("path"),c=require("tls"),v=require("crypto"),h=require("buffer"),f=require("dgram"),I=require("node:events"),w=require("node:string_decoder"),b=require("node:path"),g=require("node:fs"),y=require("assert"),R=require("node:assert"),j=require("node:crypto"),E=require("node:fs/promises"),U="undefined"!=typeof document?document.currentScript:null;function C(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var _=C(n),S=C(p),N=C(s),A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t
1
+ "use strict";var e=require("events"),t=require("child_process"),n=require("node:stream"),r=require("stream"),o=require("http"),a=require("url"),i=require("punycode"),d=require("https"),p=require("zlib"),l=require("net"),s=require("tls"),u=require("crypto"),m=require("fs"),c=require("path"),v=require("os"),h=require("buffer"),f=require("dgram"),I=require("node:events"),w=require("node:string_decoder"),b=require("node:path"),g=require("node:fs"),y=require("assert"),R=require("node:assert"),j=require("node:crypto"),E=require("node:fs/promises"),U="undefined"!=typeof document?document.currentScript:null;function C(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var _=C(n),S=C(p),N=C(l),A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t
2
2
  }||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},A(e,t)};function x(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}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var P=function(){return P=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},P.apply(this,arguments)};function k(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 T(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 D(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 O="object"==typeof global&&global&&global.Object===Object&&global,L="object"==typeof self&&self&&self.Object===Object&&self,q=O||L||Function("return this")(),B=q.Symbol,V=Object.prototype,F=V.hasOwnProperty,G=V.toString,M=B?B.toStringTag:void 0;var z=Object.prototype.toString;var J=B?B.toStringTag:void 0;function W(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=F.call(e,M),n=e[M];try{e[M]=void 0;var r=!0}catch(e){}var o=G.call(e);return r&&(t?e[M]=n:delete e[M]),o}(e):function(e){return z.call(e)}(e)}function $(e){return null!=e&&"object"==typeof e}function H(e){return"symbol"==typeof e||$(e)&&"[object Symbol]"==W(e)}
@@ -69,790 +69,790 @@ configurable:!0}),Object.defineProperties(ro.prototype,{method:{enumerable:!0},u
69
69
  ;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(o="0"),null!=e.body){const t=Tr(e);"number"==typeof t&&(o=String(t))}o&&n.set("Content-Length",o),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 a=e.agent;return"function"==typeof a&&(a=a(t)),n.has("Connection")||a||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:Wr(n),agent:a})}(i),s=("https:"===l.protocol?d:o).request,u=i.signal;let m=null;const c=function(){let e=new oo("The user aborted a request.");a(e),i.body&&i.body instanceof r.Readable&&i.body.destroy(e),m&&m.body&&m.body.emit("error",e)};if(u&&u.aborted)return void c();const v=function(){c(),I()},h=s(l);let f;function I(){h.abort(),u&&u.removeEventListener("abort",v),clearTimeout(f)}u&&u.addEventListener("abort",v),i.timeout&&h.once("socket",function(e){f=setTimeout(function(){
70
70
  a(new Ur(`network timeout at: ${i.url}`,"request-timeout")),I()},i.timeout)}),h.on("error",function(e){a(new Ur(`request to ${i.url} failed, reason: ${e.message}`,"system",e)),I()}),h.on("response",function(e){clearTimeout(f);const t=function(e){const t=new Fr;for(const n of Object.keys(e))if(!Dr.test(n))if(Array.isArray(e[n]))for(const r of e[n])Or.test(r)||(void 0===t[Vr][n]?t[Vr][n]=[r]:t[Vr][n].push(r));else Or.test(e[n])||(t[Vr][n]=[e[n]]);return t}(e.headers);if(po.isRedirect(e.statusCode)){const r=t.get("Location");let o=null;try{o=null===r?null:new ao(r,i.url).toString()}catch(e){if("manual"!==i.redirect)return a(new Ur(`uri requested responds with an invalid redirect URL: ${r}`,"invalid-redirect")),void I()}switch(i.redirect){case"error":return a(new Ur(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),void I();case"manual":if(null!==o)try{t.set("Location",o)}catch(e){a(e)}break;case"follow":if(null===o)break
71
71
  ;if(i.counter>=i.follow)return a(new Ur(`maximum redirect reached at: ${i.url}`,"max-redirect")),void I();const r={headers:new Fr(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!function(e,t){const n=new ao(t).hostname,r=new ao(e).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(i.url,o))for(const e of["authorization","www-authenticate","cookie","cookie2"])r.headers.delete(e);return 303!==e.statusCode&&i.body&&null===Tr(i)?(a(new Ur("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void I()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==i.method)||(r.method="GET",r.body=void 0,r.headers.delete("content-length")),n(po(new ro(o,r))),void I())}}e.once("end",function(){u&&u.removeEventListener("abort",v)});let r=e.pipe(new io);const o={url:i.url,status:e.statusCode,statusText:e.statusMessage,headers:t,
72
- size:i.size,timeout:i.timeout,counter:i.counter},d=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===d||204===e.statusCode||304===e.statusCode)return m=new Zr(r,o),void n(m);const l={flush:p.Z_SYNC_FLUSH,finishFlush:p.Z_SYNC_FLUSH};if("gzip"==d||"x-gzip"==d)return r=r.pipe(p.createGunzip(l)),m=new Zr(r,o),void n(m);if("deflate"==d||"x-deflate"==d){return void e.pipe(new io).once("data",function(e){r=8==(15&e[0])?r.pipe(p.createInflate()):r.pipe(p.createInflateRaw()),m=new Zr(r,o),n(m)})}if("br"==d&&"function"==typeof p.createBrotliDecompress)return r=r.pipe(p.createBrotliDecompress()),m=new Zr(r,o),void n(m);m=new Zr(r,o),n(m)}),function(e,t){const n=t.body;null===n?e.end():xr(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(h,i)})}po.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},po.Promise=global.Promise
73
- ;var lo="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,so=lo?po:window.fetch,uo=function(e,t){return void 0===t&&(t=50),function(n){var r=e,o=function(){return k(void 0,void 0,void 0,function(){var e;return T(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 mo,co,vo,ho,fo,Io,wo,bo=function(e){return Array.isArray(e)?e:[e]},go=function(e,t){return k(void 0,void 0,void 0,function(){var n;return T(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)]})})},yo=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 x(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}(n.Writable),Ro=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 k(this,void 0,void 0,function(){var r
75
- ;return T(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 k(this,void 0,void 0,function(){var r;return T(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 k(this,void 0,void 0,function(){var n,r,o,a,i,d=this;return T(this,function(p){switch(p.label){case 0:return n="Error while trying to connect, please try again.",r=Yn({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},P(P({},t),{agent:this.agent})),[4,uo(2)(function(){return k(d,void 0,void 0,function(){return T(this,function(t){return[2,so(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}(),jo=function(e,t,n){return k(void 0,void 0,void 0,function(){var r,o,a,i,d;return T(this,function(p){switch(p.label){case 0:if(r=Co(t||"127.0.0.1"),(o=Co(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===l.platform()&&(a=function(e){return k(void 0,void 0,void 0,function(){var t;return T(this,function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,Uo.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,p.label=1;case 1:return i<=o?(d=_o(i),[4,Eo(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."))}})})},Eo=function(e,t){return new Promise(function(n){var r=new s.Socket,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)})},Uo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k(void 0,void 0,void 0,function(){return T(this,function(t){switch(t.label){case 0:return[4,So("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}})})},Co=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},_o=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(".")},So=function(e,n,r){var o=t.spawn(e,n,P({windowsHide:!0},r)),a=new Promise(function(t,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(n.join(" "),"': ").concat(i);r({message:p,result:d})}else t(d)})});return{process:o,resultPromise:a}},No=function(e,t,n){return k(void 0,void 0,void 0,function(){var r,o;return T(this,function(a){switch(a.label){case 0:return r=Ao(e,10),[4,u.promises.writeFile(r,t,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,6]),[4,u.promises.rename(r,e)];case 3:return a.sent(),[3,6];case 4:return o=a.sent(),
79
- [4,u.promises.unlink(r).catch(function(){})];case 5:throw a.sent(),o;case 6:return[2]}})})},Ao=function(e,t){for(var n=function(e){return D([],Array(e),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},r=m.dirname(e),o=m.basename(e),a=0;a<t;a+=1){var i=n(16),d=".".concat(i,".").concat(o),p=m.join(r,d);if(!u.existsSync(p))return p}throw new Error("Could not write file to file '".concat(e,"'."))},xo="win32"===process.platform?"\r\n":"\n",Po=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;Bo(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 zn(this.findEntries(e),function(e){return e.hosts.map(function(e){return e.host})})},e.prototype.resolveIps=function(e){return Bo(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 Oo(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||$(t)&&"[object Number]"==W(t)?e:this.nodes.findIndex(function(t){return t===e})
81
- ;n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return Bo(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=Do(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?[ko(),To(o),r]:[To(o),r];this.insertAt.apply(this,D([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,D([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return P({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=Bo(t,"eol").map(function(e){return e.line});return null!==(e=Vo(n))&&void 0!==e?e:xo}(),indent:null!==(o=null==n?void 0:n.indent)&&void 0!==o?o:function(){var e,n=zn(Bo(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=Vo(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Lo(e),t)},e}(),ko=function(){return{type:"blank",line:""}},To=function(e){return{type:"comment",line:Do(e)}},Do=function(e){return e.startsWith("#")?e:"# ".concat(e)},Oo=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:xo)},Lo=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}:qo(e)})},qo=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=zn(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}},Bo=function(e,t){return e.filter(function(e){return e.type===t})},Vo=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=Hn(Array.from(t.entries()),function(e){return e[1]});if(n)return n[0]},Fo="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",Go=function(){function e(e){
84
- this.ast=Po.fromNodes([]);var t={writeMode:"atomic",hostsFile:Fo};this.config=P(P({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!$n(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!$n(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(!$n(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!$n(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(!$n(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(!$n(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 k(this,void 0,void 0,function(){var e;return T(this,function(t){switch(t.label){case 0:return[4,u.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=Po.parse(e.toString(),this.config),[2,this]}})})},e.prototype.write=function(e){return k(this,void 0,void 0,function(){var t,n,r,o;return T(this,function(a){switch(a.label){case 0:switch(t=P(P({},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,No(n,o)];case 2:case 4:return a.sent(),[3,6];case 3:return[4,u.promises.writeFile(n,o)];case 5:return[3,6];case 6:return[2,this]}})})},
86
- e.prototype.backup=function(e){return k(this,void 0,void 0,function(){var t,n,r,o;return T(this,function(a){switch(a.label){case 0:return u.existsSync(this.config.hostsFile)?(t=m.dirname(this.config.hostsFile),n=m.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),o=m.resolve(t,r),u.existsSync(o)&&!e.rewrite?[3,2]:[4,u.promises.copyFile(this.config.hostsFile,o)]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.load=function(t){return k(this,void 0,void 0,function(){return T(this,function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}})})},e}(),Mo=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 k(this,void 0,void 0,function(){var t,n=this;return T(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}(),zo={exports:{}};function Jo(){if(vo)return zo.exports;vo=1;var e=(co||(co=1,mo=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}}),mo);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 zo.exports=e(t),zo.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})}),zo.exports}function Wo(){if(fo)return ho;fo=1;var e=Jo(),t=function(){},n=Kn.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"))},b=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?b():o.on("request",b)),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",b),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 ho=r}var $o,Ho,Zo=function(){if(wo)return Io;wo=1;var e,t=Jo(),n=Wo();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 Io=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)},Io}(),Yo=Xn(Zo),Ko={exports:{}};function Xo(){if(Ho)return $o;Ho=1;const e=["nodebuffer","arraybuffer","fragments"],t="undefined"!=typeof Blob;return t&&e.push("blob"),$o={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 Qo={exports:{}};function ea(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 ta,na,ra,oa,aa,ia,da,pa,la,sa,ua,ma={exports:{}};function ca(){if(ra)return ma.exports;ra=1;const e="function"==typeof __webpack_require__?__non_webpack_require__:ea;return"function"==typeof e.addon?ma.exports=e.addon.bind(e):ma.exports=function(){if(na)return ta;na=1
92
- ;var e=u,t=m,n=l,r="function"==typeof __webpack_require__?__non_webpack_require__:ea,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(),s=process.env.npm_config_platform||n.platform(),c=process.env.LIBC||(function(t){return"linux"===t&&e.existsSync("/etc/alpine-release")}(s)?"musl":"glibc"),v=process.env.ARM_VERSION||("arm64"===p?"8":o.arm_version)||"",h=(process.versions.uv||"").split(".")[0];function f(e){return r(f.resolve(e))}function I(t){try{return e.readdirSync(t)}catch(e){return[]}}function w(e,n){var r=I(e).filter(n);return r[0]&&t.join(e,r[0])}function b(e){return/\.node$/.test(e)}function g(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 y(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 E(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!==h||n.armv&&n.armv!==v||n.libc&&n.libc!==c)}}function U(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 ta=f,f.resolve=f.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=w(t.join(e,"build/Release"),b);if(o)return o;var l=w(t.join(e,"build/Debug"),b);if(l)return l}var u=C(e);if(u)return u;var m=C(t.dirname(process.execPath));if(m)return m;var f=["platform="+s,"arch="+p,"runtime="+d,"abi="+i,"uv="+h,v?"armv="+v:"","libc="+c,"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 "+f+"\n loaded from: "+e+"\n");function C(e){var n=I(t.join(e,"prebuilds")).map(g).filter(y(s,p)).sort(R)[0];if(n){
95
- var r=t.join(e,"prebuilds",n.name),o=I(r).map(j).filter(E(d,i)).sort(U(d))[0];return o?t.join(r,o.file):void 0}}},f.parseTags=j,f.matchTags=E,f.compareTags=U,f.parseTuple=g,f.matchTuple=y,f.compareTuples=R,ta}(),ma.exports}function va(){if(ia)return Qo.exports;ia=1;try{Qo.exports=ca()(__dirname)}catch(e){Qo.exports=aa?oa:(aa=1,oa={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 Qo.exports}function ha(){if(da)return Ko.exports;da=1;const{EMPTY_BUFFER:e}=Xo(),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(Ko.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=va();Ko.exports.mask=function(t,r,o,a,i){i<48?n(t,r,o,a,i):e.mask(t,r,o,a,i)},Ko.exports.unmask=function(t,n){t.length<32?r(t,n):e.unmask(t,n)}}catch(e){}return Ko.exports}function fa(){if(ua)return sa;ua=1;const e=p,t=ha(),n=function(){if(la)return pa;la=1;const e=Symbol("kDone"),t=Symbol("kRun");return pa=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}=Xo(),o=Buffer[Symbol.species],a=Buffer.from([0,0,255,255]),i=Symbol("permessage-deflate"),d=Symbol("total-length"),l=Symbol("callback"),s=Symbol("buffers"),u=Symbol("error");let m;function c(e){this[s].push(e),this[d]+=e.length}function v(e){this[d]+=e.length,this[i]._maxPayload<1||this[d]<=this[i]._maxPayload?this[s].push(e):(this[u]=new RangeError("Max payload size exceeded"),this[u].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[u][r]=1009,this.removeListener("data",v),this.reset())}function h(e){this[i]._inflate=null,this[u]?this[l](this[u]):(e[r]=1007,this[l](e))}return sa=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,!m){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;m=new n(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={}
72
+ size:i.size,timeout:i.timeout,counter:i.counter},d=t.get("Content-Encoding");if(!i.compress||"HEAD"===i.method||null===d||204===e.statusCode||304===e.statusCode)return m=new Zr(r,o),void n(m);const l={flush:p.Z_SYNC_FLUSH,finishFlush:p.Z_SYNC_FLUSH};if("gzip"==d||"x-gzip"==d)return r=r.pipe(p.createGunzip(l)),m=new Zr(r,o),void n(m);if("deflate"==d||"x-deflate"==d){return void e.pipe(new io).once("data",function(e){r=8==(15&e[0])?r.pipe(p.createInflate()):r.pipe(p.createInflateRaw()),m=new Zr(r,o),n(m)})}if("br"==d&&"function"==typeof p.createBrotliDecompress)return r=r.pipe(p.createBrotliDecompress()),m=new Zr(r,o),void n(m);m=new Zr(r,o),n(m)}),function(e,t){const n=t.body;null===n?e.end():xr(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(h,i)})}po.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},po.Promise=global.Promise;var lo,so,uo={exports:{}};function mo(){if(so)return lo;so=1
73
+ ;const e=["nodebuffer","arraybuffer","fragments"],t="undefined"!=typeof Blob;return t&&e.push("blob"),lo={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 vo(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 ho,fo,Io,wo,bo,go,yo,Ro,jo,Eo,Uo,Co={exports:{}};function _o(){if(Io)return Co.exports;Io=1;const e="function"==typeof __webpack_require__?__non_webpack_require__:vo;return"function"==typeof e.addon?Co.exports=e.addon.bind(e):Co.exports=function(){if(fo)return ho;fo=1
74
+ ;var e=m,t=c,n=v,r="function"==typeof __webpack_require__?__non_webpack_require__:vo,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)||"",h=(process.versions.uv||"").split(".")[0];function f(e){return r(f.resolve(e))}function I(t){try{return e.readdirSync(t)}catch(e){return[]}}function w(e,n){var r=I(e).filter(n);return r[0]&&t.join(e,r[0])}function b(e){return/\.node$/.test(e)}function g(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 y(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 E(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!==h||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 ho=f,f.resolve=f.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=w(t.join(e,"build/Release"),b);if(o)return o;var m=w(t.join(e,"build/Debug"),b);if(m)return m}var c=C(e);if(c)return c;var v=C(t.dirname(process.execPath));if(v)return v;var f=["platform="+l,"arch="+p,"runtime="+d,"abi="+i,"uv="+h,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 "+f+"\n loaded from: "+e+"\n");function C(e){var n=I(t.join(e,"prebuilds")).map(g).filter(y(l,p)).sort(R)[0];if(n){
77
+ var r=t.join(e,"prebuilds",n.name),o=I(r).map(j).filter(E(d,i)).sort(U(d))[0];return o?t.join(r,o.file):void 0}}},f.parseTags=j,f.matchTags=E,f.compareTags=U,f.parseTuple=g,f.matchTuple=y,f.compareTuples=R,ho}(),Co.exports}function So(){if(go)return co.exports;go=1;try{co.exports=_o()(__dirname)}catch(e){co.exports=bo?wo:(bo=1,wo={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 No(){if(yo)return uo.exports;yo=1;const{EMPTY_BUFFER:e}=mo(),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(uo.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=So();uo.exports.mask=function(t,r,o,a,i){i<48?n(t,r,o,a,i):e.mask(t,r,o,a,i)},uo.exports.unmask=function(t,n){t.length<32?r(t,n):e.unmask(t,n)}}catch(e){}return uo.exports}function Ao(){if(Uo)return Eo;Uo=1;const e=p,t=No(),n=function(){if(jo)return Ro;jo=1;const e=Symbol("kDone"),t=Symbol("kRun");return Ro=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}=mo(),o=Buffer[Symbol.species],a=Buffer.from([0,0,255,255]),i=Symbol("permessage-deflate"),d=Symbol("total-length"),l=Symbol("callback"),s=Symbol("buffers"),u=Symbol("error");let m;function c(e){this[s].push(e),this[d]+=e.length}function v(e){this[d]+=e.length,this[i]._maxPayload<1||this[d]<=this[i]._maxPayload?this[s].push(e):(this[u]=new RangeError("Max payload size exceeded"),this[u].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[u][r]=1009,this.removeListener("data",v),this.reset())}function h(e){this[i]._inflate=null,this[u]?this[l](this[u]):(e[r]=1007,this[l](e))}return Eo=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,!m){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;m=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[l];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){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(n,r,o){const p=this._isServer?"client":"server";if(!this._inflate){const t=`${p}_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[s]=[],this._inflate.on("error",h),this._inflate.on("data",v)}this._inflate[l]=o,this._inflate.write(n),r&&this._inflate.write(a),this._inflate.flush(()=>{const e=this._inflate[u];if(e)return this._inflate.close(),this._inflate=null,void o(e);const n=t.concat(this._inflate[s],this._inflate[d])
102
- ;this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[d]=0,this._inflate[s]=[],r&&this.params[`${p}_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[s]=[],this._deflate.on("data",c)}this._deflate[l]=a,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[s],this._deflate[d]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[l]=null,this._deflate[d]=0,this._deflate[s]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),a(null,e)})}}}var Ia,wa,ba,ga,ya,Ra,ja,Ea,Ua,Ca,_a,Sa,Na,Aa,xa,Pa,ka={exports:{}},Ta={exports:{}};function Da(){if(ba)return Ta.exports
103
- ;ba=1;try{Ta.exports=ca()(__dirname)}catch(e){Ta.exports=wa?Ia:(wa=1,Ia=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 Ta.exports}function Oa(){if(ga)return ka.exports;ga=1;const{isUtf8:e}=h,{hasBlob:t}=Xo();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(ka.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)ka.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();ka.exports.isValidUTF8=function(t){return t.length<32?n(t):e(t)}}catch(e){}return ka.exports}
105
- function La(){if(Ra)return ya;Ra=1;const{Writable:e}=r,t=fa(),{BINARY_TYPES:n,EMPTY_BUFFER:o,kStatusCode:a,kWebSocket:i}=Xo(),{concat:d,toArrayBuffer:p,unmask:l}=ha(),{isValidStatusCode:s,isValidUTF8:u}=Oa(),m=Buffer[Symbol.species];return ya=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[i]=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[s]=[],r&&this.params[`${p}_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[s]=[],this._deflate.on("data",c)}this._deflate[l]=a,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[s],this._deflate[d]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[l]=null,this._deflate[d]=0,this._deflate[s]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),a(null,e)})}}}var xo,Po,ko,To,Do,Oo,Lo,qo,Bo,Vo,Fo,Go,Mo,zo,Jo,Wo,$o={exports:{}},Ho={exports:{}};function Zo(){if(ko)return Ho.exports
85
+ ;ko=1;try{Ho.exports=_o()(__dirname)}catch(e){Ho.exports=Po?xo:(Po=1,xo=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 Ho.exports}function Yo(){if(To)return $o.exports;To=1;const{isUtf8:e}=h,{hasBlob:t}=mo();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($o.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)$o.exports.isValidUTF8=function(t){return t.length<24?n(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=Zo();$o.exports.isValidUTF8=function(t){return t.length<32?n(t):e(t)}}catch(e){}return $o.exports}
87
+ function Ko(){if(Oo)return Do;Oo=1;const{Writable:e}=r,t=Ao(),{BINARY_TYPES:n,EMPTY_BUFFER:o,kStatusCode:a,kWebSocket:i}=mo(),{concat:d,toArrayBuffer:p,unmask:l}=No(),{isValidStatusCode:s,isValidUTF8:u}=Yo(),m=Buffer[Symbol.species];return Do=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[i]=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=o;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?d(n,t):"arraybuffer"===this._binaryType?p(d(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=d(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,o),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,o){this._loop=!1,this._errored=!0;const i=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=o,i[a]=r,i}}}function qa(){if(Ea)return ja;Ea=1;const{Duplex:e}=r,{randomFillSync:t}=v,n=fa(),{EMPTY_BUFFER:o,kWebSocket:a,NOOP:i}=Xo(),{isBlob:d,isValidStatusCode:p}=Oa(),{mask:l,toBuffer:s}=ha(),u=Symbol("kByteLength"),m=Buffer.alloc(4),c=8192;let h,f=c;class I{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=i,this[a]=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):(f===c&&(void 0===h&&(h=Buffer.alloc(c)),t(h,0,c),f=0),
113
- r[0]=h[f++],r[1]=h[f++],r[2]=h[f++],r[3]=h[f++]),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,r){let a;if(void 0===e)a=o;else{if("number"!=typeof e||!p(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
- generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,a,!1,i,r]):this.sendFrame(I.frame(a,i),r)}ping(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):d(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};d(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(I.frame(e,a),n)}pong(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):d(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
- rsv1:!1};d(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(I.frame(e,a),n)}send(e,t,r){const o=this._extensions[n.extensionName];let a,i,p=t.binary?2:1,l=t.compress;"string"==typeof e?(a=Buffer.byteLength(e),i=!1):d(e)?(a=e.size,i=!1):(a=(e=s(e)).length,i=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:i,rsv1:l};d(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
- 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(w,this,e,r)}this._bufferedBytes-=n[u];const o=s(e);t?this.dispatch(o,t,n,r):(this._state=0,this.sendFrame(I.frame(o,n),r),this.dequeue())}).catch(e=>{process.nextTick(b,this,e,r)})}dispatch(e,t,r,o){if(!t)return void this.sendFrame(I.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 w(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(I.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 w(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 b(e,t,n){w(e,t,n),e.onerror(t)}return ja=I}function Ba(){if(Sa)return _a;Sa=1;const{tokenChars:e}=Oa();function t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}return _a={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}`);{
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,o){this._loop=!1,this._errored=!0;const i=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=o,i[a]=r,i}}}function Xo(){if(qo)return Lo;qo=1;const{Duplex:e}=r,{randomFillSync:t}=u,n=Ao(),{EMPTY_BUFFER:o,kWebSocket:a,NOOP:i}=mo(),{isBlob:d,isValidStatusCode:p}=Yo(),{mask:l,toBuffer:s}=No(),m=Symbol("kByteLength"),c=Buffer.alloc(4),v=8192;let h,f=v;class I{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=i,this[a]=void 0}static frame(e,n){let r,o,a=!1,i=2,d=!1;n.mask&&(r=n.maskBuffer||c,n.generateMask?n.generateMask(r):(f===v&&(void 0===h&&(h=Buffer.alloc(v)),t(h,0,v),f=0),
95
+ r[0]=h[f++],r[1]=h[f++],r[2]=h[f++],r[3]=h[f++]),d=0===(r[0]|r[1]|r[2]|r[3]),i=6),"string"==typeof e?o=n.mask&&!d||void 0===n[m]?(e=Buffer.from(e)).length:n[m]:(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,r){let a;if(void 0===e)a=o;else{if("number"!=typeof e||!p(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={[m]:a.length,fin:!0,
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,r]):this.sendFrame(I.frame(a,i),r)}ping(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):d(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={[m]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:o,rsv1:!1};d(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(I.frame(e,a),n)}pong(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):d(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={[m]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:o,
97
+ rsv1:!1};d(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(I.frame(e,a),n)}send(e,t,r){const o=this._extensions[n.extensionName];let a,i,p=t.binary?2:1,l=t.compress;"string"==typeof e?(a=Buffer.byteLength(e),i=!1):d(e)?(a=e.size,i=!1):(a=(e=s(e)).length,i=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 u={[m]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:p,readOnly:i,rsv1:l};d(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,u,r]):this.getBlobData(e,this._compress,u,r):0!==this._state?this.enqueue([this.dispatch,e,this._compress,u,r]):this.dispatch(e,this._compress,u,r)}getBlobData(e,t,n,r){this._bufferedBytes+=n[m],this._state=2,
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(w,this,e,r)}this._bufferedBytes-=n[m];const o=s(e);t?this.dispatch(o,t,n,r):(this._state=0,this.sendFrame(I.frame(o,n),r),this.dequeue())}).catch(e=>{process.nextTick(b,this,e,r)})}dispatch(e,t,r,o){if(!t)return void this.sendFrame(I.frame(e,r),o);const a=this._extensions[n.extensionName];this._bufferedBytes+=r[m],this._state=1,a.compress(e,r.fin,(e,t)=>{if(this._socket.destroyed){return void w(this,new Error("The socket was closed while data was being compressed"),o)}this._bufferedBytes-=r[m],this._state=0,r.readOnly=!1,this.sendFrame(I.frame(t,r),o),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][m],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][m],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),
99
+ this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function w(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 b(e,t,n){w(e,t,n),e.onerror(t)}return Lo=I}function Qo(){if(Go)return Fo;Go=1;const{tokenChars:e}=Yo();function t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}return Fo={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 Va(){if(Aa)return Na;Aa=1;const t=e,n=d,i=o,p=s,l=c,{randomBytes:u,createHash:m}=v,{Duplex:h,Readable:f}=r,{URL:I}=a,w=fa(),b=La(),g=qa(),{isBlob:y}=Oa(),{BINARY_TYPES:R,EMPTY_BUFFER:j,GUID:E,kForOnEventAttribute:U,kListener:C,kStatusCode:_,kWebSocket:S,NOOP:N}=Xo(),{EventTarget:{addEventListener:A,removeEventListener:x}}=function(){if(Ca)return Ua;Ca=1
120
- ;const{kForOnEventAttribute:e,kListener:t}=Xo(),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 ea(){if(zo)return Mo;zo=1;const t=e,n=d,i=o,p=l,m=s,{randomBytes:c,createHash:v}=u,{Duplex:h,Readable:f}=r,{URL:I}=a,w=Ao(),b=Ko(),g=Xo(),{isBlob:y}=Yo(),{BINARY_TYPES:R,EMPTY_BUFFER:j,GUID:E,kForOnEventAttribute:U,kListener:C,kStatusCode:_,kWebSocket:S,NOOP:N}=mo(),{EventTarget:{addEventListener:A,removeEventListener:x}}=function(){if(Vo)return Bo;Vo=1
102
+ ;const{kForOnEventAttribute:e,kListener:t}=mo(),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 Ua={CloseEvent:u,ErrorEvent:m,Event:s,EventTarget:v,MessageEvent:c}}(),{format:P,parse:k}=Ba(),{toBuffer:T}=ha(),D=Symbol("kAborted"),O=[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
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 Bo={CloseEvent:u,ErrorEvent:m,Event:s,EventTarget:v,MessageEvent:c}}(),{format:P,parse:k}=Qo(),{toBuffer:T}=No(),D=Symbol("kAborted"),O=[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
123
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 b({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),o=new g(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[w.extensionName]&&this._extensions[w.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
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,
126
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[w.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,r,o){const a={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:O[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...o,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,
127
- path:void 0,port:void 0};if(e._autoPong=a.autoPong,!O.includes(a.protocolVersion))throw new RangeError(`Unsupported protocol version: ${a.protocolVersion} (supported versions: ${O.join(", ")})`);let d;if(t instanceof I)d=t;else try{d=new I(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===d.protocol?d.protocol="ws:":"https:"===d.protocol&&(d.protocol="wss:"),e._url=d.href;const p="wss:"===d.protocol,l="ws+unix:"===d.protocol;let s;if("ws:"===d.protocol||p||l?l&&!d.pathname?s="The URL's pathname is empty":d.hash&&(s="The URL contains a fragment identifier"):s='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',s){const t=new SyntaxError(s);if(0===e._redirects)throw t;return void F(e,t)}const c=p?443:80,v=u(16).toString("base64"),h=p?n.request:i.request,f=new Set;let b,g;if(a.createConnection=a.createConnection||(p?M:G),a.defaultPort=a.defaultPort||c,a.port=d.port||c,a.host=d.hostname.startsWith("[")?d.hostname.slice(1,-1):d.hostname,
128
- a.headers={...a.headers,"Sec-WebSocket-Version":a.protocolVersion,"Sec-WebSocket-Key":v,Connection:"Upgrade",Upgrade:"websocket"},a.path=d.pathname+d.search,a.timeout=a.handshakeTimeout,a.perMessageDeflate&&(b=new w(!0!==a.perMessageDeflate?a.perMessageDeflate:{},!1,a.maxPayload),a.headers["Sec-WebSocket-Extensions"]=P({[w.extensionName]:b.offer()})),r.length){for(const e of r){if("string"!=typeof e||!q.test(e)||f.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(e)}a.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(a.origin&&(a.protocolVersion<13?a.headers["Sec-WebSocket-Origin"]=a.origin:a.headers.Origin=a.origin),(d.username||d.password)&&(a.auth=`${d.username}:${d.password}`),l){const e=a.path.split(":");a.socketPath=e[0],a.path=e[1]}if(a.followRedirects){if(0===e._redirects){e._originalIpc=l,e._originalSecure=p,e._originalHostOrSocketPath=l?a.socketPath:d.host;const t=o&&o.headers;if(o={...o,headers:{}},
109
+ path:void 0,port:void 0};if(e._autoPong=a.autoPong,!O.includes(a.protocolVersion))throw new RangeError(`Unsupported protocol version: ${a.protocolVersion} (supported versions: ${O.join(", ")})`);let d;if(t instanceof I)d=t;else try{d=new I(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===d.protocol?d.protocol="ws:":"https:"===d.protocol&&(d.protocol="wss:"),e._url=d.href;const p="wss:"===d.protocol,l="ws+unix:"===d.protocol;let s;if("ws:"===d.protocol||p||l?l&&!d.pathname?s="The URL's pathname is empty":d.hash&&(s="The URL contains a fragment identifier"):s='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',s){const t=new SyntaxError(s);if(0===e._redirects)throw t;return void F(e,t)}const u=p?443:80,m=c(16).toString("base64"),h=p?n.request:i.request,f=new Set;let b,g;if(a.createConnection=a.createConnection||(p?M:G),a.defaultPort=a.defaultPort||u,a.port=d.port||u,a.host=d.hostname.startsWith("[")?d.hostname.slice(1,-1):d.hostname,
110
+ a.headers={...a.headers,"Sec-WebSocket-Version":a.protocolVersion,"Sec-WebSocket-Key":m,Connection:"Upgrade",Upgrade:"websocket"},a.path=d.pathname+d.search,a.timeout=a.handshakeTimeout,a.perMessageDeflate&&(b=new w(!0!==a.perMessageDeflate?a.perMessageDeflate:{},!1,a.maxPayload),a.headers["Sec-WebSocket-Extensions"]=P({[w.extensionName]:b.offer()})),r.length){for(const e of r){if("string"!=typeof e||!q.test(e)||f.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(e)}a.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(a.origin&&(a.protocolVersion<13?a.headers["Sec-WebSocket-Origin"]=a.origin:a.headers.Origin=a.origin),(d.username||d.password)&&(a.auth=`${d.username}:${d.password}`),l){const e=a.path.split(":");a.socketPath=e[0],a.path=e[1]}if(a.followRedirects){if(0===e._redirects){e._originalIpc=l,e._originalSecure=p,e._originalHostOrSocketPath=l?a.socketPath:d.host;const t=o&&o.headers;if(o={...o,headers:{}},
129
111
  t)for(const[e,n]of Object.entries(t))o.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=l?!!e._originalIpc&&a.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&d.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!p)&&(delete a.headers.authorization,delete a.headers.cookie,t||delete a.headers.host,a.auth=void 0)}a.auth&&!o.headers.authorization&&(o.headers.authorization="Basic "+Buffer.from(a.auth).toString("base64")),g=e._req=h(a),e._redirects&&e.emit("redirect",e.url,g)}else g=e._req=h(a);a.timeout&&g.on("timeout",()=>{z(e,g,"Opening handshake has timed out")}),g.on("error",t=>{null===g||g[D]||(g=e._req=null,F(e,t))}),g.on("response",n=>{const i=n.headers.location,d=n.statusCode;if(i&&a.followRedirects&&d>=300&&d<400){if(++e._redirects>a.maxRedirects)return void z(e,g,"Maximum redirects exceeded");let n;g.abort();try{n=new I(i,t)}catch(t){const n=new SyntaxError(`Invalid URL: ${i}`);return void F(e,n)}V(e,n,r,o)
130
- }else e.emit("unexpected-response",g,n)||z(e,g,`Unexpected server response: ${n.statusCode}`)}),g.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==B.CONNECTING)return;g=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void z(e,n,"Invalid Upgrade header");const i=m("sha1").update(v+E).digest("base64");if(t.headers["sec-websocket-accept"]!==i)return void z(e,n,"Invalid Sec-WebSocket-Accept header");const d=t.headers["sec-websocket-protocol"];let p;if(void 0!==d?f.size?f.has(d)||(p="Server sent an invalid subprotocol"):p="Server sent a subprotocol but none was requested":f.size&&(p="Server sent no subprotocol"),p)return void z(e,n,p);d&&(e._protocol=d);const l=t.headers["sec-websocket-extensions"];if(void 0!==l){if(!b){return void z(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=k(l)}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t)
131
- ;if(1!==r.length||r[0]!==w.extensionName){return void z(e,n,"Server indicated an extension that was not requested")}try{b.accept(t[w.extensionName])}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[w.extensionName]=b}e.setSocket(n,r,{allowSynchronousEvents:a.allowSynchronousEvents,generateMask:a.generateMask,maxPayload:a.maxPayload,skipUTF8Validation:a.skipUTF8Validation})}),a.finishRequest?a.finishRequest(g,e):g.end()}function F(e,t){e._readyState=B.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function G(e){return e.path=e.socketPath,p.connect(e)}function M(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=p.isIP(e.host)?"":e.host),l.connect(e)}function z(e,t,n){e._readyState=B.CLOSING;const r=new Error(n);Error.captureStackTrace(r,z),t.setHeader?(t[D]=!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")),
112
+ }else e.emit("unexpected-response",g,n)||z(e,g,`Unexpected server response: ${n.statusCode}`)}),g.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==B.CONNECTING)return;g=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void z(e,n,"Invalid Upgrade header");const i=v("sha1").update(m+E).digest("base64");if(t.headers["sec-websocket-accept"]!==i)return void z(e,n,"Invalid Sec-WebSocket-Accept header");const d=t.headers["sec-websocket-protocol"];let p;if(void 0!==d?f.size?f.has(d)||(p="Server sent an invalid subprotocol"):p="Server sent a subprotocol but none was requested":f.size&&(p="Server sent no subprotocol"),p)return void z(e,n,p);d&&(e._protocol=d);const l=t.headers["sec-websocket-extensions"];if(void 0!==l){if(!b){return void z(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=k(l)}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t)
113
+ ;if(1!==r.length||r[0]!==w.extensionName){return void z(e,n,"Server indicated an extension that was not requested")}try{b.accept(t[w.extensionName])}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[w.extensionName]=b}e.setSocket(n,r,{allowSynchronousEvents:a.allowSynchronousEvents,generateMask:a.generateMask,maxPayload:a.maxPayload,skipUTF8Validation:a.skipUTF8Validation})}),a.finishRequest?a.finishRequest(g,e):g.end()}function F(e,t){e._readyState=B.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function G(e){return e.path=e.socketPath,p.connect(e)}function M(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=p.isIP(e.host)?"":e.host),m.connect(e)}function z(e,t,n){e._readyState=B.CLOSING;const r=new Error(n);Error.captureStackTrace(r,z),t.setHeader?(t[D]=!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
114
  t.once("close",e.emitClose.bind(e)))}function J(e,t,n){if(t){const n=y(t)?t.size:T(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
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[U])return t[C]
135
- ;return null},set(t){for(const t of this.listeners(e))if(t[U]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[U]:!0})}})}),B.prototype.addEventListener=A,B.prototype.removeEventListener=x,Na=B}var Fa=function(){if(Pa)return xa;Pa=1,Va();const{Duplex:e}=r;function t(e){e.emit("close")}function n(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener("error",o),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}return xa=function(r,a){let i=!0;const d=new e({...a,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return r.on("message",function(e,t){const n=!t&&d._readableState.objectMode?e.toString():e;d.push(n)||r.pause()}),r.once("error",function(e){d.destroyed||(i=!1,d.destroy(e))}),r.once("close",function(){d.destroyed||d.push(null)}),d._destroy=function(e,n){if(r.readyState===r.CLOSED)return n(e),void process.nextTick(t,d);let o=!1;r.once("error",function(e){o=!0,n(e)}),
136
- r.once("close",function(){o||n(e),process.nextTick(t,d)}),i&&r.terminate()},d._final=function(e){r.readyState!==r.CONNECTING?null!==r._socket&&(r._socket._writableState.finished?(e(),d._readableState.endEmitted&&d.destroy()):(r._socket.once("finish",function(){e()}),r.close())):r.once("open",function(){d._final(e)})},d._read=function(){r.isPaused&&r.resume()},d._write=function(e,t,n){r.readyState!==r.CONNECTING?r.send(e,n):r.once("open",function(){d._write(e,t,n)})},d.on("end",n),d.on("error",o),d},xa}(),Ga=Xn(Fa);La(),qa();var Ma,za,Ja,Wa,$a=Xn(Va());function Ha(){if(za)return Ma;za=1;const{tokenChars:e}=Oa();return Ma={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(Wa)return Ja;Wa=1;const t=e,n=o,{Duplex:a}=r,{createHash:i}=v,d=Ba(),p=fa(),l=Ha(),s=Va(),{GUID:u,kWebSocket:m}=Xo(),c=/^[+/0-9A-Za-z]{22}==$/;function h(e){e._state=2,e.emit("close")}function f(){this.destroy()}function I(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 w(e,t,n,r,o,a){if(e.listenerCount("wsClientError")){const r=new Error(o);Error.captureStackTrace(r,w),e.emit("wsClientError",r,n,t)}else I(n,r,o,a)}Ja=class extends t{constructor(e,t){
117
+ ;return null},set(t){for(const t of this.listeners(e))if(t[U]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[U]:!0})}})}),B.prototype.addEventListener=A,B.prototype.removeEventListener=x,Mo=B}var ta=function(){if(Wo)return Jo;Wo=1,ea();const{Duplex:e}=r;function t(e){e.emit("close")}function n(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener("error",o),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}return Jo=function(r,a){let i=!0;const d=new e({...a,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return r.on("message",function(e,t){const n=!t&&d._readableState.objectMode?e.toString():e;d.push(n)||r.pause()}),r.once("error",function(e){d.destroyed||(i=!1,d.destroy(e))}),r.once("close",function(){d.destroyed||d.push(null)}),d._destroy=function(e,n){if(r.readyState===r.CLOSED)return n(e),void process.nextTick(t,d);let o=!1;r.once("error",function(e){o=!0,n(e)}),
118
+ r.once("close",function(){o||n(e),process.nextTick(t,d)}),i&&r.terminate()},d._final=function(e){r.readyState!==r.CONNECTING?null!==r._socket&&(r._socket._writableState.finished?(e(),d._readableState.endEmitted&&d.destroy()):(r._socket.once("finish",function(){e()}),r.close())):r.once("open",function(){d._final(e)})},d._read=function(){r.isPaused&&r.resume()},d._write=function(e,t,n){r.readyState!==r.CONNECTING?r.send(e,n):r.once("open",function(){d._write(e,t,n)})},d.on("end",n),d.on("error",o),d},Jo}(),na=Xn(ta);Ko(),Xo();var ra,oa,aa,ia,da=Xn(ea());function pa(){if(oa)return ra;oa=1;const{tokenChars:e}=Yo();return ra={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(ia)return aa;ia=1;const t=e,n=o,{Duplex:a}=r,{createHash:i}=u,d=Qo(),p=Ao(),l=pa(),s=ea(),{GUID:m,kWebSocket:c}=mo(),v=/^[+/0-9A-Za-z]{22}==$/;function h(e){e._state=2,e.emit("close")}function f(){this.destroy()}function I(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 w(e,t,n,r,o,a){if(e.listenerCount("wsClientError")){const r=new Error(o);Error.captureStackTrace(r,w),e.emit("wsClientError",r,n,t)}else I(n,r,o,a)}aa=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(h,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(h,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{h(this)})}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?")
140
- ;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",f);const o=e.headers["sec-websocket-key"],a=e.headers.upgrade,i=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void w(this,e,t,405,"Invalid HTTP method")}if(void 0===a||"websocket"!==a.toLowerCase()){return void w(this,e,t,400,"Invalid Upgrade header")}if(void 0===o||!c.test(o)){return void w(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(13!==i&&8!==i){return void w(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"})}if(!this.shouldHandle(e))return void I(t,400);const s=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==s)try{u=l.parse(s)}catch(n){return void w(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 p(this.options.perMessageDeflate,!0,this.options.maxPayload);try{
141
- const e=d.parse(m);e[p.extensionName]&&(n.accept(e[p.extensionName]),v[p.extensionName]=n)}catch(n){return void w(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const a={origin:e.headers[""+(8===i?"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 I(t,i||401,d,p);this.completeUpgrade(v,o,u,e,t,n,r)});if(!this.options.verifyClient(a))return I(t,401)}this.completeUpgrade(v,o,u,e,t,n,r)}completeUpgrade(e,t,n,r,o,a,l){if(!o.readable||!o.writable)return o.destroy();if(o[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 I(o,503)
142
- ;const s=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${i("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[p.extensionName]){const t=e[p.extensionName].params,n=d.format({[p.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),c._extensions=e}this.emit("headers",s,r),o.write(s.concat("\r\n").join("\r\n")),o.removeListener("error",f),c.setSocket(o,a,{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(h,this)})),l(c,r)}}}();var Za=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=N.createServer(d.handleConnection.bind(d));var p=null==r?void 0:r.altHostnames.map(function(e){return(t=Ct(t=e))&&Gn.test(t)?t.replace(Fn,"\\$&"):t;var t}).join("|");return d.hostRegex=new RegExp("Host: (?:".concat(p,")(:.*$|$)"),"im"),d}return x(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 k(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),T(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 k(this,void 0,void 0,function(){var e,t=this;return T(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 $a(n,{headers:this.headers,agent:this.agent}),o=Ga(r),a=this.getHeaderTransform();this.rewriteHostHeader&&a?Yo(e,a,o):Yo(e,o),Yo(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,r=t.targetHostname,o=t.altHostnames,a=this.hostRegex;return new n.Transform({transform:function(t,n,i){var d=t.toString();if(d.split("\n",1)[0].includes("HTTP")&&a.test(d)){var p=o.map(function(e){return"Host: ".concat(e)})
146
- ;i(null,e(t,p,"Host: ".concat(r)))}else i(null,t)}})}},t}(e.EventEmitter),Ya=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=f.createSocket("udp4"),a.handleConnection(),a}return x(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 k(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),T(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",{
147
- 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(){return k(this,void 0,void 0,function(){var e=this;return T(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 $a(n,{headers:this.headers,agent:this.agent}),o=Ga(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){
148
- t.emit("connection-close",e,n,r)}),r.on("connection-error",function(e){t.emit("connection-error",e)}),this.emit("connection-accept")},t}(e.EventEmitter),Ka=function(e){function n(n,r,o,a){var i=e.call(this)||this;return i.contextProvider=n,i.listServices=r,i.listAddons=o,i.agent=a,i.connections=[],i.hostsFileMutex=new Mo,i.ipAllocationMutex=new Mo,i.stopForwarding=function(e){return k(i,void 0,void 0,function(){var t,n,r,o,a,i,d;return T(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(){
149
- 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"}:function(){try{return t.execSync("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return t.execSync("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(!lo)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new Ro(n,a),i}return x(n,e),n.prototype.withProjectForwarding=function(e,t){return k(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),T(this,function(o){switch(o.label){case 0:
150
- 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]}})})},n.prototype.forwardProject=function(e){return k(this,arguments,void 0,function(e,t){var n,r,o,a,i,d=this;return void 0===t&&(t=!0),T(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 k(d,void 0,void 0,function(){return T(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 k(d,void 0,void 0,function(){return T(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:e.id
151
- },t)];case 1:return[2,r.sent()]}})})}))];case 4:return i=p.sent(),[2,{services:a,addons:i}]}})})},n.prototype.withServiceForwarding=function(e,t){return k(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),T(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]}})})},n.prototype.forwardService=function(e){return k(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),T(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=D([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,go(c,m)]);case 2:return[2,h.sent()]}})})},n.prototype.withAddonForwarding=function(e,t){return k(this,arguments,void 0,function(e,t,n){
153
- var r;return void 0===n&&(n=!0),T(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]}})})},n.prototype.forwardAddon=function(e){return k(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p=this;return void 0===t&&(t=!0),T(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,go((s=i,null!=s&&s.length?kt(s,Jn):[]),function(e){return k(p,[e],void 0,function(e){var n,i=e.podName,p=e.internalHostname,l=e.port;return T(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})})},n.prototype.allocateIpAddress=function(e){return k(this,void 0,void 0,function(){var t=this;return T(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return k(t,void 0,void 0,function(){var t,n,r,o,a;return T(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,jo(e,r,n)];case 1:return o=i.sent(),this.nextIpAddress=_o(Co(o)+1),Co(this.nextIpAddress)>Co(n)&&(this.nextIpAddress=t),[2,o]}})})})]})})},n.prototype.forwardPort=function(e,t,n,r,o,a){return k(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),T(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 Ya(e,l,u,this.agent):new Za(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 k(f,void 0,void 0,function(){return T(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}]}})})},n.prototype.determineSocketAddress=function(e,t,n,r,o,a,i){return k(this,void 0,void 0,function(){var d,p,s,u;return T(this,function(m){switch(m.label){case 0:return a&&"darwin"===l.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}),s=null==p?void 0:p.find(function(e){return n.find(function(t){return e.forwardingContext.hostnames.includes(t)})}),s?[2,{address:null==s?void 0:s.forwardingContext.address,port:o.internalPort}]:(u={},[4,this.allocateIpAddress(o.internalPort)]));case 1:
157
- return[2,(u.address=m.sent(),u.port=o.internalPort,u)]}})})},n.prototype.consistentHostnameToPortHashing=function(e){var t=v.createHash("sha256").update(e).digest("hex");return 3e4+parseInt(t.slice(0,8),16)%3e4},n.prototype.registerHostnames=function(e,t){return k(this,void 0,void 0,function(){return T(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,t),n.add.apply(n,D([e],t,!1))})];case 1:return n.sent(),[2]}})})},n.prototype.unregisterHostnames=function(e,t){return k(this,void 0,void 0,function(){return T(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,D([e],t,!1))})];case 1:return n.sent(),[2]}})})},n.prototype.modifyHostsFile=function(e){return k(this,void 0,void 0,function(){var t=this;return T(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return k(t,void 0,void 0,function(){var t,n=this;return T(this,function(r){switch(r.label){case 0:
158
- return[4,Go.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,uo(5)(function(){return k(n,void 0,void 0,function(){return T(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,uo(5)(function(){return k(n,void 0,void 0,function(){return T(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]}})})},n.prototype.stopProjectForwarding=function(e){return k(this,void 0,void 0,function(){var t=this;return T(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]}})})},n.prototype.stopServiceForwarding=function(e){return k(this,void 0,void 0,function(){var t=this;return T(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]}})})},n.prototype.stopAddonForwarding=function(e){return k(this,void 0,void 0,function(){var t=this;return T(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]}})})},n.prototype.stop=function(){return k(this,void 0,void 0,function(){var e=this;return T(this,function(t){switch(t.label){case 0:
160
- return[4,Promise.all(this.connections.map(function(t){return k(e,void 0,void 0,function(){return T(this,function(e){return[2,this.stopForwarding(t)]})})}))];case 1:return t.sent(),[2]}})})},n}(e.EventEmitter),Xa=function(e){function t(t,n,r,o,a,i,d){void 0===a&&(a=new _.PassThrough),void 0===i&&(i=new _.PassThrough),void 0===d&&(d=new _.PassThrough);var p=e.call(this)||this;return p.baseUrl=t,p.execConfig=n,p.token=r,p.agent=o,p.stdOut=a,p.stdErr=i,p.stdIn=d,p.waitForCommandResult=function(){return k(p,void 0,void 0,function(){return T(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()]}})})},p.sendInputToCurrentCommand=function(e){return k(p,void 0,void 0,function(){var t;return T(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running")
161
- ;return null===(t=this.duplex)||void 0===t||t.write(this.constructPayloadPacket(e)),[2]})})},p.resizeTerminal=function(e){return k(p,void 0,void 0,function(){var t;return T(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]})})},p.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},p.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),p}return x(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":
162
- 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))}}())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return k(this,void 0,void 0,function(){var e=this;return T(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 $a(l,{agent:e.agent}),e.remote.on("error",function(e){p("WebSocket error: ".concat(e.message))}),e.remote.on("close",function(e,t){
163
- [1e3,1005].includes(e)||d||p("WebSocket closed unexpectedly: ".concat(e," ").concat(t||"(no reason)"))}),e.duplex=Ga(e.remote)}catch(e){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),
164
- 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),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(){
165
- 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.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}(e.EventEmitter),Qa=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.assertStartedWithNodejs=function(){if(!lo)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){return n=e.serviceId,r=e.projectId,o=e.teamId,a=P({teamId:o,projectId:r,entityId:n,entityType:"service"},t),
166
- [2,this.execCommand(a)]})})},e.prototype.execServiceSession=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i;return T(this,function(d){switch(d.label){case 0:return r=e.serviceId,o=e.projectId,a=e.teamId,i=P({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 k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){return n=e.jobId,r=e.projectId,o=e.teamId,a=P({teamId:o,projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(a)]})})},e.prototype.execJobSession=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i;return T(this,function(d){switch(d.label){case 0:return r=e.jobId,o=e.projectId,a=e.teamId,i=P({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 k(this,void 0,void 0,function(){var n,r,o,a
167
- ;return T(this,function(i){return n=e.addonId,r=e.projectId,o=e.teamId,a=P({teamId:o,projectId:r,entityId:n,entityType:"addon"},t),[2,this.execCommand(a)]})})},e.prototype.execAddonSession=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i;return T(this,function(d){switch(d.label){case 0:return r=e.addonId,o=e.projectId,a=e.teamId,i=P({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 k(this,void 0,void 0,function(){var t,n,r,o,a;return T(this,function(i){switch(i.label){case 0:this.assertStartedWithNodejs(),t=this.getCommandRunner(P({shell:"none"},e)),n=new yo,r=new yo,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(),
168
- 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 k(this,void 0,void 0,function(){var n,r;return T(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")
169
- ;return new Xa(t,e,n,this.agent)},e}(),ei=Object.defineProperty,ti="object"==typeof process&&process?process:{stdout:null,stderr:null
170
- },ni=e=>!!e&&"object"==typeof e&&(e instanceof Vi||e instanceof n||ri(e)||oi(e)),ri=e=>!!e&&"object"==typeof e&&e instanceof I.EventEmitter&&"function"==typeof e.pipe&&e.pipe!==n.Writable.prototype.pipe,oi=e=>!!e&&"object"==typeof e&&e instanceof I.EventEmitter&&"function"==typeof e.write&&"function"==typeof e.end,ai=Symbol("EOF"),ii=Symbol("maybeEmitEnd"),di=Symbol("emittedEnd"),pi=Symbol("emittingEnd"),li=Symbol("emittedError"),si=Symbol("closed"),ui=Symbol("read"),mi=Symbol("flush"),ci=Symbol("flushChunk"),vi=Symbol("encoding"),hi=Symbol("decoder"),fi=Symbol("flowing"),Ii=Symbol("paused"),wi=Symbol("resume"),bi=Symbol("buffer"),gi=Symbol("pipes"),yi=Symbol("bufferLength"),Ri=Symbol("bufferPush"),ji=Symbol("bufferShift"),Ei=Symbol("objectMode"),Ui=Symbol("destroyed"),Ci=Symbol("error"),_i=Symbol("emitData"),Si=Symbol("emitEnd"),Ni=Symbol("emitEnd2"),Ai=Symbol("async"),xi=Symbol("abort"),Pi=Symbol("aborted"),ki=Symbol("signal"),Ti=Symbol("dataListeners"),Di=Symbol("discarded"),Oi=e=>Promise.resolve().then(e),Li=e=>e(),qi=class{
171
- src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[wi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Bi=class extends qi{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)}},Vi=class extends I.EventEmitter{[fi]=!1;[Ii]=!1;[gi]=[];[bi]=[];[Ei];[vi];[Ai];[hi];[ai]=!1;[di]=!1;[pi]=!1;[si]=!1;[li]=null;[yi]=0;[Ui]=!1;[ki];[Pi]=!1;[Ti]=0;[Di]=!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[Ei]=!0,this[vi]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[vi]=t.encoding,this[Ei]=!1):(this[Ei]=!1,this[vi]=null),this[Ai]=!!t.async,
172
- this[hi]=this[vi]?new w.StringDecoder(this[vi]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[bi]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[gi]});let{signal:n}=t;n&&(this[ki]=n,n.aborted?this[xi]():n.addEventListener("abort",()=>this[xi]()))}get bufferLength(){return this[yi]}get encoding(){return this[vi]}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[Ei]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ai]}set async(e){this[Ai]=this[Ai]||!!e}[xi](){this[Pi]=!0,this.emit("abort",this[ki]?.reason),this.destroy(this[ki]?.reason)}get aborted(){return this[Pi]}set aborted(e){}write(e,t,n){if(this[Pi])return!1;if(this[ai])throw new Error("write after end")
173
- ;if(this[Ui])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[Ai]?Oi:Li;if(!this[Ei]&&!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[Ei]?(this[fi]&&0!==this[yi]&&this[mi](!0),this[fi]?this.emit("data",e):this[Ri](e),0!==this[yi]&&this.emit("readable"),n&&r(n),this[fi]):e.length?("string"==typeof e&&!(t===this[vi]&&!this[hi]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[vi]&&(e=this[hi].write(e)),this[fi]&&0!==this[yi]&&this[mi](!0),this[fi]?this.emit("data",e):this[Ri](e),
174
- 0!==this[yi]&&this.emit("readable"),n&&r(n),this[fi]):(0!==this[yi]&&this.emit("readable"),n&&r(n),this[fi])}read(e){if(this[Ui])return null;if(this[Di]=!1,0===this[yi]||0===e||e&&e>this[yi])return this[ii](),null;this[Ei]&&(e=null),this[bi].length>1&&!this[Ei]&&(this[bi]=[this[vi]?this[bi].join(""):Buffer.concat(this[bi],this[yi])]);let t=this[ui](e||null,this[bi][0]);return this[ii](),t}[ui](e,t){if(this[Ei])this[ji]();else{let n=t;e===n.length||null===e?this[ji]():"string"==typeof n?(this[bi][0]=n.slice(e),t=n.slice(0,e),this[yi]-=e):(this[bi][0]=n.subarray(e),t=n.subarray(0,e),this[yi]-=e)}return this.emit("data",t),!this[bi].length&&!this[ai]&&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[ai]=!0,this.writable=!1,(this[fi]||!this[Ii])&&this[ii](),this}[wi](){this[Ui]||(!this[Ti]&&!this[gi].length&&(this[Di]=!0),this[Ii]=!1,this[fi]=!0,this.emit("resume"),
175
- this[bi].length?this[mi]():this[ai]?this[ii]():this.emit("drain"))}resume(){return this[wi]()}pause(){this[fi]=!1,this[Ii]=!0,this[Di]=!1}get destroyed(){return this[Ui]}get flowing(){return this[fi]}get paused(){return this[Ii]}[Ri](e){this[Ei]?this[yi]+=1:this[yi]+=e.length,this[bi].push(e)}[ji](){return this[Ei]?this[yi]-=1:this[yi]-=this[bi][0].length,this[bi].shift()}[mi](e=!1){do{}while(this[ci](this[ji]())&&this[bi].length);!e&&!this[bi].length&&!this[ai]&&this.emit("drain")}[ci](e){return this.emit("data",e),this[fi]}pipe(e,t){if(this[Ui])return e;this[Di]=!1;let n=this[di];return t=t||{},e===ti.stdout||e===ti.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[gi].push(t.proxyErrors?new Bi(this,e,t):new qi(this,e,t)),this[Ai]?Oi(()=>this[wi]()):this[wi]()),e}unpipe(e){let t=this[gi].find(t=>t.dest===e);t&&(1===this[gi].length?(this[fi]&&0===this[Ti]&&(this[fi]=!1),this[gi]=[]):this[gi].splice(this[gi].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[Di]=!1,this[Ti]++,!this[gi].length&&!this[fi]&&this[wi]();else if("readable"===e&&0!==this[yi])super.emit("readable");else if("end"!==(r=e)&&"finish"!==r&&"prefinish"!==r||!this[di]){if("error"===e&&this[li]){let e=t;this[Ai]?Oi(()=>e.call(this,this[li])):e.call(this,this[li])}}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[Ti]=this.listeners("data").length,0===this[Ti]&&!this[Di]&&!this[gi].length&&(this[fi]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return("data"===e||void 0===e)&&(this[Ti]=0,!this[Di]&&!this[gi].length&&(this[fi]=!1)),t}get emittedEnd(){return this[di]}[ii](){!this[pi]&&!this[di]&&!this[Ui]&&0===this[bi].length&&this[ai]&&(this[pi]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[si]&&this.emit("close"),this[pi]=!1)}emit(e,...t){
177
- let n=t[0];if("error"!==e&&"close"!==e&&e!==Ui&&this[Ui])return!1;if("data"===e)return!(!this[Ei]&&!n)&&(this[Ai]?(Oi(()=>this[_i](n)),!0):this[_i](n));if("end"===e)return this[Si]();if("close"===e){if(this[si]=!0,!this[di]&&!this[Ui])return!1;let e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[li]=n,super.emit(Ci,n);let e=!(this[ki]&&!this.listeners("error").length)&&super.emit("error",n);return this[ii](),e}if("resume"===e){let e=super.emit("resume");return this[ii](),e}if("finish"===e||"prefinish"===e){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[ii](),r}[_i](e){for(let t of this[gi])!1===t.dest.write(e)&&this.pause();let t=!this[Di]&&super.emit("data",e);return this[ii](),t}[Si](){return!this[di]&&(this[di]=!0,this.readable=!1,this[Ai]?(Oi(()=>this[Ni]()),!0):this[Ni]())}[Ni](){if(this[hi]){let e=this[hi].end();if(e){for(let t of this[gi])t.dest.write(e);this[Di]||super.emit("data",e)}}
178
- for(let e of this[gi])e.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ei]||(e.dataLength=0);let t=this.promise();return this.on("data",t=>{e.push(t),this[Ei]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[Ei])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[vi]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Ui,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Di]=!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[ai])return t();let r,o,a=e=>{this.off("data",i),this.off("end",d),this.off(Ui,p),t(),o(e)},i=e=>{this.off("error",a),this.off("end",d),this.off(Ui,p),this.pause(),r({value:e,done:!!this[ai]})},d=()=>{
179
- this.off("error",a),this.off("data",i),this.off(Ui,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(Ui,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[Di]=!1;let e=!1,t=()=>(this.pause(),this.off(Ci,t),this.off(Ui,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Ci,t),this.once(Ui,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[Ui])return e?this.emit("error",e):this.emit(Ui),this;this[Ui]=!0,this[Di]=!0,this[bi].length=0,this[yi]=0;return"function"==typeof this.close&&!this[si]&&this.close(),e?this.emit("error",e):this.emit(Ui),this}static get isStream(){return ni}
180
- },Fi=u.writev,Gi=Symbol("_autoClose"),Mi=Symbol("_close"),zi=Symbol("_ended"),Ji=Symbol("_fd"),Wi=Symbol("_finished"),$i=Symbol("_flags"),Hi=Symbol("_flush"),Zi=Symbol("_handleChunk"),Yi=Symbol("_makeBuf"),Ki=Symbol("_mode"),Xi=Symbol("_needDrain"),Qi=Symbol("_onerror"),ed=Symbol("_onopen"),td=Symbol("_onread"),nd=Symbol("_onwrite"),rd=Symbol("_open"),od=Symbol("_path"),ad=Symbol("_pos"),id=Symbol("_queue"),dd=Symbol("_read"),pd=Symbol("_readSize"),ld=Symbol("_reading"),sd=Symbol("_remain"),ud=Symbol("_size"),md=Symbol("_write"),cd=Symbol("_writing"),vd=Symbol("_defaultFlag"),hd=Symbol("_errored"),fd=class extends Vi{[hd]=!1;[Ji];[od];[pd];[ld]=!1;[ud];[sd];[Gi];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[hd]=!1,this[Ji]="number"==typeof t.fd?t.fd:void 0,this[od]=e,this[pd]=t.readSize||16777216,this[ld]=!1,this[ud]="number"==typeof t.size?t.size:1/0,this[sd]=this[ud],
181
- this[Gi]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[Ji]?this[dd]():this[rd]()}get fd(){return this[Ji]}get path(){return this[od]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[rd](){u.open(this[od],"r",(e,t)=>this[ed](e,t))}[ed](e,t){e?this[Qi](e):(this[Ji]=t,this.emit("open",t),this[dd]())}[Yi](){return Buffer.allocUnsafe(Math.min(this[pd],this[sd]))}[dd](){if(!this[ld]){this[ld]=!0;let e=this[Yi]();if(0===e.length)return process.nextTick(()=>this[td](null,0,e));u.read(this[Ji],e,0,e.length,null,(e,t,n)=>this[td](e,t,n))}}[td](e,t,n){this[ld]=!1,e?this[Qi](e):this[Zi](t,n)&&this[dd]()}[Mi](){if(this[Gi]&&"number"==typeof this[Ji]){let e=this[Ji];this[Ji]=void 0,u.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[Qi](e){this[ld]=!0,this[Mi](),this.emit("error",e)}[Zi](e,t){let n=!1;return this[sd]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[sd]<=0)&&(n=!1,this[Mi](),
182
- super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[Ji]&&this[dd](),!1;case"error":return!this[hd]&&(this[hd]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}},Id=class extends fd{[rd](){let e=!0;try{this[ed](null,u.openSync(this[od],"r")),e=!1}finally{e&&this[Mi]()}}[dd](){let e=!0;try{if(!this[ld]){for(this[ld]=!0;;){let e=this[Yi](),t=0===e.length?0:u.readSync(this[Ji],e,0,e.length,null);if(!this[Zi](t,e))break}this[ld]=!1}e=!1}finally{e&&this[Mi]()}}[Mi](){if(this[Gi]&&"number"==typeof this[Ji]){let e=this[Ji];this[Ji]=void 0,u.closeSync(e),this.emit("close")}}},wd=class extends e{readable=!1;writable=!0;[hd]=!1;[cd]=!1;[zi]=!1;[id]=[];[Xi]=!1;[od];[Ki];[Gi];[Ji];[vd];[$i];[Wi]=!1;[ad];constructor(e,t){super(t=t||{}),this[od]=e,this[Ji]="number"==typeof t.fd?t.fd:void 0,this[Ki]=void 0===t.mode?438:t.mode,this[ad]="number"==typeof t.start?t.start:void 0,this[Gi]="boolean"!=typeof t.autoClose||t.autoClose
183
- ;let n=void 0!==this[ad]?"r+":"w";this[vd]=void 0===t.flags,this[$i]=void 0===t.flags?n:t.flags,void 0===this[Ji]&&this[rd]()}emit(e,...t){if("error"===e){if(this[hd])return!1;this[hd]=!0}return super.emit(e,...t)}get fd(){return this[Ji]}get path(){return this[od]}[Qi](e){this[Mi](),this[cd]=!0,this.emit("error",e)}[rd](){u.open(this[od],this[$i],this[Ki],(e,t)=>this[ed](e,t))}[ed](e,t){this[vd]&&"r+"===this[$i]&&e&&"ENOENT"===e.code?(this[$i]="w",this[rd]()):e?this[Qi](e):(this[Ji]=t,this.emit("open",t),this[cd]||this[Hi]())}end(e,t){return e&&this.write(e,t),this[zi]=!0,!this[cd]&&!this[id].length&&"number"==typeof this[Ji]&&this[nd](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[zi]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[Ji]||this[cd]||this[id].length?(this[id].push(e),this[Xi]=!0,!1):(this[cd]=!0,this[md](e),!0)}[md](e){u.write(this[Ji],e,0,e.length,this[ad],(e,t)=>this[nd](e,t))}[nd](e,t){
184
- e?this[Qi](e):(void 0!==this[ad]&&"number"==typeof t&&(this[ad]+=t),this[id].length?this[Hi]():(this[cd]=!1,this[zi]&&!this[Wi]?(this[Wi]=!0,this[Mi](),this.emit("finish")):this[Xi]&&(this[Xi]=!1,this.emit("drain"))))}[Hi](){if(0===this[id].length)this[zi]&&this[nd](null,0);else if(1===this[id].length)this[md](this[id].pop());else{let e=this[id];this[id]=[],Fi(this[Ji],e,this[ad],(e,t)=>this[nd](e,t))}}[Mi](){if(this[Gi]&&"number"==typeof this[Ji]){let e=this[Ji];this[Ji]=void 0,u.close(e,e=>e?this.emit("error",e):this.emit("close"))}}},bd=class extends wd{[rd](){let e;if(this[vd]&&"r+"===this[$i])try{e=u.openSync(this[od],this[$i],this[Ki])}catch(e){if("ENOENT"===e?.code)return this[$i]="w",this[rd]();throw e}else e=u.openSync(this[od],this[$i],this[Ki]);this[ed](null,e)}[Mi](){if(this[Gi]&&"number"==typeof this[Ji]){let e=this[Ji];this[Ji]=void 0,u.closeSync(e),this.emit("close")}}[md](e){let t=!0;try{this[nd](null,u.writeSync(this[Ji],e,0,e.length,this[ad])),t=!1}finally{if(t)try{
185
- this[Mi]()}catch{}}}},gd=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"]]),yd=e=>gd.get(e)||e,Rd=(e={})=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e)){t[yd(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},jd=(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=Rd(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}),Ed=p.constants||{ZLIB_VERNUM:4736},Ud=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,
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",f);const o=e.headers["sec-websocket-key"],a=e.headers.upgrade,i=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void w(this,e,t,405,"Invalid HTTP method")}if(void 0===a||"websocket"!==a.toLowerCase()){return void w(this,e,t,400,"Invalid Upgrade header")}if(void 0===o||!v.test(o)){return void w(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(13!==i&&8!==i){return void w(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"})}if(!this.shouldHandle(e))return void I(t,400);const s=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==s)try{u=l.parse(s)}catch(n){return void w(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const m=e.headers["sec-websocket-extensions"],c={};if(this.options.perMessageDeflate&&void 0!==m){const n=new p(this.options.perMessageDeflate,!0,this.options.maxPayload);try{
123
+ const e=d.parse(m);e[p.extensionName]&&(n.accept(e[p.extensionName]),c[p.extensionName]=n)}catch(n){return void w(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const a={origin:e.headers[""+(8===i?"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 I(t,i||401,d,p);this.completeUpgrade(c,o,u,e,t,n,r)});if(!this.options.verifyClient(a))return I(t,401)}this.completeUpgrade(c,o,u,e,t,n,r)}completeUpgrade(e,t,n,r,o,a,l){if(!o.readable||!o.writable)return o.destroy();if(o[c])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return I(o,503)
124
+ ;const s=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${i("sha1").update(t+m).digest("base64")}`],u=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}`),u._protocol=e)}if(e[p.extensionName]){const t=e[p.extensionName].params,n=d.format({[p.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),u._extensions=e}this.emit("headers",s,r),o.write(s.concat("\r\n").join("\r\n")),o.removeListener("error",f),u.setSocket(o,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(u),u.on("close",()=>{this.clients.delete(u),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)})),l(u,r)}}}()
125
+ ;var la="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,sa=la?po:window.fetch,ua=function(e,t){return void 0===t&&(t=50),function(n){var r=e,o=function(){return k(void 0,void 0,void 0,function(){var e;return T(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 ma=function(e){return Array.isArray(e)?e:[e]},ca=void 0!==globalThis.Bun;function va(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 da(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 ha,fa,Ia,wa,ba,ga,ya,Ra=function(e,t){return k(void 0,void 0,void 0,function(){var n;return T(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)]})})},ja=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 x(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}(n.Writable),Ea=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 k(this,void 0,void 0,function(){var r;return T(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 k(this,void 0,void 0,function(){var r;return T(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 k(this,void 0,void 0,function(){var n,r,o,a,i,d=this;return T(this,function(p){switch(p.label){case 0:return n="Error while trying to connect, please try again.",r=Yn({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},P(P({},t),{agent:this.agent})),[4,ua(2)(function(){return k(d,void 0,void 0,function(){return T(this,function(t){return[2,sa(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}(),Ua=function(e,t,n){return k(void 0,void 0,void 0,function(){var r,o,a,i,d;return T(this,function(p){switch(p.label){case 0:if(r=Sa(t||"127.0.0.1"),(o=Sa(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===v.platform()&&(a=function(e){return k(void 0,void 0,void 0,function(){var t;return T(this,function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,_a.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,p.label=1;case 1:return i<=o?(d=Na(i),[4,Ca(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."))}})})},Ca=function(e,t){return new Promise(function(n){var r=new l.Socket,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)})},_a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k(void 0,void 0,void 0,function(){return T(this,function(t){switch(t.label){case 0:return[4,Aa("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}})})},Sa=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},Na=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(".")},Aa=function(e,n,r){var o=t.spawn(e,n,P({windowsHide:!0},r)),a=new Promise(function(t,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(n.join(" "),"': ").concat(i);r({message:p,result:d})}else t(d)})});return{process:o,resultPromise:a}},xa=function(e,t,n){return k(void 0,void 0,void 0,function(){var r,o;return T(this,function(a){switch(a.label){case 0:return r=Pa(e,10),[4,m.promises.writeFile(r,t,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,6]),[4,m.promises.rename(r,e)];case 3:return a.sent(),[3,6];case 4:return o=a.sent(),
132
+ [4,m.promises.unlink(r).catch(function(){})];case 5:throw a.sent(),o;case 6:return[2]}})})},Pa=function(e,t){for(var n=function(e){return D([],Array(e),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},r=c.dirname(e),o=c.basename(e),a=0;a<t;a+=1){var i=n(16),d=".".concat(i,".").concat(o),p=c.join(r,d);if(!m.existsSync(p))return p}throw new Error("Could not write file to file '".concat(e,"'."))},ka="win32"===process.platform?"\r\n":"\n",Ta=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;Fa(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 zn(this.findEntries(e),function(e){return e.hosts.map(function(e){return e.host})})},e.prototype.resolveIps=function(e){return Fa(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 qa(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||$(t)&&"[object Number]"==W(t)?e:this.nodes.findIndex(function(t){return t===e})
134
+ ;n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return Fa(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=La(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?[Da(),Oa(o),r]:[Oa(o),r];this.insertAt.apply(this,D([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,D([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return P({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=Fa(t,"eol").map(function(e){return e.line});return null!==(e=Ga(n))&&void 0!==e?e:ka}(),indent:null!==(o=null==n?void 0:n.indent)&&void 0!==o?o:function(){var e,n=zn(Fa(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=Ga(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Ba(e),t)},e}(),Da=function(){return{type:"blank",line:""}},Oa=function(e){return{type:"comment",line:La(e)}},La=function(e){return e.startsWith("#")?e:"# ".concat(e)},qa=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:ka)},Ba=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}:Va(e)})},Va=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=zn(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}},Fa=function(e,t){return e.filter(function(e){return e.type===t})},Ga=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=Hn(Array.from(t.entries()),function(e){return e[1]});if(n)return n[0]},Ma="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",za=function(){function e(e){
137
+ this.ast=Ta.fromNodes([]);var t={writeMode:"atomic",hostsFile:Ma};this.config=P(P({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!$n(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!$n(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(!$n(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!$n(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(!$n(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(!$n(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 k(this,void 0,void 0,function(){var e;return T(this,function(t){switch(t.label){case 0:return[4,m.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=Ta.parse(e.toString(),this.config),[2,this]}})})},e.prototype.write=function(e){return k(this,void 0,void 0,function(){var t,n,r,o;return T(this,function(a){switch(a.label){case 0:switch(t=P(P({},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,xa(n,o)];case 2:case 4:return a.sent(),[3,6];case 3:return[4,m.promises.writeFile(n,o)];case 5:return[3,6];case 6:return[2,this]}})})},
139
+ e.prototype.backup=function(e){return k(this,void 0,void 0,function(){var t,n,r,o;return T(this,function(a){switch(a.label){case 0:return m.existsSync(this.config.hostsFile)?(t=c.dirname(this.config.hostsFile),n=c.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),o=c.resolve(t,r),m.existsSync(o)&&!e.rewrite?[3,2]:[4,m.promises.copyFile(this.config.hostsFile,o)]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.load=function(t){return k(this,void 0,void 0,function(){return T(this,function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}})})},e}(),Ja=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 k(this,void 0,void 0,function(){var t,n=this;return T(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}(),Wa={exports:{}};function $a(){if(Ia)return Wa.exports;Ia=1;var e=(fa||(fa=1,ha=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}}),ha);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 Wa.exports=e(t),Wa.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})}),Wa.exports}function Ha(){if(ba)return wa;ba=1;var e=$a(),t=function(){},n=Kn.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"))},b=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?b():o.on("request",b)),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",b),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 wa=r}var Za=function(){if(ya)return ga;ya=1;var e,t=$a(),n=Ha();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 ga=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)},ga}(),Ya=Xn(Za),Ka=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=N.createServer(d.handleConnection.bind(d))
144
+ ;var p=null==r?void 0:r.altHostnames.map(function(e){return(t=Ct(t=e))&&Gn.test(t)?t.replace(Fn,"\\$&"):t;var t}).join("|");return d.hostRegex=new RegExp("Host: (?:".concat(p,")(:.*$|$)"),"im"),d}return x(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 k(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),T(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 k(this,void 0,void 0,function(){var e,t=this;return T(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 da(n,{headers:this.headers,agent:this.agent}),o=na(r),a=this.getHeaderTransform();this.rewriteHostHeader&&a?Ya(e,a,o):Ya(e,o),Ya(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,r=t.targetHostname,o=t.altHostnames,a=this.hostRegex;return new n.Transform({transform:function(t,n,i){var d=t.toString();if(d.split("\n",1)[0].includes("HTTP")&&a.test(d)){var p=o.map(function(e){return"Host: ".concat(e)});i(null,e(t,p,"Host: ".concat(r)))}else i(null,t)}})}},t}(e.EventEmitter),Xa=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=f.createSocket("udp4"),a.handleConnection(),a}return x(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 k(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),T(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 k(this,void 0,void 0,function(){var e=this;return T(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 da(n,{headers:this.headers,agent:this.agent}),o=na(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}(e.EventEmitter),Qa=function(e){function n(n,r,o,a){var i=e.call(this)||this;return i.contextProvider=n,i.listServices=r,i.listAddons=o,i.agent=a,
149
+ i.connections=[],i.hostsFileMutex=new Ja,i.ipAllocationMutex=new Ja,i.stopForwarding=function(e){return k(i,void 0,void 0,function(){var t,n,r,o,a,i,d;return T(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 t.execSync("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return t.execSync("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(!la)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new Ea(n,a),i}return x(n,e),n.prototype.withProjectForwarding=function(e,t){return k(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),T(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]}})})},n.prototype.forwardProject=function(e){return k(this,arguments,void 0,function(e,t){var n,r,o,a,i,d=this
151
+ ;return void 0===t&&(t=!0),T(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 k(d,void 0,void 0,function(){return T(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 k(d,void 0,void 0,function(){return T(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}]}})})},n.prototype.withServiceForwarding=function(e,t){return k(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),T(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]}})})},n.prototype.forwardService=function(e){return k(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),T(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=D([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,Ra(c,m)]);case 2:return[2,h.sent()]}})})},n.prototype.withAddonForwarding=function(e,t){return k(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),T(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]}})})},n.prototype.forwardAddon=function(e){return k(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p=this;return void 0===t&&(t=!0),T(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,Ra((s=i,null!=s&&s.length?kt(s,Jn):[]),function(e){return k(p,[e],void 0,function(e){var n,i=e.podName,p=e.internalHostname,l=e.port;return T(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})})},n.prototype.allocateIpAddress=function(e){return k(this,void 0,void 0,function(){var t=this;return T(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return k(t,void 0,void 0,function(){var t,n,r,o,a;return T(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,Ua(e,r,n)];case 1:return o=i.sent(),this.nextIpAddress=Na(Sa(o)+1),Sa(this.nextIpAddress)>Sa(n)&&(this.nextIpAddress=t),[2,o]}})})})]})})},n.prototype.forwardPort=function(e,t,n,r,o,a){return k(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),T(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 Xa(e,l,u,this.agent):new Ka(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 k(f,void 0,void 0,function(){return T(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}]}})})},n.prototype.determineSocketAddress=function(e,t,n,r,o,a,i){return k(this,void 0,void 0,function(){var d,p,l,s;return T(this,function(u){switch(u.label){case 0:return a&&"darwin"===v.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
+ n.prototype.consistentHostnameToPortHashing=function(e){var t=u.createHash("sha256").update(e).digest("hex");return 3e4+parseInt(t.slice(0,8),16)%3e4},n.prototype.registerHostnames=function(e,t){return k(this,void 0,void 0,function(){return T(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,t),n.add.apply(n,D([e],t,!1))})];case 1:return n.sent(),[2]}})})},n.prototype.unregisterHostnames=function(e,t){return k(this,void 0,void 0,function(){return T(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,D([e],t,!1))})];case 1:return n.sent(),[2]}})})},n.prototype.modifyHostsFile=function(e){return k(this,void 0,void 0,function(){var t=this;return T(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return k(t,void 0,void 0,function(){var t,n=this;return T(this,function(r){switch(r.label){case 0:return[4,za.load({header:"Northflank Proxy"})];case 1:
159
+ 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,ua(5)(function(){return k(n,void 0,void 0,function(){return T(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,ua(5)(function(){return k(n,void 0,void 0,function(){return T(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]}})})},n.prototype.stopProjectForwarding=function(e){return k(this,void 0,void 0,function(){var t=this;return T(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]}})})},
160
+ n.prototype.stopServiceForwarding=function(e){return k(this,void 0,void 0,function(){var t=this;return T(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]}})})},n.prototype.stopAddonForwarding=function(e){return k(this,void 0,void 0,function(){var t=this;return T(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]}})})},n.prototype.stop=function(){return k(this,void 0,void 0,function(){var e=this;return T(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.connections.map(function(t){
161
+ return k(e,void 0,void 0,function(){return T(this,function(e){return[2,this.stopForwarding(t)]})})}))];case 1:return t.sent(),[2]}})})},n}(e.EventEmitter),ei=function(e){function t(t,n,r,o,a,i,d){void 0===a&&(a=new _.PassThrough),void 0===i&&(i=new _.PassThrough),void 0===d&&(d=new _.PassThrough);var p=e.call(this)||this;return p.baseUrl=t,p.execConfig=n,p.token=r,p.agent=o,p.stdOut=a,p.stdErr=i,p.stdIn=d,p.waitForCommandResult=function(){return k(p,void 0,void 0,function(){return T(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()]}})})},p.sendInputToCurrentCommand=function(e){return k(p,void 0,void 0,function(){return T(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]})})},p.resizeTerminal=function(e){return k(p,void 0,void 0,function(){
162
+ return T(this,function(t){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]})})},p.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},p.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),p}return x(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:
163
+ throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return k(this,void 0,void 0,function(){var e=this;return T(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=va(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(),
164
+ t(r)):a("Connection closed before receiving command result"):a("WebSocket closed unexpectedly: ".concat(n," ").concat(i||"(no reason)"))});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":
165
+ 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":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
166
+ ;null===(e=this.remote)||void 0===e||e.terminate(),this.remote=void 0,this.currentCommand=void 0},t}(e.EventEmitter),ti=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.assertStartedWithNodejs=function(){if(!la)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){return n=e.serviceId,r=e.projectId,o=e.teamId,a=P({teamId:o,projectId:r,entityId:n,entityType:"service"},t),[2,this.execCommand(a)]})})},e.prototype.execServiceSession=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i;return T(this,function(d){switch(d.label){case 0:return r=e.serviceId,o=e.projectId,a=e.teamId,i=P({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 k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){
167
+ return n=e.jobId,r=e.projectId,o=e.teamId,a=P({teamId:o,projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(a)]})})},e.prototype.execJobSession=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i;return T(this,function(d){switch(d.label){case 0:return r=e.jobId,o=e.projectId,a=e.teamId,i=P({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 k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){return n=e.addonId,r=e.projectId,o=e.teamId,a=P({teamId:o,projectId:r,entityId:n,entityType:"addon"},t),[2,this.execCommand(a)]})})},e.prototype.execAddonSession=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i;return T(this,function(d){switch(d.label){case 0:return r=e.addonId,o=e.projectId,a=e.teamId,i=P({teamId:a,projectId:o,entityId:r,entityType:"addon"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},
168
+ e.prototype.execCommand=function(e){return k(this,void 0,void 0,function(){var t,n,r,o,a;return T(this,function(i){switch(i.label){case 0:this.assertStartedWithNodejs(),t=this.getCommandRunner(P({shell:"none"},e)),n=new ja,r=new ja,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 k(this,void 0,void 0,function(){var n,r;return T(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){
169
+ 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 ei(t,e,n,this.agent)},e}(),ni=Object.defineProperty,ri="object"==typeof process&&process?process:{stdout:null,stderr:null
170
+ },oi=e=>!!e&&"object"==typeof e&&(e instanceof Gi||e instanceof n||ai(e)||ii(e)),ai=e=>!!e&&"object"==typeof e&&e instanceof I.EventEmitter&&"function"==typeof e.pipe&&e.pipe!==n.Writable.prototype.pipe,ii=e=>!!e&&"object"==typeof e&&e instanceof I.EventEmitter&&"function"==typeof e.write&&"function"==typeof e.end,di=Symbol("EOF"),pi=Symbol("maybeEmitEnd"),li=Symbol("emittedEnd"),si=Symbol("emittingEnd"),ui=Symbol("emittedError"),mi=Symbol("closed"),ci=Symbol("read"),vi=Symbol("flush"),hi=Symbol("flushChunk"),fi=Symbol("encoding"),Ii=Symbol("decoder"),wi=Symbol("flowing"),bi=Symbol("paused"),gi=Symbol("resume"),yi=Symbol("buffer"),Ri=Symbol("pipes"),ji=Symbol("bufferLength"),Ei=Symbol("bufferPush"),Ui=Symbol("bufferShift"),Ci=Symbol("objectMode"),_i=Symbol("destroyed"),Si=Symbol("error"),Ni=Symbol("emitData"),Ai=Symbol("emitEnd"),xi=Symbol("emitEnd2"),Pi=Symbol("async"),ki=Symbol("abort"),Ti=Symbol("aborted"),Di=Symbol("signal"),Oi=Symbol("dataListeners"),Li=Symbol("discarded"),qi=e=>Promise.resolve().then(e),Bi=e=>e(),Vi=class{
171
+ src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[gi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Fi=class extends Vi{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)}},Gi=class extends I.EventEmitter{[wi]=!1;[bi]=!1;[Ri]=[];[yi]=[];[Ci];[fi];[Pi];[Ii];[di]=!1;[li]=!1;[si]=!1;[mi]=!1;[ui]=null;[ji]=0;[_i]=!1;[Di];[Ti]=!1;[Oi]=0;[Li]=!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[Ci]=!0,this[fi]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[fi]=t.encoding,this[Ci]=!1):(this[Ci]=!1,this[fi]=null),this[Pi]=!!t.async,
172
+ this[Ii]=this[fi]?new w.StringDecoder(this[fi]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[yi]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Ri]});let{signal:n}=t;n&&(this[Di]=n,n.aborted?this[ki]():n.addEventListener("abort",()=>this[ki]()))}get bufferLength(){return this[ji]}get encoding(){return this[fi]}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[Ci]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Pi]}set async(e){this[Pi]=this[Pi]||!!e}[ki](){this[Ti]=!0,this.emit("abort",this[Di]?.reason),this.destroy(this[Di]?.reason)}get aborted(){return this[Ti]}set aborted(e){}write(e,t,n){if(this[Ti])return!1;if(this[di])throw new Error("write after end")
173
+ ;if(this[_i])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[Pi]?qi:Bi;if(!this[Ci]&&!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[Ci]?(this[wi]&&0!==this[ji]&&this[vi](!0),this[wi]?this.emit("data",e):this[Ei](e),0!==this[ji]&&this.emit("readable"),n&&r(n),this[wi]):e.length?("string"==typeof e&&!(t===this[fi]&&!this[Ii]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[fi]&&(e=this[Ii].write(e)),this[wi]&&0!==this[ji]&&this[vi](!0),this[wi]?this.emit("data",e):this[Ei](e),
174
+ 0!==this[ji]&&this.emit("readable"),n&&r(n),this[wi]):(0!==this[ji]&&this.emit("readable"),n&&r(n),this[wi])}read(e){if(this[_i])return null;if(this[Li]=!1,0===this[ji]||0===e||e&&e>this[ji])return this[pi](),null;this[Ci]&&(e=null),this[yi].length>1&&!this[Ci]&&(this[yi]=[this[fi]?this[yi].join(""):Buffer.concat(this[yi],this[ji])]);let t=this[ci](e||null,this[yi][0]);return this[pi](),t}[ci](e,t){if(this[Ci])this[Ui]();else{let n=t;e===n.length||null===e?this[Ui]():"string"==typeof n?(this[yi][0]=n.slice(e),t=n.slice(0,e),this[ji]-=e):(this[yi][0]=n.subarray(e),t=n.subarray(0,e),this[ji]-=e)}return this.emit("data",t),!this[yi].length&&!this[di]&&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[di]=!0,this.writable=!1,(this[wi]||!this[bi])&&this[pi](),this}[gi](){this[_i]||(!this[Oi]&&!this[Ri].length&&(this[Li]=!0),this[bi]=!1,this[wi]=!0,this.emit("resume"),
175
+ this[yi].length?this[vi]():this[di]?this[pi]():this.emit("drain"))}resume(){return this[gi]()}pause(){this[wi]=!1,this[bi]=!0,this[Li]=!1}get destroyed(){return this[_i]}get flowing(){return this[wi]}get paused(){return this[bi]}[Ei](e){this[Ci]?this[ji]+=1:this[ji]+=e.length,this[yi].push(e)}[Ui](){return this[Ci]?this[ji]-=1:this[ji]-=this[yi][0].length,this[yi].shift()}[vi](e=!1){do{}while(this[hi](this[Ui]())&&this[yi].length);!e&&!this[yi].length&&!this[di]&&this.emit("drain")}[hi](e){return this.emit("data",e),this[wi]}pipe(e,t){if(this[_i])return e;this[Li]=!1;let n=this[li];return t=t||{},e===ri.stdout||e===ri.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[Ri].push(t.proxyErrors?new Fi(this,e,t):new Vi(this,e,t)),this[Pi]?qi(()=>this[gi]()):this[gi]()),e}unpipe(e){let t=this[Ri].find(t=>t.dest===e);t&&(1===this[Ri].length?(this[wi]&&0===this[Oi]&&(this[wi]=!1),this[Ri]=[]):this[Ri].splice(this[Ri].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[Li]=!1,this[Oi]++,!this[Ri].length&&!this[wi]&&this[gi]();else if("readable"===e&&0!==this[ji])super.emit("readable");else if("end"!==(r=e)&&"finish"!==r&&"prefinish"!==r||!this[li]){if("error"===e&&this[ui]){let e=t;this[Pi]?qi(()=>e.call(this,this[ui])):e.call(this,this[ui])}}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[Oi]=this.listeners("data").length,0===this[Oi]&&!this[Li]&&!this[Ri].length&&(this[wi]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return("data"===e||void 0===e)&&(this[Oi]=0,!this[Li]&&!this[Ri].length&&(this[wi]=!1)),t}get emittedEnd(){return this[li]}[pi](){!this[si]&&!this[li]&&!this[_i]&&0===this[yi].length&&this[di]&&(this[si]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[mi]&&this.emit("close"),this[si]=!1)}emit(e,...t){
177
+ let n=t[0];if("error"!==e&&"close"!==e&&e!==_i&&this[_i])return!1;if("data"===e)return!(!this[Ci]&&!n)&&(this[Pi]?(qi(()=>this[Ni](n)),!0):this[Ni](n));if("end"===e)return this[Ai]();if("close"===e){if(this[mi]=!0,!this[li]&&!this[_i])return!1;let e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[ui]=n,super.emit(Si,n);let e=!(this[Di]&&!this.listeners("error").length)&&super.emit("error",n);return this[pi](),e}if("resume"===e){let e=super.emit("resume");return this[pi](),e}if("finish"===e||"prefinish"===e){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[pi](),r}[Ni](e){for(let t of this[Ri])!1===t.dest.write(e)&&this.pause();let t=!this[Li]&&super.emit("data",e);return this[pi](),t}[Ai](){return!this[li]&&(this[li]=!0,this.readable=!1,this[Pi]?(qi(()=>this[xi]()),!0):this[xi]())}[xi](){if(this[Ii]){let e=this[Ii].end();if(e){for(let t of this[Ri])t.dest.write(e);this[Li]||super.emit("data",e)}}
178
+ for(let e of this[Ri])e.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ci]||(e.dataLength=0);let t=this.promise();return this.on("data",t=>{e.push(t),this[Ci]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[Ci])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[fi]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(_i,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Li]=!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[di])return t();let r,o,a=e=>{this.off("data",i),this.off("end",d),this.off(_i,p),t(),o(e)},i=e=>{this.off("error",a),this.off("end",d),this.off(_i,p),this.pause(),r({value:e,done:!!this[di]})},d=()=>{
179
+ this.off("error",a),this.off("data",i),this.off(_i,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(_i,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[Li]=!1;let e=!1,t=()=>(this.pause(),this.off(Si,t),this.off(_i,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Si,t),this.once(_i,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[_i])return e?this.emit("error",e):this.emit(_i),this;this[_i]=!0,this[Li]=!0,this[yi].length=0,this[ji]=0;return"function"==typeof this.close&&!this[mi]&&this.close(),e?this.emit("error",e):this.emit(_i),this}static get isStream(){return oi}
180
+ },Mi=m.writev,zi=Symbol("_autoClose"),Ji=Symbol("_close"),Wi=Symbol("_ended"),$i=Symbol("_fd"),Hi=Symbol("_finished"),Zi=Symbol("_flags"),Yi=Symbol("_flush"),Ki=Symbol("_handleChunk"),Xi=Symbol("_makeBuf"),Qi=Symbol("_mode"),ed=Symbol("_needDrain"),td=Symbol("_onerror"),nd=Symbol("_onopen"),rd=Symbol("_onread"),od=Symbol("_onwrite"),ad=Symbol("_open"),id=Symbol("_path"),dd=Symbol("_pos"),pd=Symbol("_queue"),ld=Symbol("_read"),sd=Symbol("_readSize"),ud=Symbol("_reading"),md=Symbol("_remain"),cd=Symbol("_size"),vd=Symbol("_write"),hd=Symbol("_writing"),fd=Symbol("_defaultFlag"),Id=Symbol("_errored"),wd=class extends Gi{[Id]=!1;[$i];[id];[sd];[ud]=!1;[cd];[md];[zi];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[Id]=!1,this[$i]="number"==typeof t.fd?t.fd:void 0,this[id]=e,this[sd]=t.readSize||16777216,this[ud]=!1,this[cd]="number"==typeof t.size?t.size:1/0,this[md]=this[cd],
181
+ this[zi]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[$i]?this[ld]():this[ad]()}get fd(){return this[$i]}get path(){return this[id]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[ad](){m.open(this[id],"r",(e,t)=>this[nd](e,t))}[nd](e,t){e?this[td](e):(this[$i]=t,this.emit("open",t),this[ld]())}[Xi](){return Buffer.allocUnsafe(Math.min(this[sd],this[md]))}[ld](){if(!this[ud]){this[ud]=!0;let e=this[Xi]();if(0===e.length)return process.nextTick(()=>this[rd](null,0,e));m.read(this[$i],e,0,e.length,null,(e,t,n)=>this[rd](e,t,n))}}[rd](e,t,n){this[ud]=!1,e?this[td](e):this[Ki](t,n)&&this[ld]()}[Ji](){if(this[zi]&&"number"==typeof this[$i]){let e=this[$i];this[$i]=void 0,m.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[td](e){this[ud]=!0,this[Ji](),this.emit("error",e)}[Ki](e,t){let n=!1;return this[md]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[md]<=0)&&(n=!1,this[Ji](),
182
+ super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[$i]&&this[ld](),!1;case"error":return!this[Id]&&(this[Id]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}},bd=class extends wd{[ad](){let e=!0;try{this[nd](null,m.openSync(this[id],"r")),e=!1}finally{e&&this[Ji]()}}[ld](){let e=!0;try{if(!this[ud]){for(this[ud]=!0;;){let e=this[Xi](),t=0===e.length?0:m.readSync(this[$i],e,0,e.length,null);if(!this[Ki](t,e))break}this[ud]=!1}e=!1}finally{e&&this[Ji]()}}[Ji](){if(this[zi]&&"number"==typeof this[$i]){let e=this[$i];this[$i]=void 0,m.closeSync(e),this.emit("close")}}},gd=class extends e{readable=!1;writable=!0;[Id]=!1;[hd]=!1;[Wi]=!1;[pd]=[];[ed]=!1;[id];[Qi];[zi];[$i];[fd];[Zi];[Hi]=!1;[dd];constructor(e,t){super(t=t||{}),this[id]=e,this[$i]="number"==typeof t.fd?t.fd:void 0,this[Qi]=void 0===t.mode?438:t.mode,this[dd]="number"==typeof t.start?t.start:void 0,this[zi]="boolean"!=typeof t.autoClose||t.autoClose
183
+ ;let n=void 0!==this[dd]?"r+":"w";this[fd]=void 0===t.flags,this[Zi]=void 0===t.flags?n:t.flags,void 0===this[$i]&&this[ad]()}emit(e,...t){if("error"===e){if(this[Id])return!1;this[Id]=!0}return super.emit(e,...t)}get fd(){return this[$i]}get path(){return this[id]}[td](e){this[Ji](),this[hd]=!0,this.emit("error",e)}[ad](){m.open(this[id],this[Zi],this[Qi],(e,t)=>this[nd](e,t))}[nd](e,t){this[fd]&&"r+"===this[Zi]&&e&&"ENOENT"===e.code?(this[Zi]="w",this[ad]()):e?this[td](e):(this[$i]=t,this.emit("open",t),this[hd]||this[Yi]())}end(e,t){return e&&this.write(e,t),this[Wi]=!0,!this[hd]&&!this[pd].length&&"number"==typeof this[$i]&&this[od](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[Wi]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[$i]||this[hd]||this[pd].length?(this[pd].push(e),this[ed]=!0,!1):(this[hd]=!0,this[vd](e),!0)}[vd](e){m.write(this[$i],e,0,e.length,this[dd],(e,t)=>this[od](e,t))}[od](e,t){
184
+ e?this[td](e):(void 0!==this[dd]&&"number"==typeof t&&(this[dd]+=t),this[pd].length?this[Yi]():(this[hd]=!1,this[Wi]&&!this[Hi]?(this[Hi]=!0,this[Ji](),this.emit("finish")):this[ed]&&(this[ed]=!1,this.emit("drain"))))}[Yi](){if(0===this[pd].length)this[Wi]&&this[od](null,0);else if(1===this[pd].length)this[vd](this[pd].pop());else{let e=this[pd];this[pd]=[],Mi(this[$i],e,this[dd],(e,t)=>this[od](e,t))}}[Ji](){if(this[zi]&&"number"==typeof this[$i]){let e=this[$i];this[$i]=void 0,m.close(e,e=>e?this.emit("error",e):this.emit("close"))}}},yd=class extends gd{[ad](){let e;if(this[fd]&&"r+"===this[Zi])try{e=m.openSync(this[id],this[Zi],this[Qi])}catch(e){if("ENOENT"===e?.code)return this[Zi]="w",this[ad]();throw e}else e=m.openSync(this[id],this[Zi],this[Qi]);this[nd](null,e)}[Ji](){if(this[zi]&&"number"==typeof this[$i]){let e=this[$i];this[$i]=void 0,m.closeSync(e),this.emit("close")}}[vd](e){let t=!0;try{this[od](null,m.writeSync(this[$i],e,0,e.length,this[dd])),t=!1}finally{if(t)try{
185
+ this[Ji]()}catch{}}}},Rd=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"]]),jd=e=>Rd.get(e)||e,Ed=(e={})=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e)){t[jd(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},Ud=(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=Ed(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}),Cd=p.constants||{ZLIB_VERNUM:4736},_d=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,
187
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,
188
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,
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},Ed)),Cd=h.Buffer.concat,_d=Object.getOwnPropertyDescriptor(h.Buffer,"concat"),Sd=e=>e,Nd=!0===_d?.writable||void 0!==_d?.set?e=>{h.Buffer.concat=e?Sd:Cd}:e=>{},Ad=Symbol("_superWrite"),xd=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"}},Pd=Symbol("flushFlag"),kd=class extends Vi{#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 S[t])throw new TypeError("Compression method not supported: "+t);try{this.#a=new S[t](e)}catch(e){throw new xd(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 xd(e))),this.once("end",()=>this.close)}close(){this.#a&&(this.#a.close(),this.#a=void 0,this.emit("close"))}reset(){if(!this.#e)return y(this.#a,"zlib binding closed"),this.#a.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#o),this.write(Object.assign(h.Buffer.alloc(0),{[Pd]: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}[Ad](e){return super.write(e)}write(e,t,n){
191
- if("function"==typeof t&&(n=t,t="utf8"),"string"==typeof e&&(e=h.Buffer.from(e,t)),this.#e)return;y(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=()=>{},Nd(!0);try{let t="number"==typeof e[Pd]?e[Pd]:this.#n;a=this.#a._processChunk(e,t),Nd(!1)}catch(e){Nd(!1),this.#i(new xd(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 xd(e,this.write))),a)if(Array.isArray(a)&&a.length>0){let e=a[0];i=this[Ad](h.Buffer.from(e));for(let e=1;e<a.length;e++)i=this[Ad](a[e])}else i=this[Ad](h.Buffer.from(a));return n&&n(),i}},Td=class extends kd{#e;#t;constructor(e,t){(e=e||{}).flush=e.flush||Ud.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Ud.Z_FINISH,e.fullFlushFlag=Ud.Z_FULL_FLUSH,super(e,t),this.#e=e.level,this.#t=e.strategy}params(e,t){if(!this.sawError){
192
- if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==e||this.#t!==t){this.flush(Ud.Z_SYNC_FLUSH),y(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)}}}},Dd=class extends Td{#e;constructor(e){super(e,"Gzip"),this.#e=e&&!!e.portable}[Ad](e){return this.#e?(this.#e=!1,e[9]=255,super[Ad](e)):super[Ad](e)}},Od=class extends Td{constructor(e){super(e,"Unzip")}},Ld=class extends kd{constructor(e,t){(e=e||{}).flush=e.flush||Ud.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Ud.BROTLI_OPERATION_FINISH,e.fullFlushFlag=Ud.BROTLI_OPERATION_FLUSH,super(e,t)}},qd=class extends Ld{constructor(e){super(e,"BrotliCompress")}},Bd=class extends Ld{constructor(e){super(e,"BrotliDecompress")}
193
- },Vd=class extends kd{constructor(e,t){(e=e||{}).flush=e.flush||Ud.ZSTD_e_continue,e.finishFlush=e.finishFlush||Ud.ZSTD_e_end,e.fullFlushFlag=Ud.ZSTD_e_flush,super(e,t)}},Fd=class extends Vd{constructor(e){super(e,"ZstdCompress")}},Gd=class extends Vd{constructor(e){super(e,"ZstdDecompress")}},Md=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},zd=(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]=$d(o):0===o?t[r-1]=0:(n=!0,t[r-1]=Hd(o))}},Jd=e=>{for(var t=e.length,n=0,r=!1,o=t-1;o>-1;o--){var a,i=Number(e[o]);r?a=$d(i):0===i?a=i:(r=!0,a=Hd(i)),0!==a&&(n-=a*Math.pow(256,t-o-1))}return n},Wd=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},$d=e=>255&(255^e),Hd=e=>1+(255^e)&255;((e,t)=>{for(var n in t)ei(e,n,{get:t[n],enumerable:!0})})({},{code:()=>Xd,isCode:()=>Zd,isName:()=>Yd,name:()=>Kd})
194
- ;var Zd=e=>Kd.has(e),Yd=e=>Xd.has(e),Kd=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"]]),Xd=new Map(Array.from(Kd).map(e=>[e[1],e[0]])),Qd=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??tp(e,t,100),this.mode=n?.mode??r?.mode??op(e,t+100,8),this.uid=n?.uid??r?.uid??op(e,t+108,8),
195
- this.gid=n?.gid??r?.gid??op(e,t+116,8),this.size=n?.size??r?.size??op(e,t+124,12),this.mtime=n?.mtime??r?.mtime??np(e,t+136,12),this.cksum=op(e,t+148,12),r&&this.#t(r,!0),n&&this.#t(n);let o=tp(e,t+156,1);if(Zd(o)&&(this.#e=o||"0"),"0"===this.#e&&"/"===this.path.slice(-1)&&(this.#e="5"),"5"===this.#e&&(this.size=0),this.linkpath=tp(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=n?.uname??r?.uname??tp(e,t+265,32),this.gname=n?.gname??r?.gname??tp(e,t+297,32),this.devmaj=n?.devmaj??r?.devmaj??op(e,t+329,8)??0,this.devmin=n?.devmin??r?.devmin??op(e,t+337,8)??0,0!==e[t+475]){let n=tp(e,t+345,155);this.path=n+"/"+this.path}else{let o=tp(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=n?.atime??r?.atime??np(e,t+476,12),this.ctime=n?.ctime??r?.ctime??np(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=ep(this.path||"",n),o=r[0],a=r[1];this.needPax=!!r[2],this.needPax=cp(e,t,100,o)||this.needPax,this.needPax=dp(e,t+100,8,this.mode)||this.needPax,this.needPax=dp(e,t+108,8,this.uid)||this.needPax,this.needPax=dp(e,t+116,8,this.gid)||this.needPax,this.needPax=dp(e,t+124,12,this.size)||this.needPax,this.needPax=up(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=dp(e,t+329,8,this.devmaj)||this.needPax,
197
- this.needPax=dp(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=up(e,t+476,12,this.atime)||this.needPax,this.needPax=up(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,dp(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#e?this.#e:Kd.get(this.#e)}get typeKey(){return this.#e}set type(e){let t=String(Xd.get(e));if(Zd(t)||"Unsupported"===t)this.#e=t;else{if(!Zd(e))throw new TypeError("invalid entry type: "+e);this.#e=e}}},ep=(e,t)=>{let n,r=e,o="",a=b.posix.parse(e).root||".";if(Buffer.byteLength(r)<100)n=[r,o,!1];else{o=b.posix.dirname(r),r=b.posix.basename(r);do{
198
- 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=b.posix.join(b.posix.basename(o),r),o=b.posix.dirname(o))}while(o!==a&&void 0===n);n||(n=[e.slice(0,99),"",!0])}return n},tp=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),np=(e,t,n)=>rp(op(e,t,n)),rp=e=>void 0===e?void 0:new Date(1e3*e),op=(e,t,n)=>128&Number(e[t])?(e=>{let t=e[0],n=128===t?Wd(e.subarray(1,e.length)):255===t?Jd(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)):ap(e,t,n),ap=(e,t,n)=>(e=>isNaN(e)?void 0:e)(parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8)),ip={12:8589934591,8:2097151},dp=(e,t,n,r)=>void 0!==r&&(r>ip[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?zd(e,t):Md(e,t)
199
- })(r,e.subarray(t,t+n)),!0):(pp(e,t,n,r),!1)),pp=(e,t,n,r)=>e.write(lp(r,n),t,n,"ascii"),lp=(e,t)=>sp(Math.floor(e).toString(8),t),sp=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",up=(e,t,n,r)=>void 0!==r&&dp(e,t,n,r.getTime()/1e3),mp=new Array(156).join("\0"),cp=(e,t,n,r)=>void 0!==r&&(e.write(r+mp,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n),vp=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 Qd({
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},Cd)),Sd=h.Buffer.concat,Nd=Object.getOwnPropertyDescriptor(h.Buffer,"concat"),Ad=e=>e,xd=!0===Nd?.writable||void 0!==Nd?.set?e=>{h.Buffer.concat=e?Ad:Sd}:e=>{},Pd=Symbol("_superWrite"),kd=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"}},Td=Symbol("flushFlag"),Dd=class extends Gi{#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 S[t])throw new TypeError("Compression method not supported: "+t);try{this.#a=new S[t](e)}catch(e){throw new kd(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 kd(e))),this.once("end",()=>this.close)}close(){this.#a&&(this.#a.close(),this.#a=void 0,this.emit("close"))}reset(){if(!this.#e)return y(this.#a,"zlib binding closed"),this.#a.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#o),this.write(Object.assign(h.Buffer.alloc(0),{[Td]: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}[Pd](e){return super.write(e)}write(e,t,n){
191
+ if("function"==typeof t&&(n=t,t="utf8"),"string"==typeof e&&(e=h.Buffer.from(e,t)),this.#e)return;y(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=()=>{},xd(!0);try{let t="number"==typeof e[Td]?e[Td]:this.#n;a=this.#a._processChunk(e,t),xd(!1)}catch(e){xd(!1),this.#i(new kd(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 kd(e,this.write))),a)if(Array.isArray(a)&&a.length>0){let e=a[0];i=this[Pd](h.Buffer.from(e));for(let e=1;e<a.length;e++)i=this[Pd](a[e])}else i=this[Pd](h.Buffer.from(a));return n&&n(),i}},Od=class extends Dd{#e;#t;constructor(e,t){(e=e||{}).flush=e.flush||_d.Z_NO_FLUSH,e.finishFlush=e.finishFlush||_d.Z_FINISH,e.fullFlushFlag=_d.Z_FULL_FLUSH,super(e,t),this.#e=e.level,this.#t=e.strategy}params(e,t){if(!this.sawError){
192
+ if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==e||this.#t!==t){this.flush(_d.Z_SYNC_FLUSH),y(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)}}}},Ld=class extends Od{#e;constructor(e){super(e,"Gzip"),this.#e=e&&!!e.portable}[Pd](e){return this.#e?(this.#e=!1,e[9]=255,super[Pd](e)):super[Pd](e)}},qd=class extends Od{constructor(e){super(e,"Unzip")}},Bd=class extends Dd{constructor(e,t){(e=e||{}).flush=e.flush||_d.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||_d.BROTLI_OPERATION_FINISH,e.fullFlushFlag=_d.BROTLI_OPERATION_FLUSH,super(e,t)}},Vd=class extends Bd{constructor(e){super(e,"BrotliCompress")}},Fd=class extends Bd{constructor(e){super(e,"BrotliDecompress")}
193
+ },Gd=class extends Dd{constructor(e,t){(e=e||{}).flush=e.flush||_d.ZSTD_e_continue,e.finishFlush=e.finishFlush||_d.ZSTD_e_end,e.fullFlushFlag=_d.ZSTD_e_flush,super(e,t)}},Md=class extends Gd{constructor(e){super(e,"ZstdCompress")}},zd=class extends Gd{constructor(e){super(e,"ZstdDecompress")}},Jd=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},Wd=(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]=Zd(o):0===o?t[r-1]=0:(n=!0,t[r-1]=Yd(o))}},$d=e=>{for(var t=e.length,n=0,r=!1,o=t-1;o>-1;o--){var a,i=Number(e[o]);r?a=Zd(i):0===i?a=i:(r=!0,a=Yd(i)),0!==a&&(n-=a*Math.pow(256,t-o-1))}return n},Hd=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},Zd=e=>255&(255^e),Yd=e=>1+(255^e)&255;((e,t)=>{for(var n in t)ni(e,n,{get:t[n],enumerable:!0})})({},{code:()=>ep,isCode:()=>Kd,isName:()=>Xd,name:()=>Qd})
194
+ ;var Kd=e=>Qd.has(e),Xd=e=>ep.has(e),Qd=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"]]),ep=new Map(Array.from(Qd).map(e=>[e[1],e[0]])),tp=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??rp(e,t,100),this.mode=n?.mode??r?.mode??ip(e,t+100,8),this.uid=n?.uid??r?.uid??ip(e,t+108,8),
195
+ this.gid=n?.gid??r?.gid??ip(e,t+116,8),this.size=n?.size??r?.size??ip(e,t+124,12),this.mtime=n?.mtime??r?.mtime??op(e,t+136,12),this.cksum=ip(e,t+148,12),r&&this.#t(r,!0),n&&this.#t(n);let o=rp(e,t+156,1);if(Kd(o)&&(this.#e=o||"0"),"0"===this.#e&&"/"===this.path.slice(-1)&&(this.#e="5"),"5"===this.#e&&(this.size=0),this.linkpath=rp(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=n?.uname??r?.uname??rp(e,t+265,32),this.gname=n?.gname??r?.gname??rp(e,t+297,32),this.devmaj=n?.devmaj??r?.devmaj??ip(e,t+329,8)??0,this.devmin=n?.devmin??r?.devmin??ip(e,t+337,8)??0,0!==e[t+475]){let n=rp(e,t+345,155);this.path=n+"/"+this.path}else{let o=rp(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=n?.atime??r?.atime??op(e,t+476,12),this.ctime=n?.ctime??r?.ctime??op(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=np(this.path||"",n),o=r[0],a=r[1];this.needPax=!!r[2],this.needPax=hp(e,t,100,o)||this.needPax,this.needPax=lp(e,t+100,8,this.mode)||this.needPax,this.needPax=lp(e,t+108,8,this.uid)||this.needPax,this.needPax=lp(e,t+116,8,this.gid)||this.needPax,this.needPax=lp(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=hp(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=hp(e,t+265,32,this.uname)||this.needPax,this.needPax=hp(e,t+297,32,this.gname)||this.needPax,this.needPax=lp(e,t+329,8,this.devmaj)||this.needPax,
197
+ this.needPax=lp(e,t+337,8,this.devmin)||this.needPax,this.needPax=hp(e,t+345,n,a)||this.needPax,0!==e[t+475]?this.needPax=hp(e,t+345,155,a)||this.needPax:(this.needPax=hp(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,lp(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#e?this.#e:Qd.get(this.#e)}get typeKey(){return this.#e}set type(e){let t=String(ep.get(e));if(Kd(t)||"Unsupported"===t)this.#e=t;else{if(!Kd(e))throw new TypeError("invalid entry type: "+e);this.#e=e}}},np=(e,t)=>{let n,r=e,o="",a=b.posix.parse(e).root||".";if(Buffer.byteLength(r)<100)n=[r,o,!1];else{o=b.posix.dirname(r),r=b.posix.basename(r);do{
198
+ 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=b.posix.join(b.posix.basename(o),r),o=b.posix.dirname(o))}while(o!==a&&void 0===n);n||(n=[e.slice(0,99),"",!0])}return n},rp=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),op=(e,t,n)=>ap(ip(e,t,n)),ap=e=>void 0===e?void 0:new Date(1e3*e),ip=(e,t,n)=>128&Number(e[t])?(e=>{let t=e[0],n=128===t?Hd(e.subarray(1,e.length)):255===t?$d(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)):dp(e,t,n),dp=(e,t,n)=>(e=>isNaN(e)?void 0:e)(parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8)),pp={12:8589934591,8:2097151},lp=(e,t,n,r)=>void 0!==r&&(r>pp[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?Wd(e,t):Jd(e,t)
199
+ })(r,e.subarray(t,t+n)),!0):(sp(e,t,n,r),!1)),sp=(e,t,n,r)=>e.write(up(r,n),t,n,"ascii"),up=(e,t)=>mp(Math.floor(e).toString(8),t),mp=(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&&lp(e,t,n,r.getTime()/1e3),vp=new Array(156).join("\0"),hp=(e,t,n,r)=>void 0!==r&&(e.write(r+vp,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n),fp=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 tp({
200
200
  path:("PaxHeader/"+b.basename(this.path??"")).slice(0,99),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""
201
- ;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}static parse(t,n,r=!1){return new e(hp(fp(t),n),r)}},hp=(e,t)=>t?Object.assign({},t,e):e,fp=e=>e.replace(/\n$/,"").split("\n").reduce(Ip,Object.create(null)),Ip=(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},wp="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replaceAll(/\\/g,"/"),bp=class extends Vi{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
202
- ;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),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=wp(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?wp(e.linkpath):void 0,this.uname=e.uname,
203
- 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;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=wp(e.path)),e.linkpath&&(e.linkpath=wp(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t))))}},gp=(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
- },yp=Buffer.from([31,139]),Rp=Buffer.from([40,181,47,253]),jp=Math.max(yp.length,Rp.length),Ep=Symbol("state"),Up=Symbol("writeEntry"),Cp=Symbol("readEntry"),_p=Symbol("nextEntry"),Sp=Symbol("processEntry"),Np=Symbol("extendedHeader"),Ap=Symbol("globalExtendedHeader"),xp=Symbol("meta"),Pp=Symbol("emitMeta"),kp=Symbol("buffer"),Tp=Symbol("queue"),Dp=Symbol("ended"),Op=Symbol("emittedEnd"),Lp=Symbol("emit"),qp=Symbol("unzip"),Bp=Symbol("consumeChunk"),Vp=Symbol("consumeChunkSub"),Fp=Symbol("consumeBody"),Gp=Symbol("consumeMeta"),Mp=Symbol("consumeHeader"),zp=Symbol("consuming"),Jp=Symbol("bufferConcat"),Wp=Symbol("maybeEnd"),$p=Symbol("writing"),Hp=Symbol("aborted"),Zp=Symbol("onDone"),Yp=Symbol("sawValidEntry"),Kp=Symbol("sawNullBlock"),Xp=Symbol("sawEOF"),Qp=Symbol("closeStream"),el=()=>!0,tl=class extends e.EventEmitter{file;strict;maxMetaEntrySize;filter;brotli;zstd;writable=!0;readable=!1;[Tp]=[];[kp];[Cp];[Up];[Ep]="begin";[xp]="";[Np];[Ap];[Dp]=!1;[qp];[Hp]=!1;[Yp];[Kp]=!1;[Xp]=!1
205
- ;[$p]=!1;[zp]=!1;[Op]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(Zp,()=>{("begin"===this[Ep]||!1===this[Yp])&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Zp,e.ondone):this.on(Zp,()=>{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:el;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[Qp]()),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){gp(this,e,t,n)}[Mp](e,t){let n;void 0===this[Yp]&&(this[Yp]=!1);try{n=new Qd(e,t,this[Np],this[Ap])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}
206
- if(n.nullBlock)this[Kp]?(this[Xp]=!0,"begin"===this[Ep]&&(this[Ep]="header"),this[Lp]("eof")):(this[Kp]=!0,this[Lp]("nullBlock"));else if(this[Kp]=!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[Up]=new bp(n,this[Np],this[Ap]);if(!this[Yp])if(e.remain){let t=()=>{e.invalid||(this[Yp]=!0)};e.on("end",t)}else this[Yp]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[Lp]("ignoredEntry",e),this[Ep]="ignore",e.resume()):e.size>0&&(this[xp]="",e.on("data",e=>this[xp]+=e),this[Ep]="meta"):(this[Np]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[Lp]("ignoredEntry",e),this[Ep]=e.remain?"ignore":"header",e.resume()):(e.remain?this[Ep]="body":(this[Ep]="header",e.end()),this[Cp]?this[Tp].push(e):(this[Tp].push(e),this[_p]())))
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})}[Qp](){queueMicrotask(()=>this.emit("close"))}[Sp](e){let t=!0;if(e)if(Array.isArray(e)){let[t,...n]=e;this.emit(t,...n)}else this[Cp]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",()=>this[_p]()),t=!1);else this[Cp]=void 0,t=!1;return t}[_p](){do{}while(this[Sp](this[Tp].shift()));if(0===this[Tp].length){let e=this[Cp];!e||e.flowing||e.size===e.remain?this[$p]||this.emit("drain"):e.once("drain",()=>this.emit("drain"))}}[Fp](e,t){let n=this[Up];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[Ep]="header",this[Up]=void 0,n.end()),o.length}[Gp](e,t){let n=this[Up],r=this[Fp](e,t);return!this[Up]&&n&&this[Pp](n),r}[Lp](e,t,n){
208
- 0!==this[Tp].length||this[Cp]?this[Tp].push([e,t,n]):this.emit(e,t,n)}[Pp](e){switch(this[Lp]("meta",this[xp]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Np]=vp.parse(this[xp],this[Np],!1);break;case"GlobalExtendedHeader":this[Ap]=vp.parse(this[xp],this[Ap],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let e=this[Np]??Object.create(null);this[Np]=e,e.path=this[xp].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let e=this[Np]||Object.create(null);this[Np]=e,e.linkpath=this[xp].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Hp]=!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[Hp])return n?.(),!1;if((void 0===this[qp]||void 0===this.brotli&&!1===this[qp])&&e){if(this[kp]&&(e=Buffer.concat([this[kp],e]),this[kp]=void 0),e.length<jp)return this[kp]=e,n?.(),!0
209
- ;for(let t=0;void 0===this[qp]&&t<yp.length;t++)e[t]!==yp[t]&&(this[qp]=!1);let t=!1;if(!1===this[qp]&&!1!==this.zstd){t=!0;for(let n=0;n<Rp.length;n++)if(e[n]!==Rp[n]){t=!1;break}}let r=void 0===this.brotli&&!t;if(!1===this[qp]&&r)if(e.length<512){if(!this[Dp])return this[kp]=e,n?.(),!0;this.brotli=!0}else try{new Qd(e.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(void 0===this[qp]||!1===this[qp]&&(this.brotli||t)){let r=this[Dp];this[Dp]=!1,this[qp]=void 0===this[qp]?new Od({}):t?new Gd({}):new Bd({}),this[qp].on("data",e=>this[Bp](e)),this[qp].on("error",e=>this.abort(e)),this[qp].on("end",()=>{this[Dp]=!0,this[Bp]()}),this[$p]=!0;let o=!!this[qp][r?"end":"write"](e);return this[$p]=!1,n?.(),o}}this[$p]=!0,this[qp]?this[qp].write(e):this[Bp](e),this[$p]=!1;let r=!(this[Tp].length>0)&&(!this[Cp]||this[Cp].flowing);return!r&&0===this[Tp].length&&this[Cp]?.once("drain",()=>this.emit("drain")),n?.(),r}[Jp](e){e&&!this[Hp]&&(this[kp]=this[kp]?Buffer.concat([this[kp],e]):e)}
210
- [Wp](){if(this[Dp]&&!this[Op]&&!this[Hp]&&!this[zp]){this[Op]=!0;let e=this[Up];if(e&&e.blockRemain){let t=this[kp]?this[kp].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[kp]&&e.write(this[kp]),e.end()}this[Lp](Zp)}}[Bp](e){if(this[zp]&&e)this[Jp](e);else if(e||this[kp]){if(e){if(this[zp]=!0,this[kp]){this[Jp](e);let t=this[kp];this[kp]=void 0,this[Vp](t)}else this[Vp](e);for(;this[kp]&&this[kp]?.length>=512&&!this[Hp]&&!this[Xp];){let e=this[kp];this[kp]=void 0,this[Vp](e)}this[zp]=!1}}else this[Wp]();(!this[kp]||this[Dp])&&this[Wp]()}[Vp](e){let t=0,n=e.length;for(;t+512<=n&&!this[Hp]&&!this[Xp];)switch(this[Ep]){case"begin":case"header":this[Mp](e,t),t+=512;break;case"ignore":case"body":t+=this[Fp](e,t);break;case"meta":t+=this[Gp](e,t);break;default:throw new Error("invalid state: "+this[Ep])}t<n&&(this[kp]=this[kp]?Buffer.concat([e.subarray(t),this[kp]]):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[Hp]||(this[qp]?(e&&this[qp].write(e),this[qp].end()):(this[Dp]=!0,(void 0===this.brotli||void 0===this.zstd)&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[Wp]())),this}},nl=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)},rl=(e,t)=>{let n=new Map(t.map(e=>[nl(e),!0])),r=e.filter,o=(e,t="")=>{let r,a=t||m.parse(e).root||".";if(e===a)r=!1;else{let t=n.get(e);r=void 0!==t?t:o(m.dirname(e),a)}return n.set(e,r),r};e.filter=r?(e,t)=>r(e,t)&&o(nl(e)):e=>o(nl(e))},ol=jd(e=>{let t,n=new tl(e),r=e.file;try{t=g.openSync(r,"r");let o=g.fstatSync(t),a=e.maxReadSize||16777216;if(o.size<a){let e=Buffer.allocUnsafe(o.size),r=g.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=g.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{g.closeSync(t)}catch{}}},(e,t)=>{let n=new tl(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("end",e),g.stat(o,(e,a)=>{if(e)t(e);else{let e=new fd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new tl(e),e=>new tl(e),(e,t)=>{t?.length&&rl(e,t),e.noResume||(e=>{let t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)}),al=(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:il,parse:dl}=b.win32,pl=e=>{let t="",n=dl(e);for(;il(e)||n.root;){let r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=dl(e)}return[t,e]},ll=["|","<",">","?",":"],sl=ll.map(e=>String.fromCodePoint(61440+Number(e.codePointAt(0)))),ul=new Map(ll.map((e,t)=>[e,sl[t]])),ml=new Map(sl.map((e,t)=>[e,ll[t]])),cl=e=>ll.reduce((e,t)=>e.split(t).join(ul.get(t)),e),vl=(e,t)=>t?(e=wp(e).replace(/^\.(\/|$)/,""),
213
- nl(t)+"/"+e):wp(e),hl=Symbol("process"),fl=Symbol("file"),Il=Symbol("directory"),wl=Symbol("symlink"),bl=Symbol("hardlink"),gl=Symbol("header"),yl=Symbol("read"),Rl=Symbol("lstat"),jl=Symbol("onlstat"),El=Symbol("onread"),Ul=Symbol("onreadlink"),Cl=Symbol("openfile"),_l=Symbol("onopenfile"),Sl=Symbol("close"),Nl=Symbol("mode"),Al=Symbol("awaitDrain"),xl=Symbol("ondrain"),Pl=Symbol("prefix"),kl=class extends Vi{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=Rd(t);super(),this.path=wp(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=wp(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?wp(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]=pl(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,"/"),sl.reduce((e,t)=>e.split(t).join(ml.get(t)),o)),e=e.replaceAll(/\\/g,"/")),this.absolute=wp(n.absolute||m.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[jl](a):this[Rl]()}warn(e,t,n={}){return gp(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#e=!0),super.emit(e,...t)}[Rl](){u.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[jl](t)})}[jl](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),
215
- this.type=Ol(e),this.emit("stat",e),this[hl]()}[hl](){switch(this.type){case"File":return this[fl]();case"Directory":return this[Il]();case"SymbolicLink":return this[wl]();default:return this.end()}}[Nl](e){return al(e,"Directory"===this.type,this.portable)}[Pl](e){return vl(e,this.prefix)}[gl](){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 Qd({path:this[Pl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Pl](this.linkpath):this.linkpath,mode:this[Nl](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 vp({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[Pl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Pl](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)}[Il](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[gl](),this.end()}[wl](){u.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ul](t)})}[Ul](e){this.linkpath=wp(e),this[gl](),this.end()}[bl](e){
217
- if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=wp(m.relative(this.cwd,e)),this.stat.size=0,this[gl](),this.end()}[fl](){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[bl](t);this.linkCache.set(e,this.absolute)}if(this[gl](),0===this.stat.size)return this.end();this[Cl]()}[Cl](){u.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[_l](t)})}[_l](e){if(this.fd=e,this.#e)return this[Sl]();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[yl]()}[yl](){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");u.read(e,t,n,r,o,(e,t)=>{if(e)return this[Sl](()=>this.emit("error",e));this[El](t)})}[Sl](e=()=>{}){void 0!==this.fd&&u.close(this.fd,e)}[El](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[Sl](()=>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[Sl](()=>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[xl]():this[Al](()=>this[xl]())}[Al](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)}[xl](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Sl](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[yl]()}},Tl=class extends kl{sync=!0;[Rl](){this[jl](u.lstatSync(this.absolute))}[wl](){this[Ul](u.readlinkSync(this.absolute))}[Cl](){this[_l](u.openSync(this.absolute,"r"))}[yl](){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=u.readSync(t,n,r,o,a);this[El](i),e=!1}finally{if(e)try{this[Sl](()=>{})}catch{}}}[Al](e){e()}[Sl](e=()=>{}){void 0!==this.fd&&u.closeSync(this.fd),e()}},Dl=class extends Vi{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 gp(this,e,t,n)}constructor(e,t={}){let n=Rd(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=wp(e.path),this.mode=void 0!==e.mode?this[Nl](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?wp(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let o=!1;if(!this.preservePaths){let[e,t]=pl(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 Qd({path:this[Pl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Pl](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 vp({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[Pl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Pl](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)}[Pl](e){return vl(e,this.prefix)}[Nl](e){return al(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}},Ol=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported",Ll=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++)Bl(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)Vl(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
+ ;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}static parse(t,n,r=!1){return new e(Ip(wp(t),n),r)}},Ip=(e,t)=>t?Object.assign({},t,e):e,wp=e=>e.replace(/\n$/,"").split("\n").reduce(bp,Object.create(null)),bp=(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},gp="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replaceAll(/\\/g,"/"),yp=class extends Gi{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
202
+ ;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),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=gp(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?gp(e.linkpath):void 0,this.uname=e.uname,
203
+ 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;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=gp(e.path)),e.linkpath&&(e.linkpath=gp(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t))))}},Rp=(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
+ },jp=Buffer.from([31,139]),Ep=Buffer.from([40,181,47,253]),Up=Math.max(jp.length,Ep.length),Cp=Symbol("state"),_p=Symbol("writeEntry"),Sp=Symbol("readEntry"),Np=Symbol("nextEntry"),Ap=Symbol("processEntry"),xp=Symbol("extendedHeader"),Pp=Symbol("globalExtendedHeader"),kp=Symbol("meta"),Tp=Symbol("emitMeta"),Dp=Symbol("buffer"),Op=Symbol("queue"),Lp=Symbol("ended"),qp=Symbol("emittedEnd"),Bp=Symbol("emit"),Vp=Symbol("unzip"),Fp=Symbol("consumeChunk"),Gp=Symbol("consumeChunkSub"),Mp=Symbol("consumeBody"),zp=Symbol("consumeMeta"),Jp=Symbol("consumeHeader"),Wp=Symbol("consuming"),$p=Symbol("bufferConcat"),Hp=Symbol("maybeEnd"),Zp=Symbol("writing"),Yp=Symbol("aborted"),Kp=Symbol("onDone"),Xp=Symbol("sawValidEntry"),Qp=Symbol("sawNullBlock"),el=Symbol("sawEOF"),tl=Symbol("closeStream"),nl=()=>!0,rl=class extends e.EventEmitter{file;strict;maxMetaEntrySize;filter;brotli;zstd;writable=!0;readable=!1;[Op]=[];[Dp];[Sp];[_p];[Cp]="begin";[kp]="";[xp];[Pp];[Lp]=!1;[Vp];[Yp]=!1;[Xp];[Qp]=!1;[el]=!1
205
+ ;[Zp]=!1;[Wp]=!1;[qp]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(Kp,()=>{("begin"===this[Cp]||!1===this[Xp])&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Kp,e.ondone):this.on(Kp,()=>{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:nl;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[tl]()),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){Rp(this,e,t,n)}[Jp](e,t){let n;void 0===this[Xp]&&(this[Xp]=!1);try{n=new tp(e,t,this[xp],this[Pp])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}
206
+ if(n.nullBlock)this[Qp]?(this[el]=!0,"begin"===this[Cp]&&(this[Cp]="header"),this[Bp]("eof")):(this[Qp]=!0,this[Bp]("nullBlock"));else if(this[Qp]=!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[_p]=new yp(n,this[xp],this[Pp]);if(!this[Xp])if(e.remain){let t=()=>{e.invalid||(this[Xp]=!0)};e.on("end",t)}else this[Xp]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[Bp]("ignoredEntry",e),this[Cp]="ignore",e.resume()):e.size>0&&(this[kp]="",e.on("data",e=>this[kp]+=e),this[Cp]="meta"):(this[xp]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[Bp]("ignoredEntry",e),this[Cp]=e.remain?"ignore":"header",e.resume()):(e.remain?this[Cp]="body":(this[Cp]="header",e.end()),this[Sp]?this[Op].push(e):(this[Op].push(e),this[Np]())))
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})}[tl](){queueMicrotask(()=>this.emit("close"))}[Ap](e){let t=!0;if(e)if(Array.isArray(e)){let[t,...n]=e;this.emit(t,...n)}else this[Sp]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",()=>this[Np]()),t=!1);else this[Sp]=void 0,t=!1;return t}[Np](){do{}while(this[Ap](this[Op].shift()));if(0===this[Op].length){let e=this[Sp];!e||e.flowing||e.size===e.remain?this[Zp]||this.emit("drain"):e.once("drain",()=>this.emit("drain"))}}[Mp](e,t){let n=this[_p];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[Cp]="header",this[_p]=void 0,n.end()),o.length}[zp](e,t){let n=this[_p],r=this[Mp](e,t);return!this[_p]&&n&&this[Tp](n),r}[Bp](e,t,n){
208
+ 0!==this[Op].length||this[Sp]?this[Op].push([e,t,n]):this.emit(e,t,n)}[Tp](e){switch(this[Bp]("meta",this[kp]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[xp]=fp.parse(this[kp],this[xp],!1);break;case"GlobalExtendedHeader":this[Pp]=fp.parse(this[kp],this[Pp],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let e=this[xp]??Object.create(null);this[xp]=e,e.path=this[kp].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let e=this[xp]||Object.create(null);this[xp]=e,e.linkpath=this[kp].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Yp]=!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[Yp])return n?.(),!1;if((void 0===this[Vp]||void 0===this.brotli&&!1===this[Vp])&&e){if(this[Dp]&&(e=Buffer.concat([this[Dp],e]),this[Dp]=void 0),e.length<Up)return this[Dp]=e,n?.(),!0
209
+ ;for(let t=0;void 0===this[Vp]&&t<jp.length;t++)e[t]!==jp[t]&&(this[Vp]=!1);let t=!1;if(!1===this[Vp]&&!1!==this.zstd){t=!0;for(let n=0;n<Ep.length;n++)if(e[n]!==Ep[n]){t=!1;break}}let r=void 0===this.brotli&&!t;if(!1===this[Vp]&&r)if(e.length<512){if(!this[Lp])return this[Dp]=e,n?.(),!0;this.brotli=!0}else try{new tp(e.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(void 0===this[Vp]||!1===this[Vp]&&(this.brotli||t)){let r=this[Lp];this[Lp]=!1,this[Vp]=void 0===this[Vp]?new qd({}):t?new zd({}):new Fd({}),this[Vp].on("data",e=>this[Fp](e)),this[Vp].on("error",e=>this.abort(e)),this[Vp].on("end",()=>{this[Lp]=!0,this[Fp]()}),this[Zp]=!0;let o=!!this[Vp][r?"end":"write"](e);return this[Zp]=!1,n?.(),o}}this[Zp]=!0,this[Vp]?this[Vp].write(e):this[Fp](e),this[Zp]=!1;let r=!(this[Op].length>0)&&(!this[Sp]||this[Sp].flowing);return!r&&0===this[Op].length&&this[Sp]?.once("drain",()=>this.emit("drain")),n?.(),r}[$p](e){e&&!this[Yp]&&(this[Dp]=this[Dp]?Buffer.concat([this[Dp],e]):e)}
210
+ [Hp](){if(this[Lp]&&!this[qp]&&!this[Yp]&&!this[Wp]){this[qp]=!0;let e=this[_p];if(e&&e.blockRemain){let t=this[Dp]?this[Dp].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Dp]&&e.write(this[Dp]),e.end()}this[Bp](Kp)}}[Fp](e){if(this[Wp]&&e)this[$p](e);else if(e||this[Dp]){if(e){if(this[Wp]=!0,this[Dp]){this[$p](e);let t=this[Dp];this[Dp]=void 0,this[Gp](t)}else this[Gp](e);for(;this[Dp]&&this[Dp]?.length>=512&&!this[Yp]&&!this[el];){let e=this[Dp];this[Dp]=void 0,this[Gp](e)}this[Wp]=!1}}else this[Hp]();(!this[Dp]||this[Lp])&&this[Hp]()}[Gp](e){let t=0,n=e.length;for(;t+512<=n&&!this[Yp]&&!this[el];)switch(this[Cp]){case"begin":case"header":this[Jp](e,t),t+=512;break;case"ignore":case"body":t+=this[Mp](e,t);break;case"meta":t+=this[zp](e,t);break;default:throw new Error("invalid state: "+this[Cp])}t<n&&(this[Dp]=this[Dp]?Buffer.concat([e.subarray(t),this[Dp]]):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[Yp]||(this[Vp]?(e&&this[Vp].write(e),this[Vp].end()):(this[Lp]=!0,(void 0===this.brotli||void 0===this.zstd)&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[Hp]())),this}},ol=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)},al=(e,t)=>{let n=new Map(t.map(e=>[ol(e),!0])),r=e.filter,o=(e,t="")=>{let r,a=t||c.parse(e).root||".";if(e===a)r=!1;else{let t=n.get(e);r=void 0!==t?t:o(c.dirname(e),a)}return n.set(e,r),r};e.filter=r?(e,t)=>r(e,t)&&o(ol(e)):e=>o(ol(e))},il=Ud(e=>{let t,n=new rl(e),r=e.file;try{t=g.openSync(r,"r");let o=g.fstatSync(t),a=e.maxReadSize||16777216;if(o.size<a){let e=Buffer.allocUnsafe(o.size),r=g.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=g.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{g.closeSync(t)}catch{}}},(e,t)=>{let n=new rl(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("end",e),g.stat(o,(e,a)=>{if(e)t(e);else{let e=new wd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new rl(e),e=>new rl(e),(e,t)=>{t?.length&&al(e,t),e.noResume||(e=>{let t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)}),dl=(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:pl,parse:ll}=b.win32,sl=e=>{let t="",n=ll(e);for(;pl(e)||n.root;){let r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=ll(e)}return[t,e]},ul=["|","<",">","?",":"],ml=ul.map(e=>String.fromCodePoint(61440+Number(e.codePointAt(0)))),cl=new Map(ul.map((e,t)=>[e,ml[t]])),vl=new Map(ml.map((e,t)=>[e,ul[t]])),hl=e=>ul.reduce((e,t)=>e.split(t).join(cl.get(t)),e),fl=(e,t)=>t?(e=gp(e).replace(/^\.(\/|$)/,""),
213
+ ol(t)+"/"+e):gp(e),Il=Symbol("process"),wl=Symbol("file"),bl=Symbol("directory"),gl=Symbol("symlink"),yl=Symbol("hardlink"),Rl=Symbol("header"),jl=Symbol("read"),El=Symbol("lstat"),Ul=Symbol("onlstat"),Cl=Symbol("onread"),_l=Symbol("onreadlink"),Sl=Symbol("openfile"),Nl=Symbol("onopenfile"),Al=Symbol("close"),xl=Symbol("mode"),Pl=Symbol("awaitDrain"),kl=Symbol("ondrain"),Tl=Symbol("prefix"),Dl=class extends Gi{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=Ed(t);super(),this.path=gp(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=gp(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?gp(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]=sl(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,"/"),ml.reduce((e,t)=>e.split(t).join(vl.get(t)),o)),e=e.replaceAll(/\\/g,"/")),this.absolute=gp(n.absolute||c.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[Ul](a):this[El]()}warn(e,t,n={}){return Rp(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#e=!0),super.emit(e,...t)}[El](){m.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ul](t)})}[Ul](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),
215
+ this.type=ql(e),this.emit("stat",e),this[Il]()}[Il](){switch(this.type){case"File":return this[wl]();case"Directory":return this[bl]();case"SymbolicLink":return this[gl]();default:return this.end()}}[xl](e){return dl(e,"Directory"===this.type,this.portable)}[Tl](e){return fl(e,this.prefix)}[Rl](){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 tp({path:this[Tl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Tl](this.linkpath):this.linkpath,mode:this[xl](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 fp({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[Tl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Tl](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)}[bl](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[Rl](),this.end()}[gl](){m.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[_l](t)})}[_l](e){this.linkpath=gp(e),this[Rl](),this.end()}[yl](e){
217
+ if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=gp(c.relative(this.cwd,e)),this.stat.size=0,this[Rl](),this.end()}[wl](){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[yl](t);this.linkCache.set(e,this.absolute)}if(this[Rl](),0===this.stat.size)return this.end();this[Sl]()}[Sl](){m.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[Nl](t)})}[Nl](e){if(this.fd=e,this.#e)return this[Al]();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[jl]()}[jl](){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");m.read(e,t,n,r,o,(e,t)=>{if(e)return this[Al](()=>this.emit("error",e));this[Cl](t)})}[Al](e=()=>{}){void 0!==this.fd&&m.close(this.fd,e)}[Cl](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[Al](()=>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[Al](()=>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[kl]():this[Pl](()=>this[kl]())}[Pl](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)}[kl](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Al](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[jl]()}},Ol=class extends Dl{sync=!0;[El](){this[Ul](m.lstatSync(this.absolute))}[gl](){this[_l](m.readlinkSync(this.absolute))}[Sl](){this[Nl](m.openSync(this.absolute,"r"))}[jl](){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=m.readSync(t,n,r,o,a);this[Cl](i),e=!1}finally{if(e)try{this[Al](()=>{})}catch{}}}[Pl](e){e()}[Al](e=()=>{}){void 0!==this.fd&&m.closeSync(this.fd),e()}},Ll=class extends Gi{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 Rp(this,e,t,n)}constructor(e,t={}){let n=Ed(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=gp(e.path),this.mode=void 0!==e.mode?this[xl](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?gp(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let o=!1;if(!this.preservePaths){let[e,t]=sl(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 tp({path:this[Tl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Tl](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 fp({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[Tl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[Tl](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)}[Tl](e){return fl(e,this.prefix)}[xl](e){return dl(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}},ql=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported",Bl=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++)Fl(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)Gl(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){
225
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)
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=ql(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 ql(e,t,n){
227
- let r=t,o=t?t.next:e.head,a=new Fl(n,r,o,e);return void 0===a.next&&(e.tail=a),void 0===a.prev&&(e.head=a),e.length++,a}function Bl(e,t){e.tail=new Fl(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function Vl(e,t){e.head=new Fl(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}var Fl=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}},Gl=class{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}
228
- },Ml=Buffer.alloc(1024),zl=Symbol("onStat"),Jl=Symbol("ended"),Wl=Symbol("queue"),$l=Symbol("current"),Hl=Symbol("process"),Zl=Symbol("processing"),Yl=Symbol("processJob"),Kl=Symbol("jobs"),Xl=Symbol("jobDone"),Ql=Symbol("addFSEntry"),es=Symbol("addTarEntry"),ts=Symbol("stat"),ns=Symbol("readdir"),rs=Symbol("onreaddir"),os=Symbol("pipe"),as=Symbol("entry"),is=Symbol("entryOpt"),ds=Symbol("writeEntryClass"),ps=Symbol("write"),ls=Symbol("ondrain"),ss=class extends Vi{sync=!1;opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[ds];onWriteEntry;[Wl];[Kl]=0;[Zl]=!1;[Jl]=!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=wp(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[ds]=kl,"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 Dd(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new qd(e.brotli)),e.zstd&&("object"!=typeof e.zstd&&(e.zstd={}),this.zip=new Fd(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[ls]()),this.on("resume",()=>t.resume())}else this.on("drain",this[ls]);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[Wl]=new Ll,this[Kl]=0,this.jobs=Number(e.jobs)||4,
230
- this[Zl]=!1,this[Jl]=!1}[ps](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[Jl]=!0,this[Hl](),n&&n(),this}write(e){if(this[Jl])throw new Error("write after end");return e instanceof bp?this[es](e):this[Ql](e),this.flowing}[es](e){let t=wp(m.resolve(this.cwd,e.path));if(this.filter(e.path,e)){let n=new Gl(e.path,t);n.entry=new Dl(e,this[is](n)),n.entry.on("end",()=>this[Xl](n)),this[Kl]+=1,this[Wl].push(n)}else e.resume();this[Hl]()}[Ql](e){let t=wp(m.resolve(this.cwd,e));this[Wl].push(new Gl(e,t)),this[Hl]()}[ts](e){e.pending=!0,this[Kl]+=1;let t=this.follow?"stat":"lstat";u[t](e.absolute,(t,n)=>{e.pending=!1,this[Kl]-=1,t?this.emit("error",t):this[zl](e,n)})}[zl](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)?t.isFile()&&t.nlink>1&&e===this[$l]&&!this.linkCache.get(`${t.dev}:${t.ino}`)&&!this.sync&&this[Yl](e):e.ignore=!0,this[Hl]()}[ns](e){
231
- e.pending=!0,this[Kl]+=1,u.readdir(e.absolute,(t,n)=>{if(e.pending=!1,this[Kl]-=1,t)return this.emit("error",t);this[rs](e,n)})}[rs](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Hl]()}[Hl](){if(!this[Zl]){this[Zl]=!0;for(let e=this[Wl].head;e&&this[Kl]<this.jobs;e=e.next)if(this[Yl](e.value),e.value.ignore){let t=e.next;this[Wl].removeNode(e),e.next=t}this[Zl]=!1,this[Jl]&&0===this[Wl].length&&0===this[Kl]&&(this.zip?this.zip.end(Ml):(super.write(Ml),super.end()))}}get[$l](){return this[Wl]&&this[Wl].head&&this[Wl].head.value}[Xl](e){this[Wl].shift(),this[Kl]-=1,this[Hl]()}[Yl](e){if(!e.pending){if(e.entry)return void(e===this[$l]&&!e.piped&&this[os](e));if(!e.stat){let t=this.statCache.get(e.absolute);t?this[zl](e,t):this[ts](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){let t=this.readdirCache.get(e.absolute);if(t?this[rs](e,t):this[ns](e),!e.readdir)return}if(e.entry=this[as](e),!e.entry)return void(e.ignore=!0)
232
- ;e===this[$l]&&!e.piped&&this[os](e)}}}[is](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}}[as](e){this[Kl]+=1;try{return new this[ds](e.path,this[is](e)).on("end",()=>this[Xl](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[ls](){this[$l]&&this[$l].entry&&this[$l].entry.resume()}[os](e){e.piped=!0,e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Ql](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={}){gp(this,e,t,n)}},us=class extends ss{sync=!0
233
- ;constructor(e){super(e),this[ds]=Tl}pause(){}resume(){}[ts](e){let t=this.follow?"statSync":"lstatSync";this[zl](e,u[t](e.absolute))}[ns](e){this[rs](e,u.readdirSync(e.absolute))}[os](e){let t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[Ql](r+t)}),!t)throw new Error("Cannot pipe without source");n?t.on("data",e=>{n.write(e)}):t.on("data",e=>{super[ps](e)})}},ms=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?ol({file:b.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 ol({file:b.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(n);e.end()},vs=jd((e,t)=>{let n=new us(e),r=new bd(e.file,{mode:e.mode||438});n.pipe(r),ms(n,t)},(e,t)=>{let n=new ss(e),r=new wd(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 cs(n,t).catch(e=>n.emit("error",e)),o},(e,t)=>{let n=new us(e);return ms(n,t),n},(e,t)=>{let n=new ss(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")}),hs="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:fs,O_NOFOLLOW:Is,O_TRUNC:ws,O_WRONLY:bs}=u.constants,gs=Number(process.env.__FAKE_FS_O_FILENAME__)||u.constants.UV_FS_O_FILEMAP||0,ys=gs|ws|fs|bs,Rs=hs||"number"!=typeof Is?null:Is|ws|fs|bs,js=null!==Rs?()=>Rs:hs&&!!gs?e=>e<524288?ys:"w":()=>"w",Es=(e,t,n)=>{try{return g.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},Us=(e,t,n,r)=>{g.lchown(e,t,n,e=>{r(e&&"ENOENT"!==e?.code?e:null)})},Cs=(e,t,n,r,o)=>{if(t.isDirectory())_s(b.resolve(e,t.name),n,r,a=>{if(a)return o(a);let i=b.resolve(e,t.name);Us(i,n,r,o)});else{let a=b.resolve(e,t.name);Us(a,n,r,o)}},_s=(e,t,n,r)=>{g.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 Us(e,t,n,r);let i=a.length,d=null,p=o=>{if(!d){if(o)return r(d=o);if(0===--i)return Us(e,t,n,r)}};for(let r of a)Cs(e,r,t,n,p)})},Ss=(e,t,n,r)=>{t.isDirectory()&&Ns(b.resolve(e,t.name),n,r),Es(b.resolve(e,t.name),n,r)},Ns=(e,t,n)=>{let r;try{r=g.readdirSync(e,{withFileTypes:!0})}catch(r){let o=r;if("ENOENT"===o?.code)return;if("ENOTDIR"===o?.code||"ENOTSUP"===o?.code)return Es(e,t,n);throw o}for(let o of r)Ss(e,o,t,n);return Es(e,t,n)},As=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"}},xs=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"}},Ps=(e,t,n)=>{e=wp(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=wp(t.cwd),m=(t,r)=>{t?n(t):r&&p?_s(r,i,d,e=>m(e)):a?g.chmod(e,o,n):n()};if(e===u)return((e,t)=>{g.stat(e,(n,r)=>{(n||!r.isDirectory())&&(n=new As(e,n?.code||"ENOTDIR")),t(n)})})(e,m);if(l)return E.mkdir(e,{mode:o,recursive:!0}).then(e=>m(null,e??void 0),m);let c=wp(b.relative(u,e)).split("/");ks(u,c,o,s,u,void 0,m)},ks=(e,t,n,r,o,a,i)=>{if(0===t.length)return i(null,a);let d=t.shift(),p=wp(b.resolve(e+"/"+d));g.mkdir(p,n,Ts(p,t,n,r,o,a,i))},Ts=(e,t,n,r,o,a,i)=>d=>{d?g.lstat(e,(p,l)=>{if(p)p.path=p.path&&wp(p.path),i(p);else if(l.isDirectory())ks(e,t,n,r,o,a,i);else if(r)g.unlink(e,d=>{if(d)return i(d);g.mkdir(e,n,Ts(e,t,n,r,o,a,i))});else{if(l.isSymbolicLink())return i(new xs(e,e+"/"+t.join("/")));i(d)}}):ks(e,t,n,r,o,a=a||e,i)},Ds=(e,t)=>{e=wp(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=wp(t.cwd),u=t=>{t&&d&&Ns(t,a,i),o&&g.chmodSync(e,r)};if(e===s)return(e=>{let t,n=!1;try{n=g.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new As(e,t??"ENOTDIR")}})(s),u();if(p)return u(g.mkdirSync(e,{mode:r,recursive:!0})??void 0);let m,c=wp(b.relative(s,e)).split("/");for(let e=c.shift(),t=s;e&&(t+="/"+e);e=c.shift()){t=wp(b.resolve(t));try{g.mkdirSync(t,r),m=m||t}catch{let e=g.lstatSync(t);if(e.isDirectory())continue;if(l){g.unlinkSync(t),g.mkdirSync(t,r),m=m||t;continue}if(e.isSymbolicLink())return new xs(t,t+"/"+c.join("/"))}}return u(m)},Os=Object.create(null),Ls=new Set,qs="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Bs=class{#e=new Map;#t=new Map;#n=new Set;reserve(e,t){e=qs?["win32 parallelization disabled"]:e.map(e=>nl(b.join((e=>{
238
- Ls.has(e)?Ls.delete(e):Os[e]=e.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),Ls.add(e);let t=Os[e],n=Ls.size-1e4;if(n>1e3)for(let e of Ls)if(Ls.delete(e),delete Os[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=b.join(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){
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=Vl(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 Vl(e,t,n){
227
+ let r=t,o=t?t.next:e.head,a=new Ml(n,r,o,e);return void 0===a.next&&(e.tail=a),void 0===a.prev&&(e.head=a),e.length++,a}function Fl(e,t){e.tail=new Ml(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function Gl(e,t){e.head=new Ml(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}var Ml=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}},zl=class{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}
228
+ },Jl=Buffer.alloc(1024),Wl=Symbol("onStat"),$l=Symbol("ended"),Hl=Symbol("queue"),Zl=Symbol("current"),Yl=Symbol("process"),Kl=Symbol("processing"),Xl=Symbol("processJob"),Ql=Symbol("jobs"),es=Symbol("jobDone"),ts=Symbol("addFSEntry"),ns=Symbol("addTarEntry"),rs=Symbol("stat"),os=Symbol("readdir"),as=Symbol("onreaddir"),is=Symbol("pipe"),ds=Symbol("entry"),ps=Symbol("entryOpt"),ls=Symbol("writeEntryClass"),ss=Symbol("write"),us=Symbol("ondrain"),ms=class extends Gi{sync=!1;opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[ls];onWriteEntry;[Hl];[Ql]=0;[Kl]=!1;[$l]=!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=gp(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[ls]=Dl,"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 Ld(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new Vd(e.brotli)),e.zstd&&("object"!=typeof e.zstd&&(e.zstd={}),this.zip=new Md(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[us]()),this.on("resume",()=>t.resume())}else this.on("drain",this[us]);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[Hl]=new Bl,this[Ql]=0,this.jobs=Number(e.jobs)||4,
230
+ this[Kl]=!1,this[$l]=!1}[ss](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[$l]=!0,this[Yl](),n&&n(),this}write(e){if(this[$l])throw new Error("write after end");return e instanceof yp?this[ns](e):this[ts](e),this.flowing}[ns](e){let t=gp(c.resolve(this.cwd,e.path));if(this.filter(e.path,e)){let n=new zl(e.path,t);n.entry=new Ll(e,this[ps](n)),n.entry.on("end",()=>this[es](n)),this[Ql]+=1,this[Hl].push(n)}else e.resume();this[Yl]()}[ts](e){let t=gp(c.resolve(this.cwd,e));this[Hl].push(new zl(e,t)),this[Yl]()}[rs](e){e.pending=!0,this[Ql]+=1;let t=this.follow?"stat":"lstat";m[t](e.absolute,(t,n)=>{e.pending=!1,this[Ql]-=1,t?this.emit("error",t):this[Wl](e,n)})}[Wl](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)?t.isFile()&&t.nlink>1&&e===this[Zl]&&!this.linkCache.get(`${t.dev}:${t.ino}`)&&!this.sync&&this[Xl](e):e.ignore=!0,this[Yl]()}[os](e){
231
+ e.pending=!0,this[Ql]+=1,m.readdir(e.absolute,(t,n)=>{if(e.pending=!1,this[Ql]-=1,t)return this.emit("error",t);this[as](e,n)})}[as](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[Yl]()}[Yl](){if(!this[Kl]){this[Kl]=!0;for(let e=this[Hl].head;e&&this[Ql]<this.jobs;e=e.next)if(this[Xl](e.value),e.value.ignore){let t=e.next;this[Hl].removeNode(e),e.next=t}this[Kl]=!1,this[$l]&&0===this[Hl].length&&0===this[Ql]&&(this.zip?this.zip.end(Jl):(super.write(Jl),super.end()))}}get[Zl](){return this[Hl]&&this[Hl].head&&this[Hl].head.value}[es](e){this[Hl].shift(),this[Ql]-=1,this[Yl]()}[Xl](e){if(!e.pending){if(e.entry)return void(e===this[Zl]&&!e.piped&&this[is](e));if(!e.stat){let t=this.statCache.get(e.absolute);t?this[Wl](e,t):this[rs](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){let t=this.readdirCache.get(e.absolute);if(t?this[as](e,t):this[os](e),!e.readdir)return}if(e.entry=this[ds](e),!e.entry)return void(e.ignore=!0)
232
+ ;e===this[Zl]&&!e.piped&&this[is](e)}}}[ps](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}}[ds](e){this[Ql]+=1;try{return new this[ls](e.path,this[ps](e)).on("end",()=>this[es](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[us](){this[Zl]&&this[Zl].entry&&this[Zl].entry.resume()}[is](e){e.piped=!0,e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[ts](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={}){Rp(this,e,t,n)}},cs=class extends ms{sync=!0
233
+ ;constructor(e){super(e),this[ls]=Ol}pause(){}resume(){}[rs](e){let t=this.follow?"statSync":"lstatSync";this[Wl](e,m[t](e.absolute))}[os](e){this[as](e,m.readdirSync(e.absolute))}[is](e){let t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[ts](r+t)}),!t)throw new Error("Cannot pipe without source");n?t.on("data",e=>{n.write(e)}):t.on("data",e=>{super[ss](e)})}},vs=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?il({file:b.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},hs=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await il({file:b.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(n);e.end()},fs=Ud((e,t)=>{let n=new cs(e),r=new yd(e.file,{mode:e.mode||438});n.pipe(r),vs(n,t)},(e,t)=>{let n=new ms(e),r=new gd(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 hs(n,t).catch(e=>n.emit("error",e)),o},(e,t)=>{let n=new cs(e);return vs(n,t),n},(e,t)=>{let n=new ms(e);return hs(n,t).catch(e=>n.emit("error",e)),n},(e,t)=>{if(!t?.length)throw new TypeError("no paths specified to add to archive")}),Is="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:ws,O_NOFOLLOW:bs,O_TRUNC:gs,O_WRONLY:ys}=m.constants,Rs=Number(process.env.__FAKE_FS_O_FILENAME__)||m.constants.UV_FS_O_FILEMAP||0,js=Rs|gs|ws|ys,Es=Is||"number"!=typeof bs?null:bs|gs|ws|ys,Us=null!==Es?()=>Es:Is&&!!Rs?e=>e<524288?js:"w":()=>"w",Cs=(e,t,n)=>{try{return g.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},_s=(e,t,n,r)=>{g.lchown(e,t,n,e=>{r(e&&"ENOENT"!==e?.code?e:null)})},Ss=(e,t,n,r,o)=>{if(t.isDirectory())Ns(b.resolve(e,t.name),n,r,a=>{if(a)return o(a);let i=b.resolve(e,t.name);_s(i,n,r,o)});else{let a=b.resolve(e,t.name);_s(a,n,r,o)}},Ns=(e,t,n,r)=>{g.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 _s(e,t,n,r);let i=a.length,d=null,p=o=>{if(!d){if(o)return r(d=o);if(0===--i)return _s(e,t,n,r)}};for(let r of a)Ss(e,r,t,n,p)})},As=(e,t,n,r)=>{t.isDirectory()&&xs(b.resolve(e,t.name),n,r),Cs(b.resolve(e,t.name),n,r)},xs=(e,t,n)=>{let r;try{r=g.readdirSync(e,{withFileTypes:!0})}catch(r){let o=r;if("ENOENT"===o?.code)return;if("ENOTDIR"===o?.code||"ENOTSUP"===o?.code)return Cs(e,t,n);throw o}for(let o of r)As(e,o,t,n);return Cs(e,t,n)},Ps=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"}},ks=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"}},Ts=(e,t,n)=>{e=gp(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=gp(t.cwd),m=(t,r)=>{t?n(t):r&&p?Ns(r,i,d,e=>m(e)):a?g.chmod(e,o,n):n()};if(e===u)return((e,t)=>{g.stat(e,(n,r)=>{(n||!r.isDirectory())&&(n=new Ps(e,n?.code||"ENOTDIR")),t(n)})})(e,m);if(l)return E.mkdir(e,{mode:o,recursive:!0}).then(e=>m(null,e??void 0),m);let c=gp(b.relative(u,e)).split("/");Ds(u,c,o,s,u,void 0,m)},Ds=(e,t,n,r,o,a,i)=>{if(0===t.length)return i(null,a);let d=t.shift(),p=gp(b.resolve(e+"/"+d));g.mkdir(p,n,Os(p,t,n,r,o,a,i))},Os=(e,t,n,r,o,a,i)=>d=>{d?g.lstat(e,(p,l)=>{if(p)p.path=p.path&&gp(p.path),i(p);else if(l.isDirectory())Ds(e,t,n,r,o,a,i);else if(r)g.unlink(e,d=>{if(d)return i(d);g.mkdir(e,n,Os(e,t,n,r,o,a,i))});else{if(l.isSymbolicLink())return i(new ks(e,e+"/"+t.join("/")));i(d)}}):Ds(e,t,n,r,o,a=a||e,i)},Ls=(e,t)=>{e=gp(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=gp(t.cwd),u=t=>{t&&d&&xs(t,a,i),o&&g.chmodSync(e,r)};if(e===s)return(e=>{let t,n=!1;try{n=g.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new Ps(e,t??"ENOTDIR")}})(s),u();if(p)return u(g.mkdirSync(e,{mode:r,recursive:!0})??void 0);let m,c=gp(b.relative(s,e)).split("/");for(let e=c.shift(),t=s;e&&(t+="/"+e);e=c.shift()){t=gp(b.resolve(t));try{g.mkdirSync(t,r),m=m||t}catch{let e=g.lstatSync(t);if(e.isDirectory())continue;if(l){g.unlinkSync(t),g.mkdirSync(t,r),m=m||t;continue}if(e.isSymbolicLink())return new ks(t,t+"/"+c.join("/"))}}return u(m)},qs=Object.create(null),Bs=new Set,Vs="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Fs=class{#e=new Map;#t=new Map;#n=new Set;reserve(e,t){e=Vs?["win32 parallelization disabled"]:e.map(e=>ol(b.join((e=>{
238
+ Bs.has(e)?Bs.delete(e):qs[e]=e.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),Bs.add(e);let t=qs[e],n=Bs.size-1e4;if(n>1e3)for(let e of Bs)if(Bs.delete(e),delete qs[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=b.join(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){
239
239
  return!(this.#n.has(e)||!this.check(e))&&(this.#n.add(e),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}
240
- },Vs=Symbol("onEntry"),Fs=Symbol("checkFs"),Gs=Symbol("checkFs2"),Ms=Symbol("isReusable"),zs=Symbol("makeFs"),Js=Symbol("file"),Ws=Symbol("directory"),$s=Symbol("link"),Hs=Symbol("symlink"),Zs=Symbol("hardlink"),Ys=Symbol("ensureNoSymlink"),Ks=Symbol("unsupported"),Xs=Symbol("checkPath"),Qs=Symbol("stripAbsolutePath"),eu=Symbol("mkdir"),tu=Symbol("onError"),nu=Symbol("pending"),ru=Symbol("pend"),ou=Symbol("unpend"),au=Symbol("ended"),iu=Symbol("maybeClose"),du=Symbol("skip"),pu=Symbol("doChown"),lu=Symbol("uid"),su=Symbol("gid"),uu=Symbol("checkedCwd"),mu="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,vu=class extends tl{[au]=!1;[uu]=!1;[nu]=0;reservations=new Bs;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[au]=!0,this[iu]()},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||mu,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,
242
- this.unlink=!!e.unlink,this.cwd=wp(b.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[Vs](e))}warn(e,t,n={}){return("TAR_BAD_ARCHIVE"===e||"TAR_ABORT"===e)&&(n.recoverable=!1),super.warn(e,t,n)}[iu](){this[au]&&0===this[nu]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[Qs](e,t){let n=e[t],{type:r}=e;if(!n||this.preservePaths)return!0;let[o,a]=pl(n),i=a.replaceAll(/\\/g,"/").split("/");if(i.includes("..")||mu&&/^[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=b.posix.dirname(e.path),a=b.posix.normalize(b.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}[Xs](e){let t=wp(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){let t=wp(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[Qs](e,"path")||!this[Qs](e,"linkpath"))return!1;if(e.absolute=b.isAbsolute(e.path)?wp(b.resolve(e.path)):wp(b.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:wp(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}=b.win32.parse(String(e.absolute));e.absolute=t+cl(String(e.absolute).slice(t.length));let{root:n}=b.win32.parse(e.path);e.path=n+cl(e.path.slice(n.length))}return!0}[Vs](e){if(!this[Xs](e))return e.resume();switch(R.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[Fs](e);default:return this[Ks](e)}}[tu](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[ou](),t.resume())}[eu](e,t,n){Ps(wp(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)}[pu](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}[lu](e){return cu(this.uid,e.uid,this.processUid)}[su](e){return cu(this.gid,e.gid,this.processGid)}[Js](e,t){let n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new wd(String(e.absolute),{flags:js(e.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&g.close(r.fd,()=>{}),r.write=()=>!0,this[tu](n,e),t()});let o=1,a=n=>{if(n)return r.fd&&g.close(r.fd,()=>{}),this[tu](n,e),void t();0===--o&&void 0!==r.fd&&g.close(r.fd,n=>{n?this[tu](n,e):this[ou](),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;g.futimes(n,r,i,e=>e?g.utimes(t,r,i,t=>a(t&&e)):a())}if("number"==typeof n&&this[pu](e)){o++;let r=this[lu](e),i=this[su](e)
246
- ;"number"==typeof r&&"number"==typeof i&&g.fchown(n,r,i,e=>e?g.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[tu](n,e),t()}),e.pipe(i)),i.pipe(r)}[Ws](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode;this[eu](String(e.absolute),n,n=>{if(n)return this[tu](n,e),void t();let r=1,o=()=>{0===--r&&(t(),this[ou](),e.resume())};e.mtime&&!this.noMtime&&(r++,g.utimes(String(e.absolute),e.atime||new Date,e.mtime,o)),this[pu](e)&&(r++,g.chown(String(e.absolute),Number(this[lu](e)),Number(this[su](e)),o)),o()})}[Ks](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Hs](e,t){let n=wp(b.relative(this.cwd,b.resolve(b.dirname(String(e.absolute)),String(e.linkpath)))).split("/");this[Ys](e,this.cwd,n,()=>this[$s](e,String(e.linkpath),"symlink",t),n=>{this[tu](n,e),t()})}[Zs](e,t){let n=wp(b.resolve(this.cwd,String(e.linkpath))),r=wp(String(e.linkpath)).split("/")
247
- ;this[Ys](e,this.cwd,r,()=>this[$s](e,n,"link",t),n=>{this[tu](n,e),t()})}[Ys](e,t,n,r,o){let a=n.shift();if(this.preservePaths||void 0===a)return r();let i=b.resolve(t,a);g.lstat(i,(t,a)=>t?r():a?.isSymbolicLink()?o(new xs(i,b.resolve(i,n.join("/")))):void this[Ys](e,i,n,r,o))}[ru](){this[nu]++}[ou](){this[nu]--,this[iu]()}[du](e){this[ou](),e.resume()}[Ms](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!mu}[Fs](e){this[ru]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,t=>this[Gs](e,t))}[Gs](e,t){let n=e=>{t(e)},r=()=>{if(e.absolute!==this.cwd){let t=wp(b.dirname(String(e.absolute)));if(t!==this.cwd)return this[eu](t,this.dmode,t=>{if(t)return this[tu](t,e),void n();o()})}o()},o=()=>{g.lstat(String(e.absolute),(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[du](e),void n();if(t||this[Ms](e,r))return this[zs](null,e,n);if(r.isDirectory()){if("Directory"===e.type){let t=t=>this[zs](t??null,e,n)
248
- ;return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?g.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return g.rmdir(String(e.absolute),t=>this[zs](t??null,e,n))}if(e.absolute===this.cwd)return this[zs](null,e,n);((e,t)=>{if(!mu)return g.unlink(e,t);let n=e+".DELETE."+j.randomBytes(16).toString("hex");g.rename(e,n,e=>{if(e)return t(e);g.unlink(n,t)})})(String(e.absolute),t=>this[zs](t??null,e,n))})};this[uu]?r():(()=>{this[eu](this.cwd,this.dmode,t=>{if(t)return this[tu](t,e),void n();this[uu]=!0,r()})})()}[zs](e,t,n){if(e)return this[tu](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[Js](t,n);case"Link":return this[Zs](t,n);case"SymbolicLink":return this[Hs](t,n);case"Directory":case"GNUDumpDir":return this[Ws](t,n)}}[$s](e,t,n,r){g[n](t,String(e.absolute),t=>{t?this[tu](t,e):(this[ou](),e.resume()),r()})}},hu=e=>{try{return[null,e()]}catch(e){return[e,null]}},fu=class extends vu{sync=!0;[zs](e,t){
249
- return super[zs](e,t,()=>{})}[Fs](e){if(!this[uu]){let t=this[eu](this.cwd,this.dmode);if(t)return this[tu](t,e);this[uu]=!0}if(e.absolute!==this.cwd){let t=wp(b.dirname(String(e.absolute)));if(t!==this.cwd){let n=this[eu](t,this.dmode);if(n)return this[tu](n,e)}}let[t,n]=hu(()=>g.lstatSync(String(e.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[du](e);if(t||this[Ms](e,n))return this[zs](null,e);if(n.isDirectory()){if("Directory"===e.type){let t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?hu(()=>{g.chmodSync(String(e.absolute),Number(e.mode))}):[];return this[zs](r,e)}let[t]=hu(()=>g.rmdirSync(String(e.absolute)));this[zs](t,e)}let[r]=e.absolute===this.cwd?[]:hu(()=>(e=>{if(!mu)return g.unlinkSync(e);let t=e+".DELETE."+j.randomBytes(16).toString("hex");g.renameSync(e,t),g.unlinkSync(t)})(String(e.absolute)));this[zs](r,e)}[Js](e,t){let n,r="number"==typeof e.mode?4095&e.mode:this.fmode,o=r=>{let o;try{g.closeSync(n)}catch(e){o=e}
250
- (r||o)&&this[tu](r||o,e),t()};try{n=g.openSync(String(e.absolute),js(e.size),r)}catch(e){return o(e)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",t=>this[tu](t,e)),e.pipe(a)),a.on("data",e=>{try{g.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{g.futimesSync(n,r,o)}catch(n){try{g.utimesSync(String(e.absolute),r,o)}catch{t=n}}}if(this[pu](e)){let r=this[lu](e),o=this[su](e);try{g.fchownSync(n,Number(r),Number(o))}catch(n){try{g.chownSync(String(e.absolute),Number(r),Number(o))}catch{t=t||n}}}o(t)})}[Ws](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[eu](String(e.absolute),n);if(r)return this[tu](r,e),void t();if(e.mtime&&!this.noMtime)try{g.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch{}if(this[pu](e))try{g.chownSync(String(e.absolute),Number(this[lu](e)),Number(this[su](e)))}catch{}t(),e.resume()}[eu](e,t){try{return Ds(wp(e),{uid:this.uid,
251
- gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t})}catch(e){return e}}[Ys](e,t,n,r,o){if(this.preservePaths||0===n.length)return r();let a=t;for(let e of n){a=b.resolve(a,e);let[i,d]=hu(()=>g.lstatSync(a));if(i)return r();if(d.isSymbolicLink())return o(new xs(a,b.resolve(t,n.join("/"))))}r()}[$s](e,t,n,r){let o=`${n}Sync`;try{g[o](t,String(e.absolute)),r(),e.resume()}catch(t){return this[tu](t,e)}}},Iu=jd(e=>{let t=new fu(e),n=e.file,r=g.statSync(n),o=e.maxReadSize||16777216;new Id(n,{readSize:o,size:r.size}).pipe(t)},(e,t)=>{let n=new vu(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("close",e),g.stat(o,(e,a)=>{if(e)t(e);else{let e=new fd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new fu(e),e=>new vu(e),(e,t)=>{t?.length&&rl(e,t)}),wu=(e,t,n,r,o)=>{let a=new bd(e.file,{fd:r,start:n});t.pipe(a),bu(t,o)},bu=(e,t)=>{
252
- t.forEach(t=>{"@"===t.charAt(0)?ol({file:b.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},gu=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await ol({file:b.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(n);e.end()},yu=jd((e,t)=>{let n,r,o=new us(e),a=!0;try{try{n=g.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;n=g.openSync(e.file,"w+")}let i=g.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=g.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 Qd(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,wu(e,o,r,n,t)}finally{if(a)try{g.closeSync(n)}catch{}}},(e,t)=>{t=Array.from(t);let n=new ss(e);return new Promise((r,o)=>{n.on("error",o)
253
- ;let a="r+",i=(d,p)=>d&&"ENOENT"===d.code&&"r+"===a?(a="w+",g.open(e.file,a,i)):d||!p?o(d):void g.fstat(p,(a,i)=>{if(a)return g.close(p,()=>o(a));((t,n,r)=>{let o=(e,n)=>{e?g.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 g.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 Qd(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,g.read(t,d,0,512,a,p)};g.read(t,d,0,512,a,p)})(p,i.size,(a,i)=>{if(a)return o(a);let d=new wd(e.file,{fd:p,start:i});n.pipe(d),d.on("error",o),d.on("close",r),gu(n,t)})});g.open(e.file,a,i)})},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(e,t)=>{
254
- if(!(e=>!!e.file)(e))throw new TypeError("file is required");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")});jd(yu.syncFile,yu.asyncFile,yu.syncNoFile,yu.asyncNoFile,(e,t=[])=>{yu.validate?.(e,t),Eu(e)});var Ru,ju,Eu=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 Uu,Cu=function(){if(ju)return Ru;function e(e){return Array.isArray(e)?e:[e]}ju=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
240
+ },Gs=Symbol("onEntry"),Ms=Symbol("checkFs"),zs=Symbol("checkFs2"),Js=Symbol("isReusable"),Ws=Symbol("makeFs"),$s=Symbol("file"),Hs=Symbol("directory"),Zs=Symbol("link"),Ys=Symbol("symlink"),Ks=Symbol("hardlink"),Xs=Symbol("ensureNoSymlink"),Qs=Symbol("unsupported"),eu=Symbol("checkPath"),tu=Symbol("stripAbsolutePath"),nu=Symbol("mkdir"),ru=Symbol("onError"),ou=Symbol("pending"),au=Symbol("pend"),iu=Symbol("unpend"),du=Symbol("ended"),pu=Symbol("maybeClose"),lu=Symbol("skip"),su=Symbol("doChown"),uu=Symbol("uid"),mu=Symbol("gid"),cu=Symbol("checkedCwd"),vu="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),hu=(e,t,n)=>void 0!==e&&e===e>>>0?e:void 0!==t&&t===t>>>0?t:n,fu=class extends rl{[du]=!1;[cu]=!1;[ou]=0;reservations=new Fs;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[du]=!0,this[pu]()},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||vu,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,
242
+ this.unlink=!!e.unlink,this.cwd=gp(b.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[Gs](e))}warn(e,t,n={}){return("TAR_BAD_ARCHIVE"===e||"TAR_ABORT"===e)&&(n.recoverable=!1),super.warn(e,t,n)}[pu](){this[du]&&0===this[ou]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[tu](e,t){let n=e[t],{type:r}=e;if(!n||this.preservePaths)return!0;let[o,a]=sl(n),i=a.replaceAll(/\\/g,"/").split("/");if(i.includes("..")||vu&&/^[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=b.posix.dirname(e.path),a=b.posix.normalize(b.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}[eu](e){let t=gp(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){let t=gp(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[tu](e,"path")||!this[tu](e,"linkpath"))return!1;if(e.absolute=b.isAbsolute(e.path)?gp(b.resolve(e.path)):gp(b.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:gp(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}=b.win32.parse(String(e.absolute));e.absolute=t+hl(String(e.absolute).slice(t.length));let{root:n}=b.win32.parse(e.path);e.path=n+hl(e.path.slice(n.length))}return!0}[Gs](e){if(!this[eu](e))return e.resume();switch(R.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[Ms](e);default:return this[Qs](e)}}[ru](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[iu](),t.resume())}[nu](e,t,n){Ts(gp(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)}[su](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}[uu](e){return hu(this.uid,e.uid,this.processUid)}[mu](e){return hu(this.gid,e.gid,this.processGid)}[$s](e,t){let n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new gd(String(e.absolute),{flags:Us(e.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&g.close(r.fd,()=>{}),r.write=()=>!0,this[ru](n,e),t()});let o=1,a=n=>{if(n)return r.fd&&g.close(r.fd,()=>{}),this[ru](n,e),void t();0===--o&&void 0!==r.fd&&g.close(r.fd,n=>{n?this[ru](n,e):this[iu](),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;g.futimes(n,r,i,e=>e?g.utimes(t,r,i,t=>a(t&&e)):a())}if("number"==typeof n&&this[su](e)){o++;let r=this[uu](e),i=this[mu](e)
246
+ ;"number"==typeof r&&"number"==typeof i&&g.fchown(n,r,i,e=>e?g.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[ru](n,e),t()}),e.pipe(i)),i.pipe(r)}[Hs](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode;this[nu](String(e.absolute),n,n=>{if(n)return this[ru](n,e),void t();let r=1,o=()=>{0===--r&&(t(),this[iu](),e.resume())};e.mtime&&!this.noMtime&&(r++,g.utimes(String(e.absolute),e.atime||new Date,e.mtime,o)),this[su](e)&&(r++,g.chown(String(e.absolute),Number(this[uu](e)),Number(this[mu](e)),o)),o()})}[Qs](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[Ys](e,t){let n=gp(b.relative(this.cwd,b.resolve(b.dirname(String(e.absolute)),String(e.linkpath)))).split("/");this[Xs](e,this.cwd,n,()=>this[Zs](e,String(e.linkpath),"symlink",t),n=>{this[ru](n,e),t()})}[Ks](e,t){let n=gp(b.resolve(this.cwd,String(e.linkpath))),r=gp(String(e.linkpath)).split("/")
247
+ ;this[Xs](e,this.cwd,r,()=>this[Zs](e,n,"link",t),n=>{this[ru](n,e),t()})}[Xs](e,t,n,r,o){let a=n.shift();if(this.preservePaths||void 0===a)return r();let i=b.resolve(t,a);g.lstat(i,(t,a)=>t?r():a?.isSymbolicLink()?o(new ks(i,b.resolve(i,n.join("/")))):void this[Xs](e,i,n,r,o))}[au](){this[ou]++}[iu](){this[ou]--,this[pu]()}[lu](e){this[iu](),e.resume()}[Js](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!vu}[Ms](e){this[au]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,t=>this[zs](e,t))}[zs](e,t){let n=e=>{t(e)},r=()=>{if(e.absolute!==this.cwd){let t=gp(b.dirname(String(e.absolute)));if(t!==this.cwd)return this[nu](t,this.dmode,t=>{if(t)return this[ru](t,e),void n();o()})}o()},o=()=>{g.lstat(String(e.absolute),(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[lu](e),void n();if(t||this[Js](e,r))return this[Ws](null,e,n);if(r.isDirectory()){if("Directory"===e.type){let t=t=>this[Ws](t??null,e,n)
248
+ ;return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?g.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return g.rmdir(String(e.absolute),t=>this[Ws](t??null,e,n))}if(e.absolute===this.cwd)return this[Ws](null,e,n);((e,t)=>{if(!vu)return g.unlink(e,t);let n=e+".DELETE."+j.randomBytes(16).toString("hex");g.rename(e,n,e=>{if(e)return t(e);g.unlink(n,t)})})(String(e.absolute),t=>this[Ws](t??null,e,n))})};this[cu]?r():(()=>{this[nu](this.cwd,this.dmode,t=>{if(t)return this[ru](t,e),void n();this[cu]=!0,r()})})()}[Ws](e,t,n){if(e)return this[ru](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[$s](t,n);case"Link":return this[Ks](t,n);case"SymbolicLink":return this[Ys](t,n);case"Directory":case"GNUDumpDir":return this[Hs](t,n)}}[Zs](e,t,n,r){g[n](t,String(e.absolute),t=>{t?this[ru](t,e):(this[iu](),e.resume()),r()})}},Iu=e=>{try{return[null,e()]}catch(e){return[e,null]}},wu=class extends fu{sync=!0;[Ws](e,t){
249
+ return super[Ws](e,t,()=>{})}[Ms](e){if(!this[cu]){let t=this[nu](this.cwd,this.dmode);if(t)return this[ru](t,e);this[cu]=!0}if(e.absolute!==this.cwd){let t=gp(b.dirname(String(e.absolute)));if(t!==this.cwd){let n=this[nu](t,this.dmode);if(n)return this[ru](n,e)}}let[t,n]=Iu(()=>g.lstatSync(String(e.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[lu](e);if(t||this[Js](e,n))return this[Ws](null,e);if(n.isDirectory()){if("Directory"===e.type){let t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?Iu(()=>{g.chmodSync(String(e.absolute),Number(e.mode))}):[];return this[Ws](r,e)}let[t]=Iu(()=>g.rmdirSync(String(e.absolute)));this[Ws](t,e)}let[r]=e.absolute===this.cwd?[]:Iu(()=>(e=>{if(!vu)return g.unlinkSync(e);let t=e+".DELETE."+j.randomBytes(16).toString("hex");g.renameSync(e,t),g.unlinkSync(t)})(String(e.absolute)));this[Ws](r,e)}[$s](e,t){let n,r="number"==typeof e.mode?4095&e.mode:this.fmode,o=r=>{let o;try{g.closeSync(n)}catch(e){o=e}
250
+ (r||o)&&this[ru](r||o,e),t()};try{n=g.openSync(String(e.absolute),Us(e.size),r)}catch(e){return o(e)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",t=>this[ru](t,e)),e.pipe(a)),a.on("data",e=>{try{g.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{g.futimesSync(n,r,o)}catch(n){try{g.utimesSync(String(e.absolute),r,o)}catch{t=n}}}if(this[su](e)){let r=this[uu](e),o=this[mu](e);try{g.fchownSync(n,Number(r),Number(o))}catch(n){try{g.chownSync(String(e.absolute),Number(r),Number(o))}catch{t=t||n}}}o(t)})}[Hs](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[nu](String(e.absolute),n);if(r)return this[ru](r,e),void t();if(e.mtime&&!this.noMtime)try{g.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch{}if(this[su](e))try{g.chownSync(String(e.absolute),Number(this[uu](e)),Number(this[mu](e)))}catch{}t(),e.resume()}[nu](e,t){try{return Ls(gp(e),{uid:this.uid,
251
+ gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t})}catch(e){return e}}[Xs](e,t,n,r,o){if(this.preservePaths||0===n.length)return r();let a=t;for(let e of n){a=b.resolve(a,e);let[i,d]=Iu(()=>g.lstatSync(a));if(i)return r();if(d.isSymbolicLink())return o(new ks(a,b.resolve(t,n.join("/"))))}r()}[Zs](e,t,n,r){let o=`${n}Sync`;try{g[o](t,String(e.absolute)),r(),e.resume()}catch(t){return this[ru](t,e)}}},bu=Ud(e=>{let t=new wu(e),n=e.file,r=g.statSync(n),o=e.maxReadSize||16777216;new bd(n,{readSize:o,size:r.size}).pipe(t)},(e,t)=>{let n=new fu(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("close",e),g.stat(o,(e,a)=>{if(e)t(e);else{let e=new wd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new wu(e),e=>new fu(e),(e,t)=>{t?.length&&al(e,t)}),gu=(e,t,n,r,o)=>{let a=new yd(e.file,{fd:r,start:n});t.pipe(a),yu(t,o)},yu=(e,t)=>{
252
+ t.forEach(t=>{"@"===t.charAt(0)?il({file:b.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Ru=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await il({file:b.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(n);e.end()},ju=Ud((e,t)=>{let n,r,o=new cs(e),a=!0;try{try{n=g.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;n=g.openSync(e.file,"w+")}let i=g.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=g.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 tp(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,gu(e,o,r,n,t)}finally{if(a)try{g.closeSync(n)}catch{}}},(e,t)=>{t=Array.from(t);let n=new ms(e);return new Promise((r,o)=>{n.on("error",o)
253
+ ;let a="r+",i=(d,p)=>d&&"ENOENT"===d.code&&"r+"===a?(a="w+",g.open(e.file,a,i)):d||!p?o(d):void g.fstat(p,(a,i)=>{if(a)return g.close(p,()=>o(a));((t,n,r)=>{let o=(e,n)=>{e?g.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 g.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 tp(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,g.read(t,d,0,512,a,p)};g.read(t,d,0,512,a,p)})(p,i.size,(a,i)=>{if(a)return o(a);let d=new gd(e.file,{fd:p,start:i});n.pipe(d),d.on("error",o),d.on("close",r),Ru(n,t)})});g.open(e.file,a,i)})},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(e,t)=>{
254
+ if(!(e=>!!e.file)(e))throw new TypeError("file is required");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")});Ud(ju.syncFile,ju.asyncFile,ju.syncNoFile,ju.asyncNoFile,(e,t=[])=>{ju.validate?.(e,t),Cu(e)});var Eu,Uu,Cu=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 _u,Su=function(){if(Uu)return Eu;function e(e){return Array.isArray(e)?e:[e]}Uu=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
255
255
  ;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/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))
256
256
  ;const i=((e,t)=>{let n=m[e];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 b{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)){
257
- const t=h(e,this._ignoreCase);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 g=e=>new b(e);if(g.isPathValid=e=>I(e&&I.convert(e),e,s),g.default=g,Ru=g,
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 Ru}(),_u=Xn(Cu);exports.CopyType=void 0,(Uu=exports.CopyType||(exports.CopyType={})).DIRECTORY_UPLOAD="directory-upload",Uu.FILE_UPLOAD="file-upload",Uu.DIRECTORY_DOWNLOAD="directory-download",Uu.FILE_DOWNLOAD="file-download";var Su,Nu=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=_u({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 k(n,void 0,void 0,function(){var t,n,r;return T(this,function(o){switch(o.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)]
257
+ const t=h(e,this._ignoreCase);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 g=e=>new b(e);if(g.isPathValid=e=>I(e&&I.convert(e),e,s),g.default=g,Eu=g,
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 Eu}(),Nu=Xn(Su);exports.CopyType=void 0,(_u=exports.CopyType||(exports.CopyType={})).DIRECTORY_UPLOAD="directory-upload",_u.FILE_UPLOAD="file-upload",_u.DIRECTORY_DOWNLOAD="directory-download",_u.FILE_DOWNLOAD="file-download";var Au,xu=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=Nu({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 k(n,void 0,void 0,function(){var t,n,r;return T(this,function(o){switch(o.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)]
259
259
  ;case 1:if(n=o.sent(),"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 k(n,void 0,void 0,function(){var e,t,n;return T(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 k(n,void 0,void 0,function(){var t;return T(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 k(n,void 0,void 0,function(){var t;return T(this,function(n){switch(n.label){case 0:return t=["test","-d",e],[4,this.runCommand(t)];case 1:
260
260
  return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsFileRemote=function(e){return k(n,void 0,void 0,function(){var t;return T(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 k(n,D([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"),T(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 k(n,void 0,void 0,function(){
261
- var t,n,r,o,a,i,d,p,l,s,u;return T(this,function(m){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 k(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,c,v,h,f;return T(this,function(I){switch(I.label){case 0:if(void 0===e||!u.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."))
262
- ;return r=u.lstatSync(e).isFile(),o=r?m.dirname(e):e,a=r?m.basename(e):".",i=r&&void 0!==t&&""!==m.extname(t),d=i?m.dirname(t):null!=t?t:o,p=void 0!==t?m.basename(t):a,l=vs({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(a,p):void 0},bo(a)),[4,this.ensureTarCmd()];case 1:return I.sent(),[4,this.ensureDirRemote(d)];case 2:return I.sent(),s=D(D(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",d],!1),[4,this.runSession(s)];case 3:return c=I.sent(),v=new yo,h=new yo,c.stdErr.pipe(v),c.stdOut.pipe(h),l.pipe(c.stdIn),[4,c.waitForCommandResult()];case 4:if("Success"!==(null==(f=I.sent())?void 0:f.status))throw new Error("Failed to upload file to container: ".concat(null==f?void 0:f.message,", error details: ").concat(v.getContentsAsString(),"; ").concat(h.getContentsAsString()));return r?[2,{type:exports.CopyType.FILE_UPLOAD,sourceDirectory:o,sourceFile:a,targetDirectory:d,targetFile:p}]:[2,{
263
- type:exports.CopyType.DIRECTORY_UPLOAD,sourceDirectory:o,targetDirectory:d}]}})})},e.prototype.uploadStream=function(e,t){return k(this,void 0,void 0,function(){var r,o,a,i,d,p,l;return T(this,function(s){switch(s.label){case 0:return r=function(e){var t=new n.Transform({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),r="string"==typeof e,o=Buffer.isBuffer(e);return r||o?n.Readable.from(e).pipe(t):e.pipe(t)},o=m.dirname(t),[4,this.ensureTarCmd()];case 1:return s.sent(),[4,this.ensureDirRemote(o)];case 2:return s.sent(),a=["tee",t],[4,this.runSession(a)];case 3:return i=s.sent(),d=new yo,p=new yo,i.stdErr.pipe(d),i.stdOut.pipe(p),r(e).pipe(i.stdIn),[4,i.waitForCommandResult()];case 4:return l=s.sent(),[4,this.runCommand(["cat",t])];case 5:if(s.sent(),"Success"!==(null==l?void 0:l.status))throw new Error("Failed to upload file to container: ".concat(null==l?void 0:l.message,", error details: ").concat(d.getContentsAsString(),"; ").concat(p.getContentsAsString()))
264
- ;return[2]}})})},e.prototype.downloadFiles=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,c,v,h,f,I,w;return T(this,function(b){switch(b.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!b.sent(),b.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=b.sent(),a=o?e:m.dirname(e),i=o?".":m.basename(e),d=void 0!==t&&""!==m.extname(t),p=!o&&d?m.basename(t):i,(l=void 0!==t?d?m.dirname(t):t:".")&&u.mkdirSync(l,{recursive:!0}),s=bo(null!=n?n:[]).map(function(e){return"--exclude=".concat(e)}),c=D(D(["tar","-zcf","-"],["--no-same-owner"],!0),s,!0),v=D(D([],c,!0),["-C",a,i],!1),[4,this.runSession(v)];case 4:return h=b.sent(),f=Iu({cwd:l,gzip:{encoding:this.defaultEncoding},onReadEntry:p?this.getTarTransformFn(i,p):void 0}),I=new yo,h.stdErr.pipe(I),h.stdOut.pipe(f),[4,h.waitForCommandResult()];case 5:
265
- if("Success"!==(null==(w=b.sent())?void 0:w.status))throw new Error("Failed to download file from container: ".concat(null==w?void 0:w.message,", error details: ").concat(I.getContentsAsString()));return o?[2,{type:exports.CopyType.DIRECTORY_DOWNLOAD,sourceDirectory:a,targetDirectory:l}]:[2,{type:exports.CopyType.FILE_DOWNLOAD,sourceDirectory:a,sourceFile:i,targetDirectory:l,targetFile:p}]}})})},e.prototype.downloadStream=function(e){return k(this,void 0,void 0,function(){var t,n,r,o;return T(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=m.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 yo,r.stdErr.pipe(o),[2,{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(function(e){return 0===e.exitCode})}]}})})},e}(),Au=function(){
266
- function e(e,t){this.exec=e,this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 Nu(this.exec,P(P({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFiles=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,
267
- o=e.teamId,a={teamId:o,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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 Nu(this.exec,P(P({},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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){switch(i.label){
268
- case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Nu(this.exec,P(P({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFiles=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 Nu(this.exec,P(P({},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 k(this,void 0,void 0,function(){var r,o,a;return T(this,function(i){switch(i.label){case 0:switch(r=new Nu(this.exec,P(P({},e),{instanceName:t.instanceName,containerName:t.containerName})),o=D(D([],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}(),xu=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 x(t,e),t}(Error);exports.LogType=void 0,(Su=exports.LogType||(exports.LogType={})).CDN="cdn",Su.Mesh="mesh",Su.Ingress="ingress",Su.Runtime="runtime";var Pu,ku=function(e){return{
270
- containerId:e.containerId,log:e.log,ts:new Date(e.ts)}},Tu=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 k(a,void 0,void 0,function(){var e;return T(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 x(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,b=e.textIncludes,g=e.textNotIncludes,y=e.regexIncludes,R=e.regexNotIncludes,j=void 0!==m?"teams/".concat(m,"/"):"",E="/v1/".concat(j,"projects/").concat(c,"/"),U=new URLSearchParams;return U.append("queryType",v),void 0!==h&&U.append("startTime",h.toISOString()),void 0!==f&&U.append("endTime",f.toISOString()),
261
+ var t,n,r,o,a,i,d,p,l,s,u;return T(this,function(m){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 k(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,u,v,h,f;return T(this,function(I){switch(I.label){case 0:if(void 0===e||!m.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."))
262
+ ;return r=m.lstatSync(e).isFile(),o=r?c.dirname(e):e,a=r?c.basename(e):".",i=r&&void 0!==t&&""!==c.extname(t),d=i?c.dirname(t):null!=t?t:o,p=void 0!==t?c.basename(t):a,l=fs({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(a,p):void 0},ma(a)),[4,this.ensureTarCmd()];case 1:return I.sent(),[4,this.ensureDirRemote(d)];case 2:return I.sent(),s=D(D(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",d],!1),[4,this.runSession(s)];case 3:return u=I.sent(),v=new ja,h=new ja,u.stdErr.pipe(v),u.stdOut.pipe(h),l.pipe(u.stdIn),[4,u.waitForCommandResult()];case 4:if("Success"!==(null==(f=I.sent())?void 0:f.status))throw new Error("Failed to upload file to container: ".concat(null==f?void 0:f.message,", error details: ").concat(v.getContentsAsString(),"; ").concat(h.getContentsAsString()));return r?[2,{type:exports.CopyType.FILE_UPLOAD,sourceDirectory:o,sourceFile:a,targetDirectory:d,targetFile:p}]:[2,{
263
+ type:exports.CopyType.DIRECTORY_UPLOAD,sourceDirectory:o,targetDirectory:d}]}})})},e.prototype.uploadStream=function(e,t){return k(this,void 0,void 0,function(){var r,o,a,i,d,p,l;return T(this,function(s){switch(s.label){case 0:return r=function(e){var t=new n.Transform({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),r="string"==typeof e,o=Buffer.isBuffer(e);return r||o?n.Readable.from(e).pipe(t):e.pipe(t)},o=c.dirname(t),[4,this.ensureTarCmd()];case 1:return s.sent(),[4,this.ensureDirRemote(o)];case 2:return s.sent(),a=["tee",t],[4,this.runSession(a)];case 3:return i=s.sent(),d=new ja,p=new ja,i.stdErr.pipe(d),i.stdOut.pipe(p),r(e).pipe(i.stdIn),[4,i.waitForCommandResult()];case 4:return l=s.sent(),[4,this.runCommand(["cat",t])];case 5:if(s.sent(),"Success"!==(null==l?void 0:l.status))throw new Error("Failed to upload file to container: ".concat(null==l?void 0:l.message,", error details: ").concat(d.getContentsAsString(),"; ").concat(p.getContentsAsString()))
264
+ ;return[2]}})})},e.prototype.downloadFiles=function(e,t,n){return k(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,u,v,h,f,I,w;return T(this,function(b){switch(b.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!b.sent(),b.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=b.sent(),a=o?e:c.dirname(e),i=o?".":c.basename(e),d=void 0!==t&&""!==c.extname(t),p=!o&&d?c.basename(t):i,(l=void 0!==t?d?c.dirname(t):t:".")&&m.mkdirSync(l,{recursive:!0}),s=ma(null!=n?n:[]).map(function(e){return"--exclude=".concat(e)}),u=D(D(["tar","-zcf","-"],["--no-same-owner"],!0),s,!0),v=D(D([],u,!0),["-C",a,i],!1),[4,this.runSession(v)];case 4:return h=b.sent(),f=bu({cwd:l,gzip:{encoding:this.defaultEncoding},onReadEntry:p?this.getTarTransformFn(i,p):void 0}),I=new ja,h.stdErr.pipe(I),h.stdOut.pipe(f),[4,h.waitForCommandResult()];case 5:
265
+ if("Success"!==(null==(w=b.sent())?void 0:w.status))throw new Error("Failed to download file from container: ".concat(null==w?void 0:w.message,", error details: ").concat(I.getContentsAsString()));return o?[2,{type:exports.CopyType.DIRECTORY_DOWNLOAD,sourceDirectory:a,targetDirectory:l}]:[2,{type:exports.CopyType.FILE_DOWNLOAD,sourceDirectory:a,sourceFile:i,targetDirectory:l,targetFile:p}]}})})},e.prototype.downloadStream=function(e){return k(this,void 0,void 0,function(){var t,n,r,o;return T(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=c.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 ja,r.stdErr.pipe(o),[2,{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(function(e){return 0===e.exitCode})}]}})})},e}(),Pu=function(){
266
+ function e(e,t){this.exec=e,this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 xu(this.exec,P(P({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFiles=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,
267
+ o=e.teamId,a={teamId:o,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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 xu(this.exec,P(P({},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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 k(this,void 0,void 0,function(){var n,r,o,a;return T(this,function(i){switch(i.label){
268
+ case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new xu(this.exec,P(P({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFiles=function(e,t){return k(this,void 0,void 0,function(){var n,r,o,a;return T(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 k(this,void 0,void 0,function(){var n,r,o,a;return T(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 xu(this.exec,P(P({},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 k(this,void 0,void 0,function(){var r,o,a;return T(this,function(i){switch(i.label){case 0:switch(r=new xu(this.exec,P(P({},e),{instanceName:t.instanceName,containerName:t.containerName})),o=D(D([],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}(),ku=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 x(t,e),t}(Error);exports.LogType=void 0,(Au=exports.LogType||(exports.LogType={})).CDN="cdn",Au.Mesh="mesh",Au.Ingress="ingress",Au.Runtime="runtime";var Tu,Du=function(e){return{
270
+ containerId:e.containerId,log:e.log,ts:new Date(e.ts)}},Ou=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 k(a,void 0,void 0,function(){var e;return T(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 x(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,b=e.textIncludes,g=e.textNotIncludes,y=e.regexIncludes,R=e.regexNotIncludes,j=void 0!==m?"teams/".concat(m,"/"):"",E="/v1/".concat(j,"projects/").concat(c,"/"),U=new URLSearchParams;return U.append("queryType",v),void 0!==h&&U.append("startTime",h.toISOString()),void 0!==f&&U.append("endTime",f.toISOString()),
271
271
  void 0!==u&&U.append("lineLimit",u.toString()),void 0!==t&&U.append("containerName",t),void 0!==l&&U.append("deploymentId",l),void 0!==i&&U.append("runId",i),void 0!==a&&U.append("buildId",a),void 0!==b&&U.append("textIncludes",b),void 0!==g&&U.append("textNotIncludes",g),void 0!==y&&U.append("regexIncludes",y),void 0!==R&&U.append("regexNotIncludes",R),void 0!==w&&U.append("direction",w),void 0!==I&&U.append("duration",I.toString()),void 0!==n&&n.forEach(function(e){return U.append("type",e)}),"".concat(E).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))
272
- }}(),"?").concat(U.toString())},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 k(this,void 0,void 0,function(){var e=this;return T(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 $a(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(ku));break;case"error":
273
- 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}(e.EventEmitter),Du=function(){if(lo)try{
274
- return JSON.parse(u.readFileSync(m.join(m.dirname(a.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:U&&"SCRIPT"===U.tagName.toUpperCase()&&U.src||new URL("api-client.js",document.baseURI).href)),"../../package.json")).toString())}catch(e){return{}}return{}},Ou=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return k(n,void 0,void 0,function(){return T(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=Du())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){return k(this,void 0,void 0,function(){
275
- var t,n,r,o,a,i,d,p,l,s,u,m,c,v=this;return T(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=P(P({url:a},r),{body:i}),[4,Ju(a,P(P({},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 xu(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,{
276
- data:null==u?void 0:u.data,rawResponse:p,request:d,error:m,pagination:null==u?void 0:u.pagination}]}})})},e}(),Lu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="get",t.body=function(){},t}return x(t,e),t}(Ou),qu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return k(t,void 0,void 0,function(){return T(this,function(t){return[2,new Mu(this,e).getAll()]})})},t.call=function(n){return k(t,void 0,void 0,function(){var t,r=this;return T(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,P(P({},t),{pagination:P(P({},t.pagination),{getNextPage:function(){return k(r,void 0,void 0,function(){var e,r,o,a,i,d,p,l=this;return T(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=P(P({},t),{pagination:P(P({},t.pagination),{count:0}),data:r}),
277
- [2,(a=function(e){return P(P({},e),{pagination:P(P({},e.pagination),{getNextPage:function(){return k(l,void 0,void 0,function(){return T(this,function(t){return[2,a(e)]})})}})})})(o)]):[2,new Mu(this,n,null===(p=t.pagination)||void 0===p?void 0:p.cursor).getNext()]})})}})})]}})})},t}return x(t,e),t}(Lu),Bu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return x(t,e),t}(Ou),Vu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t.body=function(){},t}return x(t,e),t}(Ou),Fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return x(t,e),t}(Ou),Gu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return x(t,e),t}(Ou),Mu=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}
272
+ }}(),"?").concat(U.toString())},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 k(this,void 0,void 0,function(){var e=this;return T(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=va(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(Du));break;case"error":
273
+ 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"),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}(e.EventEmitter),Lu=function(){if(la)try{
274
+ return JSON.parse(m.readFileSync(c.join(c.dirname(a.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:U&&"SCRIPT"===U.tagName.toUpperCase()&&U.src||new URL("api-client.js",document.baseURI).href)),"../../package.json")).toString())}catch(e){return{}}return{}},qu=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return k(n,void 0,void 0,function(){return T(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=Lu())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){return k(this,void 0,void 0,function(){
275
+ var t,n,r,o,a,i,d,p,l,s,u,m,c,v=this;return T(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=P(P({url:a},r),{body:i}),[4,$u(a,P(P({},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 ku(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,{
276
+ data:null==u?void 0:u.data,rawResponse:p,request:d,error:m,pagination:null==u?void 0:u.pagination}]}})})},e}(),Bu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="get",t.body=function(){},t}return x(t,e),t}(qu),Vu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return k(t,void 0,void 0,function(){return T(this,function(t){return[2,new Ju(this,e).getAll()]})})},t.call=function(n){return k(t,void 0,void 0,function(){var t,r=this;return T(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,P(P({},t),{pagination:P(P({},t.pagination),{getNextPage:function(){return k(r,void 0,void 0,function(){var e,r,o,a,i,d,p,l=this;return T(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=P(P({},t),{pagination:P(P({},t.pagination),{count:0}),data:r}),
277
+ [2,(a=function(e){return P(P({},e),{pagination:P(P({},e.pagination),{getNextPage:function(){return k(l,void 0,void 0,function(){return T(this,function(t){return[2,a(e)]})})}})})})(o)]):[2,new Ju(this,n,null===(p=t.pagination)||void 0===p?void 0:p.cursor).getNext()]})})}})})]}})})},t}return x(t,e),t}(Bu),Fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return x(t,e),t}(qu),Gu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t.body=function(){},t}return x(t,e),t}(qu),Mu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return x(t,e),t}(qu),zu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return x(t,e),t}(qu),Ju=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}
278
278
  return Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){return k(this,void 0,void 0,function(){var e,t,n,r,o,a,i,d,p;return T(this,function(l){switch(l.label){case 0:return[4,this.endpoint.call(P(P({},this.opts),{options:P(P({},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 k(this,void 0,void 0,function(){var e,t,n,r,o,a,i;return T(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:
279
- 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}(),zu=function(e){return new Promise(function(t){setTimeout(function(){t()},e)})},Ju=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 so(e,t).then(function(e){o(e)}).catch(function(e){return k(void 0,void 0,void 0,function(){return T(this,function(t){switch(t.label){case 0:return n>0?[4,zu(r)]:[3,2];case 1:return t.sent(),[2,i(n-1)];case 2:return[2,a(e)]}})})})};return i(n)})},Wu=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){
280
- return Tu.getLogsEndpoint(e)},t.body=function(){},t}return x(t,e),t}(Lu),$u=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,this.clientOpts=t,this.getServiceLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r,o,a,i;return T(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,P(P({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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){
279
+ 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}(),Wu=function(e){return new Promise(function(t){setTimeout(function(){t()},e)})},$u=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 sa(e,t).then(function(e){o(e)}).catch(function(e){return k(void 0,void 0,void 0,function(){return T(this,function(t){switch(t.label){case 0:return n>0?[4,Wu(r)]:[3,2];case 1:return t.sent(),[2,i(n-1)];case 2:return[2,a(e)]}})})})};return i(n)})},Hu=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){
280
+ return Ou.getLogsEndpoint(e)},t.body=function(){},t}return x(t,e),t}(Bu),Zu=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,this.clientOpts=t,this.getServiceLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r,o,a,i;return T(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,P(P({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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){
281
281
  return k(n,void 0,void 0,function(){var t,n,r,o,a,i;return T(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,P(P({},n),{isBuild:!0}),"job")]})})},this.getAddonLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r;return T(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,P(P({},n),{backupId:t.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r,o,a,i,d;return T(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,
282
- restoreId:t.restoreId},[2,this.logRange(i,P(P({},n),d),"addonRestore")]})})},this.logRange=function(e,t,r){return k(n,void 0,void 0,function(){var n,o,a,i,d,p;return T(this,function(l){switch(l.label){case 0:return n=e.entityId,o=e.projectId,a=e.teamId,i=P(P({teamId:a,projectId:o,entityId:n,entityType:r},t),{queryType:"range"}),[4,new Wu(this.contextProvider,this.clientOpts).call(i)];case 1:return(d=l.sent()).error?[2,d]:[2,P(P({},d),{data:null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.map(ku)})]}})})},this.tailServiceLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r,o,a,i;return T(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},
282
+ restoreId:t.restoreId},[2,this.logRange(i,P(P({},n),d),"addonRestore")]})})},this.logRange=function(e,t,r){return k(n,void 0,void 0,function(){var n,o,a,i,d,p;return T(this,function(l){switch(l.label){case 0:return n=e.entityId,o=e.projectId,a=e.teamId,i=P(P({teamId:a,projectId:o,entityId:n,entityType:r},t),{queryType:"range"}),[4,new Hu(this.contextProvider,this.clientOpts).call(i)];case 1:return(d=l.sent()).error?[2,d]:[2,P(P({},d),{data:null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.map(Du)})]}})})},this.tailServiceLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r,o,a,i;return T(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},
283
283
  [2,this.logTail(i,P(P({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r,o,a;return T(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,P(P({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r;return T(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 k(n,void 0,void 0,function(){var t,n,r;return T(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,
284
- teamId:t.teamId},[2,this.logTail(r,P(P({},n),{backupId:t.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r,o;return T(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,P(P({},n),o),"addonRestore")]})})},this.logTail=function(e,t,r){return k(n,void 0,void 0,function(){var n,o,a,i,d,p;return T(this,function(l){if(n=e.entityId,o=e.projectId,a=e.teamId,i=P({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 Tu(d,i,p,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!lo)throw new Error("Command exec only possible when started with nodejs")}},Hu=function(e){function t(){
284
+ teamId:t.teamId},[2,this.logTail(r,P(P({},n),{backupId:t.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(e){return k(n,void 0,void 0,function(){var t,n,r,o;return T(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,P(P({},n),o),"addonRestore")]})})},this.logTail=function(e,t,r){return k(n,void 0,void 0,function(){var n,o,a,i,d,p;return T(this,function(l){if(n=e.entityId,o=e.projectId,a=e.teamId,i=P({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 Ou(d,i,p,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!la)throw new Error("Command exec only possible when started with nodejs")}},Yu=function(e){function t(){
285
285
  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,"/");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)}),
286
- "".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 x(t,e),t}(Lu),Zu=function(e){return{metadata:e.metadata,data:e.data.map(function(e){return{value:e.value,ts:new Date(e.ts)}})}};exports.MetricType=void 0,(Pu=exports.MetricType||(exports.MetricType={})).Cpu="cpu",Pu.Memory="memory",Pu.NetworkIngress="networkIngress",Pu.NetworkEgress="networkEgress",Pu.TcpConnectionOpen="tcpConnectionsOpen",Pu.PvcUsage="diskUsage",Pu.Requests="requests",Pu.Http4xxResponses="http4xxResponses",Pu.Http5xxResponses="http5xxResponses",Pu.Bandwidth="bandwidth",Pu.BandwidthVolume="bandwidthVolume";var Yu=function(e){var t=this;this.contextProvider=e,
286
+ "".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 x(t,e),t}(Bu),Ku=function(e){return{metadata:e.metadata,data:e.data.map(function(e){return{value:e.value,ts:new Date(e.ts)}})}};exports.MetricType=void 0,(Tu=exports.MetricType||(exports.MetricType={})).Cpu="cpu",Tu.Memory="memory",Tu.NetworkIngress="networkIngress",Tu.NetworkEgress="networkEgress",Tu.TcpConnectionOpen="tcpConnectionsOpen",Tu.PvcUsage="diskUsage",Tu.Requests="requests",Tu.Http4xxResponses="http4xxResponses",Tu.Http5xxResponses="http5xxResponses",Tu.Bandwidth="bandwidth",Tu.BandwidthVolume="bandwidthVolume";var Xu=function(e){var t=this;this.contextProvider=e,
287
287
  this.getServiceMetrics=function(e){return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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 k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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,P(P({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(e){return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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 k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,
288
288
  o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,P(P({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(e){return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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 k(t,void 0,void 0,function(){var t,o,a,i;return T(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=P(P({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(i)]})})},this.getServiceMetricsRange=function(e){return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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){
289
289
  return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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,P(P({},n),{isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(e){return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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 k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(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,P(P({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(e){return k(t,void 0,void 0,function(){var t,n,r,o,a,i;return T(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.addonId,a=t.teamId,i={
290
- entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"addon")]})})},this.metricsRange=function(e,n,r){return k(t,void 0,void 0,function(){var t,o,a,i;return T(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=P(P({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(i)]})})},this.getMetrics=function(e){return k(t,void 0,void 0,function(){var t;return T(this,function(n){switch(n.label){case 0:return[4,new Hu(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,P(P({},t),{data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,P(P({},n),{values:n.values.map(Zu)})]}))})]}})})}},Ku=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 x(t,e),t
291
- }(Lu),Xu=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,"'"))}),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}
292
- return x(t,e),t}(qu),Qu=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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"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 x(t,e),t}(Bu),em=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,
290
+ entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"addon")]})})},this.metricsRange=function(e,n,r){return k(t,void 0,void 0,function(){var t,o,a,i;return T(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=P(P({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"range"}),[2,this.getMetrics(i)]})})},this.getMetrics=function(e){return k(t,void 0,void 0,function(){var t;return T(this,function(n){switch(n.label){case 0:return[4,new Yu(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,P(P({},t),{data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,P(P({},n),{values:n.values.map(Ku)})]}))})]}})})}},Qu=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 x(t,e),t
291
+ }(Bu),em=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,"'"))}),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}
292
+ return x(t,e),t}(Vu),tm=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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"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 x(t,e),t}(Fu),nm=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,
293
293
  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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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(){},t}return x(t,e),t}(Lu),tm=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,"'"))}),
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(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Gu),nm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
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(){},t}return x(t,e),t}(Bu),rm=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,"'"))}),
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(e){return JSON.stringify(e.data)},t}return x(t,e),t}(zu),om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
296
296
  ;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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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{
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");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return x(t,e),t}(Vu),rm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;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,"'"))}),
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");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return x(t,e),t}(Gu),am=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;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,"'"))}),
298
298
  (null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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{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]
299
- }),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 x(t,e),t}(qu),om=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;if(void 0===(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){
300
- return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return x(t,e),t}(qu),am=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;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,"'"))}),
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),"/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){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return x(t,e),t}(Lu),im=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 x(t,e),t}(Lu),dm=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,
302
- 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,"'"))}),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 x(t,e),t}(qu),pm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,
303
- 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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"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 x(t,e),t}(Bu),lm=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
304
- ;if(void 0===(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/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Fu),sm=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 x(t,e),t}(Lu),um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cluster.",t.withAuth=!0,
299
+ }),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 x(t,e),t}(Vu),im=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;if(void 0===(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){
300
+ return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return x(t,e),t}(Vu),dm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;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,"'"))}),
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),"/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){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return x(t,e),t}(Bu),pm=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 x(t,e),t}(Bu),lm=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,
302
+ 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,"'"))}),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 x(t,e),t}(Vu),sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,
303
+ 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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"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 x(t,e),t}(Fu),um=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
304
+ ;if(void 0===(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/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Mu),mm=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 x(t,e),t}(Bu),cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cluster.",t.withAuth=!0,
306
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")
307
- ;o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Gu),mm=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 x(t,e),t}(Vu),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 x(t,e),t}(zu),vm=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 x(t,e),t}(Gu),hm=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,
309
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")
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 x(t,e),t}(qu),vm=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 x(t,e),t}(Vu),fm=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,"'"))}),
311
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{
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 x(t,e),t}(Bu),hm=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 x(t,e),t}(Fu),Im=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
313
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{
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 x(t,e),t}(Bu),fm=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 x(t,e),t}(Fu),wm=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
315
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{
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 x(t,e),t}(Bu),Im=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 x(t,e),t}(qu),wm=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 x(t,e),t}(Bu),bm=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 x(t,e),t}(Fu),gm=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 x(t,e),t}(Lu),ym=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 x(t,e),t}(Fu),bm=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 x(t,e),t}(Vu),gm=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 x(t,e),t}(Fu),ym=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 x(t,e),t}(Mu),Rm=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 x(t,e),t}(Bu),jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a integration.",t.withAuth=!0,
321
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")
322
- ;o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Gu),Rm=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 x(t,e),t}(Vu),jm=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 x(t,e),t}(qu),Em=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 x(t,e),t}(qu),Um=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 x(t,e),t}(Lu),Cm=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 x(t,e),t}(Lu),_m=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 x(t,e),t}(qu),Sm=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 x(t,e),t
328
- }(Bu),Nm=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 x(t,e),t}(Lu),Am=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 x(t,e),t}(Vu),xm=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 x(t,e),t}(zu),Em=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 x(t,e),t}(Gu),Um=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 x(t,e),t}(Vu),Cm=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 x(t,e),t}(Vu),_m=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 x(t,e),t}(Bu),Sm=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 x(t,e),t}(Bu),Nm=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 x(t,e),t}(Vu),Am=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 x(t,e),t
328
+ }(Fu),xm=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 x(t,e),t}(Bu),Pm=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 x(t,e),t}(Gu),km=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,
331
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")
332
- ;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/certificate")}return o},t.body=function(){},t}return x(t,e),t}(Lu),Pm=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 x(t,e),t}(Bu),km=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 x(t,e),t}(Bu),Tm=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 x(t,e),t}(Bu),Tm=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 x(t,e),t}(Fu),Dm=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 x(t,e),t}(Fu),Om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates subdomain to the domain.",t.withAuth=!0,
335
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")
336
- ;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Fu),Dm=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 x(t,e),t}(Mu),Lm=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,"'"))}),
337
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{
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 x(t,e),t}(Lu),Om=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 x(t,e),t}(Bu),qm=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,"'"))}),
339
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{
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 x(t,e),t}(Vu),Lm=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 x(t,e),t}(Gu),Bm=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
341
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{
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 x(t,e),t}(Bu),qm=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 x(t,e),t}(Fu),Vm=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
343
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{
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 x(t,e),t}(Vu),Bm=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 x(t,e),t}(Gu),Fm=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,
345
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{
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 x(t,e),t}(Bu),Vm=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 x(t,e),t}(Fu),Gm=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
347
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{
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 x(t,e),t}(Bu),Fm=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 x(t,e),t}(Fu),Mm=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
349
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{
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 x(t,e),t}(Bu),Gm=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 x(t,e),t}(Fu),zm=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
351
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{
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 x(t,e),t}(Lu),Mm=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 x(t,e),t}(Bu),Jm=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
353
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,"'"))}),
354
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{
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 x(t,e),t}(Lu),zm=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 x(t,e),t}(Bu),Wm=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",
356
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,"'"))}),
357
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{
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 x(t,e),t}(Vu),Jm=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 x(t,e),t}(Gu),$m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a subdomain path.",t.withAuth=!0,
359
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,"'"))}),
360
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{
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 x(t,e),t}(Bu),Wm=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 x(t,e),t}(Fu),Hm=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,
362
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,"'"))}),
363
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{
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 x(t,e),t}(Bu),$m=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 x(t,e),t}(Fu),Zm=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,
365
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,"'"))}),
366
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{
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 x(t,e),t}(Vu),Hm=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 x(t,e),t}(Gu),Ym=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,
368
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{
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 x(t,e),t}(Bu),Zm=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 x(t,e),t}(Bu),Ym=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 x(t,e),t}(qu),Km=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 x(t,e),t}(Bu),Xm=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 x(t,e),t}(Fu),Qm=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 x(t,e),t}(Lu),ec=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 x(t,e),t}(Fu),Km=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 x(t,e),t}(Fu),Xm=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 x(t,e),t}(Vu),Qm=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 x(t,e),t}(Fu),ec=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 x(t,e),t}(Mu),tc=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 x(t,e),t}(Bu),nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an egress IP",t.withAuth=!0,
375
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")
376
- ;o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Gu),tc=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 x(t,e),t}(Vu),nc=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 x(t,e),t}(Bu),rc=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 x(t,e),t}(Fu),oc=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 x(t,e),t}(Gu),ac=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 x(t,e),t}(zu),rc=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 x(t,e),t}(Gu),oc=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 x(t,e),t}(Fu),ac=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 x(t,e),t}(Mu),ic=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 x(t,e),t}(zu),dc=function(e){function t(){
381
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{
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 x(t,e),t}(Vu),ic=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 x(t,e),t}(qu),dc=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 x(t,e),t}(Bu),pc=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 x(t,e),t}(Lu),lc=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 x(t,e),t}(Gu),pc=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 x(t,e),t}(Vu),lc=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 x(t,e),t}(Fu),sc=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 x(t,e),t}(Bu),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a log sink.",t.withAuth=!0,
386
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")
387
- ;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return x(t,e),t}(Vu),sc=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 x(t,e),t}(Bu),uc=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 x(t,e),t}(Gu),mc=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 x(t,e),t}(Fu),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,
389
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")
390
- ;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/resume")}return o},t.body=function(){},t}return x(t,e),t}(Bu),mc=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 x(t,e),t}(Bu),cc=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 x(t,e),t}(qu),vc=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 x(t,e),t}(Bu),hc=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 x(t,e),t}(Fu),vc=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 x(t,e),t}(Fu),hc=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 x(t,e),t}(Vu),fc=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 x(t,e),t}(Fu),Ic=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
394
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},
395
- t.body=function(){},t}return x(t,e),t}(Lu),fc=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 x(t,e),t}(Bu),Ic=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 x(t,e),t}(Vu),wc=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 x(t,e),t}(qu),bc=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 x(t,e),t}(Bu),gc=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 x(t,e),t}(Bu),wc=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 x(t,e),t}(Fu),bc=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 x(t,e),t}(Gu),gc=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 x(t,e),t}(Vu),yc=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 x(t,e),t}(Fu),Rc=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",
400
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")
401
- ;o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return x(t,e),t}(Lu),yc=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 x(t,e),t}(Gu),Rc=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 x(t,e),t}(Bu),jc=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 x(t,e),t}(zu),Ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
403
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{
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 x(t,e),t}(Vu),jc=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 x(t,e),t}(qu),Ec=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 x(t,e),t}(Bu),Uc=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 x(t,e),t}(Lu),Cc=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 x(t,e),t}(Gu),Uc=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 x(t,e),t}(Vu),Cc=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 x(t,e),t}(Fu),_c=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 x(t,e),t}(Bu),Sc=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,
408
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")
409
- ;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Fu),_c=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 x(t,e),t}(Gu),Sc=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 x(t,e),t}(Mu),Nc=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 x(t,e),t}(zu),Ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes an SSH identity.",
411
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")
412
- ;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return x(t,e),t}(Vu),Nc=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 x(t,e),t}(Lu),Ac=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 x(t,e),t}(Gu),xc=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 x(t,e),t}(Bu),Pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generate a token for a specific VCS link.",
413
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{
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 x(t,e),t}(Bu),xc=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 x(t,e),t}(qu),Pc=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 x(t,e),t}(Fu),kc=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 x(t,e),t}(Vu),Tc=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,
416
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,"'"))}),
417
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{
418
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])
419
- }).join("&")):"";return"".concat(l).concat(u)},t.body=function(){},t}return x(t,e),t}(qu),kc=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 x(t,e),t}(qu),Tc=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 x(t,e),t}(Bu),Dc=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 x(t,e),t}(Fu),Oc=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 x(t,e),t}(Lu),Lc=function(e){
419
+ }).join("&")):"";return"".concat(l).concat(u)},t.body=function(){},t}return x(t,e),t}(Vu),Dc=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 x(t,e),t}(Vu),Oc=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 x(t,e),t}(Fu),Lc=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 x(t,e),t}(Mu),qc=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 x(t,e),t}(Bu),Bc=function(e){
423
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{
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 x(t,e),t}(Gu),qc=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 x(t,e),t}(Vu),Bc=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 x(t,e),t}(qu),Vc=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 x(t,e),t}(Bu),Fc=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 x(t,e),t}(Fu),Gc=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 x(t,e),t}(Lu),Mc=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 x(t,e),t}(Gu),zc=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 x(t,e),t}(Vu),Jc=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 x(t,e),t}(Bu),Wc=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 x(t,e),t}(Vu),$c=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 x(t,e),t}(Lu),Hc=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 x(t,e),t}(qu),Zc=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 x(t,e),t}(Bu),Yc=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 x(t,e),t}(Fu),Kc=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 x(t,e),t}(Gu),Xc=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 x(t,e),t}(Lu),Qc=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 x(t,e),t}(zu),Vc=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 x(t,e),t}(Gu),Fc=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 x(t,e),t}(Vu),Gc=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 x(t,e),t}(Fu),Mc=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 x(t,e),t}(Mu),zc=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 x(t,e),t}(Bu),Jc=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 x(t,e),t}(zu),Wc=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 x(t,e),t}(Gu),$c=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 x(t,e),t}(Fu),Hc=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 x(t,e),t}(Gu),Zc=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 x(t,e),t}(Bu),Yc=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 x(t,e),t}(Vu),Kc=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 x(t,e),t}(Fu),Xc=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 x(t,e),t}(Mu),Qc=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 x(t,e),t}(zu),ev=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 x(t,e),t}(Bu),tv=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,
436
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")
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 x(t,e),t}(Vu),ev=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 x(t,e),t}(Gu),nv=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,"'"))}),
438
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("&")):""
439
- ;return"".concat(a).concat(d)},t.body=function(){},t}return x(t,e),t}(qu),tv=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 x(t,e),t}(Bu),nv=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 x(t,e),t}(Fu),rv=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 x(t,e),t}(Vu),rv=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 x(t,e),t}(Fu),ov=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 x(t,e),t}(Mu),av=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,
442
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{
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 x(t,e),t}(Lu),ov=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 x(t,e),t}(Bu),iv=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,"'"))}),
444
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{
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 x(t,e),t}(Gu),av=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 x(t,e),t}(zu),dv=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
446
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{
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 x(t,e),t}(Vu),iv=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 x(t,e),t}(Gu),pv=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
448
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{
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 x(t,e),t}(qu),dv=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 x(t,e),t}(Vu),lv=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,
450
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{
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 x(t,e),t}(Bu),pv=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 x(t,e),t}(Fu),sv=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
452
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,"'"))}),
453
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{
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 x(t,e),t}(Vu),lv=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 x(t,e),t}(Gu),uv=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,
455
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{
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 x(t,e),t}(qu),sv=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 x(t,e),t}(Vu),mv=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,
457
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{
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 x(t,e),t}(Bu),uv=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 x(t,e),t}(Fu),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
459
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,"'"))}),
460
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{
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 x(t,e),t}(Lu),mv=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 x(t,e),t}(Bu),vv=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",
462
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,"'"))}),
463
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{
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 x(t,e),t}(Vu),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 x(t,e),t}(Gu),hv=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",
465
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,"'"))}),
466
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{
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 x(t,e),t}(Bu),vv=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 x(t,e),t}(Fu),fv=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,
468
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,"'"))}),
469
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{
470
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)},
471
- t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Bu),hv=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 x(t,e),t}(Fu),Iv=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,"'"))}),
472
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{
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 x(t,e),t}(Lu),fv=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 x(t,e),t}(Bu),wv=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,
474
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,"'"))}),
475
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{
476
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)},
477
- t.body=function(){},t}return x(t,e),t}(Bu),Iv=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 x(t,e),t}(Fu),bv=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,"'"))}),
478
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{
479
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)},
480
- t.body=function(){},t}return x(t,e),t}(qu),wv=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 x(t,e),t}(Vu),gv=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,"'"))}),
481
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{
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 x(t,e),t}(Bu),bv=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 x(t,e),t}(Fu),yv=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,
483
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{
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 x(t,e),t}(qu),gv=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 x(t,e),t}(Vu),Rv=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,
485
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{
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 x(t,e),t}(Lu),yv=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 x(t,e),t}(Bu),Rv=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 x(t,e),t}(Bu),jv=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 x(t,e),t}(Fu),Ev=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,"'"))}),
488
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{
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 x(t,e),t}(Bu),jv=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 x(t,e),t}(Fu),Uv=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
490
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{
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 x(t,e),t}(Bu),Ev=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 x(t,e),t}(Fu),Cv=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,"'"))}),
492
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{
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 x(t,e),t}(Bu),Uv=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 x(t,e),t}(Fu),_v=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,"'"))}),
494
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{
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 x(t,e),t}(Bu),Cv=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 x(t,e),t}(Fu),Sv=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
496
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{
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 x(t,e),t}(qu),_v=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 x(t,e),t}(Vu),Nv=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,
498
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{
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 x(t,e),t}(Bu),Sv=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 x(t,e),t}(Fu),Av=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
500
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{
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 x(t,e),t}(Bu),Nv=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 x(t,e),t}(Fu),xv=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
502
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{
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 x(t,e),t}(Bu),Av=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 x(t,e),t}(Fu),Pv=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
504
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{
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 x(t,e),t}(Lu),xv=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 x(t,e),t}(Bu),kv=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
506
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{
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 x(t,e),t}(Bu),Pv=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 x(t,e),t}(Fu),Tv=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
508
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")}
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 x(t,e),t}(qu),kv=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 x(t,e),t}(Bu),Tv=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 x(t,e),t}(Vu),Dv=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 x(t,e),t}(Fu),Ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
511
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,"'"))}),
512
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{
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 x(t,e),t}(Lu),Dv=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 x(t,e),t}(Bu),Lv=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
514
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{
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 x(t,e),t}(Gu),Ov=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 x(t,e),t}(zu),qv=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
516
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{
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 x(t,e),t}(Vu),Lv=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 x(t,e),t}(Gu),Bv=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
518
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){
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 x(t,e),t}(qu),qv=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 x(t,e),t}(Bu),Bv=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 x(t,e),t}(Vu),Vv=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 x(t,e),t}(Fu),Fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
521
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{
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 x(t,e),t}(Fu),Vv=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 x(t,e),t}(Bu),Fv=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 x(t,e),t}(Mu),Gv=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 x(t,e),t}(Fu),Mv=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,
524
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")
525
- ;o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return x(t,e),t}(Fu),Gv=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 x(t,e),t}(Mu),zv=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,"'"))}),
526
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{
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 x(t,e),t}(Gu),Mv=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 x(t,e),t}(zu),Jv=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
528
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 x(t,e),t
529
- }(Bu),zv=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 x(t,e),t}(Fu),Jv=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
+ }(Fu),Wv=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 x(t,e),t}(Mu),$v=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,"'"))}),
531
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{
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 x(t,e),t}(Gu),Wv=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 x(t,e),t}(zu),Hv=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
533
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{
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 x(t,e),t}(Lu),$v=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 x(t,e),t}(Bu),Zv=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
535
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{
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 x(t,e),t}(Gu),Hv=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 x(t,e),t}(zu),Yv=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,"'"))}),
537
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{
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 x(t,e),t}(Vu),Zv=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 x(t,e),t}(Gu),Kv=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,"'"))
539
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{
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 x(t,e),t}(qu),Yv=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 x(t,e),t}(Vu),Xv=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,
541
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{
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 x(t,e),t}(qu),Kv=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 x(t,e),t}(Vu),Qv=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.",
543
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{
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 x(t,e),t}(Bu),Xv=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 x(t,e),t}(Fu),eh=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
545
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{
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 x(t,e),t}(Lu),Qv=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 x(t,e),t}(Bu),th=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,
547
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{
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 x(t,e),t}(Bu),eh=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 x(t,e),t}(Fu),nh=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
549
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{
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 x(t,e),t}(Lu),th=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 x(t,e),t}(Bu),rh=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
551
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{
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 x(t,e),t}(Bu),nh=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 x(t,e),t}(Fu),oh=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
553
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{
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 x(t,e),t}(Bu),rh=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 x(t,e),t}(Fu),ah=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
555
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{
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 x(t,e),t}(Lu),oh=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 x(t,e),t}(Bu),ih=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",
557
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,"'"))}),
558
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{
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 x(t,e),t}(Vu),ah=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 x(t,e),t}(Gu),dh=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,
560
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{
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 x(t,e),t}(qu),ih=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 x(t,e),t}(Vu),ph=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,
562
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{
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 x(t,e),t}(Lu),dh=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 x(t,e),t}(Bu),lh=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
564
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{
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 x(t,e),t}(Bu),ph=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 x(t,e),t}(Fu),sh=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
566
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{
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 x(t,e),t}(Lu),lh=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 x(t,e),t}(Bu),uh=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
568
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{
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 x(t,e),t}(Bu),sh=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 x(t,e),t}(Fu),mh=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
570
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{
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 x(t,e),t}(Bu),uh=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 x(t,e),t}(Fu),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
572
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{
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 x(t,e),t}(qu),mh=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 x(t,e),t}(Vu),vh=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.",
574
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{
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 x(t,e),t}(Bu),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 x(t,e),t}(Fu),hh=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
576
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{
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 x(t,e),t}(qu),vh=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 x(t,e),t}(Vu),fh=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,
578
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{
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 x(t,e),t}(Bu),hh=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 x(t,e),t}(Fu),Ih=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
580
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{
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 x(t,e),t}(Lu),fh=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 x(t,e),t}(Bu),wh=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){
582
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,"'"))}),
583
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{
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 x(t,e),t}(Vu),Ih=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 x(t,e),t}(Gu),bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
585
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,"'"))}),
586
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{
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 x(t,e),t}(Lu),wh=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 x(t,e),t}(Bu),gh=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,
588
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{
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 x(t,e),t}(Bu),bh=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 x(t,e),t}(Fu),yh=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
590
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{
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 x(t,e),t}(Lu),gh=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 x(t,e),t}(Bu),Rh=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
592
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{
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 x(t,e),t}(Bu),yh=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 x(t,e),t}(Fu),jh=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
594
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{
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 x(t,e),t}(Bu),Rh=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 x(t,e),t}(Fu),Eh=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
596
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{
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 x(t,e),t}(Bu),jh=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 x(t,e),t}(Fu),Uh=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
598
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")}
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 x(t,e),t}(qu),Eh=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 x(t,e),t}(Bu),Uh=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 x(t,e),t}(Vu),Ch=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 x(t,e),t}(Fu),_h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
601
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,"'"))}),
602
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{
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 x(t,e),t}(Lu),Ch=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 x(t,e),t}(Bu),Sh=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
604
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{
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 x(t,e),t}(Bu),_h=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 x(t,e),t}(Fu),Nh=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
606
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{
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 x(t,e),t}(Vu),Sh=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 x(t,e),t}(Gu),Ah=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
608
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")}
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 x(t,e),t}(qu),Nh=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 x(t,e),t}(Vu),xh=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,"'"))}),
610
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{
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 x(t,e),t}(Lu),Ah=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 x(t,e),t}(Bu),Ph=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
612
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{
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 x(t,e),t}(qu),xh=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 x(t,e),t}(Vu),kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a given preview template.",t.withAuth=!0,
614
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{
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 x(t,e),t}(Bu),Ph=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 x(t,e),t}(Fu),Th=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
616
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{
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 x(t,e),t}(qu),kh=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 x(t,e),t}(Vu),Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
618
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,"'"))}),
619
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{
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 x(t,e),t}(Vu),Th=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 x(t,e),t}(Gu),Oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run the given preview template.",t.withAuth=!0,
621
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{
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 x(t,e),t}(Bu),Dh=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 x(t,e),t}(Fu),Lh=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
623
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{
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 x(t,e),t}(qu),Oh=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 x(t,e),t}(Vu),qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template run.",
625
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,"'"))}),
626
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{
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 x(t,e),t}(Lu),Lh=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 x(t,e),t}(Bu),Bh=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,
628
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,"'"))}),
629
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{
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 x(t,e),t}(Lu),qh=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 x(t,e),t}(Bu),Vh=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",
631
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,"'"))}),
632
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{
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 x(t,e),t}(Bu),Bh=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 x(t,e),t}(Fu),Fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
634
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,"'"))}),
635
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{
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 x(t,e),t}(Bu),Vh=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 x(t,e),t}(Fu),Gh=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,
637
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,"'"))}),
638
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{
639
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)},
640
- t.body=function(){},t}return x(t,e),t}(qu),Fh=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 x(t,e),t}(Vu),Mh=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,"'"))}),
641
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{
642
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 x(t,e),t
643
- }(Lu),Gh=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
+ }(Bu),zh=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,"'"))}),
644
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{
645
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}
646
- return x(t,e),t}(Bu),Mh=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 x(t,e),t}(qu),zh=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 x(t,e),t}(Fu),Jh=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 x(t,e),t}(Vu),Wh=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
648
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}
649
- return x(t,e),t}(Bu),Jh=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 x(t,e),t}(Fu),$h=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,"'"))}),
650
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{
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 x(t,e),t}(Lu),Wh=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 x(t,e),t}(Bu),Hh=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
652
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{
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 x(t,e),t}(Bu),$h=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 x(t,e),t}(Fu),Zh=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
654
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{
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 x(t,e),t}(Vu),Hh=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 x(t,e),t}(Gu),Yh=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
656
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{
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 x(t,e),t}(qu),Zh=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 x(t,e),t}(Vu),Kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
658
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,"'"))}),
659
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{
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 x(t,e),t}(Vu),Yh=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 x(t,e),t}(Gu),Xh=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.",
661
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,"'"))}),
662
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{
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 x(t,e),t}(Bu),Kh=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 x(t,e),t}(Fu),Qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
664
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,"'"))}),
665
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{
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 x(t,e),t}(Bu),Xh=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 x(t,e),t}(Fu),ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
667
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,"'"))}),
668
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{
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 x(t,e),t}(Bu),Qh=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 x(t,e),t}(Fu),tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
670
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,"'"))}),
671
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{
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 x(t,e),t}(Bu),ef=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 x(t,e),t}(Fu),nf=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
673
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{
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 x(t,e),t}(qu),tf=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 x(t,e),t}(Vu),rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
675
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,"'"))}),
676
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{
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 x(t,e),t}(Lu),nf=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 x(t,e),t}(Bu),of=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,
678
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,"'"))}),
679
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{
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 x(t,e),t}(Bu),rf=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 x(t,e),t}(qu),of=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 x(t,e),t}(Bu),af=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 x(t,e),t}(Fu),df=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 x(t,e),t}(Gu),pf=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 x(t,e),t}(Lu),lf=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 x(t,e),t}(Vu),sf=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 x(t,e),t}(Bu),uf=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 x(t,e),t}(Bu),mf=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 x(t,e),t}(Lu),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
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 x(t,e),t}(Vu),vf=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 x(t,e),t}(Lu),hf=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 x(t,e),t}(Fu),af=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 x(t,e),t}(Vu),df=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 x(t,e),t}(Fu),pf=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 x(t,e),t}(Mu),lf=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 x(t,e),t}(zu),sf=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 x(t,e),t}(Bu),uf=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 x(t,e),t}(Gu),mf=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 x(t,e),t}(Fu),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 x(t,e),t}(Fu),vf=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 x(t,e),t}(Bu),hf=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 x(t,e),t}(Gu),ff=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 x(t,e),t}(Bu),If=function(e){function t(){
688
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{
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 x(t,e),t}(qu),ff=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 x(t,e),t}(Vu),wf=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
690
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 x(t,e),t
691
- }(Bu),If=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 x(t,e),t}(Fu),wf=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
+ }(Fu),bf=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 x(t,e),t}(Mu),gf=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,"'"))}),
693
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{
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 x(t,e),t}(Gu),bf=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 x(t,e),t}(zu),yf=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
695
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}
696
- return x(t,e),t}(Bu),gf=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 x(t,e),t}(Fu),yf=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 x(t,e),t}(Fu),Rf=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 x(t,e),t}(Mu),jf=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,"'"))}),
698
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{
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 x(t,e),t}(Gu),Rf=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 x(t,e),t}(zu),Ef=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
700
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}
701
- return x(t,e),t}(Bu),jf=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 x(t,e),t}(Fu),Ef=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 x(t,e),t}(Fu),Uf=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 x(t,e),t}(Mu),Cf=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,"'"))}),
703
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{
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 x(t,e),t}(Gu),Uf=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 x(t,e),t}(zu),_f=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
705
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{
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 x(t,e),t}(Lu),Cf=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 x(t,e),t}(Bu),Sf=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,"'"))}),
707
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{
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 x(t,e),t}(Vu),_f=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 x(t,e),t}(Gu),Nf=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,
709
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{
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 x(t,e),t}(qu),Sf=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 x(t,e),t}(Vu),Af=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,
711
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{
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 x(t,e),t}(qu),Nf=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 x(t,e),t}(Vu),xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
713
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,"'"))}),
714
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{
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 x(t,e),t}(Bu),Af=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 x(t,e),t}(Fu),Pf=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",
716
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{
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 x(t,e),t}(Lu),xf=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 x(t,e),t}(Bu),kf=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,
718
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{
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 x(t,e),t}(Bu),Pf=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 x(t,e),t}(Fu),Tf=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
720
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{
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 x(t,e),t}(Lu),kf=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 x(t,e),t}(Bu),Df=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
722
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{
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 x(t,e),t}(Bu),Tf=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 x(t,e),t}(Fu),Of=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
724
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{
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 x(t,e),t}(Bu),Df=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 x(t,e),t}(Fu),Lf=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
726
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,"'"))}),
727
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{
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 x(t,e),t}(Lu),Of=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 x(t,e),t}(Bu),qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given service build",t.withAuth=!0,
729
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,"'"))}),
730
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{
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 x(t,e),t}(Vu),Lf=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 x(t,e),t}(Gu),Bf=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,
732
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{
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 x(t,e),t}(qu),qf=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 x(t,e),t}(Vu),Vf=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,
734
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{
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 x(t,e),t}(Lu),Bf=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 x(t,e),t}(Bu),Ff=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
736
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{
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 x(t,e),t}(Bu),Vf=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 x(t,e),t}(Fu),Gf=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
738
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{
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 x(t,e),t}(Lu),Ff=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 x(t,e),t}(Bu),Mf=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
740
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{
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 x(t,e),t}(Bu),Gf=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 x(t,e),t}(Fu),zf=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
742
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{
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 x(t,e),t}(Bu),Mf=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 x(t,e),t}(Fu),Jf=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
744
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{
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 x(t,e),t}(Lu),zf=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 x(t,e),t}(Bu),Wf=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
746
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{
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 x(t,e),t}(Bu),Jf=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 x(t,e),t}(Fu),$f=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
748
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{
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 x(t,e),t}(qu),Wf=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 x(t,e),t}(Vu),Hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restarts the given service.",t.withAuth=!0,
750
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{
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 x(t,e),t}(Bu),$f=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 x(t,e),t}(Fu),Zf=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
752
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{
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 x(t,e),t}(Bu),Hf=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 x(t,e),t}(Fu),Yf=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",
754
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{
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 x(t,e),t}(Lu),Zf=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 x(t,e),t}(Bu),Kf=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,
756
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{
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 x(t,e),t}(Bu),Yf=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 x(t,e),t}(Fu),Xf=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
758
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{
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 x(t,e),t}(Lu),Kf=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 x(t,e),t}(Bu),Qf=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
760
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{
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 x(t,e),t}(Bu),Xf=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 x(t,e),t}(Fu),eI=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
762
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")}
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 x(t,e),t}(qu),Qf=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 x(t,e),t}(Bu),eI=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 x(t,e),t}(Vu),tI=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 x(t,e),t}(Fu),nI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve a volume",t.withAuth=!0,
765
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{
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 x(t,e),t}(Lu),tI=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 x(t,e),t}(Bu),rI=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,"'"))}),
767
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{
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 x(t,e),t}(Bu),nI=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 x(t,e),t}(Fu),oI=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
769
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{
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 x(t,e),t}(Vu),rI=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 x(t,e),t}(Gu),aI=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,"'"))}),
771
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{
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 x(t,e),t}(Bu),oI=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 x(t,e),t}(Fu),iI=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
773
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{
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 x(t,e),t}(qu),aI=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 x(t,e),t}(Vu),dI=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,
775
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{
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 x(t,e),t}(Bu),iI=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 x(t,e),t}(Fu),pI=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
777
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,"'"))}),
778
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{
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 x(t,e),t}(Lu),dI=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 x(t,e),t}(Bu),lI=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",
780
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,"'"))}),
781
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{
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 x(t,e),t}(Vu),pI=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 x(t,e),t}(Gu),sI=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",
783
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{
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 x(t,e),t}(Bu),lI=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 x(t,e),t}(Fu),uI=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
785
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")}
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 x(t,e),t}(qu),sI=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 x(t,e),t}(Bu),uI=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 x(t,e),t}(Vu),mI=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 x(t,e),t}(Fu),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,
788
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{
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 x(t,e),t}(Lu),mI=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 x(t,e),t}(Bu),vI=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,"'"))}),
790
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{
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 x(t,e),t}(Bu),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 x(t,e),t}(Fu),hI=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
792
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{
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 x(t,e),t}(Bu),vI=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 x(t,e),t}(Fu),fI=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
794
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{
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 x(t,e),t}(qu),hI=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 x(t,e),t}(Vu),II=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,
796
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,"'"))}),
797
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{
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 x(t,e),t}(Lu),fI=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 x(t,e),t}(Bu),wI=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",
799
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,"'"))}),
800
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{
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 x(t,e),t}(Bu),II=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 x(t,e),t}(Lu),wI=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 x(t,e),t}(qu),bI=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 x(t,e),t}(Bu),gI=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 x(t,e),t}(Fu),yI=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 x(t,e),t}(Gu),RI=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 x(t,e),t}(Fu),bI=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 x(t,e),t}(Bu),gI=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 x(t,e),t}(Vu),yI=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 x(t,e),t}(Fu),RI=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 x(t,e),t}(Mu),jI=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 x(t,e),t}(zu),EI=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,
806
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},
807
- t.body=function(){},t}return x(t,e),t}(Lu),jI=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 x(t,e),t}(Vu),EI=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 x(t,e),t}(qu),UI=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 x(t,e),t}(Bu),CI=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 x(t,e),t}(Fu),_I=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 x(t,e),t}(Bu),UI=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 x(t,e),t}(Gu),CI=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 x(t,e),t}(Vu),_I=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 x(t,e),t}(Fu),SI=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 x(t,e),t}(Mu),NI=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
811
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 x(t,e),t
812
- }(Lu),SI=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 x(t,e),t}(Gu),NI=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 x(t,e),t}(Vu),AI=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 x(t,e),t}(Bu),xI=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 x(t,e),t}(qu),PI=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 x(t,e),t}(Lu),kI=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 x(t,e),t}(Gu),TI=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 x(t,e),t}(qu),DI=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 x(t,e),t}(Bu),OI=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 x(t,e),t}(Vu),LI=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 x(t,e),t}(qu),qI=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 x(t,e),t}(Bu),BI=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 x(t,e),t}(Fu),VI=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 x(t,e),t}(Lu),FI=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 x(t,e),t}(Gu),GI=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 x(t,e),t}(Vu),MI=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 x(t,e),t}(Bu),zI=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 x(t,e),t}(Vu),JI=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 x(t,e),t}(qu),WI=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 x(t,e),t}(Bu),$I=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
+ }(Bu),AI=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 x(t,e),t}(zu),xI=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 x(t,e),t}(Gu),PI=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 x(t,e),t}(Fu),kI=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 x(t,e),t}(Vu),TI=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 x(t,e),t}(Bu),DI=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 x(t,e),t}(zu),OI=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 x(t,e),t}(Vu),LI=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 x(t,e),t}(Fu),qI=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 x(t,e),t}(Gu),BI=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 x(t,e),t}(Vu),VI=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 x(t,e),t}(Fu),FI=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 x(t,e),t}(Mu),GI=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 x(t,e),t}(Bu),MI=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 x(t,e),t}(zu),zI=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 x(t,e),t}(Gu),JI=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 x(t,e),t}(Fu),WI=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 x(t,e),t}(Gu),$I=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 x(t,e),t}(Vu),HI=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 x(t,e),t}(Fu),ZI=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
826
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){
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 x(t,e),t}(qu),HI=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 x(t,e),t}(Bu),ZI=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 x(t,e),t}(Vu),YI=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 x(t,e),t}(Fu),KI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a template",t.withAuth=!0,
829
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")
830
- ;o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(){},t}return x(t,e),t}(Vu),YI=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 x(t,e),t}(Bu),KI=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 x(t,e),t}(Gu),XI=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 x(t,e),t}(Fu),QI=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,"'"))}),
832
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("&")):""
833
- ;return"".concat(a).concat(d)},t.body=function(){},t}return x(t,e),t}(qu),XI=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 x(t,e),t}(Vu),ew=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,"'"))}),
834
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{
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 x(t,e),t}(Lu),QI=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 x(t,e),t}(Bu),tw=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
836
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{
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 x(t,e),t}(Bu),ew=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 x(t,e),t}(Fu),nw=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(),
838
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=P({host:"https://api.northflank.com"},e),r=this.contextWrapper,o={current:n.name,contexts:D(D([],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:D([],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()
839
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{
840
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(P(P({},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=P(P({},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?P(P({},t),e):t}),n=P(P({},this.contextWrapper),{
841
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(P(P({},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=P(P({},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=P(P({},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=P(P({},t),{job:e});this.addContext(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=P(P({},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=P(P({},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=P(P({},t),{lastUpdateCheck:e});this.storeContext(n)},e}(),tw=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){try{u.existsSync(e)||u.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(l.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return x(t,e),t.prototype.loadContextWrapper=function(){var e;try{e=u.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{u.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}(ew),nw=function(e){function t(){
844
- var t=e.call(this)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t.loadContext(),t}return x(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}(ew),rw=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 Ka(e,new hf(e,t),new ev(e,t),t.agent),this.exec=new Qa(e,t.agent),this.logs=new $u(e,t),this.metrics=new Yu(e),this.fileCopy=new Au(this.exec),this.endpoints={get:(o={},o.addon=((r=new rv(e,t)).types=new Ku(e,t),r.backupSchedules=new iv(e,t),r.backups=new lv(e,t),r.backup=((n=new uv(e,t)).download=new hv(e,t),n.restores=new Iv(e,t),n),r.containers=new bv(e,t),r.credentials=new gv(e,t),r.restores=new Cv(e,t),r.version=new Av(e,t),r),
845
- o.backupDestination=new em(e,t),o.invoice=function(){var n={};return n.details=new am(e,t),n}(),o.cloud=function(){var n={};return n.cluster=new sm(e,t),n.integration=new gm(e,t),n}(),o.orgDirectoryGroups=new Um(e,t),o.dnsId=new Cm(e,t),o.domain=new Nm(e,t),o.domainCertificate=new xm(e,t),o.subdomain=function(){var n=new Dm(e,t);return n.path=new Mm(e,t),n}(),o.egressIp=new Qm(e,t),o.logSink=new pc(e,t),o.notification=new hc(e,t),o.registryCredentials=new gc(e,t),o.sshIdentities=new Uc(e,t),o.loadBalancer=new Oc(e,t),o.orgRole=new Gc(e,t),o.project=new Xc(e,t),o.externalAddon=new Tv(e,t),o.job=function(){var n=new Wv(e,t);return n.branches=new Zv(e,t),n.builds=new Yv(e,t),n.buildArguments=new Xv(e,t),n.buildArgumentDetails=new eh(e,t),n.build=new rh(e,t),n.containers=new ah(e,t),n.deployment=new ih(e,t),n.healthChecks=new ph(e,t),n.pullRequests=new uh(e,t),n.runs=new ch(e,t),n.run=new hh(e,t),n.runtimeEnvironment=new Ih(e,t),n.runtimeEnvironmentDetails=new bh(e,t),n}(),
846
- o.llmModelDeployment=new Uh(e,t),o.pipeline=new Nh(e,t),o.previewTemplate=new Ah(e,t),o.previewTemplateRun=new Oh(e,t),o.releaseFlow=new Lh(e,t),o.releaseFlowRun=new Fh(e,t),o.previewBlueprint=new Jh(e,t),o.previewBlueprintRun=new tf(e,t),o.secret=new pf(e,t),o.secretLink=new mf(e,t),o.secretDetails=new vf(e,t),o.service=function(){var n=new Uf(e,t);return n.branches=new _f(e,t),n.builds=new Sf(e,t),n.buildArguments=new Af(e,t),n.buildArgumentDetails=new Pf(e,t),n.build=new Df(e,t),n.containers=new Lf(e,t),n.deployment=new qf(e,t),n.healthChecks=new Vf(e,t),n.ports=new Mf(e,t),n.pullRequests=new Jf(e,t),n.runtimeEnvironment=new Hf(e,t),n.runtimeEnvironmentDetails=new Yf(e,t),n}(),o.volume=function(){var n=new eI(e,t);return n.backups=new oI(e,t),n.backup=new iI(e,t),n}(),o.workflow=new uI(e,t),o.workflowRun=new hI(e,t),o.globalSecret=new RI(e,t),o.tag=new _I(e,t),o.team=new PI(e,t),o.teamRole=new VI(e,t),o.template=new $I(e,t),o.templateRun=new XI(e,t),o),list:function(){var n={}
847
- ;return n.backupDestinations=new Xu(e,t),n.backupDestinationsBackups=new rm(e,t),n.invoices=new om(e,t),n.cloud=function(){var n={};return n.providers=new im(e,t),n.clusters=new dm(e,t),n.cluster=function(){var n={};return n.nodes=new cm(e,t),n}(),n.integrations=new Im(e,t),n.nodeTypes=new jm(e,t),n.regions=new Em(e,t),n}(),n.domains=new _m(e,t),n.subdomain=function(){var n={};return n.path=new Gm(e,t),n}(),n.egressIps=new Ym(e,t),n.logSinks=new ic(e,t),n.notifications=new cc(e,t),n.registryCredentials=new wc(e,t),n.sshIdentities=new jc(e,t),n.vcs=new Nc(e,t),n.repos=new xc(e,t),n.branches=new Pc(e,t),n.loadBalancers=new kc(e,t),n.orgRoles=new Bc(e,t),n.plans=new $c(e,t),n.projects=new Hc(e,t),n.addons=new ev(e,t),n.externalAddons=new Pv(e,t),n.jobs=new Lv(e,t),n.llmModelDeployments=new jh(e,t),n.pipelines=new Sh(e,t),n.pipelineTemplatePreviews=new Ph(e,t),n.previewTemplateRuns=new Dh(e,t),n.releaseFlowRuns=new Vh(e,t),n.previewBlueprints=new Mh(e,t),
848
- n.blueprintTemplatePreviews=new Hh(e,t),n.previewBlueprintRuns=new ef(e,t),n.secrets=new rf(e,t),n.services=new hf(e,t),n.volumes=new Xf(e,t),n.workflows=new lI(e,t),n.workflowRuns=new vI(e,t),n.regions=new II(e,t),n.globalSecrets=new wI(e,t),n.tags=new EI(e,t),n.teams=new xI(e,t),n.teamMembers=new TI(e,t),n.teamRoles=new LI(e,t),n.templates=new JI(e,t),n.templateRuns=new KI(e,t),n}(),add:function(){var n={};return n.backupDestination=new Qu(e,t),n.domain=function(){var n={};return n.subdomain=new km(e,t),n}(),n.subdomain=function(){var n={};return n.path=new Fm(e,t),n}(),n.registryCredentials=new bc(e,t),n.sshIdentities=new Ec(e,t),n.tag=new UI(e,t),n}(),patch:function(){var n={};return n.backupDestination=new tm(e,t),n.cloud=function(){var n={};return n.cluster=new um(e,t),n.integration=new ym(e,t),n}(),n.egressIp=new ec(e,t),n.gradualRolloutStrategy=new oc(e,t),n.loadBalancer=new Lc(e,t),n.orgRole=new Mc(e,t),n.project=new Kc(e,t),n.addon=new ov(e,t),n.job=function(){
849
- var n=new $v(e,t);return n.cron=new Gv(e,t),n.manual=new Jv(e,t),n}(),n.secret=new df(e,t),n.service=function(){var n={};return n.build=new wf(e,t),n.combined=new yf(e,t),n.deployment=new Ef(e,t),n}(),n.globalSecret=new yI(e,t),n.tag=new SI(e,t),n.team=new kI(e,t),n.teamRole=new FI(e,t),n}(),delete:function(){var n={};return n.backupDestination=new nm(e,t),n.cloud=function(){var n={};return n.cluster=new mm(e,t),n.integration=new Rm(e,t),n}(),n.domain=new Am(e,t),n.subdomain=function(){var n=new Om(e,t);return n.path=new zm(e,t),n}(),n.egressIp=new tc(e,t),n.gradualRolloutStrategy=new ac(e,t),n.logSink=new lc(e,t),n.notification=new Ic(e,t),n.registryCredentials=new Rc(e,t),n.sshIdentities=new Sc(e,t),n.loadBalancer=new qc(e,t),n.orgRole=new zc(e,t),n.orgRoleMember=new Wc(e,t),n.project=new Qc(e,t),n.addon=function(){var n=new av(e,t);return n.backupSchedule=new pv(e,t),n}(),n.backup=new mv(e,t),n.externalAddon=new Ov(e,t),n.job=new Hv(e,t),n.llmModelDeployment=new _h(e,t),
850
- n.pipelineTemplatePreview=new kh(e,t),n.previewBlueprint=new $h(e,t),n.blueprintTemplatePreview=new Zh(e,t),n.secret=new lf(e,t),n.secretLink=new cf(e,t),n.service=new Cf(e,t),n.volume=function(){var n=new nI(e,t);return n.backup=new dI(e,t),n}(),n.globalSecret=new jI(e,t),n.tag=new NI(e,t),n.teamMember=new OI(e,t),n.teamRole=new GI(e,t),n.teamRoleMember=new zI(e,t),n.template=new ZI(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new pm(e,t),n.integration=new wm(e,t),n}(),n.domain=new Sm(e,t),n.egressIp=new Km(e,t),n.gradualRolloutStrategy=new nc(e,t),n.logSink=new dc(e,t),n.notification=new vc(e,t),n.customVcs=function(){var n={};return n.token=new Ac(e,t),n}(),n.loadBalancer=new Tc(e,t),n.orgRole=new Vc(e,t),n.orgRoleMember=new Jc(e,t),n.project=new Zc(e,t),n.addon=function(){var n=new tv(e,t);return n.backupSchedule=new dv(e,t),n}(),n.externalAddon=new kv(e,t),n.job=function(){var n=new qv(e,t);return n.cron=new Vv(e,t),n.manual=new Mv(e,t),
851
- n}(),n.llmModelDeployment=new Eh(e,t),n.previewBlueprint=new zh(e,t),n.secret=new of(e,t),n.service=function(){var n={};return n.build=new ff(e,t),n.combined=new bf(e,t),n.deployment=new Rf(e,t),n}(),n.volume=new Qf(e,t),n.workflow=new sI(e,t),n.globalSecret=new bI(e,t),n.team=new AI(e,t),n.teamMemberInvite=new DI(e,t),n.teamRole=new qI(e,t),n.teamRoleMember=new MI(e,t),n.template=new WI(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new lm(e,t),n.integration=new bm(e,t),n}(),n.domain=function(){var n={};return n.subdomain=new Tm(e,t),n}(),n.egressIp=new Xm(e,t),n.gradualRolloutStrategy=new rc(e,t),n.sshIdentities=new Cc(e,t),n.loadBalancer=new Dc(e,t),n.orgRole=new Fc(e,t),n.project=new Yc(e,t),n.addon=new nv(e,t),n.job=function(){var n=new Bv(e,t);return n.cron=new Fv(e,t),n.manual=new zv(e,t),n}(),n.secret=new af(e,t),n.service=function(){var n={};return n.build=new If(e,t),n.combined=new gf(e,t),n.deployment=new jf(e,t),n}(),
852
- n.globalSecret=new gI(e,t),n.tag=new CI(e,t),n.teamRole=new BI(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new vm(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 hm(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 fm(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Pm(e,t),n.addon=function(){var n={};return n.backup=new yv(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Lm(e,t),n.path=new Wm(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new qm(e,t);return n.path=new $m(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Bm(e,t),n}(),n}(),enable:function(){var n={}
853
- ;return n.subdomain=function(){var n={};return n.cdn=new Vm(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new Jm(e,t),n}(),n.logSink=new mc(e,t),n.notification=new fc(e,t),n.registryCredentials=new yc(e,t),n.sshIdentities=new _c(e,t),n.addon=function(){var n={};return n.networkSettings=new Rv(e,t),n.security=new Nv(e,t),n.version=new xv(e,t),n}(),n.externalAddon=new Dv(e,t),n.job=function(){var n={};return n.buildArguments=new Qv(e,t),n.buildOptions=new th(e,t),n.buildSource=new nh(e,t),n.deployment=new dh(e,t),n.healthChecks=new lh(e,t),n.runtimeEnvironment=new wh(e,t),n.settings=new yh(e,t),n}(),n.llmModelDeployment=new Ch(e,t),n.previewTemplate=new xh(e,t),n.releaseFlow=new qh(e,t),n.previewBlueprint=new Wh(e,t),n.secret=new sf(e,t),n.secretLink=new uf(e,t),n.service=function(){var n={};return n.buildArguments=new xf(e,t),n.buildOptions=new kf(e,t),n.buildSource=new Tf(e,t),n.deployment=new Bf(e,t),n.healthChecks=new Ff(e,t),
854
- n.ports=new zf(e,t),n.runtimeEnvironment=new Zf(e,t),n}(),n.volume=new tI(e,t),n.workflow=new mI(e,t),n.template=new HI(e,t),n}(),verify:function(){var n={};return n.subdomain=new Hm(e,t),n.domain=new Zm(e,t),n}(),pause:function(){var n={};return n.logSink=new sc(e,t),n.addon=new jv(e,t),n.job=new sh(e,t),n.blueprintTemplatePreview=new Yh(e,t),n.service=new Gf(e,t),n}(),resume:function(){var n={};return n.logSink=new uc(e,t),n.addon=new _v(e,t),n.job=new mh(e,t),n.blueprintTemplatePreview=new Xh(e,t),n.service=new $f(e,t),n}(),backup:function(){var n={};return n.addon=new sv(e,t),n.volume=new aI(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new cv(e,t),n.restore=new vv(e,t),n}(),n.job=function(){var n={};return n.build=new oh(e,t),n.run=new fh(e,t),n}(),n.releaseFlowRun=new Gh(e,t),n.previewBlueprintRun=new nf(e,t),n.service=function(){var n={};return n.build=new Of(e,t),n}(),n.workflowRun=new fI(e,t),n.templateRun=new QI(e,t),n}(),
855
- restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new fv(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new wv(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new Ev(e,t),n.blueprintTemplatePreview=new Kh(e,t),n}(),restart:function(){var n={};return n.addon=new Uv(e,t),n.service=new Wf(e,t),n}(),scale:function(){var n={};return n.addon=new Sv(e,t),n.job=new gh(e,t),n.service=new Kf(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new Kv(e,t),n.run=new vh(e,t),n}(),n.service=function(){var n={};return n.build=new Nf(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new Rh(e,t),n}(),run:function(){var n={};return n.previewTemplate=new Th(e,t),n.releaseFlow=new Bh(e,t),n.previewBlueprint=new Qh(e,t),n.workflow=new cI(e,t),n.template=new YI(e,t),n}(),attach:function(){var n={};return n.volume=new rI(e,t),n}(),detach:function(){var n={};return n.volume=new pI(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=P(P({},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=P(P({},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=P(P({},t),{lastUpdateCheck:e});this.storeContext(n)},e}(),rw=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){try{m.existsSync(e)||m.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(v.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return x(t,e),t.prototype.loadContextWrapper=function(){var e;try{e=m.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{m.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}(nw),ow=function(e){function t(){
844
+ var t=e.call(this)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t.loadContext(),t}return x(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}(nw),aw=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 Qa(e,new If(e,t),new nv(e,t),t.agent),this.exec=new ti(e,t.agent),this.logs=new Zu(e,t),this.metrics=new Xu(e),this.fileCopy=new Pu(this.exec),this.endpoints={get:(o={},o.addon=((r=new av(e,t)).types=new Qu(e,t),r.backupSchedules=new pv(e,t),r.backups=new uv(e,t),r.backup=((n=new cv(e,t)).download=new Iv(e,t),n.restores=new bv(e,t),n),r.containers=new yv(e,t),r.credentials=new Rv(e,t),r.restores=new Sv(e,t),r.version=new Pv(e,t),r),
845
+ o.backupDestination=new nm(e,t),o.invoice=function(){var n={};return n.details=new dm(e,t),n}(),o.cloud=function(){var n={};return n.cluster=new mm(e,t),n.integration=new Rm(e,t),n}(),o.orgDirectoryGroups=new _m(e,t),o.dnsId=new Sm(e,t),o.domain=new xm(e,t),o.domainCertificate=new km(e,t),o.subdomain=function(){var n=new Lm(e,t);return n.path=new Jm(e,t),n}(),o.egressIp=new tc(e,t),o.logSink=new sc(e,t),o.notification=new Ic(e,t),o.registryCredentials=new Rc(e,t),o.sshIdentities=new _c(e,t),o.loadBalancer=new qc(e,t),o.orgRole=new zc(e,t),o.project=new ev(e,t),o.externalAddon=new Ov(e,t),o.job=function(){var n=new Hv(e,t);return n.branches=new Kv(e,t),n.builds=new Xv(e,t),n.buildArguments=new eh(e,t),n.buildArgumentDetails=new nh(e,t),n.build=new ah(e,t),n.containers=new dh(e,t),n.deployment=new ph(e,t),n.healthChecks=new sh(e,t),n.pullRequests=new ch(e,t),n.runs=new hh(e,t),n.run=new Ih(e,t),n.runtimeEnvironment=new bh(e,t),n.runtimeEnvironmentDetails=new yh(e,t),n}(),
846
+ o.llmModelDeployment=new _h(e,t),o.pipeline=new xh(e,t),o.previewTemplate=new Ph(e,t),o.previewTemplateRun=new qh(e,t),o.releaseFlow=new Bh(e,t),o.releaseFlowRun=new Mh(e,t),o.previewBlueprint=new $h(e,t),o.previewBlueprintRun=new rf(e,t),o.secret=new sf(e,t),o.secretLink=new vf(e,t),o.secretDetails=new ff(e,t),o.service=function(){var n=new _f(e,t);return n.branches=new Nf(e,t),n.builds=new Af(e,t),n.buildArguments=new Pf(e,t),n.buildArgumentDetails=new Tf(e,t),n.build=new Lf(e,t),n.containers=new Bf(e,t),n.deployment=new Vf(e,t),n.healthChecks=new Gf(e,t),n.ports=new Jf(e,t),n.pullRequests=new $f(e,t),n.runtimeEnvironment=new Yf(e,t),n.runtimeEnvironmentDetails=new Xf(e,t),n}(),o.volume=function(){var n=new nI(e,t);return n.backups=new iI(e,t),n.backup=new pI(e,t),n}(),o.workflow=new cI(e,t),o.workflowRun=new II(e,t),o.globalSecret=new EI(e,t),o.tag=new NI(e,t),o.team=new TI(e,t),o.teamRole=new GI(e,t),o.template=new ZI(e,t),o.templateRun=new ew(e,t),o),list:function(){var n={}
847
+ ;return n.backupDestinations=new em(e,t),n.backupDestinationsBackups=new am(e,t),n.invoices=new im(e,t),n.cloud=function(){var n={};return n.providers=new pm(e,t),n.clusters=new lm(e,t),n.cluster=function(){var n={};return n.nodes=new hm(e,t),n}(),n.integrations=new bm(e,t),n.nodeTypes=new Um(e,t),n.regions=new Cm(e,t),n}(),n.domains=new Nm(e,t),n.subdomain=function(){var n={};return n.path=new zm(e,t),n}(),n.egressIps=new Xm(e,t),n.logSinks=new pc(e,t),n.notifications=new hc(e,t),n.registryCredentials=new gc(e,t),n.sshIdentities=new Uc(e,t),n.vcs=new xc(e,t),n.repos=new kc(e,t),n.branches=new Tc(e,t),n.loadBalancers=new Dc(e,t),n.orgRoles=new Fc(e,t),n.plans=new Zc(e,t),n.projects=new Yc(e,t),n.addons=new nv(e,t),n.externalAddons=new Tv(e,t),n.jobs=new Bv(e,t),n.llmModelDeployments=new Uh(e,t),n.pipelines=new Ah(e,t),n.pipelineTemplatePreviews=new Th(e,t),n.previewTemplateRuns=new Lh(e,t),n.releaseFlowRuns=new Gh(e,t),n.previewBlueprints=new Jh(e,t),
848
+ n.blueprintTemplatePreviews=new Yh(e,t),n.previewBlueprintRuns=new nf(e,t),n.secrets=new af(e,t),n.services=new If(e,t),n.volumes=new eI(e,t),n.workflows=new uI(e,t),n.workflowRuns=new fI(e,t),n.regions=new bI(e,t),n.globalSecrets=new gI(e,t),n.tags=new CI(e,t),n.teams=new kI(e,t),n.teamMembers=new OI(e,t),n.teamRoles=new BI(e,t),n.templates=new $I(e,t),n.templateRuns=new QI(e,t),n}(),add:function(){var n={};return n.backupDestination=new tm(e,t),n.domain=function(){var n={};return n.subdomain=new Dm(e,t),n}(),n.subdomain=function(){var n={};return n.path=new Mm(e,t),n}(),n.registryCredentials=new yc(e,t),n.sshIdentities=new Cc(e,t),n.tag=new _I(e,t),n}(),patch:function(){var n={};return n.backupDestination=new rm(e,t),n.cloud=function(){var n={};return n.cluster=new cm(e,t),n.integration=new jm(e,t),n}(),n.egressIp=new nc(e,t),n.gradualRolloutStrategy=new ic(e,t),n.loadBalancer=new Bc(e,t),n.orgRole=new Jc(e,t),n.project=new Qc(e,t),n.addon=new iv(e,t),n.job=function(){
849
+ var n=new Zv(e,t);return n.cron=new zv(e,t),n.manual=new $v(e,t),n}(),n.secret=new lf(e,t),n.service=function(){var n={};return n.build=new gf(e,t),n.combined=new jf(e,t),n.deployment=new Cf(e,t),n}(),n.globalSecret=new jI(e,t),n.tag=new AI(e,t),n.team=new DI(e,t),n.teamRole=new MI(e,t),n}(),delete:function(){var n={};return n.backupDestination=new om(e,t),n.cloud=function(){var n={};return n.cluster=new vm(e,t),n.integration=new Em(e,t),n}(),n.domain=new Pm(e,t),n.subdomain=function(){var n=new qm(e,t);return n.path=new Wm(e,t),n}(),n.egressIp=new rc(e,t),n.gradualRolloutStrategy=new dc(e,t),n.logSink=new uc(e,t),n.notification=new bc(e,t),n.registryCredentials=new Ec(e,t),n.sshIdentities=new Ac(e,t),n.loadBalancer=new Vc(e,t),n.orgRole=new Wc(e,t),n.orgRoleMember=new Hc(e,t),n.project=new tv(e,t),n.addon=function(){var n=new dv(e,t);return n.backupSchedule=new sv(e,t),n}(),n.backup=new vv(e,t),n.externalAddon=new qv(e,t),n.job=new Yv(e,t),n.llmModelDeployment=new Nh(e,t),
850
+ n.pipelineTemplatePreview=new Dh(e,t),n.previewBlueprint=new Zh(e,t),n.blueprintTemplatePreview=new Kh(e,t),n.secret=new uf(e,t),n.secretLink=new hf(e,t),n.service=new Sf(e,t),n.volume=function(){var n=new oI(e,t);return n.backup=new lI(e,t),n}(),n.globalSecret=new UI(e,t),n.tag=new xI(e,t),n.teamMember=new qI(e,t),n.teamRole=new zI(e,t),n.teamRoleMember=new WI(e,t),n.template=new KI(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new sm(e,t),n.integration=new gm(e,t),n}(),n.domain=new Am(e,t),n.egressIp=new Qm(e,t),n.gradualRolloutStrategy=new oc(e,t),n.logSink=new lc(e,t),n.notification=new fc(e,t),n.customVcs=function(){var n={};return n.token=new Pc(e,t),n}(),n.loadBalancer=new Oc(e,t),n.orgRole=new Gc(e,t),n.orgRoleMember=new $c(e,t),n.project=new Kc(e,t),n.addon=function(){var n=new rv(e,t);return n.backupSchedule=new lv(e,t),n}(),n.externalAddon=new Dv(e,t),n.job=function(){var n=new Vv(e,t);return n.cron=new Gv(e,t),n.manual=new Jv(e,t),
851
+ n}(),n.llmModelDeployment=new Ch(e,t),n.previewBlueprint=new Wh(e,t),n.secret=new df(e,t),n.service=function(){var n={};return n.build=new wf(e,t),n.combined=new yf(e,t),n.deployment=new Ef(e,t),n}(),n.volume=new tI(e,t),n.workflow=new mI(e,t),n.globalSecret=new yI(e,t),n.team=new PI(e,t),n.teamMemberInvite=new LI(e,t),n.teamRole=new VI(e,t),n.teamRoleMember=new JI(e,t),n.template=new HI(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new um(e,t),n.integration=new ym(e,t),n}(),n.domain=function(){var n={};return n.subdomain=new Om(e,t),n}(),n.egressIp=new ec(e,t),n.gradualRolloutStrategy=new ac(e,t),n.sshIdentities=new Sc(e,t),n.loadBalancer=new Lc(e,t),n.orgRole=new Mc(e,t),n.project=new Xc(e,t),n.addon=new ov(e,t),n.job=function(){var n=new Fv(e,t);return n.cron=new Mv(e,t),n.manual=new Wv(e,t),n}(),n.secret=new pf(e,t),n.service=function(){var n={};return n.build=new bf(e,t),n.combined=new Rf(e,t),n.deployment=new Uf(e,t),n}(),
852
+ n.globalSecret=new RI(e,t),n.tag=new SI(e,t),n.teamRole=new FI(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new fm(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 Im(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 wm(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new Tm(e,t),n.addon=function(){var n={};return n.backup=new jv(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Bm(e,t),n.path=new Hm(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Vm(e,t);return n.path=new Zm(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Fm(e,t),n}(),n}(),enable:function(){var n={}
853
+ ;return n.subdomain=function(){var n={};return n.cdn=new Gm(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new $m(e,t),n}(),n.logSink=new vc(e,t),n.notification=new wc(e,t),n.registryCredentials=new jc(e,t),n.sshIdentities=new Nc(e,t),n.addon=function(){var n={};return n.networkSettings=new Ev(e,t),n.security=new xv(e,t),n.version=new kv(e,t),n}(),n.externalAddon=new Lv(e,t),n.job=function(){var n={};return n.buildArguments=new th(e,t),n.buildOptions=new rh(e,t),n.buildSource=new oh(e,t),n.deployment=new lh(e,t),n.healthChecks=new uh(e,t),n.runtimeEnvironment=new gh(e,t),n.settings=new jh(e,t),n}(),n.llmModelDeployment=new Sh(e,t),n.previewTemplate=new kh(e,t),n.releaseFlow=new Vh(e,t),n.previewBlueprint=new Hh(e,t),n.secret=new mf(e,t),n.secretLink=new cf(e,t),n.service=function(){var n={};return n.buildArguments=new kf(e,t),n.buildOptions=new Df(e,t),n.buildSource=new Of(e,t),n.deployment=new Ff(e,t),n.healthChecks=new Mf(e,t),
854
+ n.ports=new Wf(e,t),n.runtimeEnvironment=new Kf(e,t),n}(),n.volume=new rI(e,t),n.workflow=new vI(e,t),n.template=new YI(e,t),n}(),verify:function(){var n={};return n.subdomain=new Ym(e,t),n.domain=new Km(e,t),n}(),pause:function(){var n={};return n.logSink=new mc(e,t),n.addon=new Uv(e,t),n.job=new mh(e,t),n.blueprintTemplatePreview=new Xh(e,t),n.service=new zf(e,t),n}(),resume:function(){var n={};return n.logSink=new cc(e,t),n.addon=new Nv(e,t),n.job=new vh(e,t),n.blueprintTemplatePreview=new ef(e,t),n.service=new Zf(e,t),n}(),backup:function(){var n={};return n.addon=new mv(e,t),n.volume=new dI(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new hv(e,t),n.restore=new fv(e,t),n}(),n.job=function(){var n={};return n.build=new ih(e,t),n.run=new wh(e,t),n}(),n.releaseFlowRun=new zh(e,t),n.previewBlueprintRun=new of(e,t),n.service=function(){var n={};return n.build=new qf(e,t),n}(),n.workflowRun=new wI(e,t),n.templateRun=new tw(e,t),n}(),
855
+ restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new wv(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new gv(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new Cv(e,t),n.blueprintTemplatePreview=new Qh(e,t),n}(),restart:function(){var n={};return n.addon=new _v(e,t),n.service=new Hf(e,t),n}(),scale:function(){var n={};return n.addon=new Av(e,t),n.job=new Rh(e,t),n.service=new Qf(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new Qv(e,t),n.run=new fh(e,t),n}(),n.service=function(){var n={};return n.build=new xf(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new Eh(e,t),n}(),run:function(){var n={};return n.previewTemplate=new Oh(e,t),n.releaseFlow=new Fh(e,t),n.previewBlueprint=new tf(e,t),n.workflow=new hI(e,t),n.template=new XI(e,t),n}(),attach:function(){var n={};return n.volume=new aI(e,t),n}(),detach:function(){var n={};return n.volume=new sI(e,t),n
856
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={}
857
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}(),
858
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,17 +878,17 @@ e.addon=a.endpoints.put.addon.call,e.job=function(){var e=a.endpoints.put.job.ca
878
878
  e.llmModelDeployment=a.endpoints.update.llmModelDeployment.call,e.previewTemplate=a.endpoints.update.previewTemplate.call,e.releaseFlow=a.endpoints.update.releaseFlow.call,e.previewBlueprint=a.endpoints.update.previewBlueprint.call,e.secret=a.endpoints.update.secret.call,e.secretLink=a.endpoints.update.secretLink.call,e.service=function(){var e={};return e.buildArguments=a.endpoints.update.service.buildArguments.call,e.buildOptions=a.endpoints.update.service.buildOptions.call,e.buildSource=a.endpoints.update.service.buildSource.call,e.deployment=a.endpoints.update.service.deployment.call,e.healthChecks=a.endpoints.update.service.healthChecks.call,e.ports=a.endpoints.update.service.ports.call,e.runtimeEnvironment=a.endpoints.update.service.runtimeEnvironment.call,e}(),e.volume=a.endpoints.update.volume.call,e.workflow=a.endpoints.update.workflow.call,e.template=a.endpoints.update.template.call,e}(),this.verify=function(){var e={};return e.subdomain=a.endpoints.verify.subdomain.call,
879
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}(),
880
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,
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}()};exports.AbortAddonBackupEndpoint=cv,exports.AbortAddonRestoreEndpoint=vv,exports.AbortJobBuildEndpoint=oh,exports.AbortJobRunEndpoint=fh,
882
- exports.AbortPreviewblueprintrunEndpoint=nf,exports.AbortReleaseflowrunEndpoint=Gh,exports.AbortServiceBuildEndpoint=Of,exports.AbortTemplaterunEndpoint=QI,exports.AbortWorkflowrunEndpoint=fI,exports.AddBackupdestinationEndpoint=Qu,exports.AddDomainSubdomainEndpoint=km,exports.AddRegistrycredentialsEndpoint=bc,exports.AddSshidentitiesEndpoint=Ec,exports.AddSubdomainPathEndpoint=Fm,exports.AddTagEndpoint=UI,exports.ApiClient=rw,exports.ApiClientContextProvider=ew,exports.ApiClientFileContextProvider=tw,exports.ApiClientInMemoryContextProvider=nw,exports.ApiEndpoint=Ou,exports.AssignSubdomainPathEndpoint=Wm,exports.AssignSubdomainServiceEndpoint=Lm,exports.AttachVolumeEndpoint=rI,exports.BackupAddonEndpoint=sv,exports.BackupVolumeEndpoint=aI,exports.CordonCloudClusterNodeEndpoint=vm,exports.CreateAddonBackupscheduleEndpoint=dv,exports.CreateAddonEndpoint=tv,exports.CreateCloudClusterEndpoint=pm,exports.CreateCloudIntegrationEndpoint=wm,exports.CreateCustomvcsTokenEndpoint=Ac,
883
- exports.CreateDomainEndpoint=Sm,exports.CreateEgressipEndpoint=Km,exports.CreateExternaladdonEndpoint=kv,exports.CreateGlobalsecretEndpoint=bI,exports.CreateGradualrolloutstrategyEndpoint=nc,exports.CreateJobCronEndpoint=Vv,exports.CreateJobEndpoint=qv,exports.CreateJobManualEndpoint=Mv,exports.CreateLlmmodeldeploymentEndpoint=Eh,exports.CreateLoadbalancerEndpoint=Tc,exports.CreateLogsinkEndpoint=dc,exports.CreateNotificationEndpoint=vc,exports.CreateOrgroleEndpoint=Vc,exports.CreateOrgrolememberEndpoint=Jc,exports.CreatePreviewblueprintEndpoint=zh,exports.CreateProjectEndpoint=Zc,exports.CreateSecretEndpoint=of,exports.CreateServiceBuildEndpoint=ff,exports.CreateServiceCombinedEndpoint=bf,exports.CreateServiceDeploymentEndpoint=Rf,exports.CreateTeamEndpoint=AI,exports.CreateTeammemberinviteEndpoint=DI,exports.CreateTeamroleEndpoint=qI,exports.CreateTeamrolememberEndpoint=MI,exports.CreateTemplateEndpoint=WI,exports.CreateVolumeEndpoint=Qf,exports.CreateWorkflowEndpoint=sI,
884
- exports.DeleteAddonBackupscheduleEndpoint=pv,exports.DeleteAddonEndpoint=av,exports.DeleteApiEndpoint=Vu,exports.DeleteBackupEndpoint=mv,exports.DeleteBackupdestinationEndpoint=nm,exports.DeleteBlueprinttemplatepreviewEndpoint=Zh,exports.DeleteCloudClusterEndpoint=mm,exports.DeleteCloudIntegrationEndpoint=Rm,exports.DeleteDomainEndpoint=Am,exports.DeleteEgressipEndpoint=tc,exports.DeleteExternaladdonEndpoint=Ov,exports.DeleteGlobalsecretEndpoint=jI,exports.DeleteGradualrolloutstrategyEndpoint=ac,exports.DeleteJobEndpoint=Hv,exports.DeleteLlmmodeldeploymentEndpoint=_h,exports.DeleteLoadbalancerEndpoint=qc,exports.DeleteLogsinkEndpoint=lc,exports.DeleteNotificationEndpoint=Ic,exports.DeleteOrgroleEndpoint=zc,exports.DeleteOrgrolememberEndpoint=Wc,exports.DeletePipelinetemplatepreviewEndpoint=kh,exports.DeletePreviewblueprintEndpoint=$h,exports.DeleteProjectEndpoint=Qc,exports.DeleteRegistrycredentialsEndpoint=Rc,exports.DeleteSecretEndpoint=lf,exports.DeleteSecretlinkEndpoint=cf,
885
- exports.DeleteServiceEndpoint=Cf,exports.DeleteSshidentitiesEndpoint=Sc,exports.DeleteSubdomainEndpoint=Om,exports.DeleteSubdomainPathEndpoint=zm,exports.DeleteTagEndpoint=NI,exports.DeleteTeammemberEndpoint=OI,exports.DeleteTeamroleEndpoint=GI,exports.DeleteTeamrolememberEndpoint=zI,exports.DeleteTemplateEndpoint=ZI,exports.DeleteVolumeBackupEndpoint=dI,exports.DeleteVolumeEndpoint=nI,exports.DetachVolumeEndpoint=pI,exports.DisableSubdomainCdnEndpoint=Bm,exports.DrainCloudClusterNodeEndpoint=hm,exports.EnableSubdomainCdnEndpoint=Vm,exports.ExecCommandStandard=Xa,exports.GetAddonBackupDownloadEndpoint=hv,exports.GetAddonBackupEndpoint=uv,exports.GetAddonBackupRestoresEndpoint=Iv,exports.GetAddonBackupsEndpoint=lv,exports.GetAddonBackupschedulesEndpoint=iv,exports.GetAddonContainersEndpoint=bv,exports.GetAddonCredentialsEndpoint=gv,exports.GetAddonEndpoint=rv,exports.GetAddonRestoresEndpoint=Cv,exports.GetAddonTypesEndpoint=Ku,exports.GetAddonVersionEndpoint=Av,
886
- exports.GetApiEndpoint=Lu,exports.GetApiEndpointPaginated=qu,exports.GetBackupdestinationEndpoint=em,exports.GetCloudClusterEndpoint=sm,exports.GetCloudIntegrationEndpoint=gm,exports.GetDnsidEndpoint=Cm,exports.GetDomainEndpoint=Nm,exports.GetDomaincertificateEndpoint=xm,exports.GetEgressipEndpoint=Qm,exports.GetExternaladdonEndpoint=Tv,exports.GetGlobalsecretEndpoint=RI,exports.GetInvoiceDetailsEndpoint=am,exports.GetJobBranchesEndpoint=Zv,exports.GetJobBuildEndpoint=rh,exports.GetJobBuildargumentdetailsEndpoint=eh,exports.GetJobBuildargumentsEndpoint=Xv,exports.GetJobBuildsEndpoint=Yv,exports.GetJobContainersEndpoint=ah,exports.GetJobDeploymentEndpoint=ih,exports.GetJobEndpoint=Wv,exports.GetJobHealthchecksEndpoint=ph,exports.GetJobPullrequestsEndpoint=uh,exports.GetJobRunEndpoint=hh,exports.GetJobRunsEndpoint=ch,exports.GetJobRuntimeenvironmentEndpoint=Ih,exports.GetJobRuntimeenvironmentdetailsEndpoint=bh,exports.GetLlmmodeldeploymentEndpoint=Uh,exports.GetLoadbalancerEndpoint=Oc,
887
- exports.GetLogsinkEndpoint=pc,exports.GetNotificationEndpoint=hc,exports.GetOrgdirectorygroupsEndpoint=Um,exports.GetOrgroleEndpoint=Gc,exports.GetPipelineEndpoint=Nh,exports.GetPreviewblueprintEndpoint=Jh,exports.GetPreviewblueprintrunEndpoint=tf,exports.GetPreviewtemplateEndpoint=Ah,exports.GetPreviewtemplaterunEndpoint=Oh,exports.GetProjectEndpoint=Xc,exports.GetRegistrycredentialsEndpoint=gc,exports.GetReleaseflowEndpoint=Lh,exports.GetReleaseflowrunEndpoint=Fh,exports.GetSecretEndpoint=pf,exports.GetSecretdetailsEndpoint=vf,exports.GetSecretlinkEndpoint=mf,exports.GetServiceBranchesEndpoint=_f,exports.GetServiceBuildEndpoint=Df,exports.GetServiceBuildargumentdetailsEndpoint=Pf,exports.GetServiceBuildargumentsEndpoint=Af,exports.GetServiceBuildsEndpoint=Sf,exports.GetServiceContainersEndpoint=Lf,exports.GetServiceDeploymentEndpoint=qf,exports.GetServiceEndpoint=Uf,exports.GetServiceHealthchecksEndpoint=Vf,exports.GetServicePortsEndpoint=Mf,exports.GetServicePullrequestsEndpoint=Jf,
888
- exports.GetServiceRuntimeenvironmentEndpoint=Hf,exports.GetServiceRuntimeenvironmentdetailsEndpoint=Yf,exports.GetSshidentitiesEndpoint=Uc,exports.GetSubdomainEndpoint=Dm,exports.GetSubdomainPathEndpoint=Mm,exports.GetTagEndpoint=_I,exports.GetTeamEndpoint=PI,exports.GetTeamroleEndpoint=VI,exports.GetTemplateEndpoint=$I,exports.GetTemplaterunEndpoint=XI,exports.GetVolumeBackupEndpoint=iI,exports.GetVolumeBackupsEndpoint=oI,exports.GetVolumeEndpoint=eI,exports.GetWorkflowEndpoint=uI,exports.GetWorkflowrunEndpoint=hI,exports.ImportAddonBackupEndpoint=yv,exports.ImportDomaincertificateEndpoint=Pm,exports.ListAddonsEndpoint=ev,exports.ListBackupdestinationsEndpoint=Xu,exports.ListBackupdestinationsbackupsEndpoint=rm,exports.ListBlueprinttemplatepreviewsEndpoint=Hh,exports.ListBranchesEndpoint=Pc,exports.ListCloudClusterNodesEndpoint=cm,exports.ListCloudClustersEndpoint=dm,exports.ListCloudIntegrationsEndpoint=Im,exports.ListCloudNodetypesEndpoint=jm,exports.ListCloudProvidersEndpoint=im,
889
- exports.ListCloudRegionsEndpoint=Em,exports.ListDomainsEndpoint=_m,exports.ListEgressipsEndpoint=Ym,exports.ListExternaladdonsEndpoint=Pv,exports.ListGlobalsecretsEndpoint=wI,exports.ListInvoicesEndpoint=om,exports.ListJobsEndpoint=Lv,exports.ListLlmmodeldeploymentsEndpoint=jh,exports.ListLoadbalancersEndpoint=kc,exports.ListLogsinksEndpoint=ic,exports.ListNotificationsEndpoint=cc,exports.ListOrgrolesEndpoint=Bc,exports.ListPipelinesEndpoint=Sh,exports.ListPipelinetemplatepreviewsEndpoint=Ph,exports.ListPlansEndpoint=$c,exports.ListPreviewblueprintrunsEndpoint=ef,exports.ListPreviewblueprintsEndpoint=Mh,exports.ListPreviewtemplaterunsEndpoint=Dh,exports.ListProjectsEndpoint=Hc,exports.ListRegionsEndpoint=II,exports.ListRegistrycredentialsEndpoint=wc,exports.ListReleaseflowrunsEndpoint=Vh,exports.ListReposEndpoint=xc,exports.ListSecretsEndpoint=rf,exports.ListServicesEndpoint=hf,exports.ListSshidentitiesEndpoint=jc,exports.ListSubdomainPathEndpoint=Gm,exports.ListTagsEndpoint=EI,
890
- exports.ListTeammembersEndpoint=TI,exports.ListTeamrolesEndpoint=LI,exports.ListTeamsEndpoint=xI,exports.ListTemplaterunsEndpoint=KI,exports.ListTemplatesEndpoint=JI,exports.ListVcsEndpoint=Nc,exports.ListVolumesEndpoint=Xf,exports.ListWorkflowrunsEndpoint=vI,exports.ListWorkflowsEndpoint=lI,exports.NorthflankApiCallError=xu,exports.NorthflankExecCommand=Qa,exports.NorthflankFileCopy=Au,exports.NorthflankLogFetch=$u,exports.NorthflankMetricFetch=Yu,exports.NorthflankPortForwarder=Ka,exports.PatchAddonEndpoint=ov,exports.PatchApiEndpoint=Gu,exports.PatchBackupdestinationEndpoint=tm,exports.PatchCloudClusterEndpoint=um,exports.PatchCloudIntegrationEndpoint=ym,exports.PatchEgressipEndpoint=ec,exports.PatchGlobalsecretEndpoint=yI,exports.PatchGradualrolloutstrategyEndpoint=oc,exports.PatchJobCronEndpoint=Gv,exports.PatchJobEndpoint=$v,exports.PatchJobManualEndpoint=Jv,exports.PatchLoadbalancerEndpoint=Lc,exports.PatchOrgroleEndpoint=Mc,exports.PatchProjectEndpoint=Kc,
891
- exports.PatchSecretEndpoint=df,exports.PatchServiceBuildEndpoint=wf,exports.PatchServiceCombinedEndpoint=yf,exports.PatchServiceDeploymentEndpoint=Ef,exports.PatchTagEndpoint=SI,exports.PatchTeamEndpoint=kI,exports.PatchTeamroleEndpoint=FI,exports.PauseAddonEndpoint=jv,exports.PauseBlueprinttemplatepreviewEndpoint=Yh,exports.PauseJobEndpoint=sh,exports.PauseLogsinkEndpoint=sc,exports.PauseServiceEndpoint=Gf,exports.PostApiEndpoint=Bu,exports.PutAddonEndpoint=nv,exports.PutApiEndpoint=Fu,exports.PutCloudClusterEndpoint=lm,exports.PutCloudIntegrationEndpoint=bm,exports.PutDomainSubdomainEndpoint=Tm,exports.PutEgressipEndpoint=Xm,exports.PutGlobalsecretEndpoint=gI,exports.PutGradualrolloutstrategyEndpoint=rc,exports.PutJobCronEndpoint=Fv,exports.PutJobEndpoint=Bv,exports.PutJobManualEndpoint=zv,exports.PutLoadbalancerEndpoint=Dc,exports.PutOrgroleEndpoint=Fc,exports.PutProjectEndpoint=Yc,exports.PutSecretEndpoint=af,exports.PutServiceBuildEndpoint=If,exports.PutServiceCombinedEndpoint=gf,
892
- exports.PutServiceDeploymentEndpoint=jf,exports.PutSshidentitiesEndpoint=Cc,exports.PutTagEndpoint=CI,exports.PutTeamroleEndpoint=BI,exports.ResetAddonEndpoint=Ev,exports.ResetBlueprinttemplatepreviewEndpoint=Kh,exports.RestartAddonEndpoint=Uv,exports.RestartServiceEndpoint=Wf,exports.RestoreAddonBackupEndpoint=fv,exports.ResumeAddonEndpoint=_v,exports.ResumeBlueprinttemplatepreviewEndpoint=Xh,exports.ResumeJobEndpoint=mh,exports.ResumeLogsinkEndpoint=uc,exports.ResumeServiceEndpoint=$f,exports.RetainAddonBackupEndpoint=wv,exports.RunPreviewblueprintEndpoint=Qh,exports.RunPreviewtemplateEndpoint=Th,exports.RunReleaseflowEndpoint=Bh,exports.RunTemplateEndpoint=YI,exports.RunWorkflowEndpoint=cI,exports.ScaleAddonEndpoint=Sv,exports.ScaleJobEndpoint=gh,exports.ScaleServiceEndpoint=Kf,exports.StartJobBuildEndpoint=Kv,exports.StartJobRunEndpoint=vh,exports.StartServiceBuildEndpoint=Nf,exports.SuspendJobEndpoint=Rh,exports.UnassignSubdomainEndpoint=qm,
893
- exports.UnassignSubdomainPathEndpoint=$m,exports.UncordonCloudClusterNodeEndpoint=fm,exports.UpdateAddonNetworksettingsEndpoint=Rv,exports.UpdateAddonSecurityEndpoint=Nv,exports.UpdateAddonVersionEndpoint=xv,exports.UpdateExternaladdonEndpoint=Dv,exports.UpdateJobBuildargumentsEndpoint=Qv,exports.UpdateJobBuildoptionsEndpoint=th,exports.UpdateJobBuildsourceEndpoint=nh,exports.UpdateJobDeploymentEndpoint=dh,exports.UpdateJobHealthchecksEndpoint=lh,exports.UpdateJobRuntimeenvironmentEndpoint=wh,exports.UpdateJobSettingsEndpoint=yh,exports.UpdateLlmmodeldeploymentEndpoint=Ch,exports.UpdateLogsinkEndpoint=mc,exports.UpdateNotificationEndpoint=fc,exports.UpdatePreviewblueprintEndpoint=Wh,exports.UpdatePreviewtemplateEndpoint=xh,exports.UpdateRegistrycredentialsEndpoint=yc,exports.UpdateReleaseflowEndpoint=qh,exports.UpdateSecretEndpoint=sf,exports.UpdateSecretlinkEndpoint=uf,exports.UpdateServiceBuildargumentsEndpoint=xf,exports.UpdateServiceBuildoptionsEndpoint=kf,
894
- exports.UpdateServiceBuildsourceEndpoint=Tf,exports.UpdateServiceDeploymentEndpoint=Bf,exports.UpdateServiceHealthchecksEndpoint=Ff,exports.UpdateServicePortsEndpoint=zf,exports.UpdateServiceRuntimeenvironmentEndpoint=Zf,exports.UpdateSshidentitiesEndpoint=_c,exports.UpdateSubdomainPathEndpoint=Jm,exports.UpdateTemplateEndpoint=HI,exports.UpdateVolumeEndpoint=tI,exports.UpdateWorkflowEndpoint=mI,exports.VerifyDomainEndpoint=Zm,exports.VerifySubdomainEndpoint=Hm;
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}()};exports.AbortAddonBackupEndpoint=hv,exports.AbortAddonRestoreEndpoint=fv,exports.AbortJobBuildEndpoint=ih,exports.AbortJobRunEndpoint=wh,
882
+ exports.AbortPreviewblueprintrunEndpoint=of,exports.AbortReleaseflowrunEndpoint=zh,exports.AbortServiceBuildEndpoint=qf,exports.AbortTemplaterunEndpoint=tw,exports.AbortWorkflowrunEndpoint=wI,exports.AddBackupdestinationEndpoint=tm,exports.AddDomainSubdomainEndpoint=Dm,exports.AddRegistrycredentialsEndpoint=yc,exports.AddSshidentitiesEndpoint=Cc,exports.AddSubdomainPathEndpoint=Mm,exports.AddTagEndpoint=_I,exports.ApiClient=aw,exports.ApiClientContextProvider=nw,exports.ApiClientFileContextProvider=rw,exports.ApiClientInMemoryContextProvider=ow,exports.ApiEndpoint=qu,exports.AssignSubdomainPathEndpoint=Hm,exports.AssignSubdomainServiceEndpoint=Bm,exports.AttachVolumeEndpoint=aI,exports.BackupAddonEndpoint=mv,exports.BackupVolumeEndpoint=dI,exports.CordonCloudClusterNodeEndpoint=fm,exports.CreateAddonBackupscheduleEndpoint=lv,exports.CreateAddonEndpoint=rv,exports.CreateCloudClusterEndpoint=sm,exports.CreateCloudIntegrationEndpoint=gm,exports.CreateCustomvcsTokenEndpoint=Pc,
883
+ exports.CreateDomainEndpoint=Am,exports.CreateEgressipEndpoint=Qm,exports.CreateExternaladdonEndpoint=Dv,exports.CreateGlobalsecretEndpoint=yI,exports.CreateGradualrolloutstrategyEndpoint=oc,exports.CreateJobCronEndpoint=Gv,exports.CreateJobEndpoint=Vv,exports.CreateJobManualEndpoint=Jv,exports.CreateLlmmodeldeploymentEndpoint=Ch,exports.CreateLoadbalancerEndpoint=Oc,exports.CreateLogsinkEndpoint=lc,exports.CreateNotificationEndpoint=fc,exports.CreateOrgroleEndpoint=Gc,exports.CreateOrgrolememberEndpoint=$c,exports.CreatePreviewblueprintEndpoint=Wh,exports.CreateProjectEndpoint=Kc,exports.CreateSecretEndpoint=df,exports.CreateServiceBuildEndpoint=wf,exports.CreateServiceCombinedEndpoint=yf,exports.CreateServiceDeploymentEndpoint=Ef,exports.CreateTeamEndpoint=PI,exports.CreateTeammemberinviteEndpoint=LI,exports.CreateTeamroleEndpoint=VI,exports.CreateTeamrolememberEndpoint=JI,exports.CreateTemplateEndpoint=HI,exports.CreateVolumeEndpoint=tI,exports.CreateWorkflowEndpoint=mI,
884
+ exports.DeleteAddonBackupscheduleEndpoint=sv,exports.DeleteAddonEndpoint=dv,exports.DeleteApiEndpoint=Gu,exports.DeleteBackupEndpoint=vv,exports.DeleteBackupdestinationEndpoint=om,exports.DeleteBlueprinttemplatepreviewEndpoint=Kh,exports.DeleteCloudClusterEndpoint=vm,exports.DeleteCloudIntegrationEndpoint=Em,exports.DeleteDomainEndpoint=Pm,exports.DeleteEgressipEndpoint=rc,exports.DeleteExternaladdonEndpoint=qv,exports.DeleteGlobalsecretEndpoint=UI,exports.DeleteGradualrolloutstrategyEndpoint=dc,exports.DeleteJobEndpoint=Yv,exports.DeleteLlmmodeldeploymentEndpoint=Nh,exports.DeleteLoadbalancerEndpoint=Vc,exports.DeleteLogsinkEndpoint=uc,exports.DeleteNotificationEndpoint=bc,exports.DeleteOrgroleEndpoint=Wc,exports.DeleteOrgrolememberEndpoint=Hc,exports.DeletePipelinetemplatepreviewEndpoint=Dh,exports.DeletePreviewblueprintEndpoint=Zh,exports.DeleteProjectEndpoint=tv,exports.DeleteRegistrycredentialsEndpoint=Ec,exports.DeleteSecretEndpoint=uf,exports.DeleteSecretlinkEndpoint=hf,
885
+ exports.DeleteServiceEndpoint=Sf,exports.DeleteSshidentitiesEndpoint=Ac,exports.DeleteSubdomainEndpoint=qm,exports.DeleteSubdomainPathEndpoint=Wm,exports.DeleteTagEndpoint=xI,exports.DeleteTeammemberEndpoint=qI,exports.DeleteTeamroleEndpoint=zI,exports.DeleteTeamrolememberEndpoint=WI,exports.DeleteTemplateEndpoint=KI,exports.DeleteVolumeBackupEndpoint=lI,exports.DeleteVolumeEndpoint=oI,exports.DetachVolumeEndpoint=sI,exports.DisableSubdomainCdnEndpoint=Fm,exports.DrainCloudClusterNodeEndpoint=Im,exports.EnableSubdomainCdnEndpoint=Gm,exports.ExecCommandStandard=ei,exports.GetAddonBackupDownloadEndpoint=Iv,exports.GetAddonBackupEndpoint=cv,exports.GetAddonBackupRestoresEndpoint=bv,exports.GetAddonBackupsEndpoint=uv,exports.GetAddonBackupschedulesEndpoint=pv,exports.GetAddonContainersEndpoint=yv,exports.GetAddonCredentialsEndpoint=Rv,exports.GetAddonEndpoint=av,exports.GetAddonRestoresEndpoint=Sv,exports.GetAddonTypesEndpoint=Qu,exports.GetAddonVersionEndpoint=Pv,
886
+ exports.GetApiEndpoint=Bu,exports.GetApiEndpointPaginated=Vu,exports.GetBackupdestinationEndpoint=nm,exports.GetCloudClusterEndpoint=mm,exports.GetCloudIntegrationEndpoint=Rm,exports.GetDnsidEndpoint=Sm,exports.GetDomainEndpoint=xm,exports.GetDomaincertificateEndpoint=km,exports.GetEgressipEndpoint=tc,exports.GetExternaladdonEndpoint=Ov,exports.GetGlobalsecretEndpoint=EI,exports.GetInvoiceDetailsEndpoint=dm,exports.GetJobBranchesEndpoint=Kv,exports.GetJobBuildEndpoint=ah,exports.GetJobBuildargumentdetailsEndpoint=nh,exports.GetJobBuildargumentsEndpoint=eh,exports.GetJobBuildsEndpoint=Xv,exports.GetJobContainersEndpoint=dh,exports.GetJobDeploymentEndpoint=ph,exports.GetJobEndpoint=Hv,exports.GetJobHealthchecksEndpoint=sh,exports.GetJobPullrequestsEndpoint=ch,exports.GetJobRunEndpoint=Ih,exports.GetJobRunsEndpoint=hh,exports.GetJobRuntimeenvironmentEndpoint=bh,exports.GetJobRuntimeenvironmentdetailsEndpoint=yh,exports.GetLlmmodeldeploymentEndpoint=_h,exports.GetLoadbalancerEndpoint=qc,
887
+ exports.GetLogsinkEndpoint=sc,exports.GetNotificationEndpoint=Ic,exports.GetOrgdirectorygroupsEndpoint=_m,exports.GetOrgroleEndpoint=zc,exports.GetPipelineEndpoint=xh,exports.GetPreviewblueprintEndpoint=$h,exports.GetPreviewblueprintrunEndpoint=rf,exports.GetPreviewtemplateEndpoint=Ph,exports.GetPreviewtemplaterunEndpoint=qh,exports.GetProjectEndpoint=ev,exports.GetRegistrycredentialsEndpoint=Rc,exports.GetReleaseflowEndpoint=Bh,exports.GetReleaseflowrunEndpoint=Mh,exports.GetSecretEndpoint=sf,exports.GetSecretdetailsEndpoint=ff,exports.GetSecretlinkEndpoint=vf,exports.GetServiceBranchesEndpoint=Nf,exports.GetServiceBuildEndpoint=Lf,exports.GetServiceBuildargumentdetailsEndpoint=Tf,exports.GetServiceBuildargumentsEndpoint=Pf,exports.GetServiceBuildsEndpoint=Af,exports.GetServiceContainersEndpoint=Bf,exports.GetServiceDeploymentEndpoint=Vf,exports.GetServiceEndpoint=_f,exports.GetServiceHealthchecksEndpoint=Gf,exports.GetServicePortsEndpoint=Jf,exports.GetServicePullrequestsEndpoint=$f,
888
+ exports.GetServiceRuntimeenvironmentEndpoint=Yf,exports.GetServiceRuntimeenvironmentdetailsEndpoint=Xf,exports.GetSshidentitiesEndpoint=_c,exports.GetSubdomainEndpoint=Lm,exports.GetSubdomainPathEndpoint=Jm,exports.GetTagEndpoint=NI,exports.GetTeamEndpoint=TI,exports.GetTeamroleEndpoint=GI,exports.GetTemplateEndpoint=ZI,exports.GetTemplaterunEndpoint=ew,exports.GetVolumeBackupEndpoint=pI,exports.GetVolumeBackupsEndpoint=iI,exports.GetVolumeEndpoint=nI,exports.GetWorkflowEndpoint=cI,exports.GetWorkflowrunEndpoint=II,exports.ImportAddonBackupEndpoint=jv,exports.ImportDomaincertificateEndpoint=Tm,exports.ListAddonsEndpoint=nv,exports.ListBackupdestinationsEndpoint=em,exports.ListBackupdestinationsbackupsEndpoint=am,exports.ListBlueprinttemplatepreviewsEndpoint=Yh,exports.ListBranchesEndpoint=Tc,exports.ListCloudClusterNodesEndpoint=hm,exports.ListCloudClustersEndpoint=lm,exports.ListCloudIntegrationsEndpoint=bm,exports.ListCloudNodetypesEndpoint=Um,exports.ListCloudProvidersEndpoint=pm,
889
+ exports.ListCloudRegionsEndpoint=Cm,exports.ListDomainsEndpoint=Nm,exports.ListEgressipsEndpoint=Xm,exports.ListExternaladdonsEndpoint=Tv,exports.ListGlobalsecretsEndpoint=gI,exports.ListInvoicesEndpoint=im,exports.ListJobsEndpoint=Bv,exports.ListLlmmodeldeploymentsEndpoint=Uh,exports.ListLoadbalancersEndpoint=Dc,exports.ListLogsinksEndpoint=pc,exports.ListNotificationsEndpoint=hc,exports.ListOrgrolesEndpoint=Fc,exports.ListPipelinesEndpoint=Ah,exports.ListPipelinetemplatepreviewsEndpoint=Th,exports.ListPlansEndpoint=Zc,exports.ListPreviewblueprintrunsEndpoint=nf,exports.ListPreviewblueprintsEndpoint=Jh,exports.ListPreviewtemplaterunsEndpoint=Lh,exports.ListProjectsEndpoint=Yc,exports.ListRegionsEndpoint=bI,exports.ListRegistrycredentialsEndpoint=gc,exports.ListReleaseflowrunsEndpoint=Gh,exports.ListReposEndpoint=kc,exports.ListSecretsEndpoint=af,exports.ListServicesEndpoint=If,exports.ListSshidentitiesEndpoint=Uc,exports.ListSubdomainPathEndpoint=zm,exports.ListTagsEndpoint=CI,
890
+ exports.ListTeammembersEndpoint=OI,exports.ListTeamrolesEndpoint=BI,exports.ListTeamsEndpoint=kI,exports.ListTemplaterunsEndpoint=QI,exports.ListTemplatesEndpoint=$I,exports.ListVcsEndpoint=xc,exports.ListVolumesEndpoint=eI,exports.ListWorkflowrunsEndpoint=fI,exports.ListWorkflowsEndpoint=uI,exports.NorthflankApiCallError=ku,exports.NorthflankExecCommand=ti,exports.NorthflankFileCopy=Pu,exports.NorthflankLogFetch=Zu,exports.NorthflankMetricFetch=Xu,exports.NorthflankPortForwarder=Qa,exports.PatchAddonEndpoint=iv,exports.PatchApiEndpoint=zu,exports.PatchBackupdestinationEndpoint=rm,exports.PatchCloudClusterEndpoint=cm,exports.PatchCloudIntegrationEndpoint=jm,exports.PatchEgressipEndpoint=nc,exports.PatchGlobalsecretEndpoint=jI,exports.PatchGradualrolloutstrategyEndpoint=ic,exports.PatchJobCronEndpoint=zv,exports.PatchJobEndpoint=Zv,exports.PatchJobManualEndpoint=$v,exports.PatchLoadbalancerEndpoint=Bc,exports.PatchOrgroleEndpoint=Jc,exports.PatchProjectEndpoint=Qc,
891
+ exports.PatchSecretEndpoint=lf,exports.PatchServiceBuildEndpoint=gf,exports.PatchServiceCombinedEndpoint=jf,exports.PatchServiceDeploymentEndpoint=Cf,exports.PatchTagEndpoint=AI,exports.PatchTeamEndpoint=DI,exports.PatchTeamroleEndpoint=MI,exports.PauseAddonEndpoint=Uv,exports.PauseBlueprinttemplatepreviewEndpoint=Xh,exports.PauseJobEndpoint=mh,exports.PauseLogsinkEndpoint=mc,exports.PauseServiceEndpoint=zf,exports.PostApiEndpoint=Fu,exports.PutAddonEndpoint=ov,exports.PutApiEndpoint=Mu,exports.PutCloudClusterEndpoint=um,exports.PutCloudIntegrationEndpoint=ym,exports.PutDomainSubdomainEndpoint=Om,exports.PutEgressipEndpoint=ec,exports.PutGlobalsecretEndpoint=RI,exports.PutGradualrolloutstrategyEndpoint=ac,exports.PutJobCronEndpoint=Mv,exports.PutJobEndpoint=Fv,exports.PutJobManualEndpoint=Wv,exports.PutLoadbalancerEndpoint=Lc,exports.PutOrgroleEndpoint=Mc,exports.PutProjectEndpoint=Xc,exports.PutSecretEndpoint=pf,exports.PutServiceBuildEndpoint=bf,exports.PutServiceCombinedEndpoint=Rf,
892
+ exports.PutServiceDeploymentEndpoint=Uf,exports.PutSshidentitiesEndpoint=Sc,exports.PutTagEndpoint=SI,exports.PutTeamroleEndpoint=FI,exports.ResetAddonEndpoint=Cv,exports.ResetBlueprinttemplatepreviewEndpoint=Qh,exports.RestartAddonEndpoint=_v,exports.RestartServiceEndpoint=Hf,exports.RestoreAddonBackupEndpoint=wv,exports.ResumeAddonEndpoint=Nv,exports.ResumeBlueprinttemplatepreviewEndpoint=ef,exports.ResumeJobEndpoint=vh,exports.ResumeLogsinkEndpoint=cc,exports.ResumeServiceEndpoint=Zf,exports.RetainAddonBackupEndpoint=gv,exports.RunPreviewblueprintEndpoint=tf,exports.RunPreviewtemplateEndpoint=Oh,exports.RunReleaseflowEndpoint=Fh,exports.RunTemplateEndpoint=XI,exports.RunWorkflowEndpoint=hI,exports.ScaleAddonEndpoint=Av,exports.ScaleJobEndpoint=Rh,exports.ScaleServiceEndpoint=Qf,exports.StartJobBuildEndpoint=Qv,exports.StartJobRunEndpoint=fh,exports.StartServiceBuildEndpoint=xf,exports.SuspendJobEndpoint=Eh,exports.UnassignSubdomainEndpoint=Vm,
893
+ exports.UnassignSubdomainPathEndpoint=Zm,exports.UncordonCloudClusterNodeEndpoint=wm,exports.UpdateAddonNetworksettingsEndpoint=Ev,exports.UpdateAddonSecurityEndpoint=xv,exports.UpdateAddonVersionEndpoint=kv,exports.UpdateExternaladdonEndpoint=Lv,exports.UpdateJobBuildargumentsEndpoint=th,exports.UpdateJobBuildoptionsEndpoint=rh,exports.UpdateJobBuildsourceEndpoint=oh,exports.UpdateJobDeploymentEndpoint=lh,exports.UpdateJobHealthchecksEndpoint=uh,exports.UpdateJobRuntimeenvironmentEndpoint=gh,exports.UpdateJobSettingsEndpoint=jh,exports.UpdateLlmmodeldeploymentEndpoint=Sh,exports.UpdateLogsinkEndpoint=vc,exports.UpdateNotificationEndpoint=wc,exports.UpdatePreviewblueprintEndpoint=Hh,exports.UpdatePreviewtemplateEndpoint=kh,exports.UpdateRegistrycredentialsEndpoint=jc,exports.UpdateReleaseflowEndpoint=Vh,exports.UpdateSecretEndpoint=mf,exports.UpdateSecretlinkEndpoint=cf,exports.UpdateServiceBuildargumentsEndpoint=kf,exports.UpdateServiceBuildoptionsEndpoint=Df,
894
+ exports.UpdateServiceBuildsourceEndpoint=Of,exports.UpdateServiceDeploymentEndpoint=Ff,exports.UpdateServiceHealthchecksEndpoint=Mf,exports.UpdateServicePortsEndpoint=Wf,exports.UpdateServiceRuntimeenvironmentEndpoint=Kf,exports.UpdateSshidentitiesEndpoint=Nc,exports.UpdateSubdomainPathEndpoint=$m,exports.UpdateTemplateEndpoint=YI,exports.UpdateVolumeEndpoint=rI,exports.UpdateWorkflowEndpoint=vI,exports.VerifyDomainEndpoint=Km,exports.VerifySubdomainEndpoint=Ym;