@northflank/js-client 0.9.3-buncompat.0 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-client.d.ts +511 -51
- package/dist/cjs/api-client.js +552 -533
- package/dist/esm/api-client.d.ts +511 -51
- package/dist/esm/api-client.js +530 -512
- package/package.json +1 -1
package/dist/esm/api-client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{EventEmitter as t}from"events";import{execSync as n,spawn as r}from"child_process";import*as o from"node:stream";import a,{Transform as i,Readable as d}from"node:stream";import p from"stream";import l from"http";import s,{fileURLToPath as u}from"url";import m from"punycode";import c from"https";import*as v from"zlib";import h from"zlib";import
|
|
1
|
+
import e,{EventEmitter as t}from"events";import{execSync as n,spawn as r}from"child_process";import*as o from"node:stream";import a,{Transform as i,Readable as d}from"node:stream";import p from"stream";import l from"http";import s,{fileURLToPath as u}from"url";import m from"punycode";import c from"https";import*as v from"zlib";import h from"zlib";import f from"os";import*as I from"net";import w,{Socket as g}from"net";import b from"fs";import y,{parse as R,dirname as j}from"path";import U from"tls";import C,{createHash as E}from"crypto";import _,{Buffer as S}from"buffer";import N from"dgram";import{EventEmitter as A}from"node:events";import{StringDecoder as k}from"node:string_decoder";import P,{win32 as T,posix as D,basename as O,join as x}from"node:path";import L from"node:fs";import q from"assert";import B from"node:assert";import{randomBytes as V}from"node:crypto";import F from"node:fs/promises";var M=function(e,t){return M=Object.setPrototypeOf||{__proto__:[]
|
|
2
2
|
}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},M(e,t)};function G(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)};function J(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{p(r.next(e))}catch(e){a(e)}}function d(e){try{p(r.throw(e))}catch(e){a(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,d)}p((r=r.apply(e,t||[])).next())})}function W(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]
|
|
3
3
|
},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=d(0),i.throw=d(1),i.return=d(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function d(d){return function(p){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,d[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==d[0]&&2!==d[0])){a=0;continue}if(3===d[0]&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(6===d[0]&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(e){d=[6,e],r=0}finally{n=o=0}
|
|
4
4
|
if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,p])}}}function $(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var H="object"==typeof global&&global&&global.Object===Object&&global,Z="object"==typeof self&&self&&self.Object===Object&&self,Y=H||Z||Function("return this")(),K=Y.Symbol,X=Object.prototype,Q=X.hasOwnProperty,ee=X.toString,te=K?K.toStringTag:void 0;var ne=Object.prototype.toString;var re=K?K.toStringTag:void 0;function oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":re&&re in Object(e)?function(e){var t=Q.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var o=ee.call(e);return r&&(t?e[te]=n:delete e[te]),o}(e):function(e){return ne.call(e)}(e)}function ae(e){return null!=e&&"object"==typeof e}function ie(e){
|
|
@@ -69,790 +69,808 @@ configurable:!0}),Object.defineProperties(fo.prototype,{method:{enumerable:!0},u
|
|
|
69
69
|
;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=Wr(e);"number"==typeof t&&(r=String(t))}r&&n.set("Content-Length",r),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let o=e.agent;return"function"==typeof o&&(o=o(t)),n.has("Connection")||o||n.set("Connection","close"),Object.assign({},t,{method:e.method,headers:oo(n),agent:o})}(o),i=("https:"===a.protocol?c:l).request,d=o.signal;let s=null;const u=function(){let e=new Io("The user aborted a request.");r(e),o.body&&o.body instanceof p.Readable&&o.body.destroy(e),s&&s.body&&s.body.emit("error",e)};if(d&&d.aborted)return void u();const m=function(){u(),I()},v=i(a);let f;function I(){v.abort(),d&&d.removeEventListener("abort",m),clearTimeout(f)}d&&d.addEventListener("abort",m),o.timeout&&v.once("socket",function(e){f=setTimeout(function(){
|
|
70
70
|
r(new Lr(`network timeout at: ${o.url}`,"request-timeout")),I()},o.timeout)}),v.on("error",function(e){r(new Lr(`request to ${o.url} failed, reason: ${e.message}`,"system",e)),I()}),v.on("response",function(e){clearTimeout(f);const t=function(e){const t=new Qr;for(const n of Object.keys(e))if(!$r.test(n))if(Array.isArray(e[n]))for(const r of e[n])Hr.test(r)||(void 0===t[Xr][n]?t[Xr][n]=[r]:t[Xr][n].push(r));else Hr.test(e[n])||(t[Xr][n]=[e[n]]);return t}(e.headers);if(bo.isRedirect(e.statusCode)){const a=t.get("Location");let i=null;try{i=null===a?null:new wo(a,o.url).toString()}catch(e){if("manual"!==o.redirect)return r(new Lr(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect")),void I()}switch(o.redirect){case"error":return r(new Lr(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),void I();case"manual":if(null!==i)try{t.set("Location",i)}catch(e){r(e)}break;case"follow":if(null===i)break
|
|
71
71
|
;if(o.counter>=o.follow)return r(new Lr(`maximum redirect reached at: ${o.url}`,"max-redirect")),void I();const a={headers:new Qr(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:o.body,signal:o.signal,timeout:o.timeout,size:o.size};if(!function(e,t){const n=new wo(t).hostname,r=new wo(e).hostname;return n===r||"."===n[n.length-r.length-1]&&n.endsWith(r)}(o.url,i))for(const e of["authorization","www-authenticate","cookie","cookie2"])a.headers.delete(e);return 303!==e.statusCode&&o.body&&null===Wr(o)?(r(new Lr("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void I()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==o.method)||(a.method="GET",a.body=void 0,a.headers.delete("content-length")),n(bo(new fo(i,a))),void I())}}e.once("end",function(){d&&d.removeEventListener("abort",m)});let a=e.pipe(new go);const i={url:o.url,status:e.statusCode,statusText:e.statusMessage,headers:t,
|
|
72
|
-
size:o.size,timeout:o.timeout,counter:o.counter},p=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===p||204===e.statusCode||304===e.statusCode)return s=new po(a,i),void n(s);const l={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==p||"x-gzip"==p)return a=a.pipe(h.createGunzip(l)),s=new po(a,i),void n(s);if("deflate"==p||"x-deflate"==p){return void e.pipe(new go).once("data",function(e){a=8==(15&e[0])?a.pipe(h.createInflate()):a.pipe(h.createInflateRaw()),s=new po(a,i),n(s)})}if("br"==p&&"function"==typeof h.createBrotliDecompress)return a=a.pipe(h.createBrotliDecompress()),s=new po(a,i),void n(s);s=new po(a,i),n(s)}),function(e,t){const n=t.body;null===n?e.end():Gr(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(v,o)})}bo.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},bo.Promise=global.Promise
|
|
73
|
-
;
|
|
74
|
-
|
|
75
|
-
;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return
|
|
79
|
-
|
|
72
|
+
size:o.size,timeout:o.timeout,counter:o.counter},p=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===p||204===e.statusCode||304===e.statusCode)return s=new po(a,i),void n(s);const l={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};if("gzip"==p||"x-gzip"==p)return a=a.pipe(h.createGunzip(l)),s=new po(a,i),void n(s);if("deflate"==p||"x-deflate"==p){return void e.pipe(new go).once("data",function(e){a=8==(15&e[0])?a.pipe(h.createInflate()):a.pipe(h.createInflateRaw()),s=new po(a,i),n(s)})}if("br"==p&&"function"==typeof h.createBrotliDecompress)return a=a.pipe(h.createBrotliDecompress()),s=new po(a,i),void n(s);s=new po(a,i),n(s)}),function(e,t){const n=t.body;null===n?e.end():Gr(n)?n.stream().pipe(e):Buffer.isBuffer(n)?(e.write(n),e.end()):n.pipe(e)}(v,o)})}bo.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},bo.Promise=global.Promise
|
|
73
|
+
;var yo="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,Ro=yo?bo:window.fetch,jo=function(e,t){return void 0===t&&(t=50),function(n){var r=e,o=function(){return J(void 0,void 0,void 0,function(){var e;return W(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,4]),[4,n()];case 1:return[2,a.sent()];case 2:if(e=a.sent(),r<=0)throw e;return r-=1,[4,new Promise(function(e){return setTimeout(function(){return e()},t)})];case 3:return a.sent(),[2,o()];case 4:return[2]}})})};return o()}};var Uo,Co,Eo,_o,So,No,Ao,ko=function(e){return Array.isArray(e)?e:[e]},Po=function(e,t){return J(void 0,void 0,void 0,function(){var n;return W(this,function(r){return n=Promise.resolve([]),[2,e.reduce(function(e,n){return e.then(function(e){return t(n).then(function(t){return e.push(t),e})})},n)]})})},To=function(e){function t(t){void 0===t&&(t=8192);var n=e.call(this)||this;return n.bufferDefaultSize=t,n._size=0,n.buffer=Buffer.alloc(n.bufferDefaultSize),n}
|
|
74
|
+
return G(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.getContentsAsString=function(e,t){void 0===e&&(e="utf8");var n=this.buffer.toString(e,0,Math.min(t||this.size,this.size)),r=Buffer.byteLength(n);return r<this.size&&this.buffer.copy(this.buffer,0,r),this._size-=r,n},t.prototype.adaptBuffer=function(e){if(this.buffer.length-this.size<e){var t=Math.ceil((e-(this.buffer.length-this.size))/this.bufferDefaultSize),n=Buffer.alloc(this.buffer.length+this.bufferDefaultSize*t);this.buffer.copy(n,0,0,this.size),this.buffer=n}},t.prototype._write=function(e,t,n){this.adaptBuffer(e.length),e.copy(this.buffer,this.size,0),this._size+=e.length,n()},t}(a.Writable),Do=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.getTeamScopePrefix=function(e){return void 0!==e?"teams/".concat(e,"/"):""}}return e.prototype.getServiceDetails=function(e,t,n){return J(this,void 0,void 0,function(){var r
|
|
75
|
+
;return W(this,function(o){return r=this.getTeamScopePrefix(n),[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/").concat(r,"projects/").concat(e,"/services/").concat(t))]})})},e.prototype.getAddonDetails=function(e,t,n){return J(this,void 0,void 0,function(){var r;return W(this,function(o){return r=this.getTeamScopePrefix(n),[2,this.fetch("".concat(this.contextProvider.getCurrentBaseUrl(),"/v1/port-forwarding/info/").concat(r,"projects/").concat(e,"/addons/").concat(t))]})})},e.prototype.fetch=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,i,d=this;return W(this,function(p){switch(p.label){case 0:return n="Error while trying to connect, please try again.",r=pr({},{headers:{Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken()),"Content-Type":"application/json"}},z(z({},t),{agent:this.agent})),[4,jo(2)(function(){return J(d,void 0,void 0,function(){return W(this,function(t){return[2,Ro(e,r)]})})
|
|
76
|
+
}).catch(function(){throw new Error(n)})];case 1:return(o=p.sent()).ok?[3,3]:[4,o.text()];case 2:a=p.sent(),i=n;try{i=JSON.parse(a)}catch(e){i=null!=a?a:n}finally{throw new Error(JSON.stringify(i))}case 3:return[4,o.json()];case 4:return[2,p.sent()]}})})},e}(),Oo=function(e,t,n){return J(void 0,void 0,void 0,function(){var r,o,a,i,d;return W(this,function(p){switch(p.label){case 0:if(r=qo(t||"127.0.0.1"),(o=qo(n||"127.255.255.255"))<r)throw new Error("Invalid IP range");"darwin"===f.platform()&&(a=function(e){return J(void 0,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t="lo0 alias ".concat(e," up"),[4,Lo.apply(void 0,t.split(" "))];case 1:return n.sent(),[2]}})})}),i=r,p.label=1;case 1:return i<=o?(d=Bo(i),[4,xo(e,d)]):[3,6];case 2:return p.sent()?a?[4,a(d)]:[3,4]:[3,5];case 3:p.sent(),p.label=4;case 4:return[2,d];case 5:return i+=1,[3,1];case 6:
|
|
77
|
+
throw new Error("Not possible to assign port '".concat(e,"' to an IP address on this machine. Please check if there is already a service running with this port which binds to the wildcard host address (0.0.0.0) and stop this service."))}})})},xo=function(e,t){return new Promise(function(n){var r=new g,o=!1;r.on("connect",function(){o=!0,r.destroy()}),r.setTimeout(400),r.on("timeout",function(){o=!1,r.destroy()}),r.on("error",function(){o=!1}),r.on("close",function(){n(!o)}),t?r.connect(e,t):r.connect(e)})},Lo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return J(void 0,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return[4,Vo("/sbin/ifconfig",e).resultPromise];case 1:return[2,t.sent()]}})})},qo=function(e){var t=e.split(".").reverse();if(4!==t.length)throw new Error("Invalid ip address: ".concat(e));for(var n=0,r=0;r<4;r+=1){var o=Number.parseInt(t[r],10);if(o<0||o>255)throw new Error("Invalid ip address: ".concat(e));n+=o<<8*r}
|
|
78
|
+
return n},Bo=function(e){if(!Number.isSafeInteger(e))throw new Error("Number is not an integer");if(e<0||e>4294967295)throw new Error("Number is out of range 0x0-0xffffffff");for(var t=[],n=0;n<4;n+=1)t.push(e>>8*n&255);return t.reverse().join(".")},Vo=function(e,t,n){var o=r(e,t,z({windowsHide:!0},n)),a=new Promise(function(n,r){var a="",i="";o.stdout&&o.stdout.on("data",function(e){a+=e}),o.stderr&&o.stderr.on("data",function(e){i+=e}),o.on("close",function(o){var d={code:o,stdout:a,stderr:i};if(0!==o){var p="Error during execution of command '".concat(e," ").concat(t.join(" "),"': ").concat(i);r({message:p,result:d})}else n(d)})});return{process:o,resultPromise:a}},Fo=function(e,t,n){return J(void 0,void 0,void 0,function(){var r,o;return W(this,function(a){switch(a.label){case 0:return r=Mo(e,10),[4,b.promises.writeFile(r,t,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,6]),[4,b.promises.rename(r,e)];case 3:return a.sent(),[3,6];case 4:return o=a.sent(),
|
|
79
|
+
[4,b.promises.unlink(r).catch(function(){})];case 5:throw a.sent(),o;case 6:return[2]}})})},Mo=function(e,t){for(var n=function(e){return $([],Array(e),!0).map(function(){return Math.floor(16*Math.random()).toString(16)}).join("")},r=y.dirname(e),o=y.basename(e),a=0;a<t;a+=1){var i=n(16),d=".".concat(i,".").concat(o),p=y.join(r,d);if(!b.existsSync(p))return p}throw new Error("Could not write file to file '".concat(e,"'."))},Go="win32"===process.platform?"\r\n":"\n",zo=function(){function e(e,t){this.nodes=e,this.config=t}return e.prototype.add=function(e,t,n){var r=this;if(0===t.length)return this;var o=this.findOrCreateEntry(e,n);return t.forEach(function(e){if(!o.hosts.find(function(t){return t.host===e})){var t=1;0===o.hosts.length&&(t=r.config.indent-"".concat(o.ipPrefixWhitespace).concat(o.ip).length),o.hosts.push({whitespace:" ".repeat(t<1?1:t),host:e})}}),this},e.prototype.remove=function(e,t){var n=this;return this.findEntries(e).forEach(function(e){t.forEach(function(t){
|
|
80
|
+
var r=e.hosts.findIndex(function(e){return e.host===t});r<0||(0===r&&void 0!==e.hosts[1]&&(e.hosts[1].whitespace=e.hosts[0].whitespace),e.hosts.splice(r,1),0===e.hosts.length&&n.removeEntry(e))})}),this},e.prototype.removeHosts=function(e){var t=this;Ko(this.nodes,"entry").forEach(function(n){t.remove(n.ip,e)})},e.prototype.removeIps=function(e){var t=this;return e.forEach(function(e){t.findEntries(e).forEach(function(e){return t.removeEntry(e)})}),this},e.prototype.resolveHosts=function(e){return nr(this.findEntries(e),function(e){return e.hosts.map(function(e){return e.host})})},e.prototype.resolveIps=function(e){return Ko(this.nodes,"entry").filter(function(t){return t.hosts.some(function(t){return t.host===e})}).map(function(e){return e.ip})},e.prototype.toString=function(){return Ho(this.nodes,this.config.eol)},e.prototype.removeEntry=function(e){var t,n="number"==typeof(t=e)||ae(t)&&"[object Number]"==oe(t)?e:this.nodes.findIndex(function(t){return t===e})
|
|
81
|
+
;n<0||this.nodes.splice(n,1)},e.prototype.findEntries=function(e){return Ko(this.nodes,"entry").filter(function(t){return t.ip===e})},e.prototype.findOrCreateEntry=function(e,t){var n=this.findEntries(e)[0];if(n)return n;var r=this.makeEntry(e);if(t){var o=$o(t),a=this.nodes.findIndex(function(e){return"comment"===e.type&&e.line===o});if(a>=0)this.insertAt(a+1,r);else{var i="blank"!==this.nodes[this.nodes.length-1].type?[Jo(),Wo(o),r]:[Wo(o),r];this.insertAt.apply(this,$([this.nodes.length],i,!1))}}else this.insertAt(this.nodes.length,r);return r},e.prototype.insertAt=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.nodes).splice.apply(t,$([e,0],n,!1))},e.prototype.makeEntry=function(e,t){var n=this.config.ipPrefixWhitespace;return z({type:"entry",ip:e,ipPrefixWhitespace:n,hosts:[]},t)},e.fromNodes=function(t,n){var r,o;return new e(t.filter(function(e){return"eol"!==e.type}),{eol:null!==(r=null==n?void 0:n.eol)&&void 0!==r?r:function(){
|
|
82
|
+
var e,n=Ko(t,"eol").map(function(e){return e.line});return null!==(e=Xo(n))&&void 0!==e?e:Go}(),indent:null!==(o=null==n?void 0:n.indent)&&void 0!==o?o:function(){var e,n=nr(Ko(t,"entry"),function(e){var t=e.ipPrefixWhitespace,n=e.ip,r=e.hosts[0];return r?["".concat(t).concat(n).concat(r.whitespace).length]:[]});return null!==(e=Xo(n))&&void 0!==e?e:17}(),ipPrefixWhitespace:""})},e.parse=function(e,t){return this.fromNodes(Zo(e),t)},e}(),Jo=function(){return{type:"blank",line:""}},Wo=function(e){return{type:"comment",line:$o(e)}},$o=function(e){return e.startsWith("#")?e:"# ".concat(e)},Ho=function(e,t){return e.map(function(e){switch(e.type){case"entry":var t=e.hosts.map(function(e){var t=e.whitespace,n=e.host;return"".concat(t).concat(n)}).join("");return"".concat(e.ipPrefixWhitespace).concat(e.ip).concat(t);case"blank":case"comment":case"invalid":return e.line;default:return""}}).join(null!=t?t:Go)},Zo=function(e){return e.split(/(\r?\n)/).map(function(e){return function(e){
|
|
83
|
+
return e.match(/^\s*#.*$/)}(e)?{type:"comment",line:e}:function(e){return e.match(/^(\r?\n)$/)}(e)?{type:"eol",line:e}:function(e){return e.match(/^\s*$/)}(e)?{type:"blank",line:e}:Yo(e)})},Yo=function(e){var t=e.match(/^(\s*)(\S+)(.+)?$/);if(!t)return{type:"invalid",line:e};var n=t[1],r=t[2],o=t.slice(3),a=!1,i=nr(o.filter(function(e){return void 0!==e}),function(e){var t=e.match(/(\s+)(\S+)/g);return t?t.map(function(e){var t=e.match(/^(\s+)(\S+)$/);t||(a=!0);var n=null!=t?t:[];return{whitespace:n[1],host:n[2]}}):(a=!0,[])});return a?{type:"invalid",line:e}:{type:"entry",ipPrefixWhitespace:n,ip:r,hosts:i}},Ko=function(e,t){return e.filter(function(e){return e.type===t})},Xo=function(e){var t=new Map;e.forEach(function(e){var n;t.set(e,(null!==(n=t.get(e))&&void 0!==n?n:0)+1)});var n=ir(Array.from(t.entries()),function(e){return e[1]});if(n)return n[0]},Qo="win32"===process.platform?"C:/Windows/System32/drivers/etc/hosts":"/etc/hosts",ea=function(){function e(e){
|
|
84
|
+
this.ast=zo.fromNodes([]);var t={writeMode:"atomic",hostsFile:Qo};this.config=z(z({},t),e)}return e.prototype.add=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.add(e,t,this.config.header),this},e.prototype.remove=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."));return t.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),this.ast.remove(e,t),this},e.prototype.removeHosts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!ar(e))throw new Error("Expected 'host' to be a string, but got ".concat(typeof e,"."))}),
|
|
85
|
+
this.ast.removeHosts(e),this},e.prototype.removeIps=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(function(e){if(!ar(e))throw new Error("Expected 'ip' to be a string, but got ".concat(typeof e,"."))}),this.ast.removeIps(e),this},e.prototype.read=function(){return J(this,void 0,void 0,function(){var e;return W(this,function(t){switch(t.label){case 0:return[4,b.promises.readFile(this.config.hostsFile)];case 1:return e=t.sent(),this.ast=zo.parse(e.toString(),this.config),[2,this]}})})},e.prototype.write=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:switch(t=z(z({},this.config),e),n=t.hostsFile,r=t.writeMode,o=this.ast.toString(),r){case void 0:case"atomic":return[3,1];case"standard":return[3,3];case"disabled":return[3,5]}return[3,5];case 1:return[4,Fo(n,o)];case 2:case 4:return a.sent(),[3,6];case 3:return[4,b.promises.writeFile(n,o)];case 5:return[3,6];case 6:return[2,this]}})})},
|
|
86
|
+
e.prototype.backup=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:return b.existsSync(this.config.hostsFile)?(t=y.dirname(this.config.hostsFile),n=y.basename(this.config.hostsFile),r="".concat(n).concat(e.suffix),o=y.resolve(t,r),b.existsSync(o)&&!e.rewrite?[3,2]:[4,b.promises.copyFile(this.config.hostsFile,o)]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.load=function(t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,new e(t).read()];case 1:return[2,n.sent()]}})})},e}(),ta=function(){function e(){this.previousPromise=Promise.resolve(),this._queueLength=0}return Object.defineProperty(e.prototype,"queueLength",{get:function(){return this._queueLength},enumerable:!1,configurable:!0}),e.prototype.enter=function(e){return J(this,void 0,void 0,function(){var t,n=this;return W(this,function(r){return this._queueLength+=1,t=this.previousPromise.then(function(){
|
|
87
|
+
return n._queueLength-=1,e()},function(){return n._queueLength-=1,e()}),this.previousPromise=t,[2,t]})})},e}(),na={exports:{}};function ra(){if(Eo)return na.exports;Eo=1;var e=(Co||(Co=1,Uo=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),o=e[e.length-1];return"function"==typeof r&&r!==o&&Object.keys(o).forEach(function(e){r[e]=o[e]}),r}}),Uo);function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function n(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}return na.exports=e(t),na.exports.strict=e(n),t.proto=t(function(){
|
|
88
|
+
Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}),na.exports}function oa(){if(So)return _o;So=1;var e=ra(),t=function(){},n=lr.Bare?queueMicrotask:process.nextTick.bind(process),r=function(o,a,i){if("function"==typeof a)return r(o,null,a);a||(a={}),i=e(i||t);var d=o._writableState,p=o._readableState,l=a.readable||!1!==a.readable&&o.readable,s=a.writable||!1!==a.writable&&o.writable,u=!1,m=function(){o.writable||c()},c=function(){s=!1,l||i.call(o)},v=function(){l=!1,s||i.call(o)},h=function(e){i.call(o,e?new Error("exited with error code: "+e):null)},f=function(e){i.call(o,e)},I=function(){n(w)},w=function(){if(!u)return(!l||p&&p.ended&&!p.destroyed)&&(!s||d&&d.ended&&!d.destroyed)?void 0:i.call(o,new Error("premature close"))},g=function(){o.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort
|
|
89
|
+
}(o)?s&&!d&&(o.on("end",m),o.on("close",m)):(o.on("complete",c),o.on("abort",I),o.req?g():o.on("request",g)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(o)&&o.on("exit",h),o.on("end",v),o.on("finish",c),!1!==a.error&&o.on("error",f),o.on("close",I),function(){u=!0,o.removeListener("complete",c),o.removeListener("abort",I),o.removeListener("request",g),o.req&&o.req.removeListener("finish",c),o.removeListener("end",m),o.removeListener("close",m),o.removeListener("finish",c),o.removeListener("exit",h),o.removeListener("end",v),o.removeListener("error",f),o.removeListener("close",I)}};return _o=r}var aa,ia,da=function(){if(Ao)return No;Ao=1;var e,t=ra(),n=oa();try{e=require("fs")}catch(e){}var r=function(){},o="undefined"!=typeof process&&/^v?\.0/.test(process.version),a=function(e){return"function"==typeof e},i=function(i,d,p,l){l=t(l);var s=!1;i.on("close",function(){s=!0}),n(i,{readable:d,writable:p},function(e){if(e)return l(e);s=!0,l()});var u=!1
|
|
90
|
+
;return function(t){if(!s&&!u)return u=!0,function(t){return!!o&&!!e&&(t instanceof(e.ReadStream||r)||t instanceof(e.WriteStream||r))&&a(t.close)}(i)?i.close(r):function(e){return e.setHeader&&a(e.abort)}(i)?i.abort():a(i.destroy)?i.destroy():void l(t||new Error("stream was destroyed"))}},d=function(e){e()},p=function(e,t){return e.pipe(t)};return No=function(){var e,t=Array.prototype.slice.call(arguments),n=a(t[t.length-1]||r)&&t.pop()||r;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var o=t.map(function(r,a){var p=a<t.length-1;return i(r,p,a>0,function(t){e||(e=t),t&&o.forEach(d),p||(o.forEach(d),n(e))})});return t.reduce(p)},No}(),pa=sr(da),la={exports:{}};function sa(){if(ia)return aa;ia=1;const e=["nodebuffer","arraybuffer","fragments"],t="undefined"!=typeof Blob;return t&&e.push("blob"),aa={BINARY_TYPES:e,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:t,
|
|
91
|
+
kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}}var ua={exports:{}};function ma(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ca,va,ha,fa,Ia,wa,ga,ba,ya,Ra,ja,Ua={exports:{}};function Ca(){if(ha)return Ua.exports;ha=1;const e="function"==typeof __webpack_require__?__non_webpack_require__:ma;return"function"==typeof e.addon?Ua.exports=e.addon.bind(e):Ua.exports=function(){if(va)return ca;va=1
|
|
92
|
+
;var e=b,t=y,n=f,r="function"==typeof __webpack_require__?__non_webpack_require__:ma,o=process.config&&process.config.variables||{},a=!!process.env.PREBUILDS_ONLY,i=process.versions.modules,d=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",p=process.env.npm_config_arch||n.arch(),l=process.env.npm_config_platform||n.platform(),s=process.env.LIBC||(function(t){return"linux"===t&&e.existsSync("/etc/alpine-release")}(l)?"musl":"glibc"),u=process.env.ARM_VERSION||("arm64"===p?"8":o.arm_version)||"",m=(process.versions.uv||"").split(".")[0];function c(e){return r(c.resolve(e))}function v(t){try{return e.readdirSync(t)}catch(e){return[]}}function h(e,n){var r=v(e).filter(n);return r[0]&&t.join(e,r[0])}function I(e){return/\.node$/.test(e)}function w(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+")
|
|
93
|
+
;if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function g(e,t){return function(n){return null!=n&&n.platform===e&&n.architectures.includes(t)}}function R(e,t){return e.architectures.length-t.architectures.length}function j(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var o=t[r];if("node"===o||"electron"===o||"node-webkit"===o)n.runtime=o;else if("napi"===o)n.napi=!0;else if("abi"===o.slice(0,3))n.abi=o.slice(3);else if("uv"===o.slice(0,2))n.uv=o.slice(2);else if("armv"===o.slice(0,4))n.armv=o.slice(4);else{if("glibc"!==o&&"musl"!==o)continue;n.libc=o}n.specificity++}return n}}function U(e,t){return function(n){return!(null==n||n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n)||n.abi&&n.abi!==t&&!n.napi||n.uv&&n.uv!==m||n.armv&&n.armv!==u||n.libc&&n.libc!==s)}}function C(e){return function(t,n){
|
|
94
|
+
return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}return ca=c,c.resolve=c.path=function(e){e=t.resolve(e||".");try{var n=r(t.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[n+"_PREBUILD"]&&(e=process.env[n+"_PREBUILD"])}catch(e){}if(!a){var o=h(t.join(e,"build/Release"),I);if(o)return o;var c=h(t.join(e,"build/Debug"),I);if(c)return c}var f=E(e);if(f)return f;var b=E(t.dirname(process.execPath));if(b)return b;var y=["platform="+l,"arch="+p,"runtime="+d,"abi="+i,"uv="+m,u?"armv="+u:"","libc="+s,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+y+"\n loaded from: "+e+"\n");function E(e){var n=v(t.join(e,"prebuilds")).map(w).filter(g(l,p)).sort(R)[0];if(n){
|
|
95
|
+
var r=t.join(e,"prebuilds",n.name),o=v(r).map(j).filter(U(d,i)).sort(C(d))[0];return o?t.join(r,o.file):void 0}}},c.parseTags=j,c.matchTags=U,c.compareTags=C,c.parseTuple=w,c.matchTuple=g,c.compareTuples=R,ca}(),Ua.exports}function Ea(){if(wa)return ua.exports;wa=1;try{ua.exports=Ca()(__dirname)}catch(e){ua.exports=Ia?fa:(Ia=1,fa={mask:(e,t,n,r,o)=>{for(var a=0;a<o;a++)n[r+a]=e[a]^t[3&a]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}})}return ua.exports}function _a(){if(ga)return la.exports;ga=1;const{EMPTY_BUFFER:e}=sa(),t=Buffer[Symbol.species];function n(e,t,n,r,o){for(let a=0;a<o;a++)n[r+a]=e[a]^t[3&a]}function r(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(la.exports={concat:function(n,r){if(0===n.length)return e;if(1===n.length)return n[0];const o=Buffer.allocUnsafe(r);let a=0;for(let e=0;e<n.length;e++){const t=n[e];o.set(t,a),a+=t.length}return a<r?new t(o.buffer,o.byteOffset,a):o},mask:n,toArrayBuffer:function(e){
|
|
96
|
+
return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(n){if(e.readOnly=!0,Buffer.isBuffer(n))return n;let r;return n instanceof ArrayBuffer?r=new t(n):ArrayBuffer.isView(n)?r=new t(n.buffer,n.byteOffset,n.byteLength):(r=Buffer.from(n),e.readOnly=!1),r},unmask:r},!process.env.WS_NO_BUFFER_UTIL)try{const e=Ea();la.exports.mask=function(t,r,o,a,i){i<48?n(t,r,o,a,i):e.mask(t,r,o,a,i)},la.exports.unmask=function(t,n){t.length<32?r(t,n):e.unmask(t,n)}}catch(e){}return la.exports}function Sa(){if(ja)return Ra;ja=1;const e=h,t=_a(),n=function(){if(ya)return ba;ya=1;const e=Symbol("kDone"),t=Symbol("kRun");return ba=class{constructor(n){this[e]=()=>{this.pending--,this[t]()},this.concurrency=n||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[t]()}[t](){if(this.pending!==this.concurrency&&this.jobs.length){const t=this.jobs.shift();this.pending++,t(this[e])}}}
|
|
97
|
+
}(),{kStatusCode:r}=sa(),o=Buffer[Symbol.species],a=Buffer.from([0,0,255,255]),i=Symbol("permessage-deflate"),d=Symbol("total-length"),p=Symbol("callback"),l=Symbol("buffers"),s=Symbol("error");let u;function m(e){this[l].push(e),this[d]+=e.length}function c(e){this[d]+=e.length,this[i]._maxPayload<1||this[d]<=this[i]._maxPayload?this[l].push(e):(this[s]=new RangeError("Max payload size exceeded"),this[s].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[s][r]=1009,this.removeListener("data",c),this.reset())}function v(e){this[i]._inflate=null,this[s]?this[p](this[s]):(e[r]=1007,this[p](e))}return Ra=class{constructor(e,t,r){if(this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!u){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;u=new n(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={}
|
|
80
98
|
;return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[p];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){
|
|
81
99
|
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){
|
|
82
100
|
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{
|
|
83
101
|
if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){u.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){u.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(n,r,o){const u=this._isServer?"client":"server";if(!this._inflate){const t=`${u}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._inflate=e.createInflateRaw({...this._options.zlibInflateOptions,windowBits:n}),this._inflate[i]=this,this._inflate[d]=0,this._inflate[l]=[],this._inflate.on("error",v),this._inflate.on("data",c)}this._inflate[p]=o,this._inflate.write(n),r&&this._inflate.write(a),this._inflate.flush(()=>{const e=this._inflate[s];if(e)return this._inflate.close(),this._inflate=null,void o(e);const n=t.concat(this._inflate[l],this._inflate[d])
|
|
84
|
-
;this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[d]=0,this._inflate[l]=[],r&&this.params[`${u}_no_context_takeover`]&&this._inflate.reset()),o(null,n)})}_compress(n,r,a){const i=this._isServer?"server":"client";if(!this._deflate){const t=`${i}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=e.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[d]=0,this._deflate[l]=[],this._deflate.on("data",m)}this._deflate[p]=a,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[l],this._deflate[d]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[p]=null,this._deflate[d]=0,this._deflate[l]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),a(null,e)})}}}var
|
|
85
|
-
;
|
|
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(
|
|
87
|
-
function
|
|
102
|
+
;this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[d]=0,this._inflate[l]=[],r&&this.params[`${u}_no_context_takeover`]&&this._inflate.reset()),o(null,n)})}_compress(n,r,a){const i=this._isServer?"server":"client";if(!this._deflate){const t=`${i}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=e.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[d]=0,this._deflate[l]=[],this._deflate.on("data",m)}this._deflate[p]=a,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[l],this._deflate[d]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[p]=null,this._deflate[d]=0,this._deflate[l]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),a(null,e)})}}}var Na,Aa,ka,Pa,Ta,Da,Oa,xa,La,qa,Ba,Va,Fa,Ma,Ga,za,Ja={exports:{}},Wa={exports:{}};function $a(){if(ka)return Wa.exports
|
|
103
|
+
;ka=1;try{Wa.exports=Ca()(__dirname)}catch(e){Wa.exports=Aa?Na:(Aa=1,Na=function(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0})}return Wa.exports}function Ha(){if(Pa)return Ja.exports;Pa=1;const{isUtf8:e}=_,{hasBlob:t}=sa();function n(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1
|
|
104
|
+
;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(Ja.exports={isBlob:function(e){return t&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:n,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},e)Ja.exports.isValidUTF8=function(t){return t.length<24?n(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=$a();Ja.exports.isValidUTF8=function(t){return t.length<32?n(t):e(t)}}catch(e){}return Ja.exports}
|
|
105
|
+
function Za(){if(Da)return Ta;Da=1;const{Writable:e}=p,t=Sa(),{BINARY_TYPES:n,EMPTY_BUFFER:r,kStatusCode:o,kWebSocket:a}=sa(),{concat:i,toArrayBuffer:d,unmask:l}=_a(),{isValidStatusCode:s,isValidUTF8:u}=Ha(),m=Buffer[Symbol.species];return Ta=class extends e{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||n[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[a]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){
|
|
88
106
|
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"))}
|
|
89
107
|
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){
|
|
90
108
|
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)
|
|
91
109
|
;if(n>Math.pow(2,21)-1){return void e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){return void e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=r;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&l(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,
|
|
92
110
|
void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,n){this._extensions[t.extensionName].decompress(e,this._fin,(e,t)=>{if(e)return n(e);if(t.length){if(this._messageLength+=t.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void n(e)}this._fragments.push(t)}this.dataMessage(n),0===this._state&&this.startLoop(n)})}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?i(n,t):"arraybuffer"===this._binaryType?d(i(n,t)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{
|
|
93
111
|
this.emit("message",r,!0),this._state=0,this.startLoop(e)}))}else{const r=i(n,t);if(!this._skipUTF8Validation&&!u(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)}));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,r),this.end();else{const n=e.readUInt16BE(0);if(!s(n)){const e=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!u(r)){
|
|
94
|
-
const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,a){this._loop=!1,this._errored=!0;const i=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=a,i[o]=r,i}}}function
|
|
112
|
+
const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,a){this._loop=!1,this._errored=!0;const i=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=a,i[o]=r,i}}}function Ya(){if(xa)return Oa;xa=1;const{Duplex:e}=p,{randomFillSync:t}=C,n=Sa(),{EMPTY_BUFFER:r,kWebSocket:o,NOOP:a}=sa(),{isBlob:i,isValidStatusCode:d}=Ha(),{mask:l,toBuffer:s}=_a(),u=Symbol("kByteLength"),m=Buffer.alloc(4),c=8192;let v,h=c;class f{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=a,this[o]=void 0}static frame(e,n){let r,o,a=!1,i=2,d=!1;n.mask&&(r=n.maskBuffer||m,n.generateMask?n.generateMask(r):(h===c&&(void 0===v&&(v=Buffer.alloc(c)),t(v,0,c),h=0),
|
|
95
113
|
r[0]=v[h++],r[1]=v[h++],r[2]=v[h++],r[3]=v[h++]),d=0===(r[0]|r[1]|r[2]|r[3]),i=6),"string"==typeof e?o=n.mask&&!d||void 0===n[u]?(e=Buffer.from(e)).length:n[u]:(o=e.length,a=n.mask&&n.readOnly&&!d);let p=o;o>=65536?(i+=8,p=127):o>125&&(i+=2,p=126);const s=Buffer.allocUnsafe(a?o+i:i);return s[0]=n.fin?128|n.opcode:n.opcode,n.rsv1&&(s[0]|=64),s[1]=p,126===p?s.writeUInt16BE(o,2):127===p&&(s[2]=s[3]=0,s.writeUIntBE(o,4,6)),n.mask?(s[1]|=128,s[i-4]=r[0],s[i-3]=r[1],s[i-2]=r[2],s[i-1]=r[3],d?[s,e]:a?(l(e,r,s,i,o),[s]):(l(e,r,e,0,o),[s,e])):[s,e]}close(e,t,n,o){let a;if(void 0===e)a=r;else{if("number"!=typeof e||!d(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");a=Buffer.allocUnsafe(2+n),a.writeUInt16BE(e,0),"string"==typeof t?a.write(t,2):a.set(t,2)}else a=Buffer.allocUnsafe(2),a.writeUInt16BE(e,0)}const i={[u]:a.length,fin:!0,
|
|
96
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,o]):this.sendFrame(f.frame(a,i),o)}ping(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):i(e)?(r=e.size,o=!1):(r=(e=s(e)).length,o=s.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const a={[u]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:o,rsv1:!1};i(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,a,n]):this.getBlobData(e,!1,a,n):0!==this._state?this.enqueue([this.dispatch,e,!1,a,n]):this.sendFrame(f.frame(e,a),n)}pong(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):i(e)?(r=e.size,o=!1):(r=(e=s(e)).length,o=s.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const a={[u]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:o,
|
|
97
115
|
rsv1:!1};i(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,a,n]):this.getBlobData(e,!1,a,n):0!==this._state?this.enqueue([this.dispatch,e,!1,a,n]):this.sendFrame(f.frame(e,a),n)}send(e,t,r){const o=this._extensions[n.extensionName];let a,d,p=t.binary?2:1,l=t.compress;"string"==typeof e?(a=Buffer.byteLength(e),d=!1):i(e)?(a=e.size,d=!1):(a=(e=s(e)).length,d=s.readOnly),this._firstFragment?(this._firstFragment=!1,l&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(l=a>=o._threshold),this._compress=l):(l=!1,p=0),t.fin&&(this._firstFragment=!0);const m={[u]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:p,readOnly:d,rsv1:l};i(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,m,r]):this.getBlobData(e,this._compress,m,r):0!==this._state?this.enqueue([this.dispatch,e,this._compress,m,r]):this.dispatch(e,this._compress,m,r)}getBlobData(e,t,n,r){this._bufferedBytes+=n[u],this._state=2,
|
|
98
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(I,this,e,r)}this._bufferedBytes-=n[u];const o=s(e);t?this.dispatch(o,t,n,r):(this._state=0,this.sendFrame(f.frame(o,n),r),this.dequeue())}).catch(e=>{process.nextTick(w,this,e,r)})}dispatch(e,t,r,o){if(!t)return void this.sendFrame(f.frame(e,r),o);const a=this._extensions[n.extensionName];this._bufferedBytes+=r[u],this._state=1,a.compress(e,r.fin,(e,t)=>{if(this._socket.destroyed){return void I(this,new Error("The socket was closed while data was being compressed"),o)}this._bufferedBytes-=r[u],this._state=0,r.readOnly=!1,this.sendFrame(f.frame(t,r),o),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][u],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][u],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),
|
|
99
|
-
this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function I(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],o=r[r.length-1];"function"==typeof o&&o(t)}}function w(e,t,n){I(e,t,n),e.onerror(t)}return
|
|
117
|
+
this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function I(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],o=r[r.length-1];"function"==typeof o&&o(t)}}function w(e,t,n){I(e,t,n),e.onerror(t)}return Oa=f}function Ka(){if(Va)return Ba;Va=1;const{tokenChars:e}=Ha();function t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}return Ba={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(n){const r=Object.create(null);let o,a,i=Object.create(null),d=!1,p=!1,l=!1,s=-1,u=-1,m=-1,c=0;for(;c<n.length;c++)if(u=n.charCodeAt(c),void 0===o)if(-1===m&&1===e[u])-1===s&&(s=c);else if(0===c||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${c}`);{
|
|
100
118
|
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){
|
|
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
|
|
102
|
-
;const{kForOnEventAttribute:e,kListener:t}=
|
|
119
|
+
if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${c}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${c}`);-1===m&&(m=c);let e=n.slice(s,m);d&&(e=e.replace(/\\/g,""),d=!1),t(i,a,e),44===u&&(t(r,o,i),i=Object.create(null),o=void 0),a=void 0,s=m=-1}}else-1===m&&(m=c);if(-1===s||l||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===m&&(m=c);const v=n.slice(s,m);return void 0===o?t(r,v,i):(void 0===a?t(i,v,!0):t(i,a,d?v.replace(/\\/g,""):v),t(r,o,i)),r}}}function Xa(){if(Ma)return Fa;Ma=1;const t=e,n=c,r=l,o=w,a=U,{randomBytes:i,createHash:d}=C,{Duplex:u,Readable:m}=p,{URL:v}=s,h=Sa(),f=Za(),I=Ya(),{isBlob:g}=Ha(),{BINARY_TYPES:b,EMPTY_BUFFER:y,GUID:R,kForOnEventAttribute:j,kListener:E,kStatusCode:_,kWebSocket:S,NOOP:N}=sa(),{EventTarget:{addEventListener:A,removeEventListener:k}}=function(){if(qa)return La;qa=1
|
|
120
|
+
;const{kForOnEventAttribute:e,kListener:t}=sa(),n=Symbol("kCode"),r=Symbol("kData"),o=Symbol("kError"),a=Symbol("kMessage"),i=Symbol("kReason"),d=Symbol("kTarget"),p=Symbol("kType"),l=Symbol("kWasClean");class s{constructor(e){this[d]=null,this[p]=e}get target(){return this[d]}get type(){return this[p]}}Object.defineProperty(s.prototype,"target",{enumerable:!0}),Object.defineProperty(s.prototype,"type",{enumerable:!0});class u extends s{constructor(e,t={}){super(e),this[n]=void 0===t.code?0:t.code,this[i]=void 0===t.reason?"":t.reason,this[l]=void 0!==t.wasClean&&t.wasClean}get code(){return this[n]}get reason(){return this[i]}get wasClean(){return this[l]}}Object.defineProperty(u.prototype,"code",{enumerable:!0}),Object.defineProperty(u.prototype,"reason",{enumerable:!0}),Object.defineProperty(u.prototype,"wasClean",{enumerable:!0});class m extends s{constructor(e,t={}){super(e),this[o]=void 0===t.error?null:t.error,this[a]=void 0===t.message?"":t.message}get error(){return this[o]}
|
|
103
121
|
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){
|
|
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
|
|
105
|
-
}set binaryType(e){
|
|
122
|
+
for(const o of this.listeners(n))if(o[t]===r&&!o[e]){this.removeListener(n,o);break}}};function h(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}return La={CloseEvent:u,ErrorEvent:m,Event:s,EventTarget:v,MessageEvent:c}}(),{format:P,parse:T}=Ka(),{toBuffer:D}=_a(),O=Symbol("kAborted"),x=[8,13],L=["CONNECTING","OPEN","CLOSING","CLOSED"],q=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class B extends t{constructor(e,t,n){super(),this._binaryType=b[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=y,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=B.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),V(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType
|
|
123
|
+
}set binaryType(e){b.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new f({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),o=new I(e,this._extensions,n.generateMask);this._receiver=r,this._sender=o,this._socket=e,r[S]=this,o[S]=this,e[S]=this,r.on("conclude",W),r.on("drain",$),r.on("error",H),r.on("message",Y),r.on("ping",K),r.on("pong",X),o.onerror=ee,
|
|
106
124
|
e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",ne),e.on("data",re),e.on("end",oe),e.on("error",ae),this._readyState=B.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=B.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[h.extensionName]&&this._extensions[h.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=B.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==B.CLOSED){if(this.readyState===B.CONNECTING){const e="WebSocket was closed before the connection was established";return void z(this,this._req,e)}this.readyState!==B.CLOSING?(this._readyState=B.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),
|
|
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||
|
|
108
|
-
this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==B.OPEN)return void J(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[h.extensionName]||(r.compress=!1),this._sender.send(e||
|
|
125
|
+
te(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==B.CONNECTING&&this.readyState!==B.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===B.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||y,t,n)):J(this,e,n)}pong(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===B.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||y,t,n)):J(this,e,n)}resume(){this.readyState!==B.CONNECTING&&this.readyState!==B.CLOSED&&(this._paused=!1,
|
|
126
|
+
this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===B.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==B.OPEN)return void J(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[h.extensionName]||(r.compress=!1),this._sender.send(e||y,r,n)}terminate(){if(this.readyState!==B.CLOSED){if(this.readyState===B.CONNECTING){const e="WebSocket was closed before the connection was established";return void z(this,this._req,e)}this._socket&&(this._readyState=B.CLOSING,this._socket.destroy())}}}function V(e,t,o,a){const p={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:x[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...a,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,
|
|
109
127
|
path:void 0,port:void 0};if(e._autoPong=p.autoPong,!x.includes(p.protocolVersion))throw new RangeError(`Unsupported protocol version: ${p.protocolVersion} (supported versions: ${x.join(", ")})`);let l;if(t instanceof v)l=t;else try{l=new v(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===l.protocol?l.protocol="ws:":"https:"===l.protocol&&(l.protocol="wss:"),e._url=l.href;const s="wss:"===l.protocol,u="ws+unix:"===l.protocol;let m;if("ws:"===l.protocol||s||u?u&&!l.pathname?m="The URL's pathname is empty":l.hash&&(m="The URL contains a fragment identifier"):m='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',m){const t=new SyntaxError(m);if(0===e._redirects)throw t;return void F(e,t)}const c=s?443:80,f=i(16).toString("base64"),I=s?n.request:r.request,w=new Set;let g,b;if(p.createConnection=p.createConnection||(s?G:M),p.defaultPort=p.defaultPort||c,p.port=l.port||c,p.host=l.hostname.startsWith("[")?l.hostname.slice(1,-1):l.hostname,
|
|
110
128
|
p.headers={...p.headers,"Sec-WebSocket-Version":p.protocolVersion,"Sec-WebSocket-Key":f,Connection:"Upgrade",Upgrade:"websocket"},p.path=l.pathname+l.search,p.timeout=p.handshakeTimeout,p.perMessageDeflate&&(g=new h(!0!==p.perMessageDeflate?p.perMessageDeflate:{},!1,p.maxPayload),p.headers["Sec-WebSocket-Extensions"]=P({[h.extensionName]:g.offer()})),o.length){for(const e of o){if("string"!=typeof e||!q.test(e)||w.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");w.add(e)}p.headers["Sec-WebSocket-Protocol"]=o.join(",")}if(p.origin&&(p.protocolVersion<13?p.headers["Sec-WebSocket-Origin"]=p.origin:p.headers.Origin=p.origin),(l.username||l.password)&&(p.auth=`${l.username}:${l.password}`),u){const e=p.path.split(":");p.socketPath=e[0],p.path=e[1]}if(p.followRedirects){if(0===e._redirects){e._originalIpc=u,e._originalSecure=s,e._originalHostOrSocketPath=u?p.socketPath:l.host;const t=a&&a.headers;if(a={...a,headers:{}},
|
|
111
129
|
t)for(const[e,n]of Object.entries(t))a.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=u?!!e._originalIpc&&p.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&l.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!s)&&(delete p.headers.authorization,delete p.headers.cookie,t||delete p.headers.host,p.auth=void 0)}p.auth&&!a.headers.authorization&&(a.headers.authorization="Basic "+Buffer.from(p.auth).toString("base64")),b=e._req=I(p),e._redirects&&e.emit("redirect",e.url,b)}else b=e._req=I(p);p.timeout&&b.on("timeout",()=>{z(e,b,"Opening handshake has timed out")}),b.on("error",t=>{null===b||b[O]||(b=e._req=null,F(e,t))}),b.on("response",n=>{const r=n.headers.location,i=n.statusCode;if(r&&p.followRedirects&&i>=300&&i<400){if(++e._redirects>p.maxRedirects)return void z(e,b,"Maximum redirects exceeded");let n;b.abort();try{n=new v(r,t)}catch(t){const n=new SyntaxError(`Invalid URL: ${r}`);return void F(e,n)}V(e,n,o,a)
|
|
112
|
-
}else e.emit("unexpected-response",b,n)||z(e,b,`Unexpected server response: ${n.statusCode}`)}),b.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==B.CONNECTING)return;b=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void z(e,n,"Invalid Upgrade header");const a=d("sha1").update(f+
|
|
130
|
+
}else e.emit("unexpected-response",b,n)||z(e,b,`Unexpected server response: ${n.statusCode}`)}),b.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==B.CONNECTING)return;b=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void z(e,n,"Invalid Upgrade header");const a=d("sha1").update(f+R).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void z(e,n,"Invalid Sec-WebSocket-Accept header");const i=t.headers["sec-websocket-protocol"];let l;if(void 0!==i?w.size?w.has(i)||(l="Server sent an invalid subprotocol"):l="Server sent a subprotocol but none was requested":w.size&&(l="Server sent no subprotocol"),l)return void z(e,n,l);i&&(e._protocol=i);const s=t.headers["sec-websocket-extensions"];if(void 0!==s){if(!g){return void z(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=T(s)}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t)
|
|
113
131
|
;if(1!==r.length||r[0]!==h.extensionName){return void z(e,n,"Server indicated an extension that was not requested")}try{g.accept(t[h.extensionName])}catch(t){return void z(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[h.extensionName]=g}e.setSocket(n,r,{allowSynchronousEvents:p.allowSynchronousEvents,generateMask:p.generateMask,maxPayload:p.maxPayload,skipUTF8Validation:p.skipUTF8Validation})}),p.finishRequest?p.finishRequest(b,e):b.end()}function F(e,t){e._readyState=B.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function M(e){return e.path=e.socketPath,o.connect(e)}function G(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=o.isIP(e.host)?"":e.host),a.connect(e)}function z(e,t,n){e._readyState=B.CLOSING;const r=new Error(n);Error.captureStackTrace(r,z),t.setHeader?(t[O]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(F,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),
|
|
114
|
-
t.once("close",e.emitClose.bind(e)))}function J(e,t,n){if(t){const n=
|
|
132
|
+
t.once("close",e.emitClose.bind(e)))}function J(e,t,n){if(t){const n=g(t)?t.size:D(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${L[e.readyState]})`);process.nextTick(n,t)}}function W(e,t){const n=this[S];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[S]&&(n._socket.removeListener("data",re),process.nextTick(Q,n._socket),1005===e?n.close():n.close(e,t))}function $(){const e=this[S];e.isPaused||e._socket.resume()}function H(e){const t=this[S];void 0!==t._socket[S]&&(t._socket.removeListener("data",re),process.nextTick(Q,t._socket),t.close(e[_])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function Z(){this[S].emitClose()}function Y(e,t){this[S].emit("message",e,t)}function K(e){const t=this[S];t._autoPong&&t.pong(e,!this._isServer,N),t.emit("ping",e)}function X(e){this[S].emit("pong",e)}function Q(e){e.resume()}function ee(e){const t=this[S]
|
|
115
133
|
;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,
|
|
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[
|
|
117
|
-
;return null},set(t){for(const t of this.listeners(e))if(t[
|
|
118
|
-
o.once("close",function(){r||n(e),process.nextTick(t,d)}),i&&o.terminate()},d._final=function(e){o.readyState!==o.CONNECTING?null!==o._socket&&(o._socket._writableState.finished?(e(),d._readableState.endEmitted&&d.destroy()):(o._socket.once("finish",function(){e()}),o.close())):o.once("open",function(){d._final(e)})},d._read=function(){o.isPaused&&o.resume()},d._write=function(e,t,n){o.readyState!==o.CONNECTING?o.send(e,n):o.once("open",function(){d._write(e,t,n)})},d.on("end",n),d.on("error",r),d},
|
|
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(
|
|
134
|
+
this.destroy())}return Object.defineProperty(B,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(B.prototype,"CONNECTING",{enumerable:!0,value:L.indexOf("CONNECTING")}),Object.defineProperty(B,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(B.prototype,"OPEN",{enumerable:!0,value:L.indexOf("OPEN")}),Object.defineProperty(B,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(B.prototype,"CLOSING",{enumerable:!0,value:L.indexOf("CLOSING")}),Object.defineProperty(B,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),Object.defineProperty(B.prototype,"CLOSED",{enumerable:!0,value:L.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(B.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(B.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[j])return t[E]
|
|
135
|
+
;return null},set(t){for(const t of this.listeners(e))if(t[j]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[j]:!0})}})}),B.prototype.addEventListener=A,B.prototype.removeEventListener=k,Fa=B}var Qa=function(){if(za)return Ga;za=1,Xa();const{Duplex:e}=p;function t(e){e.emit("close")}function n(){!this.destroyed&&this._writableState.finished&&this.destroy()}function r(e){this.removeListener("error",r),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}return Ga=function(o,a){let i=!0;const d=new e({...a,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return o.on("message",function(e,t){const n=!t&&d._readableState.objectMode?e.toString():e;d.push(n)||o.pause()}),o.once("error",function(e){d.destroyed||(i=!1,d.destroy(e))}),o.once("close",function(){d.destroyed||d.push(null)}),d._destroy=function(e,n){if(o.readyState===o.CLOSED)return n(e),void process.nextTick(t,d);let r=!1;o.once("error",function(e){r=!0,n(e)}),
|
|
136
|
+
o.once("close",function(){r||n(e),process.nextTick(t,d)}),i&&o.terminate()},d._final=function(e){o.readyState!==o.CONNECTING?null!==o._socket&&(o._socket._writableState.finished?(e(),d._readableState.endEmitted&&d.destroy()):(o._socket.once("finish",function(){e()}),o.close())):o.once("open",function(){d._final(e)})},d._read=function(){o.isPaused&&o.resume()},d._write=function(e,t,n){o.readyState!==o.CONNECTING?o.send(e,n):o.once("open",function(){d._write(e,t,n)})},d.on("end",n),d.on("error",r),d},Ga}(),ei=sr(Qa);Za(),Ya();var ti,ni,ri,oi,ai=sr(Xa());function ii(){if(ni)return ti;ni=1;const{tokenChars:e}=Ha();return ti={parse:function(t){const n=new Set;let r=-1,o=-1,a=0;for(;a<t.length;a++){const i=t.charCodeAt(a);if(-1===o&&1===e[i])-1===r&&(r=a);else if(0===a||32!==i&&9!==i){if(44!==i)throw new SyntaxError(`Unexpected character at index ${a}`);{if(-1===r)throw new SyntaxError(`Unexpected character at index ${a}`);-1===o&&(o=a);const e=t.slice(r,o)
|
|
137
|
+
;if(n.has(e))throw new SyntaxError(`The "${e}" subprotocol is duplicated`);n.add(e),r=o=-1}}else-1===o&&-1!==r&&(o=a)}if(-1===r||-1!==o)throw new SyntaxError("Unexpected end of input");const i=t.slice(r,a);if(n.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return n.add(i),n}}}!function(){if(oi)return ri;oi=1;const t=e,n=l,{Duplex:r}=p,{createHash:o}=C,a=Ka(),i=Sa(),d=ii(),s=Xa(),{GUID:u,kWebSocket:m}=sa(),c=/^[+/0-9A-Za-z]{22}==$/;function v(e){e._state=2,e.emit("close")}function h(){this.destroy()}function f(e,t,r,o){r=r||n.STATUS_CODES[t],o={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...o},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${n.STATUS_CODES[t]}\r\n`+Object.keys(o).map(e=>`${e}: ${o[e]}`).join("\r\n")+"\r\n\r\n"+r)}function I(e,t,n,r,o,a){if(e.listenerCount("wsClientError")){const r=new Error(o);Error.captureStackTrace(r,I),e.emit("wsClientError",r,n,t)}else f(n,r,o,a)}ri=class extends t{constructor(e,t){
|
|
120
138
|
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"),
|
|
121
139
|
error:this.emit.bind(this,"error"),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",()=>{e(new Error("The server is not running"))}),void process.nextTick(v,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(v,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{v(this)})}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?")
|
|
122
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",h);const o=e.headers["sec-websocket-key"],p=e.headers.upgrade,l=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void I(this,e,t,405,"Invalid HTTP method")}if(void 0===p||"websocket"!==p.toLowerCase()){return void I(this,e,t,400,"Invalid Upgrade header")}if(void 0===o||!c.test(o)){return void I(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(13!==l&&8!==l){return void I(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"})}if(!this.shouldHandle(e))return void f(t,400);const s=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==s)try{u=d.parse(s)}catch(n){return void I(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const m=e.headers["sec-websocket-extensions"],v={};if(this.options.perMessageDeflate&&void 0!==m){const n=new i(this.options.perMessageDeflate,!0,this.options.maxPayload);try{
|
|
123
141
|
const e=a.parse(m);e[i.extensionName]&&(n.accept(e[i.extensionName]),v[i.extensionName]=n)}catch(n){return void I(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const a={origin:e.headers[""+(8===l?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(a,(a,i,d,p)=>{if(!a)return f(t,i||401,d,p);this.completeUpgrade(v,o,u,e,t,n,r)});if(!this.options.verifyClient(a))return f(t,401)}this.completeUpgrade(v,o,u,e,t,n,r)}completeUpgrade(e,t,n,r,d,p,l){if(!d.readable||!d.writable)return d.destroy();if(d[m])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return f(d,503)
|
|
124
|
-
;const s=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(t+u).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(n.size){const e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(s.push(`Sec-WebSocket-Protocol: ${e}`),c._protocol=e)}if(e[i.extensionName]){const t=e[i.extensionName].params,n=a.format({[i.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),c._extensions=e}this.emit("headers",s,r),d.write(s.concat("\r\n").join("\r\n")),d.removeListener("error",h),c.setSocket(d,p,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(v,this)})),l(c,r)}}}()
|
|
125
|
-
;var
|
|
126
|
-
|
|
127
|
-
;var n=this.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
return
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
i.
|
|
150
|
-
|
|
151
|
-
;return
|
|
152
|
-
|
|
153
|
-
;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
t.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
this
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
;var o=setTimeout(function(){r(new Error("Shell session timed out waiting for auth-success"))},3e4);n.once("auth-success",function(){return clearTimeout(o)})}),n.start(),[4,r];case 1:return o.sent(),[2,n]}})})},e.prototype.getCommandRunner=function(e){var t=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new mi(t,e,n,this.agent)},e}(),vi=Object.defineProperty,hi="object"==typeof process&&process?process:{stdout:null,stderr:null
|
|
170
|
-
},fi=e=>!!e&&"object"==typeof e&&(e instanceof ed||e instanceof a||Ii(e)||wi(e)),Ii=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.pipe&&e.pipe!==a.Writable.prototype.pipe,wi=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.write&&"function"==typeof e.end,gi=Symbol("EOF"),bi=Symbol("maybeEmitEnd"),yi=Symbol("emittedEnd"),Ri=Symbol("emittingEnd"),ji=Symbol("emittedError"),Ui=Symbol("closed"),Ci=Symbol("read"),Ei=Symbol("flush"),_i=Symbol("flushChunk"),Si=Symbol("encoding"),Ni=Symbol("decoder"),Ai=Symbol("flowing"),ki=Symbol("paused"),Pi=Symbol("resume"),Ti=Symbol("buffer"),Di=Symbol("pipes"),Oi=Symbol("bufferLength"),xi=Symbol("bufferPush"),Li=Symbol("bufferShift"),qi=Symbol("objectMode"),Bi=Symbol("destroyed"),Vi=Symbol("error"),Fi=Symbol("emitData"),Mi=Symbol("emitEnd"),Gi=Symbol("emitEnd2"),zi=Symbol("async"),Ji=Symbol("abort"),Wi=Symbol("aborted"),$i=Symbol("signal"),Hi=Symbol("dataListeners"),Zi=Symbol("discarded"),Yi=e=>Promise.resolve().then(e),Ki=e=>e(),Xi=class{
|
|
171
|
-
src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Pi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Qi=class extends Xi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit("error",e),e.on("error",this.proxyErrors)}},ed=class extends A{[Ai]=!1;[ki]=!1;[Di]=[];[Ti]=[];[qi];[Si];[zi];[Ni];[gi]=!1;[yi]=!1;[Ri]=!1;[Ui]=!1;[ji]=null;[Oi]=0;[Bi]=!1;[$i];[Wi]=!1;[Hi]=0;[Zi]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[qi]=!0,this[Si]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[Si]=t.encoding,this[qi]=!1):(this[qi]=!1,this[Si]=null),this[zi]=!!t.async,
|
|
172
|
-
this[Ni]=this[Si]?new k(this[Si]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Ti]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Di]});let{signal:n}=t;n&&(this[$i]=n,n.aborted?this[Ji]():n.addEventListener("abort",()=>this[Ji]()))}get bufferLength(){return this[Oi]}get encoding(){return this[Si]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[qi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[zi]}set async(e){this[zi]=this[zi]||!!e}[Ji](){this[Wi]=!0,this.emit("abort",this[$i]?.reason),this.destroy(this[$i]?.reason)}get aborted(){return this[Wi]}set aborted(e){}write(e,t,n){if(this[Wi])return!1;if(this[gi])throw new Error("write after end")
|
|
173
|
-
;if(this[Bi])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");let r=this[zi]?Yi:Ki;if(!this[qi]&&!Buffer.isBuffer(e))if(o=e,!Buffer.isBuffer(o)&&ArrayBuffer.isView(o))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var o;return this[qi]?(this[Ai]&&0!==this[Oi]&&this[Ei](!0),this[Ai]?this.emit("data",e):this[xi](e),0!==this[Oi]&&this.emit("readable"),n&&r(n),this[Ai]):e.length?("string"==typeof e&&!(t===this[Si]&&!this[Ni]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Si]&&(e=this[Ni].write(e)),this[Ai]&&0!==this[Oi]&&this[Ei](!0),this[Ai]?this.emit("data",e):this[xi](e),
|
|
174
|
-
0!==this[Oi]&&this.emit("readable"),n&&r(n),this[Ai]):(0!==this[Oi]&&this.emit("readable"),n&&r(n),this[Ai])}read(e){if(this[Bi])return null;if(this[Zi]=!1,0===this[Oi]||0===e||e&&e>this[Oi])return this[bi](),null;this[qi]&&(e=null),this[Ti].length>1&&!this[qi]&&(this[Ti]=[this[Si]?this[Ti].join(""):Buffer.concat(this[Ti],this[Oi])]);let t=this[Ci](e||null,this[Ti][0]);return this[bi](),t}[Ci](e,t){if(this[qi])this[Li]();else{let n=t;e===n.length||null===e?this[Li]():"string"==typeof n?(this[Ti][0]=n.slice(e),t=n.slice(0,e),this[Oi]-=e):(this[Ti][0]=n.subarray(e),t=n.subarray(0,e),this[Oi]-=e)}return this.emit("data",t),!this[Ti].length&&!this[gi]&&this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[gi]=!0,this.writable=!1,(this[Ai]||!this[ki])&&this[bi](),this}[Pi](){this[Bi]||(!this[Hi]&&!this[Di].length&&(this[Zi]=!0),this[ki]=!1,this[Ai]=!0,this.emit("resume"),
|
|
175
|
-
this[Ti].length?this[Ei]():this[gi]?this[bi]():this.emit("drain"))}resume(){return this[Pi]()}pause(){this[Ai]=!1,this[ki]=!0,this[Zi]=!1}get destroyed(){return this[Bi]}get flowing(){return this[Ai]}get paused(){return this[ki]}[xi](e){this[qi]?this[Oi]+=1:this[Oi]+=e.length,this[Ti].push(e)}[Li](){return this[qi]?this[Oi]-=1:this[Oi]-=this[Ti][0].length,this[Ti].shift()}[Ei](e=!1){do{}while(this[_i](this[Li]())&&this[Ti].length);!e&&!this[Ti].length&&!this[gi]&&this.emit("drain")}[_i](e){return this.emit("data",e),this[Ai]}pipe(e,t){if(this[Bi])return e;this[Zi]=!1;let n=this[yi];return t=t||{},e===hi.stdout||e===hi.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[Di].push(t.proxyErrors?new Qi(this,e,t):new Xi(this,e,t)),this[zi]?Yi(()=>this[Pi]()):this[Pi]()),e}unpipe(e){let t=this[Di].find(t=>t.dest===e);t&&(1===this[Di].length?(this[Ai]&&0===this[Hi]&&(this[Ai]=!1),this[Di]=[]):this[Di].splice(this[Di].indexOf(t),1),t.unpipe())}
|
|
176
|
-
addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if("data"===e)this[Zi]=!1,this[Hi]++,!this[Di].length&&!this[Ai]&&this[Pi]();else if("readable"===e&&0!==this[Oi])super.emit("readable");else if("end"!==(r=e)&&"finish"!==r&&"prefinish"!==r||!this[yi]){if("error"===e&&this[ji]){let e=t;this[zi]?Yi(()=>e.call(this,this[ji])):e.call(this,this[ji])}}else super.emit(e),this.removeAllListeners(e);var r;return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return"data"===e&&(this[Hi]=this.listeners("data").length,0===this[Hi]&&!this[Zi]&&!this[Di].length&&(this[Ai]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return("data"===e||void 0===e)&&(this[Hi]=0,!this[Zi]&&!this[Di].length&&(this[Ai]=!1)),t}get emittedEnd(){return this[yi]}[bi](){!this[Ri]&&!this[yi]&&!this[Bi]&&0===this[Ti].length&&this[gi]&&(this[Ri]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ui]&&this.emit("close"),this[Ri]=!1)}emit(e,...t){
|
|
177
|
-
let n=t[0];if("error"!==e&&"close"!==e&&e!==Bi&&this[Bi])return!1;if("data"===e)return!(!this[qi]&&!n)&&(this[zi]?(Yi(()=>this[Fi](n)),!0):this[Fi](n));if("end"===e)return this[Mi]();if("close"===e){if(this[Ui]=!0,!this[yi]&&!this[Bi])return!1;let e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[ji]=n,super.emit(Vi,n);let e=!(this[$i]&&!this.listeners("error").length)&&super.emit("error",n);return this[bi](),e}if("resume"===e){let e=super.emit("resume");return this[bi](),e}if("finish"===e||"prefinish"===e){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[bi](),r}[Fi](e){for(let t of this[Di])!1===t.dest.write(e)&&this.pause();let t=!this[Zi]&&super.emit("data",e);return this[bi](),t}[Mi](){return!this[yi]&&(this[yi]=!0,this.readable=!1,this[zi]?(Yi(()=>this[Gi]()),!0):this[Gi]())}[Gi](){if(this[Ni]){let e=this[Ni].end();if(e){for(let t of this[Di])t.dest.write(e);this[Zi]||super.emit("data",e)}}
|
|
178
|
-
for(let e of this[Di])e.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[qi]||(e.dataLength=0);let t=this.promise();return this.on("data",t=>{e.push(t),this[qi]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[qi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Si]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Bi,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Zi]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[gi])return t();let r,o,a=e=>{this.off("data",i),this.off("end",d),this.off(Bi,p),t(),o(e)},i=e=>{this.off("error",a),this.off("end",d),this.off(Bi,p),this.pause(),r({value:e,done:!!this[gi]})},d=()=>{
|
|
179
|
-
this.off("error",a),this.off("data",i),this.off(Bi,p),t(),r({done:!0,value:void 0})},p=()=>a(new Error("stream destroyed"));return new Promise((e,t)=>{o=t,r=e,this.once(Bi,p),this.once("error",a),this.once("end",d),this.once("data",i)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Zi]=!1;let e=!1,t=()=>(this.pause(),this.off(Vi,t),this.off(Bi,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(Vi,t),this.once(Bi,t),{next:()=>{if(e)return t();let n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Bi])return e?this.emit("error",e):this.emit(Bi),this;this[Bi]=!0,this[Zi]=!0,this[Ti].length=0,this[Oi]=0;return"function"==typeof this.close&&!this[Ui]&&this.close(),e?this.emit("error",e):this.emit(Bi),this}static get isStream(){return fi}
|
|
180
|
-
},td=R.writev,nd=Symbol("_autoClose"),rd=Symbol("_close"),od=Symbol("_ended"),ad=Symbol("_fd"),id=Symbol("_finished"),dd=Symbol("_flags"),pd=Symbol("_flush"),ld=Symbol("_handleChunk"),sd=Symbol("_makeBuf"),ud=Symbol("_mode"),md=Symbol("_needDrain"),cd=Symbol("_onerror"),vd=Symbol("_onopen"),hd=Symbol("_onread"),fd=Symbol("_onwrite"),Id=Symbol("_open"),wd=Symbol("_path"),gd=Symbol("_pos"),bd=Symbol("_queue"),yd=Symbol("_read"),Rd=Symbol("_readSize"),jd=Symbol("_reading"),Ud=Symbol("_remain"),Cd=Symbol("_size"),Ed=Symbol("_write"),_d=Symbol("_writing"),Sd=Symbol("_defaultFlag"),Nd=Symbol("_errored"),Ad=class extends ed{[Nd]=!1;[ad];[wd];[Rd];[jd]=!1;[Cd];[Ud];[nd];constructor(e,t){if(super(t=t||{}),this.readable=!0,this.writable=!1,"string"!=typeof e)throw new TypeError("path must be a string");this[Nd]=!1,this[ad]="number"==typeof t.fd?t.fd:void 0,this[wd]=e,this[Rd]=t.readSize||16777216,this[jd]=!1,this[Cd]="number"==typeof t.size?t.size:1/0,this[Ud]=this[Cd],
|
|
181
|
-
this[nd]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[ad]?this[yd]():this[Id]()}get fd(){return this[ad]}get path(){return this[wd]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Id](){R.open(this[wd],"r",(e,t)=>this[vd](e,t))}[vd](e,t){e?this[cd](e):(this[ad]=t,this.emit("open",t),this[yd]())}[sd](){return Buffer.allocUnsafe(Math.min(this[Rd],this[Ud]))}[yd](){if(!this[jd]){this[jd]=!0;let e=this[sd]();if(0===e.length)return process.nextTick(()=>this[hd](null,0,e));R.read(this[ad],e,0,e.length,null,(e,t,n)=>this[hd](e,t,n))}}[hd](e,t,n){this[jd]=!1,e?this[cd](e):this[ld](t,n)&&this[yd]()}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[cd](e){this[jd]=!0,this[rd](),this.emit("error",e)}[ld](e,t){let n=!1;return this[Ud]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[Ud]<=0)&&(n=!1,this[rd](),
|
|
182
|
-
super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[ad]&&this[yd](),!1;case"error":return!this[Nd]&&(this[Nd]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}},kd=class extends Ad{[Id](){let e=!0;try{this[vd](null,R.openSync(this[wd],"r")),e=!1}finally{e&&this[rd]()}}[yd](){let e=!0;try{if(!this[jd]){for(this[jd]=!0;;){let e=this[sd](),t=0===e.length?0:R.readSync(this[ad],e,0,e.length,null);if(!this[ld](t,e))break}this[jd]=!1}e=!1}finally{e&&this[rd]()}}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.closeSync(e),this.emit("close")}}},Pd=class extends e{readable=!1;writable=!0;[Nd]=!1;[_d]=!1;[od]=!1;[bd]=[];[md]=!1;[wd];[ud];[nd];[ad];[Sd];[dd];[id]=!1;[gd];constructor(e,t){super(t=t||{}),this[wd]=e,this[ad]="number"==typeof t.fd?t.fd:void 0,this[ud]=void 0===t.mode?438:t.mode,this[gd]="number"==typeof t.start?t.start:void 0,this[nd]="boolean"!=typeof t.autoClose||t.autoClose
|
|
183
|
-
;let n=void 0!==this[gd]?"r+":"w";this[Sd]=void 0===t.flags,this[dd]=void 0===t.flags?n:t.flags,void 0===this[ad]&&this[Id]()}emit(e,...t){if("error"===e){if(this[Nd])return!1;this[Nd]=!0}return super.emit(e,...t)}get fd(){return this[ad]}get path(){return this[wd]}[cd](e){this[rd](),this[_d]=!0,this.emit("error",e)}[Id](){R.open(this[wd],this[dd],this[ud],(e,t)=>this[vd](e,t))}[vd](e,t){this[Sd]&&"r+"===this[dd]&&e&&"ENOENT"===e.code?(this[dd]="w",this[Id]()):e?this[cd](e):(this[ad]=t,this.emit("open",t),this[_d]||this[pd]())}end(e,t){return e&&this.write(e,t),this[od]=!0,!this[_d]&&!this[bd].length&&"number"==typeof this[ad]&&this[fd](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[od]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[ad]||this[_d]||this[bd].length?(this[bd].push(e),this[md]=!0,!1):(this[_d]=!0,this[Ed](e),!0)}[Ed](e){R.write(this[ad],e,0,e.length,this[gd],(e,t)=>this[fd](e,t))}[fd](e,t){
|
|
184
|
-
e?this[cd](e):(void 0!==this[gd]&&"number"==typeof t&&(this[gd]+=t),this[bd].length?this[pd]():(this[_d]=!1,this[od]&&!this[id]?(this[id]=!0,this[rd](),this.emit("finish")):this[md]&&(this[md]=!1,this.emit("drain"))))}[pd](){if(0===this[bd].length)this[od]&&this[fd](null,0);else if(1===this[bd].length)this[Ed](this[bd].pop());else{let e=this[bd];this[bd]=[],td(this[ad],e,this[gd],(e,t)=>this[fd](e,t))}}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.close(e,e=>e?this.emit("error",e):this.emit("close"))}}},Td=class extends Pd{[Id](){let e;if(this[Sd]&&"r+"===this[dd])try{e=R.openSync(this[wd],this[dd],this[ud])}catch(e){if("ENOENT"===e?.code)return this[dd]="w",this[Id]();throw e}else e=R.openSync(this[wd],this[dd],this[ud]);this[vd](null,e)}[rd](){if(this[nd]&&"number"==typeof this[ad]){let e=this[ad];this[ad]=void 0,R.closeSync(e),this.emit("close")}}[Ed](e){let t=!0;try{this[fd](null,R.writeSync(this[ad],e,0,e.length,this[gd])),t=!1}finally{if(t)try{
|
|
185
|
-
this[rd]()}catch{}}}},Dd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),Od=e=>Dd.get(e)||e,xd=(e={})=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e)){t[Od(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},Ld=(e,t,n,r,o)=>Object.assign((a=[],i,d)=>{Array.isArray(a)&&(i=a,a={}),"function"==typeof i&&(d=i,i=void 0),i=i?Array.from(i):[];let p=xd(a);if(o?.(p,i),(e=>!!e.sync&&!!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return e(p,i)}if((e=>!e.sync&&!!e.file)(p)){let e=t(p,i);return d?e.then(()=>d(),d):e}
|
|
186
|
-
if((e=>!!e.sync&&!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return n(p,i)}if((e=>!e.sync&&!e.file)(p)){if("function"==typeof d)throw new TypeError("callback only supported with file option");return r(p,i)}throw new Error("impossible options??")},{syncFile:e,asyncFile:t,syncNoFile:n,asyncNoFile:r,validate:o}),qd=h.constants||{ZLIB_VERNUM:4736},Bd=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,
|
|
142
|
+
;const s=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(t+u).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(n.size){const e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(s.push(`Sec-WebSocket-Protocol: ${e}`),c._protocol=e)}if(e[i.extensionName]){const t=e[i.extensionName].params,n=a.format({[i.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),c._extensions=e}this.emit("headers",s,r),d.write(s.concat("\r\n").join("\r\n")),d.removeListener("error",h),c.setSocket(d,p,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(v,this)})),l(c,r)}}}();var di=function(e){function t(t,n,r,o,a,i){
|
|
143
|
+
void 0===i&&(i=5e3);var d=e.call(this)||this;d.endpoint=t,d.headers=n,d.rewriteHostHeader=r,d.bindToAssign=o,d.agent=a,d.closeTimeout=i,d.protocol="TCP",d.openConnections=new Set,d.tcpServer=I.createServer(d.handleConnection.bind(d));var p=null==r?void 0:r.altHostnames.map(function(e){return(t=qt(t=e))&&er.test(t)?t.replace(Qn,"\\$&"):t;var t}).join("|");return d.hostRegex=new RegExp("Host: (?:".concat(p,")(:.*$|$)"),"im"),d}return G(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),W(this,function(n){return[2,new Promise(function(n){if(t.bindToAssign){var r=t.bindToAssign,o=r.port,a=r.address,i=!1;e&&t.tcpServer.once("error",function(e){if("EADDRINUSE"!==e.code&&"EACCES"!==e.code)throw e;i=!0,t.tcpServer.listen(0,a,function(){var e=t.tcpServer.address().port
|
|
144
|
+
;t.boundTo={address:a,port:e},t.emit("tunnel-open",{address:a,port:e}),n({address:a,port:e})})}),t.tcpServer.listen(o,a,function(){i||(t.emit("tunnel-open",{address:a,port:o}),n({address:a,port:o}))})}else t.tcpServer.listen(0,function(){var e=t.tcpServer.address(),r=e.address,o=e.port,a="0.0.0.0"===r||"::"===r?"127.0.0.1":r;t.boundTo={address:a,port:o},t.emit("tunnel-open",t.boundTo),n(t.boundTo)})})]})})},t.prototype.close=function(){return J(this,void 0,void 0,function(){var e,t=this;return W(this,function(n){switch(n.label){case 0:return e=!1,[4,Promise.race([new Promise(function(n){t.tcpServer.close(function(){e=!0,t.emit("tunnel-close"),n()})}),new Promise(function(n){new Promise(function(e){return setTimeout(e,t.closeTimeout)}).then(function(){e||(t.openConnections.forEach(function(e){e.destroy(),t.openConnections.delete(e)}),n())})})])];case 1:return n.sent(),[2]}})})},t.prototype.handleConnection=function(e){var t=this;this.openConnections.add(e)
|
|
145
|
+
;var n,r=this.endpoint.replace("https:","wss:"),o=new ai(r,{headers:this.headers,agent:this.agent}),a=ei(o),i=this.getHeaderTransform();this.rewriteHostHeader&&i?pa(e,i,a):pa(e,a),pa(a,e),o.on("close",function(e,n,r){t.emit("connection-close",e,n,r)}),o.on("unexpected-response",function(r,o){var a=[];o.on("data",function(e){return a.push(e)}),o.on("end",function(){var r=Buffer.concat(a).toString("utf8").trim(),i="HTTP ".concat(o.statusCode),d=r;try{var p=JSON.parse(r);"string"==typeof(null==p?void 0:p.message)&&(d=p.message)}catch(e){}n=new Error(d?"".concat(i,": ").concat(d):i),t.emit("connection-error",n),e.destroy()}),o.on("error",function(){})}),a.on("error",function(e){n||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)
|
|
146
|
+
;if(-1===o)return e;var a=e.subarray(0,o),i=e.subarray(o+r.length);return Buffer.concat([a,n,i])}(o,e,r)}),o};if(this.rewriteHostHeader){var t=this.rewriteHostHeader,n=t.targetHostname,r=t.altHostnames,o=this.hostRegex;return new i({transform:function(t,a,i){var d=t.toString();if(d.split("\n",1)[0].includes("HTTP")&&o.test(d)){var p=r.map(function(e){return"Host: ".concat(e)});i(null,e(t,p,"Host: ".concat(n)))}else i(null,t)}})}},t}(t),pi=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.endpoint=t,a.headers=n,a.bindToAssign=r,a.agent=o,a.protocol="UDP",a.udpSocket=N.createSocket("udp4"),a.handleConnection(),a}return G(t,e),Object.defineProperty(t.prototype,"bindTo",{get:function(){var e;return null!==(e=this.boundTo)&&void 0!==e?e:this.bindToAssign},enumerable:!1,configurable:!0}),t.prototype.open=function(){return J(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e=!1),W(this,function(n){return[2,new Promise(function(n){if(t.bindToAssign){
|
|
147
|
+
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(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){e.udpSocket.close(function(){e.emit("tunnel-close"),t()})})];case 1:return t.sent(),[2]}})})},t.prototype.handleConnection=function(){var e,t,n=this,r=this.endpoint.replace("https:","wss:"),o=new ai(r,{
|
|
148
|
+
headers:this.headers,agent:this.agent}),a=ei(o);this.udpSocket.on("message",function(t,n){e=n,a.write(t)}),a.on("data",function(t){e&&n.udpSocket.send(t,e.port,e.address,function(e){e&&n.emit("connection-error",e)})}),this.udpSocket.on("error",function(e){n.emit("connection-error",e)}),o.on("unexpected-response",function(e,r){var o=[];r.on("data",function(e){return o.push(e)}),r.on("end",function(){var e=Buffer.concat(o).toString("utf8").trim(),a="HTTP ".concat(r.statusCode),i=e;try{var d=JSON.parse(e);"string"==typeof(null==d?void 0:d.message)&&(i=d.message)}catch(e){}t=new Error(i?"".concat(a,": ").concat(i):a),n.emit("connection-error",t)}),r.on("error",function(){})}),a.on("error",function(e){t||n.emit("connection-error",e)}),o.on("connection-close",function(e,t,r){n.emit("connection-close",e,t,r)}),o.on("connection-error",function(e){n.emit("connection-error",e)}),this.emit("connection-accept")},t}(t),li=function(e){function t(t,r,o,a){var i=e.call(this)||this
|
|
149
|
+
;return i.contextProvider=t,i.listServices=r,i.listAddons=o,i.agent=a,i.connections=[],i.hostsFileMutex=new ta,i.ipAllocationMutex=new ta,i.stopForwarding=function(e){return J(i,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){switch(p.label){case 0:return[4,e.tunnel.close()];case 1:return p.sent(),t=e.forwardingContext,n=t.projectId,r=t.type,o=t.id,a=t.hostnames,i=t.ipOnly,a.length>0&&!i?[4,this.unregisterHostnames(null===(d=e.tunnel.bindTo)||void 0===d?void 0:d.address,a)]:[3,3];case 2:p.sent(),p.label=3;case 3:return this.connections.splice(this.connections.findIndex(function(e){var t=e.forwardingContext,a=t.type,i=t.id,d=t.projectId;return i===o&&d===n&&a===r}),1),[2]}})})},i.canExecuteWithHostnames=function(){return"win32"!==process.platform?process.getuid&&0!==process.getuid()?{error:!0,
|
|
150
|
+
message:"You are not running this command with sufficient privileges (uid=".concat(null===(e=null===process||void 0===process?void 0:process.getuid)||void 0===e?void 0:e.call(process),"). Try running with 'sudo -E'.")}:{error:!1,type:"unix-admin"}:function(){try{return n("fsutil dirty query %systemdrive%"),!0}catch(e){if("ENOENT"===e.code)try{return n("fltmc"),!0}catch(e){return!1}return!1}}()?{error:!1,type:"windows-admin"}:{error:!0,message:"You are not running this command as administrator. Please start command line with admin rights."};var e},i.assertStartedWithNodejs=function(){if(!yo)throw new Error("Port forwarding only possible when started with nodejs")},i.proxyApiClient=new Do(t,a),i}return G(t,e),t.prototype.withProjectForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardProject(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)]
|
|
151
|
+
;case 3:return[2,o.sent()];case 4:return[4,this.stopProjectForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardProject=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d=this;return void 0===t&&(t=!0),W(this,function(p){switch(p.label){case 0:return this.assertStartedWithNodejs(),n=e.projectId,[4,this.listServices.all({parameters:{projectId:n}})];case 1:return r=p.sent(),[4,this.listAddons.all({parameters:{projectId:n}})];case 2:return o=p.sent(),[4,Promise.all(r.data.services.map(function(e){return J(d,void 0,void 0,function(){return W(this,function(r){return[2,this.forwardService({projectId:n,serviceId:e.id},t)]})})}))];case 3:return a=p.sent(),[4,Promise.all(o.data.addons.map(function(e){return J(d,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,this.forwardAddon({projectId:n,addonId:e.id},t)];case 1:return[2,r.sent()]}})})}))];case 4:return i=p.sent(),[2,{services:a,addons:i}]}})})},
|
|
152
|
+
t.prototype.withServiceForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardService(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopServiceForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardService=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p,l,s,u,m,c,v=this;return void 0===t&&(t=!0),W(this,function(h){switch(h.label){case 0:return this.assertStartedWithNodejs(),n=e.teamId,r=e.projectId,o=e.serviceId,a=e.instanceId,i=e.portsFilter,[4,this.proxyApiClient.getServiceDetails(r,o,n)];case 1:return d=h.sent(),p=d.namespace,l=d.targetDomain,s=d.instances,u=d.ports,0===s.length?[2,[]]:(m=function(e){var i=s.map(function(e){return e.podName})
|
|
153
|
+
;if(void 0!==a&&!i.includes(a))throw new Error("Instance id not found: ".concat(a,". Expected one of [").concat(i.join(", "),"]. Ensure that requested instance id is running on service ").concat(o," in project ").concat(r,"."));var d,u=v.proxyApiClient.getTeamScopePrefix(n),m=void 0!==a?"?directConnect=true":"",c="https://".concat(l,"/tunnel/").concat(u,"projects/").concat(r,"/services/").concat(o,"/instance/").concat(null!=a?a:s[0].podName,"/port/").concat(e.internalPort).concat(m),h=void 0!==a?"".concat(a,"."):"",f="".concat(h).concat(o,".").concat(p,".svc.cluster.local"),I=["".concat(h).concat(o)];e.name&&I.push("".concat(h).concat(e.name,".").concat(o)),"HTTP"===e.protocol&&(d={altHostnames:I,targetHostname:f});var w=$([f],I,!0);return v.forwardPort(c,e,w,"service",o,r,t,d)},c=void 0===i?u:u.filter(function(e){return i.includes(e.internalPort)}),[4,Po(c,m)]);case 2:return[2,h.sent()]}})})},t.prototype.withAddonForwarding=function(e,t){return J(this,arguments,void 0,function(e,t,n){
|
|
154
|
+
var r;return void 0===n&&(n=!0),W(this,function(o){switch(o.label){case 0:return[4,this.forwardAddon(e,n)];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,6]),[4,t(r)];case 3:return[2,o.sent()];case 4:return[4,this.stopAddonForwarding(e)];case 5:return o.sent(),[7];case 6:return[2]}})})},t.prototype.forwardAddon=function(e){return J(this,arguments,void 0,function(e,t){var n,r,o,a,i,d,p=this;return void 0===t&&(t=!0),W(this,function(l){switch(l.label){case 0:return this.assertStartedWithNodejs(),n=e.teamId,r=e.addonId,o=e.projectId,[4,this.proxyApiClient.getAddonDetails(o,r,n)];case 1:return a=l.sent(),i=a.instances.map(function(e){var t=e.podName,n=e.internalHostname;return e.ports.map(function(e){return{podName:t,internalHostname:n,port:e}})}),d=this.proxyApiClient.getTeamScopePrefix(n),[4,Po((s=i,null!=s&&s.length?Jt(s,rr):[]),function(e){return J(p,[e],void 0,function(e){var n,i=e.podName,p=e.internalHostname,l=e.port;return W(this,function(e){
|
|
155
|
+
return n="https://".concat(a.targetDomain,"/tunnel/").concat(d,"projects/").concat(o,"/addons/").concat(r,"/instance/").concat(i,"/port/").concat(l.internalPort),[2,this.forwardPort(n,l,[p],"addon",r,o,t)]})})})];case 2:return[2,l.sent()]}var s})})},t.prototype.allocateIpAddress=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){return[2,this.ipAllocationMutex.enter(function(){return J(t,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){switch(i.label){case 0:return t="127.24.1.1",n="127.24.255.255",r=null!==(a=this.nextIpAddress)&&void 0!==a?a:t,[4,Oo(e,r,n)];case 1:return o=i.sent(),this.nextIpAddress=Bo(qo(o)+1),qo(this.nextIpAddress)>qo(n)&&(this.nextIpAddress=t),[2,o]}})})})]})})},t.prototype.forwardPort=function(e,t,n,r,o,a){return J(this,arguments,void 0,function(e,t,n,r,o,a,i,d,p){var l,s,u,m,c,v,h,f=this;return void 0===i&&(i=!0),void 0===p&&(p=!0),W(this,function(I){switch(I.label){case 0:if(l={
|
|
156
|
+
Authorization:"Bearer ".concat(this.contextProvider.getCurrentToken())},!i&&(s=this.canExecuteWithHostnames()).error)throw new Error("".concat(s.message," Alternatively, you can use the ipOnly mode when port-forwarding (apiClient.forwarding.forwardAddon({ projectId, addonId }, true))"));return[4,this.determineSocketAddress(a,o,n,r,t,i,p)];case 1:return u=I.sent(),m="UDP"===t.protocol?new pi(e,l,u,this.agent):new di(e,l,d,u,this.agent),i?[3,3]:[4,this.registerHostnames(null===(h=m.bindTo)||void 0===h?void 0:h.address,n)];case 2:I.sent(),I.label=3;case 3:return m.on("connection-accept",function(){return f.emit("connection-accept",m)}),m.on("connection-close",function(){return J(f,void 0,void 0,function(){return W(this,function(e){return[2,this.emit("connection-close",m)]})})}),[4,m.open(p)];case 4:return c=I.sent(),v={projectId:a,id:o,type:r,hostnames:n,ipOnly:i,port:c.port,address:c.address,protocol:t.protocol,portName:t.name,portRemote:t.internalPort},this.emit("tunnel-open",m,v),
|
|
157
|
+
m.on("connection-error",function(e){return f.emit("connection-error",m,v,e)}),m.on("tunnel-close",function(){return f.emit("tunnel-close",m,v)}),this.connections.push({tunnel:m,forwardingContext:v}),[2,{data:v}]}})})},t.prototype.determineSocketAddress=function(e,t,n,r,o,a,i){return J(this,void 0,void 0,function(){var d,p,l,s;return W(this,function(u){switch(u.label){case 0:return a&&"darwin"===f.platform()?i&&void 0!==(null==n?void 0:n[0])?(d="".concat(n[0],":").concat(o.internalPort,"/").concat(o.protocol),[2,{address:"127.0.0.1",port:this.consistentHostnameToPortHashing(d)}]):[2,void 0]:(p=this.connections.filter(function(n){return n.forwardingContext.projectId===e&&n.forwardingContext.id===t&&n.forwardingContext.type===r}),l=null==p?void 0:p.find(function(e){return n.find(function(t){return e.forwardingContext.hostnames.includes(t)})}),l?[2,{address:null==l?void 0:l.forwardingContext.address,port:o.internalPort}]:(s={},[4,this.allocateIpAddress(o.internalPort)]));case 1:
|
|
158
|
+
return[2,(s.address=u.sent(),s.port=o.internalPort,s)]}})})},t.prototype.consistentHostnameToPortHashing=function(e){var t=E("sha256").update(e).digest("hex");return 3e4+parseInt(t.slice(0,8),16)%3e4},t.prototype.registerHostnames=function(e,t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.removeHosts.apply(n,t),n.add.apply(n,$([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.unregisterHostnames=function(e,t){return J(this,void 0,void 0,function(){return W(this,function(n){switch(n.label){case 0:return[4,this.modifyHostsFile(function(n){n.remove.apply(n,$([e],t,!1))})];case 1:return n.sent(),[2]}})})},t.prototype.modifyHostsFile=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,this.hostsFileMutex.enter(function(){return J(t,void 0,void 0,function(){var t,n=this;return W(this,function(r){switch(r.label){case 0:
|
|
159
|
+
return[4,ea.load({header:"Northflank Proxy"})];case 1:return t=r.sent(),e(t),[4,t.backup({suffix:".backup-pre-northflank"})];case 2:r.sent(),r.label=3;case 3:return r.trys.push([3,5,,7]),[4,jo(5)(function(){return J(n,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"atomic"})];case 1:return e.sent(),[2]}})})})];case 4:return r.sent(),[3,7];case 5:return r.sent(),[4,jo(5)(function(){return J(n,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:return[4,t.write({writeMode:"standard"})];case 1:return e.sent(),[2]}})})})];case 6:return r.sent(),[3,7];case 7:return[2]}})})})];case 1:return n.sent(),[2]}})})},t.prototype.stopProjectForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return t.forwardingContext.projectId===e.projectId}).map(function(e){return t.stopForwarding(e)}))];case 1:
|
|
160
|
+
return n.sent(),[2]}})})},t.prototype.stopServiceForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"service"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.serviceId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stopAddonForwarding=function(e){return J(this,void 0,void 0,function(){var t=this;return W(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.connections.filter(function(t){return"addon"===t.forwardingContext.type&&t.forwardingContext.projectId===e.projectId&&t.forwardingContext.id===e.addonId}).map(function(e){return t.stopForwarding(e)}))];case 1:return n.sent(),[2]}})})},t.prototype.stop=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:
|
|
161
|
+
return[4,Promise.all(this.connections.map(function(t){return J(e,void 0,void 0,function(){return W(this,function(e){return[2,this.stopForwarding(t)]})})}))];case 1:return t.sent(),[2]}})})},t}(t),si=function(e){function t(t,n,r,a,i,d,p){void 0===i&&(i=new o.PassThrough),void 0===d&&(d=new o.PassThrough),void 0===p&&(p=new o.PassThrough);var l=e.call(this)||this;return l.baseUrl=t,l.execConfig=n,l.token=r,l.agent=a,l.stdOut=i,l.stdErr=d,l.stdIn=p,l.waitForCommandResult=function(){return J(l,void 0,void 0,function(){return W(this,function(e){switch(e.label){case 0:if(void 0===this.currentCommand)throw new Error("No command is running");return[4,this.currentCommand];case 1:return[2,e.sent()]}})})},l.sendInputToCurrentCommand=function(e){return J(l,void 0,void 0,function(){var t;return W(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running");return null===(t=this.duplex)||void 0===t||t.write(this.constructPayloadPacket(e)),[2]})})},
|
|
162
|
+
l.resizeTerminal=function(e){return J(l,void 0,void 0,function(){var t;return W(this,function(n){if(void 0===this.currentCommand||void 0===this.duplex)throw new Error("No command is running, can't resize terminal");return null===(t=this.duplex)||void 0===t||t.write(JSON.stringify({type:"resize",data:{ttyRows:null==e?void 0:e.rows,ttyColumns:null==e?void 0:e.columns}})),[2]})})},l.constructPayloadPacket=function(e){return JSON.stringify({type:"payload",data:e.toString()})},l.stdInEndPacket=JSON.stringify({type:"stdInEnd"}),l}return G(t,e),Object.defineProperty(t.prototype,"execEndpoint",{get:function(){var e=this.execConfig,t=e.entityId,n=e.entityType,r=e.projectId,o=e.teamId,a=void 0!==o?"teams/".concat(o,"/"):"",i="".concat(this.baseUrl,"/v1/command-exec/").concat(a,"projects/").concat(r,"/");return"".concat(i).concat(function(){switch(n){case"service":return"services/".concat(t);case"job":return"jobs/".concat(t);case"addon":return"addons/".concat(t);case"build":
|
|
163
|
+
return"builds/".concat(t);default:throw new Error("Unexpected Northflank entity type received in command exec endpoint generation: ".concat(n))}}())},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){if(void 0!==this.currentCommand)throw new Error("Command is already running");return this.currentCommand=new Promise(function(t,n){var r,o,a;if(void 0===e.remote){var i,d=!1,p=function(t){d?e.listenerCount("error")>0&&e.emit("error",new Error(t)):(d=!0,e.listenerCount("error")>0&&e.emit("error",new Error(t)),e.reset(),n(new Error(t)))};try{var l=e.execEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new ai(l,{agent:e.agent}),e.remote.on("error",function(e){p("WebSocket error: ".concat(e.message))}),e.remote.on("close",function(e,t){[1e3,1005].includes(e)||d||p("WebSocket closed unexpectedly: ".concat(e," ").concat(t||"(no reason)"))}),e.duplex=ei(e.remote)}catch(e){
|
|
164
|
+
return void p("Failed to establish connection to command execution proxy: ".concat(e.message))}e.stdIn.on("data",function(t){var n;(null===(n=e.duplex)||void 0===n?void 0:n.writable)&&e.duplex.write(e.constructPayloadPacket(t))}),e.stdIn.on("end",function(){var t;(null===(t=e.duplex)||void 0===t?void 0:t.writable)&&e.duplex.write(e.stdInEndPacket)});null===(r=e.duplex)||void 0===r||r.on("data",function(t){var n,r,o,a,d;try{var l=JSON.parse(t.toString());switch(null==l?void 0:l.type){case"init":var s=l.data;"successful"!==s.auth?p("Command initialization failed: ".concat(null!==(n=null==s?void 0:s.message)&&void 0!==n?n:"Reason unknown")):e.emit("auth-success",s);break;case"completion":i=l.data,e.emit("command-result",i),null===(r=e.duplex)||void 0===r||r.end(),e.stdOut.end(),e.stdErr.end(),e.stdIn.end();break;case"stdOut":e.emit("std-out-data",l.data),e.stdOut.write(l.data,null===(o=e.execConfig)||void 0===o?void 0:o.encoding);break;case"stdErr":e.emit("std-err-data",l.data),
|
|
165
|
+
e.stdErr.write(l.data,null===(a=e.execConfig)||void 0===a?void 0:a.encoding);break;case"error":p((null===(d=l.data)||void 0===d?void 0:d.message)||"Unknown error");break;default:var u="unable to parse message: ".concat(JSON.stringify(l));p(u)}}catch(e){p("Failed to parse message: ".concat(e.message))}}),null===(o=e.duplex)||void 0===o||o.on("end",function(){i?d||(d=!0,e.emit("command-completed"),e.reset(),t(i)):p("Connection closed before receiving command result")}),null===(a=e.duplex)||void 0===a||a.on("error",function(e){p("Duplex stream error: ".concat(e.message))}),e.initialAuth(),e.emit("command-started")}else n(Error("Command is already running"))}),[2,this.currentCommand]})})},t.prototype.initialAuth=function(){var e,t=this.execConfig,n=t.command,r=t.containerName,o=t.instanceName,a=t.shell,i=t.user,d=this.execConfig,p=d.group,l=d.encoding,s=d.tty,u=d.ttyColumns,m=d.ttyRows,c={type:"init",data:{auth:{type:"apiToken",apiToken:this.token},context:{instanceName:o,containerName:r,
|
|
166
|
+
command:n,shell:a,user:i,group:p,encoding:l,tty:s,ttyColumns:u,ttyRows:m}}};null===(e=this.duplex)||void 0===e||e.write(JSON.stringify(c))},t.prototype.reset=function(){var e;this.remote=void 0,this.currentCommand=void 0,null===(e=this.duplex)||void 0===e||e.destroy(),this.duplex=void 0},t}(t),ui=function(){function e(e,t){this.contextProvider=e,this.agent=t,this.assertStartedWithNodejs=function(){if(!yo)throw new Error("Command exec only possible when started with nodejs")}}return e.prototype.execServiceCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.serviceId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"service"},t),[2,this.execCommand(a)]})})},e.prototype.execServiceSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.serviceId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"service"
|
|
167
|
+
},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execJobCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.jobId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"job"},t),[2,this.execCommand(a)]})})},e.prototype.execJobSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){switch(d.label){case 0:return r=e.jobId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"job"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execAddonCommand=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){return n=e.addonId,r=e.projectId,o=e.teamId,a=z({teamId:o,projectId:r,entityId:n,entityType:"addon"},t),[2,this.execCommand(a)]})})},e.prototype.execAddonSession=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i;return W(this,function(d){
|
|
168
|
+
switch(d.label){case 0:return r=e.addonId,o=e.projectId,a=e.teamId,i=z({teamId:a,projectId:o,entityId:r,entityType:"addon"},t),[4,this.shellSession(i,n)];case 1:return[2,d.sent()]}})})},e.prototype.execCommand=function(e){return J(this,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){switch(i.label){case 0:this.assertStartedWithNodejs(),t=this.getCommandRunner(z({shell:"none"},e)),n=new To,r=new To,i.label=1;case 1:return i.trys.push([1,3,,4]),t.stdOut.pipe(n),t.stdErr.pipe(r),o=new Promise(function(e,n){t.once("error",function(e){n(new Error("".concat(e.message||e)))})}),[4,Promise.race([t.start(),o])];case 2:return[2,{commandResult:i.sent(),stdOut:n.getContentsAsString(),stdErr:r.getContentsAsString()}];case 3:throw a=i.sent(),t.stdOut.unpipe(n),t.stdErr.unpipe(r),new Error("Command execution failed: ".concat(a instanceof Error?a.message:String(a)));case 4:return[2]}})})},e.prototype.shellSession=function(e,t){return J(this,void 0,void 0,function(){var n,r
|
|
169
|
+
;return W(this,function(o){switch(o.label){case 0:return this.assertStartedWithNodejs(),n=this.getCommandRunner(e),r=new Promise(function(e,r){n.once("auth-success",function(n){null==t||t(null==n?void 0:n.context),e()}),n.once("error",function(e){r(new Error("Shell session failed: ".concat(e.message||e)))});var o=setTimeout(function(){r(new Error("Shell session timed out waiting for auth-success"))},3e4);n.once("auth-success",function(){return clearTimeout(o)})}),n.start(),[4,r];case 1:return o.sent(),[2,n]}})})},e.prototype.getCommandRunner=function(e){var t=this.contextProvider.getCurrentBaseUrl(!0),n=this.contextProvider.getCurrentToken();if(!n)throw Error("API token not found");return new si(t,e,n,this.agent)},e}(),mi=Object.defineProperty,ci="object"==typeof process&&process?process:{stdout:null,stderr:null
|
|
170
|
+
},vi=e=>!!e&&"object"==typeof e&&(e instanceof Xi||e instanceof a||hi(e)||fi(e)),hi=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.pipe&&e.pipe!==a.Writable.prototype.pipe,fi=e=>!!e&&"object"==typeof e&&e instanceof A&&"function"==typeof e.write&&"function"==typeof e.end,Ii=Symbol("EOF"),wi=Symbol("maybeEmitEnd"),gi=Symbol("emittedEnd"),bi=Symbol("emittingEnd"),yi=Symbol("emittedError"),Ri=Symbol("closed"),ji=Symbol("read"),Ui=Symbol("flush"),Ci=Symbol("flushChunk"),Ei=Symbol("encoding"),_i=Symbol("decoder"),Si=Symbol("flowing"),Ni=Symbol("paused"),Ai=Symbol("resume"),ki=Symbol("buffer"),Pi=Symbol("pipes"),Ti=Symbol("bufferLength"),Di=Symbol("bufferPush"),Oi=Symbol("bufferShift"),xi=Symbol("objectMode"),Li=Symbol("destroyed"),qi=Symbol("error"),Bi=Symbol("emitData"),Vi=Symbol("emitEnd"),Fi=Symbol("emitEnd2"),Mi=Symbol("async"),Gi=Symbol("abort"),zi=Symbol("aborted"),Ji=Symbol("signal"),Wi=Symbol("dataListeners"),$i=Symbol("discarded"),Hi=e=>Promise.resolve().then(e),Zi=e=>e(),Yi=class{
|
|
171
|
+
src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Ai](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Ki=class extends Yi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit("error",e),e.on("error",this.proxyErrors)}},Xi=class extends A{[Si]=!1;[Ni]=!1;[Pi]=[];[ki]=[];[xi];[Ei];[Mi];[_i];[Ii]=!1;[gi]=!1;[bi]=!1;[Ri]=!1;[yi]=null;[Ti]=0;[Li]=!1;[Ji];[zi]=!1;[Wi]=0;[$i]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[xi]=!0,this[Ei]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[Ei]=t.encoding,this[xi]=!1):(this[xi]=!1,this[Ei]=null),this[Mi]=!!t.async,
|
|
172
|
+
this[_i]=this[Ei]?new k(this[Ei]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[ki]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Pi]});let{signal:n}=t;n&&(this[Ji]=n,n.aborted?this[Gi]():n.addEventListener("abort",()=>this[Gi]()))}get bufferLength(){return this[Ti]}get encoding(){return this[Ei]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[xi]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Mi]}set async(e){this[Mi]=this[Mi]||!!e}[Gi](){this[zi]=!0,this.emit("abort",this[Ji]?.reason),this.destroy(this[Ji]?.reason)}get aborted(){return this[zi]}set aborted(e){}write(e,t,n){if(this[zi])return!1;if(this[Ii])throw new Error("write after end")
|
|
173
|
+
;if(this[Li])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(n=t,t="utf8"),t||(t="utf8");let r=this[Mi]?Hi:Zi;if(!this[xi]&&!Buffer.isBuffer(e))if(o=e,!Buffer.isBuffer(o)&&ArrayBuffer.isView(o))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var o;return this[xi]?(this[Si]&&0!==this[Ti]&&this[Ui](!0),this[Si]?this.emit("data",e):this[Di](e),0!==this[Ti]&&this.emit("readable"),n&&r(n),this[Si]):e.length?("string"==typeof e&&!(t===this[Ei]&&!this[_i]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ei]&&(e=this[_i].write(e)),this[Si]&&0!==this[Ti]&&this[Ui](!0),this[Si]?this.emit("data",e):this[Di](e),
|
|
174
|
+
0!==this[Ti]&&this.emit("readable"),n&&r(n),this[Si]):(0!==this[Ti]&&this.emit("readable"),n&&r(n),this[Si])}read(e){if(this[Li])return null;if(this[$i]=!1,0===this[Ti]||0===e||e&&e>this[Ti])return this[wi](),null;this[xi]&&(e=null),this[ki].length>1&&!this[xi]&&(this[ki]=[this[Ei]?this[ki].join(""):Buffer.concat(this[ki],this[Ti])]);let t=this[ji](e||null,this[ki][0]);return this[wi](),t}[ji](e,t){if(this[xi])this[Oi]();else{let n=t;e===n.length||null===e?this[Oi]():"string"==typeof n?(this[ki][0]=n.slice(e),t=n.slice(0,e),this[Ti]-=e):(this[ki][0]=n.subarray(e),t=n.subarray(0,e),this[Ti]-=e)}return this.emit("data",t),!this[ki].length&&!this[Ii]&&this.emit("drain"),t}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t="utf8"),void 0!==e&&this.write(e,t),n&&this.once("end",n),this[Ii]=!0,this.writable=!1,(this[Si]||!this[Ni])&&this[wi](),this}[Ai](){this[Li]||(!this[Wi]&&!this[Pi].length&&(this[$i]=!0),this[Ni]=!1,this[Si]=!0,this.emit("resume"),
|
|
175
|
+
this[ki].length?this[Ui]():this[Ii]?this[wi]():this.emit("drain"))}resume(){return this[Ai]()}pause(){this[Si]=!1,this[Ni]=!0,this[$i]=!1}get destroyed(){return this[Li]}get flowing(){return this[Si]}get paused(){return this[Ni]}[Di](e){this[xi]?this[Ti]+=1:this[Ti]+=e.length,this[ki].push(e)}[Oi](){return this[xi]?this[Ti]-=1:this[Ti]-=this[ki][0].length,this[ki].shift()}[Ui](e=!1){do{}while(this[Ci](this[Oi]())&&this[ki].length);!e&&!this[ki].length&&!this[Ii]&&this.emit("drain")}[Ci](e){return this.emit("data",e),this[Si]}pipe(e,t){if(this[Li])return e;this[$i]=!1;let n=this[gi];return t=t||{},e===ci.stdout||e===ci.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[Pi].push(t.proxyErrors?new Ki(this,e,t):new Yi(this,e,t)),this[Mi]?Hi(()=>this[Ai]()):this[Ai]()),e}unpipe(e){let t=this[Pi].find(t=>t.dest===e);t&&(1===this[Pi].length?(this[Si]&&0===this[Wi]&&(this[Si]=!1),this[Pi]=[]):this[Pi].splice(this[Pi].indexOf(t),1),t.unpipe())}
|
|
176
|
+
addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if("data"===e)this[$i]=!1,this[Wi]++,!this[Pi].length&&!this[Si]&&this[Ai]();else if("readable"===e&&0!==this[Ti])super.emit("readable");else if("end"!==(r=e)&&"finish"!==r&&"prefinish"!==r||!this[gi]){if("error"===e&&this[yi]){let e=t;this[Mi]?Hi(()=>e.call(this,this[yi])):e.call(this,this[yi])}}else super.emit(e),this.removeAllListeners(e);var r;return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return"data"===e&&(this[Wi]=this.listeners("data").length,0===this[Wi]&&!this[$i]&&!this[Pi].length&&(this[Si]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return("data"===e||void 0===e)&&(this[Wi]=0,!this[$i]&&!this[Pi].length&&(this[Si]=!1)),t}get emittedEnd(){return this[gi]}[wi](){!this[bi]&&!this[gi]&&!this[Li]&&0===this[ki].length&&this[Ii]&&(this[bi]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ri]&&this.emit("close"),this[bi]=!1)}emit(e,...t){
|
|
177
|
+
let n=t[0];if("error"!==e&&"close"!==e&&e!==Li&&this[Li])return!1;if("data"===e)return!(!this[xi]&&!n)&&(this[Mi]?(Hi(()=>this[Bi](n)),!0):this[Bi](n));if("end"===e)return this[Vi]();if("close"===e){if(this[Ri]=!0,!this[gi]&&!this[Li])return!1;let e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[yi]=n,super.emit(qi,n);let e=!(this[Ji]&&!this.listeners("error").length)&&super.emit("error",n);return this[wi](),e}if("resume"===e){let e=super.emit("resume");return this[wi](),e}if("finish"===e||"prefinish"===e){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[wi](),r}[Bi](e){for(let t of this[Pi])!1===t.dest.write(e)&&this.pause();let t=!this[$i]&&super.emit("data",e);return this[wi](),t}[Vi](){return!this[gi]&&(this[gi]=!0,this.readable=!1,this[Mi]?(Hi(()=>this[Fi]()),!0):this[Fi]())}[Fi](){if(this[_i]){let e=this[_i].end();if(e){for(let t of this[Pi])t.dest.write(e);this[$i]||super.emit("data",e)}}
|
|
178
|
+
for(let e of this[Pi])e.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[xi]||(e.dataLength=0);let t=this.promise();return this.on("data",t=>{e.push(t),this[xi]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[xi])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ei]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Li,()=>t(new Error("stream destroyed"))),this.on("error",e=>t(e)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[$i]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(null!==n)return Promise.resolve({done:!1,value:n});if(this[Ii])return t();let r,o,a=e=>{this.off("data",i),this.off("end",d),this.off(Li,p),t(),o(e)},i=e=>{this.off("error",a),this.off("end",d),this.off(Li,p),this.pause(),r({value:e,done:!!this[Ii]})},d=()=>{
|
|
179
|
+
this.off("error",a),this.off("data",i),this.off(Li,p),t(),r({done:!0,value:void 0})},p=()=>a(new Error("stream destroyed"));return new Promise((e,t)=>{o=t,r=e,this.once(Li,p),this.once("error",a),this.once("end",d),this.once("data",i)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[$i]=!1;let e=!1,t=()=>(this.pause(),this.off(qi,t),this.off(Li,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(qi,t),this.once(Li,t),{next:()=>{if(e)return t();let n=this.read();return null===n?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Li])return e?this.emit("error",e):this.emit(Li),this;this[Li]=!0,this[$i]=!0,this[ki].length=0,this[Ti]=0;return"function"==typeof this.close&&!this[Ri]&&this.close(),e?this.emit("error",e):this.emit(Li),this}static get isStream(){return vi}
|
|
180
|
+
},Qi=b.writev,ed=Symbol("_autoClose"),td=Symbol("_close"),nd=Symbol("_ended"),rd=Symbol("_fd"),od=Symbol("_finished"),ad=Symbol("_flags"),id=Symbol("_flush"),dd=Symbol("_handleChunk"),pd=Symbol("_makeBuf"),ld=Symbol("_mode"),sd=Symbol("_needDrain"),ud=Symbol("_onerror"),md=Symbol("_onopen"),cd=Symbol("_onread"),vd=Symbol("_onwrite"),hd=Symbol("_open"),fd=Symbol("_path"),Id=Symbol("_pos"),wd=Symbol("_queue"),gd=Symbol("_read"),bd=Symbol("_readSize"),yd=Symbol("_reading"),Rd=Symbol("_remain"),jd=Symbol("_size"),Ud=Symbol("_write"),Cd=Symbol("_writing"),Ed=Symbol("_defaultFlag"),_d=Symbol("_errored"),Sd=class extends Xi{[_d]=!1;[rd];[fd];[bd];[yd]=!1;[jd];[Rd];[ed];constructor(e,t){if(super(t=t||{}),this.readable=!0,this.writable=!1,"string"!=typeof e)throw new TypeError("path must be a string");this[_d]=!1,this[rd]="number"==typeof t.fd?t.fd:void 0,this[fd]=e,this[bd]=t.readSize||16777216,this[yd]=!1,this[jd]="number"==typeof t.size?t.size:1/0,this[Rd]=this[jd],
|
|
181
|
+
this[ed]="boolean"!=typeof t.autoClose||t.autoClose,"number"==typeof this[rd]?this[gd]():this[hd]()}get fd(){return this[rd]}get path(){return this[fd]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[hd](){b.open(this[fd],"r",(e,t)=>this[md](e,t))}[md](e,t){e?this[ud](e):(this[rd]=t,this.emit("open",t),this[gd]())}[pd](){return Buffer.allocUnsafe(Math.min(this[bd],this[Rd]))}[gd](){if(!this[yd]){this[yd]=!0;let e=this[pd]();if(0===e.length)return process.nextTick(()=>this[cd](null,0,e));b.read(this[rd],e,0,e.length,null,(e,t,n)=>this[cd](e,t,n))}}[cd](e,t,n){this[yd]=!1,e?this[ud](e):this[dd](t,n)&&this[gd]()}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[ud](e){this[yd]=!0,this[td](),this.emit("error",e)}[dd](e,t){let n=!1;return this[Rd]-=e,e>0&&(n=super.write(e<t.length?t.subarray(0,e):t)),(0===e||this[Rd]<=0)&&(n=!1,this[td](),
|
|
182
|
+
super.end()),n}emit(e,...t){switch(e){case"prefinish":case"finish":return!1;case"drain":return"number"==typeof this[rd]&&this[gd](),!1;case"error":return!this[_d]&&(this[_d]=!0,super.emit(e,...t));default:return super.emit(e,...t)}}},Nd=class extends Sd{[hd](){let e=!0;try{this[md](null,b.openSync(this[fd],"r")),e=!1}finally{e&&this[td]()}}[gd](){let e=!0;try{if(!this[yd]){for(this[yd]=!0;;){let e=this[pd](),t=0===e.length?0:b.readSync(this[rd],e,0,e.length,null);if(!this[dd](t,e))break}this[yd]=!1}e=!1}finally{e&&this[td]()}}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.closeSync(e),this.emit("close")}}},Ad=class extends e{readable=!1;writable=!0;[_d]=!1;[Cd]=!1;[nd]=!1;[wd]=[];[sd]=!1;[fd];[ld];[ed];[rd];[Ed];[ad];[od]=!1;[Id];constructor(e,t){super(t=t||{}),this[fd]=e,this[rd]="number"==typeof t.fd?t.fd:void 0,this[ld]=void 0===t.mode?438:t.mode,this[Id]="number"==typeof t.start?t.start:void 0,this[ed]="boolean"!=typeof t.autoClose||t.autoClose
|
|
183
|
+
;let n=void 0!==this[Id]?"r+":"w";this[Ed]=void 0===t.flags,this[ad]=void 0===t.flags?n:t.flags,void 0===this[rd]&&this[hd]()}emit(e,...t){if("error"===e){if(this[_d])return!1;this[_d]=!0}return super.emit(e,...t)}get fd(){return this[rd]}get path(){return this[fd]}[ud](e){this[td](),this[Cd]=!0,this.emit("error",e)}[hd](){b.open(this[fd],this[ad],this[ld],(e,t)=>this[md](e,t))}[md](e,t){this[Ed]&&"r+"===this[ad]&&e&&"ENOENT"===e.code?(this[ad]="w",this[hd]()):e?this[ud](e):(this[rd]=t,this.emit("open",t),this[Cd]||this[id]())}end(e,t){return e&&this.write(e,t),this[nd]=!0,!this[Cd]&&!this[wd].length&&"number"==typeof this[rd]&&this[vd](null,0),this}write(e,t){return"string"==typeof e&&(e=Buffer.from(e,t)),this[nd]?(this.emit("error",new Error("write() after end()")),!1):void 0===this[rd]||this[Cd]||this[wd].length?(this[wd].push(e),this[sd]=!0,!1):(this[Cd]=!0,this[Ud](e),!0)}[Ud](e){b.write(this[rd],e,0,e.length,this[Id],(e,t)=>this[vd](e,t))}[vd](e,t){
|
|
184
|
+
e?this[ud](e):(void 0!==this[Id]&&"number"==typeof t&&(this[Id]+=t),this[wd].length?this[id]():(this[Cd]=!1,this[nd]&&!this[od]?(this[od]=!0,this[td](),this.emit("finish")):this[sd]&&(this[sd]=!1,this.emit("drain"))))}[id](){if(0===this[wd].length)this[nd]&&this[vd](null,0);else if(1===this[wd].length)this[Ud](this[wd].pop());else{let e=this[wd];this[wd]=[],Qi(this[rd],e,this[Id],(e,t)=>this[vd](e,t))}}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.close(e,e=>e?this.emit("error",e):this.emit("close"))}}},kd=class extends Ad{[hd](){let e;if(this[Ed]&&"r+"===this[ad])try{e=b.openSync(this[fd],this[ad],this[ld])}catch(e){if("ENOENT"===e?.code)return this[ad]="w",this[hd]();throw e}else e=b.openSync(this[fd],this[ad],this[ld]);this[md](null,e)}[td](){if(this[ed]&&"number"==typeof this[rd]){let e=this[rd];this[rd]=void 0,b.closeSync(e),this.emit("close")}}[Ud](e){let t=!0;try{this[vd](null,b.writeSync(this[rd],e,0,e.length,this[Id])),t=!1}finally{if(t)try{
|
|
185
|
+
this[td]()}catch{}}}},Pd=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),Td=e=>Pd.get(e)||e,Dd=(e={})=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e)){t[Td(n)]=r}return void 0===t.chmod&&!1===t.noChmod&&(t.chmod=!0),delete t.noChmod,t},Od=(e,t,n,r,o)=>Object.assign((a=[],i,d)=>{Array.isArray(a)&&(i=a,a={}),"function"==typeof i&&(d=i,i=void 0),i=i?Array.from(i):[];let p=Dd(a);if(o?.(p,i),(e=>!!e.sync&&!!e.file)(p)){if("function"==typeof d)throw new TypeError("callback not supported for sync tar functions");return e(p,i)}if((e=>!e.sync&&!!e.file)(p)){let e=t(p,i);return d?e.then(()=>d(),d):e}
|
|
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}),xd=h.constants||{ZLIB_VERNUM:4736},Ld=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,
|
|
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},
|
|
190
|
-
if(!e||"object"!=typeof e)throw new TypeError("invalid options for ZlibBase constructor");if(super(e),this.#n=e.flush??0,this.#r=e.finishFlush??0,this.#o=e.fullFlushFlag??0,"function"!=typeof v[t])throw new TypeError("Compression method not supported: "+t);try{this.#a=new v[t](e)}catch(e){throw new
|
|
191
|
-
t="utf8"),"string"==typeof e&&(e=S.from(e,t)),this.#e)return;q(this.#a,"zlib binding closed");let r=this.#a._handle,o=r.close;r.close=()=>{};let a,i,d=this.#a.close;this.#a.close=()=>{},
|
|
192
|
-
;if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==e||this.#t!==t){this.flush(
|
|
193
|
-
e.finishFlush=e.finishFlush||
|
|
194
|
-
;var
|
|
195
|
-
this.gid=n?.gid??r?.gid??
|
|
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=
|
|
197
|
-
this.needPax=
|
|
198
|
-
o=D.dirname(o))}while(o!==a&&void 0===n);n||(n=[e.slice(0,99),"",!0])}return n},
|
|
199
|
-
!1)),
|
|
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},xd)),qd=S.concat,Bd=Object.getOwnPropertyDescriptor(S,"concat"),Vd=e=>e,Fd=!0===Bd?.writable||void 0!==Bd?.set?e=>{S.concat=e?Vd:qd}:e=>{},Md=Symbol("_superWrite"),Gd=class extends Error{code;errno;constructor(e,t){super("zlib: "+e.message,{cause:e}),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,t??this.constructor)}get name(){return"ZlibError"}},zd=Symbol("flushFlag"),Jd=class extends Xi{#e=!1;#t=!1;#n;#r;#o;#a;#i;get sawError(){return this.#e}get handle(){return this.#a}get flushFlag(){return this.#n}constructor(e,t){
|
|
190
|
+
if(!e||"object"!=typeof e)throw new TypeError("invalid options for ZlibBase constructor");if(super(e),this.#n=e.flush??0,this.#r=e.finishFlush??0,this.#o=e.fullFlushFlag??0,"function"!=typeof v[t])throw new TypeError("Compression method not supported: "+t);try{this.#a=new v[t](e)}catch(e){throw new Gd(e,this.constructor)}this.#i=e=>{this.#e||(this.#e=!0,this.close(),this.emit("error",e))},this.#a?.on("error",e=>this.#i(new Gd(e))),this.once("end",()=>this.close)}close(){this.#a&&(this.#a.close(),this.#a=void 0,this.emit("close"))}reset(){if(!this.#e)return q(this.#a,"zlib binding closed"),this.#a.reset?.()}flush(e){this.ended||("number"!=typeof e&&(e=this.#o),this.write(Object.assign(S.alloc(0),{[zd]:e})))}end(e,t,n){return"function"==typeof e&&(n=e,t=void 0,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&(t?this.write(e,t):this.write(e)),this.flush(this.#r),this.#t=!0,super.end(n)}get ended(){return this.#t}[Md](e){return super.write(e)}write(e,t,n){if("function"==typeof t&&(n=t,
|
|
191
|
+
t="utf8"),"string"==typeof e&&(e=S.from(e,t)),this.#e)return;q(this.#a,"zlib binding closed");let r=this.#a._handle,o=r.close;r.close=()=>{};let a,i,d=this.#a.close;this.#a.close=()=>{},Fd(!0);try{let t="number"==typeof e[zd]?e[zd]:this.#n;a=this.#a._processChunk(e,t),Fd(!1)}catch(e){Fd(!1),this.#i(new Gd(e,this.write))}finally{this.#a&&(this.#a._handle=r,r.close=o,this.#a.close=d,this.#a.removeAllListeners("error"))}if(this.#a&&this.#a.on("error",e=>this.#i(new Gd(e,this.write))),a)if(Array.isArray(a)&&a.length>0){let e=a[0];i=this[Md](S.from(e));for(let e=1;e<a.length;e++)i=this[Md](a[e])}else i=this[Md](S.from(a));return n&&n(),i}},Wd=class extends Jd{#e;#t;constructor(e,t){(e=e||{}).flush=e.flush||Ld.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Ld.Z_FINISH,e.fullFlushFlag=Ld.Z_FULL_FLUSH,super(e,t),this.#e=e.level,this.#t=e.strategy}params(e,t){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed")
|
|
192
|
+
;if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==e||this.#t!==t){this.flush(Ld.Z_SYNC_FLUSH),q(this.handle,"zlib binding closed");let n=this.handle.flush;this.handle.flush=(e,t)=>{"function"==typeof e&&(t=e,e=this.flushFlag),this.flush(e),t?.()};try{this.handle.params(e,t)}finally{this.handle.flush=n}this.handle&&(this.#e=e,this.#t=t)}}}},$d=class extends Wd{#e;constructor(e){super(e,"Gzip"),this.#e=e&&!!e.portable}[Md](e){return this.#e?(this.#e=!1,e[9]=255,super[Md](e)):super[Md](e)}},Hd=class extends Wd{constructor(e){super(e,"Unzip")}},Zd=class extends Jd{constructor(e,t){(e=e||{}).flush=e.flush||Ld.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Ld.BROTLI_OPERATION_FINISH,e.fullFlushFlag=Ld.BROTLI_OPERATION_FLUSH,super(e,t)}},Yd=class extends Zd{constructor(e){super(e,"BrotliCompress")}},Kd=class extends Zd{constructor(e){super(e,"BrotliDecompress")}},Xd=class extends Jd{constructor(e,t){(e=e||{}).flush=e.flush||Ld.ZSTD_e_continue,
|
|
193
|
+
e.finishFlush=e.finishFlush||Ld.ZSTD_e_end,e.fullFlushFlag=Ld.ZSTD_e_flush,super(e,t)}},Qd=class extends Xd{constructor(e){super(e,"ZstdCompress")}},ep=class extends Xd{constructor(e){super(e,"ZstdDecompress")}},tp=(e,t)=>{t[0]=128;for(var n=t.length;n>1;n--)t[n-1]=255&e,e=Math.floor(e/256)},np=(e,t)=>{t[0]=255;var n=!1;e*=-1;for(var r=t.length;r>1;r--){var o=255&e;e=Math.floor(e/256),n?t[r-1]=ap(o):0===o?t[r-1]=0:(n=!0,t[r-1]=ip(o))}},rp=e=>{for(var t=e.length,n=0,r=!1,o=t-1;o>-1;o--){var a,i=Number(e[o]);r?a=ap(i):0===i?a=i:(r=!0,a=ip(i)),0!==a&&(n-=a*Math.pow(256,t-o-1))}return n},op=e=>{for(var t=e.length,n=0,r=t-1;r>-1;r--){var o=Number(e[r]);0!==o&&(n+=o*Math.pow(256,t-r-1))}return n},ap=e=>255&(255^e),ip=e=>1+(255^e)&255;((e,t)=>{for(var n in t)mi(e,n,{get:t[n],enumerable:!0})})({},{code:()=>sp,isCode:()=>dp,isName:()=>pp,name:()=>lp})
|
|
194
|
+
;var dp=e=>lp.has(e),pp=e=>sp.has(e),lp=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),sp=new Map(Array.from(lp).map(e=>[e[1],e[0]])),up=class{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#e="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(e,t=0,n,r){Buffer.isBuffer(e)?this.decode(e,t||0,n,r):e&&this.#t(e)}decode(e,t,n,r){if(t||(t=0),!(e&&e.length>=t+512))throw new Error("need 512 bytes for header");this.path=n?.path??cp(e,t,100),this.mode=n?.mode??r?.mode??fp(e,t+100,8),this.uid=n?.uid??r?.uid??fp(e,t+108,8),
|
|
195
|
+
this.gid=n?.gid??r?.gid??fp(e,t+116,8),this.size=n?.size??r?.size??fp(e,t+124,12),this.mtime=n?.mtime??r?.mtime??vp(e,t+136,12),this.cksum=fp(e,t+148,12),r&&this.#t(r,!0),n&&this.#t(n);let o=cp(e,t+156,1);if(dp(o)&&(this.#e=o||"0"),"0"===this.#e&&"/"===this.path.slice(-1)&&(this.#e="5"),"5"===this.#e&&(this.size=0),this.linkpath=cp(e,t+157,100),"ustar\x0000"===e.subarray(t+257,t+265).toString())if(this.uname=n?.uname??r?.uname??cp(e,t+265,32),this.gname=n?.gname??r?.gname??cp(e,t+297,32),this.devmaj=n?.devmaj??r?.devmaj??fp(e,t+329,8)??0,this.devmin=n?.devmin??r?.devmin??fp(e,t+337,8)??0,0!==e[t+475]){let n=cp(e,t+345,155);this.path=n+"/"+this.path}else{let o=cp(e,t+345,130);o&&(this.path=o+"/"+this.path),this.atime=n?.atime??r?.atime??vp(e,t+476,12),this.ctime=n?.ctime??r?.ctime??vp(e,t+488,12)}let a=256;for(let n=t;n<t+148;n++)a+=e[n];for(let n=t+156;n<t+512;n++)a+=e[n];this.cksumValid=a===this.cksum,void 0===this.cksum&&256===a&&(this.nullBlock=!0)}#t(e,t=!1){
|
|
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=mp(this.path||"",n),o=r[0],a=r[1];this.needPax=!!r[2],this.needPax=Cp(e,t,100,o)||this.needPax,this.needPax=gp(e,t+100,8,this.mode)||this.needPax,this.needPax=gp(e,t+108,8,this.uid)||this.needPax,this.needPax=gp(e,t+116,8,this.gid)||this.needPax,this.needPax=gp(e,t+124,12,this.size)||this.needPax,this.needPax=jp(e,t+136,12,this.mtime)||this.needPax,e[t+156]=Number(this.#e.codePointAt(0)),this.needPax=Cp(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=Cp(e,t+265,32,this.uname)||this.needPax,this.needPax=Cp(e,t+297,32,this.gname)||this.needPax,this.needPax=gp(e,t+329,8,this.devmaj)||this.needPax,
|
|
197
|
+
this.needPax=gp(e,t+337,8,this.devmin)||this.needPax,this.needPax=Cp(e,t+345,n,a)||this.needPax,0!==e[t+475]?this.needPax=Cp(e,t+345,155,a)||this.needPax:(this.needPax=Cp(e,t+345,130,a)||this.needPax,this.needPax=jp(e,t+476,12,this.atime)||this.needPax,this.needPax=jp(e,t+488,12,this.ctime)||this.needPax);let i=256;for(let n=t;n<t+148;n++)i+=e[n];for(let n=t+156;n<t+512;n++)i+=e[n];return this.cksum=i,gp(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return"Unsupported"===this.#e?this.#e:lp.get(this.#e)}get typeKey(){return this.#e}set type(e){let t=String(sp.get(e));if(dp(t)||"Unsupported"===t)this.#e=t;else{if(!dp(e))throw new TypeError("invalid entry type: "+e);this.#e=e}}},mp=(e,t)=>{let n,r=e,o="",a=D.parse(e).root||".";if(Buffer.byteLength(r)<100)n=[r,o,!1];else{o=D.dirname(r),r=D.basename(r);do{Buffer.byteLength(r)<=100&&Buffer.byteLength(o)<=t?n=[r,o,!1]:Buffer.byteLength(r)>100&&Buffer.byteLength(o)<=t?n=[r.slice(0,99),o,!0]:(r=D.join(D.basename(o),r),
|
|
198
|
+
o=D.dirname(o))}while(o!==a&&void 0===n);n||(n=[e.slice(0,99),"",!0])}return n},cp=(e,t,n)=>e.subarray(t,t+n).toString("utf8").replace(/\0.*/,""),vp=(e,t,n)=>hp(fp(e,t,n)),hp=e=>void 0===e?void 0:new Date(1e3*e),fp=(e,t,n)=>128&Number(e[t])?(e=>{let t=e[0],n=128===t?op(e.subarray(1,e.length)):255===t?rp(e):null;if(null===n)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n})(e.subarray(t,t+n)):Ip(e,t,n),Ip=(e,t,n)=>(e=>isNaN(e)?void 0:e)(parseInt(e.subarray(t,t+n).toString("utf8").replace(/\0.*$/,"").trim(),8)),wp={12:8589934591,8:2097151},gp=(e,t,n,r)=>void 0!==r&&(r>wp[n]||r<0?(((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");e<0?np(e,t):tp(e,t)})(r,e.subarray(t,t+n)),!0):(bp(e,t,n,r),
|
|
199
|
+
!1)),bp=(e,t,n,r)=>e.write(yp(r,n),t,n,"ascii"),yp=(e,t)=>Rp(Math.floor(e).toString(8),t),Rp=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",jp=(e,t,n,r)=>void 0!==r&&gp(e,t,n,r.getTime()/1e3),Up=new Array(156).join("\0"),Cp=(e,t,n,r)=>void 0!==r&&(e.write(r+Up,t,n,"utf8"),r.length!==Buffer.byteLength(r)||r.length>n),Ep=class e{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,t=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=t,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){let e=this.encodeBody();if(""===e)return Buffer.allocUnsafe(0);let t=Buffer.byteLength(e),n=512*Math.ceil(1+t/512),r=Buffer.allocUnsafe(n);for(let e=0;e<512;e++)r[e]=0;new up({path:("PaxHeader/"+O(this.path??"")).slice(0,99),
|
|
200
200
|
mode:this.mode||420,uid:this.uid,gid:this.gid,size:t,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),r.write(e,512,t,"utf8");for(let e=t+512;e<r.length;e++)r[e]=0;return r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(void 0===this[e])return"";let t=this[e],n=" "+("dev"===e||"ino"===e||"nlink"===e?"SCHILY.":"")+e+"="+(t instanceof Date?t.getTime()/1e3:t)+"\n",r=Buffer.byteLength(n),o=Math.floor(Math.log(r)/Math.log(10))+1;return r+o>=Math.pow(10,o)&&(o+=1),o+r+n}
|
|
201
|
-
static parse(t,n,r=!1){return new e(
|
|
202
|
-
this.blockRemain=this.startBlockSize,this.type=e.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.path=
|
|
203
|
-
;return this.remain=Math.max(0,n-t),this.blockRemain=Math.max(0,r-t),!!this.ignore||(n>=t?super.write(e):super.write(e.subarray(0,n)))}#e(e,t=!1){e.path&&(e.path=
|
|
204
|
-
},
|
|
205
|
-
;[
|
|
206
|
-
if(n.nullBlock)this[
|
|
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})}[
|
|
208
|
-
0!==this[
|
|
209
|
-
;for(let t=0;void 0===this[
|
|
210
|
-
[
|
|
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[
|
|
212
|
-
n.write(r.subarray(0,o))}n.end()}}finally{if("number"==typeof t)try{L.closeSync(t)}catch{}}},(e,t)=>{let n=new
|
|
213
|
-
|
|
214
|
-
this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?
|
|
215
|
-
this.type=
|
|
216
|
-
this.header.encode()&&!this.noPax&&super.write(new
|
|
217
|
-
if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=
|
|
218
|
-
;if(void 0===e||void 0===t)throw new Error("cannot read file without first opening");
|
|
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)}[
|
|
220
|
-
;if(void 0===t||void 0===n)throw new Error("fd and buf must be set in READ method");let i=
|
|
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?
|
|
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
|
|
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}},
|
|
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++)
|
|
201
|
+
static parse(t,n,r=!1){return new e(_p(Sp(t),n),r)}},_p=(e,t)=>t?Object.assign({},t,e):e,Sp=e=>e.replace(/\n$/,"").split("\n").reduce(Np,Object.create(null)),Np=(e,t)=>{let n=parseInt(t,10);if(n!==Buffer.byteLength(t)+1)return e;let r=(t=t.slice((n+" ").length)).split("="),o=r.shift();if(!o)return e;let a=o.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),i=r.join("=");return e[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(1e3*Number(i)):/^[0-9]+$/.test(i)?+i:i,e},Ap="win32"!==(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform)?e=>e:e=>e&&e.replaceAll(/\\/g,"/"),kp=class extends Xi{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(e,t,n){switch(super({}),this.pause(),this.extended=t,this.globalExtended=n,this.header=e,this.remain=e.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),
|
|
202
|
+
this.blockRemain=this.startBlockSize,this.type=e.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.path=Ap(e.path),this.mode=e.mode,this.mode&&(this.mode=4095&this.mode),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=this.remain,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath?Ap(e.linkpath):void 0,this.uname=e.uname,this.gname=e.gname,t&&this.#e(t),n&&this.#e(n,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,r=this.blockRemain
|
|
203
|
+
;return this.remain=Math.max(0,n-t),this.blockRemain=Math.max(0,r-t),!!this.ignore||(n>=t?super.write(e):super.write(e.subarray(0,n)))}#e(e,t=!1){e.path&&(e.path=Ap(e.path)),e.linkpath&&(e.linkpath=Ap(e.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(e).filter(([e,n])=>!(null==n||"path"===e&&t))))}},Pp=(e,t,n,r={})=>{e.file&&(r.file=e.file),e.cwd&&(r.cwd=e.cwd),r.code=n instanceof Error&&n.code||t,r.tarCode=t,e.strict||!1===r.recoverable?n instanceof Error?e.emit("error",Object.assign(n,r)):e.emit("error",Object.assign(new Error(`${t}: ${n}`),r)):(n instanceof Error&&(r=Object.assign(n,r),n=n.message),e.emit("warn",t,n,r))
|
|
204
|
+
},Tp=Buffer.from([31,139]),Dp=Buffer.from([40,181,47,253]),Op=Math.max(Tp.length,Dp.length),xp=Symbol("state"),Lp=Symbol("writeEntry"),qp=Symbol("readEntry"),Bp=Symbol("nextEntry"),Vp=Symbol("processEntry"),Fp=Symbol("extendedHeader"),Mp=Symbol("globalExtendedHeader"),Gp=Symbol("meta"),zp=Symbol("emitMeta"),Jp=Symbol("buffer"),Wp=Symbol("queue"),$p=Symbol("ended"),Hp=Symbol("emittedEnd"),Zp=Symbol("emit"),Yp=Symbol("unzip"),Kp=Symbol("consumeChunk"),Xp=Symbol("consumeChunkSub"),Qp=Symbol("consumeBody"),el=Symbol("consumeMeta"),tl=Symbol("consumeHeader"),nl=Symbol("consuming"),rl=Symbol("bufferConcat"),ol=Symbol("maybeEnd"),al=Symbol("writing"),il=Symbol("aborted"),dl=Symbol("onDone"),pl=Symbol("sawValidEntry"),ll=Symbol("sawNullBlock"),sl=Symbol("sawEOF"),ul=Symbol("closeStream"),ml=()=>!0,cl=class extends t{file;strict;maxMetaEntrySize;filter;brotli;zstd;writable=!0;readable=!1;[Wp]=[];[Jp];[qp];[Lp];[xp]="begin";[Gp]="";[Fp];[Mp];[$p]=!1;[Yp];[il]=!1;[pl];[ll]=!1;[sl]=!1;[al]=!1
|
|
205
|
+
;[nl]=!1;[Hp]=!1;constructor(e={}){super(),this.file=e.file||"",this.on(dl,()=>{("begin"===this[xp]||!1===this[pl])&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(dl,e.ondone):this.on(dl,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||1048576,this.filter="function"==typeof e.filter?e.filter:ml;let t=e.file&&(e.file.endsWith(".tar.br")||e.file.endsWith(".tbr"));this.brotli=e.gzip||e.zstd||void 0===e.brotli?!!t&&void 0:e.brotli;let n=e.file&&(e.file.endsWith(".tar.zst")||e.file.endsWith(".tzst"));this.zstd=e.gzip||e.brotli||void 0===e.zstd?!!n||void 0:e.zstd,this.on("end",()=>this[ul]()),"function"==typeof e.onwarn&&this.on("warn",e.onwarn),"function"==typeof e.onReadEntry&&this.on("entry",e.onReadEntry)}warn(e,t,n={}){Pp(this,e,t,n)}[tl](e,t){let n;void 0===this[pl]&&(this[pl]=!1);try{n=new up(e,t,this[Fp],this[Mp])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}
|
|
206
|
+
if(n.nullBlock)this[ll]?(this[sl]=!0,"begin"===this[xp]&&(this[xp]="header"),this[Zp]("eof")):(this[ll]=!0,this[Zp]("nullBlock"));else if(this[ll]=!1,n.cksumValid)if(n.path){let e=n.type;if(/^(Symbolic)?Link$/.test(e)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(/^(Symbolic)?Link$/.test(e)||/^(Global)?ExtendedHeader$/.test(e)||!n.linkpath){let e=this[Lp]=new kp(n,this[Fp],this[Mp]);if(!this[pl])if(e.remain){let t=()=>{e.invalid||(this[pl]=!0)};e.on("end",t)}else this[pl]=!0;e.meta?e.size>this.maxMetaEntrySize?(e.ignore=!0,this[Zp]("ignoredEntry",e),this[xp]="ignore",e.resume()):e.size>0&&(this[Gp]="",e.on("data",e=>this[Gp]+=e),this[xp]="meta"):(this[Fp]=void 0,e.ignore=e.ignore||!this.filter(e.path,e),e.ignore?(this[Zp]("ignoredEntry",e),this[xp]=e.remain?"ignore":"header",e.resume()):(e.remain?this[xp]="body":(this[xp]="header",e.end()),this[qp]?this[Wp].push(e):(this[Wp].push(e),this[Bp]())))
|
|
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})}[ul](){queueMicrotask(()=>this.emit("close"))}[Vp](e){let t=!0;if(e)if(Array.isArray(e)){let[t,...n]=e;this.emit(t,...n)}else this[qp]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",()=>this[Bp]()),t=!1);else this[qp]=void 0,t=!1;return t}[Bp](){do{}while(this[Vp](this[Wp].shift()));if(0===this[Wp].length){let e=this[qp];!e||e.flowing||e.size===e.remain?this[al]||this.emit("drain"):e.once("drain",()=>this.emit("drain"))}}[Qp](e,t){let n=this[Lp];if(!n)throw new Error("attempt to consume body without entry??");let r=n.blockRemain??0,o=r>=e.length&&0===t?e:e.subarray(t,t+r);return n.write(o),n.blockRemain||(this[xp]="header",this[Lp]=void 0,n.end()),o.length}[el](e,t){let n=this[Lp],r=this[Qp](e,t);return!this[Lp]&&n&&this[zp](n),r}[Zp](e,t,n){
|
|
208
|
+
0!==this[Wp].length||this[qp]?this[Wp].push([e,t,n]):this.emit(e,t,n)}[zp](e){switch(this[Zp]("meta",this[Gp]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Fp]=Ep.parse(this[Gp],this[Fp],!1);break;case"GlobalExtendedHeader":this[Mp]=Ep.parse(this[Gp],this[Mp],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let e=this[Fp]??Object.create(null);this[Fp]=e,e.path=this[Gp].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let e=this[Fp]||Object.create(null);this[Fp]=e,e.linkpath=this[Gp].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+e.type)}}abort(e){this[il]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8")),this[il])return n?.(),!1;if((void 0===this[Yp]||void 0===this.brotli&&!1===this[Yp])&&e){if(this[Jp]&&(e=Buffer.concat([this[Jp],e]),this[Jp]=void 0),e.length<Op)return this[Jp]=e,n?.(),!0
|
|
209
|
+
;for(let t=0;void 0===this[Yp]&&t<Tp.length;t++)e[t]!==Tp[t]&&(this[Yp]=!1);let t=!1;if(!1===this[Yp]&&!1!==this.zstd){t=!0;for(let n=0;n<Dp.length;n++)if(e[n]!==Dp[n]){t=!1;break}}let r=void 0===this.brotli&&!t;if(!1===this[Yp]&&r)if(e.length<512){if(!this[$p])return this[Jp]=e,n?.(),!0;this.brotli=!0}else try{new up(e.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(void 0===this[Yp]||!1===this[Yp]&&(this.brotli||t)){let r=this[$p];this[$p]=!1,this[Yp]=void 0===this[Yp]?new Hd({}):t?new ep({}):new Kd({}),this[Yp].on("data",e=>this[Kp](e)),this[Yp].on("error",e=>this.abort(e)),this[Yp].on("end",()=>{this[$p]=!0,this[Kp]()}),this[al]=!0;let o=!!this[Yp][r?"end":"write"](e);return this[al]=!1,n?.(),o}}this[al]=!0,this[Yp]?this[Yp].write(e):this[Kp](e),this[al]=!1;let r=!(this[Wp].length>0)&&(!this[qp]||this[qp].flowing);return!r&&0===this[Wp].length&&this[qp]?.once("drain",()=>this.emit("drain")),n?.(),r}[rl](e){e&&!this[il]&&(this[Jp]=this[Jp]?Buffer.concat([this[Jp],e]):e)}
|
|
210
|
+
[ol](){if(this[$p]&&!this[Hp]&&!this[il]&&!this[nl]){this[Hp]=!0;let e=this[Lp];if(e&&e.blockRemain){let t=this[Jp]?this[Jp].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[Jp]&&e.write(this[Jp]),e.end()}this[Zp](dl)}}[Kp](e){if(this[nl]&&e)this[rl](e);else if(e||this[Jp]){if(e){if(this[nl]=!0,this[Jp]){this[rl](e);let t=this[Jp];this[Jp]=void 0,this[Xp](t)}else this[Xp](e);for(;this[Jp]&&this[Jp]?.length>=512&&!this[il]&&!this[sl];){let e=this[Jp];this[Jp]=void 0,this[Xp](e)}this[nl]=!1}}else this[ol]();(!this[Jp]||this[$p])&&this[ol]()}[Xp](e){let t=0,n=e.length;for(;t+512<=n&&!this[il]&&!this[sl];)switch(this[xp]){case"begin":case"header":this[tl](e,t),t+=512;break;case"ignore":case"body":t+=this[Qp](e,t);break;case"meta":t+=this[el](e,t);break;default:throw new Error("invalid state: "+this[xp])}t<n&&(this[Jp]=this[Jp]?Buffer.concat([e.subarray(t),this[Jp]]):e.subarray(t))}end(e,t,n){
|
|
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[il]||(this[Yp]?(e&&this[Yp].write(e),this[Yp].end()):(this[$p]=!0,(void 0===this.brotli||void 0===this.zstd)&&(e=e||Buffer.alloc(0)),e&&this.write(e),this[ol]())),this}},vl=e=>{let t=e.length-1,n=-1;for(;t>-1&&"/"===e.charAt(t);)n=t,t--;return-1===n?e:e.slice(0,n)},hl=(e,t)=>{let n=new Map(t.map(e=>[vl(e),!0])),r=e.filter,o=(e,t="")=>{let r,a=t||R(e).root||".";if(e===a)r=!1;else{let t=n.get(e);r=void 0!==t?t:o(j(e),a)}return n.set(e,r),r};e.filter=r?(e,t)=>r(e,t)&&o(vl(e)):e=>o(vl(e))},fl=Od(e=>{let t,n=new cl(e),r=e.file;try{t=L.openSync(r,"r");let o=L.fstatSync(t),a=e.maxReadSize||16777216;if(o.size<a){let e=Buffer.allocUnsafe(o.size),r=L.readSync(t,e,0,o.size,0);n.end(r===e.byteLength?e:e.subarray(0,r))}else{let e=0,r=Buffer.allocUnsafe(a);for(;e<o.size;){let o=L.readSync(t,r,0,a,e);if(0===o)break;e+=o,
|
|
212
|
+
n.write(r.subarray(0,o))}n.end()}}finally{if("number"==typeof t)try{L.closeSync(t)}catch{}}},(e,t)=>{let n=new cl(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("end",e),L.stat(o,(e,a)=>{if(e)t(e);else{let e=new Sd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new cl(e),e=>new cl(e),(e,t)=>{t?.length&&hl(e,t),e.noResume||(e=>{let t=e.onReadEntry;e.onReadEntry=t?e=>{t(e),e.resume()}:e=>e.resume()})(e)}),Il=(e,t,n)=>(e&=4095,n&&(e=-19&e|384),t&&(256&e&&(e|=64),32&e&&(e|=8),4&e&&(e|=1)),e),{isAbsolute:wl,parse:gl}=T,bl=e=>{let t="",n=gl(e);for(;wl(e)||n.root;){let r="/"===e.charAt(0)&&"//?/"!==e.slice(0,4)?"/":n.root;e=e.slice(r.length),t+=r,n=gl(e)}return[t,e]},yl=["|","<",">","?",":"],Rl=yl.map(e=>String.fromCodePoint(61440+Number(e.codePointAt(0)))),jl=new Map(yl.map((e,t)=>[e,Rl[t]])),Ul=new Map(Rl.map((e,t)=>[e,yl[t]])),Cl=e=>yl.reduce((e,t)=>e.split(t).join(jl.get(t)),e),El=(e,t)=>t?(e=Ap(e).replace(/^\.(\/|$)/,""),
|
|
213
|
+
vl(t)+"/"+e):Ap(e),_l=Symbol("process"),Sl=Symbol("file"),Nl=Symbol("directory"),Al=Symbol("symlink"),kl=Symbol("hardlink"),Pl=Symbol("header"),Tl=Symbol("read"),Dl=Symbol("lstat"),Ol=Symbol("onlstat"),xl=Symbol("onread"),Ll=Symbol("onreadlink"),ql=Symbol("openfile"),Bl=Symbol("onopenfile"),Vl=Symbol("close"),Fl=Symbol("mode"),Ml=Symbol("awaitDrain"),Gl=Symbol("ondrain"),zl=Symbol("prefix"),Jl=class extends Xi{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#e=!1;constructor(e,t={}){let n=Dd(t);super(),this.path=Ap(e),this.portable=!!n.portable,this.maxReadSize=n.maxReadSize||16777216,this.linkCache=n.linkCache||new Map,this.statCache=n.statCache||new Map,this.preservePaths=!!n.preservePaths,this.cwd=Ap(n.cwd||process.cwd()),this.strict=!!n.strict,
|
|
214
|
+
this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.mtime=n.mtime,this.prefix=n.prefix?Ap(n.prefix):void 0,this.onWriteEntry=n.onWriteEntry,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let r=!1;if(!this.preservePaths){let[e,t]=bl(this.path);e&&"string"==typeof t&&(this.path=t,r=e)}var o;this.win32=!!n.win32||"win32"===process.platform,this.win32&&(this.path=(o=this.path.replaceAll(/\\/g,"/"),Rl.reduce((e,t)=>e.split(t).join(Ul.get(t)),o)),e=e.replaceAll(/\\/g,"/")),this.absolute=Ap(n.absolute||y.resolve(this.cwd,e)),""===this.path&&(this.path="./"),r&&this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path});let a=this.statCache.get(this.absolute);a?this[Ol](a):this[Dl]()}warn(e,t,n={}){return Pp(this,e,t,n)}emit(e,...t){return"error"===e&&(this.#e=!0),super.emit(e,...t)}[Dl](){b.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ol](t)})}[Ol](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),
|
|
215
|
+
this.type=Hl(e),this.emit("stat",e),this[_l]()}[_l](){switch(this.type){case"File":return this[Sl]();case"Directory":return this[Nl]();case"SymbolicLink":return this[Al]();default:return this.end()}}[Fl](e){return Il(e,"Directory"===this.type,this.portable)}[zl](e){return El(e,this.prefix)}[Pl](){if(!this.stat)throw new Error("cannot write header before stat");"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new up({path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,mode:this[Fl](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:"Unsupported"===this.type?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),
|
|
216
|
+
this.header.encode()&&!this.noPax&&super.write(new Ep({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());let e=this.header?.block;if(!e)throw new Error("failed to encode header");super.write(e)}[Nl](){if(!this.stat)throw new Error("cannot create directory entry without stat");"/"!==this.path.slice(-1)&&(this.path+="/"),this.stat.size=0,this[Pl](),this.end()}[Al](){b.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ll](t)})}[Ll](e){this.linkpath=Ap(e),this[Pl](),this.end()}[kl](e){
|
|
217
|
+
if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=Ap(y.relative(this.cwd,e)),this.stat.size=0,this[Pl](),this.end()}[Sl](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){let e=`${this.stat.dev}:${this.stat.ino}`,t=this.linkCache.get(e);if(0===t?.indexOf(this.cwd))return this[kl](t);this.linkCache.set(e,this.absolute)}if(this[Pl](),0===this.stat.size)return this.end();this[ql]()}[ql](){b.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[Bl](t)})}[Bl](e){if(this.fd=e,this.#e)return this[Vl]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let t=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(t),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Tl]()}[Tl](){let{fd:e,buf:t,offset:n,length:r,pos:o}=this
|
|
218
|
+
;if(void 0===e||void 0===t)throw new Error("cannot read file without first opening");b.read(e,t,n,r,o,(e,t)=>{if(e)return this[Vl](()=>this.emit("error",e));this[xl](t)})}[Vl](e=()=>{}){void 0!==this.fd&&b.close(this.fd,e)}[xl](e){if(e<=0&&this.remain>0){let e=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[Vl](()=>this.emit("error",e))}if(e>this.remain){let e=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[Vl](()=>this.emit("error",e))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(e===this.remain)for(let t=e;t<this.length&&e<this.blockRemain;t++)this.buf[t+this.offset]=0,e++,this.remain++;let t=0===this.offset&&e===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+e);this.write(t)?this[Gl]():this[Ml](()=>this[Gl]())}[Ml](e){this.once("drain",e)}write(e,t,n){if("function"==typeof t&&(n=t,t=void 0),
|
|
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)}[Gl](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Vl](e=>e?this.emit("error",e):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Tl]()}},Wl=class extends Jl{sync=!0;[Dl](){this[Ol](b.lstatSync(this.absolute))}[Al](){this[Ll](b.readlinkSync(this.absolute))}[ql](){this[Bl](b.openSync(this.absolute,"r"))}[Tl](){let e=!0;try{let{fd:t,buf:n,offset:r,length:o,pos:a}=this
|
|
220
|
+
;if(void 0===t||void 0===n)throw new Error("fd and buf must be set in READ method");let i=b.readSync(t,n,r,o,a);this[xl](i),e=!1}finally{if(e)try{this[Vl](()=>{})}catch{}}}[Ml](e){e()}[Vl](e=()=>{}){void 0!==this.fd&&b.closeSync(this.fd),e()}},$l=class extends Xi{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(e,t,n={}){return Pp(this,e,t,n)}constructor(e,t={}){let n=Dd(t);super(),this.preservePaths=!!n.preservePaths,this.portable=!!n.portable,this.strict=!!n.strict,this.noPax=!!n.noPax,this.noMtime=!!n.noMtime,this.onWriteEntry=n.onWriteEntry,this.readEntry=e;let{type:r}=e;if("Unsupported"===r)throw new Error("writing entry that should be ignored");this.type=r,"Directory"===this.type&&this.portable&&(this.noMtime=!0),this.prefix=n.prefix,this.path=Ap(e.path),this.mode=void 0!==e.mode?this[Fl](e.mode):void 0,
|
|
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?Ap(e.linkpath):void 0,"function"==typeof n.onwarn&&this.on("warn",n.onwarn);let o=!1;if(!this.preservePaths){let[e,t]=bl(this.path);e&&"string"==typeof t&&(this.path=t,o=e)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.onWriteEntry?.(this),this.header=new up({path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),
|
|
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 Ep({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[zl](this.path),linkpath:"Link"===this.type&&void 0!==this.linkpath?this[zl](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());let a=this.header?.block;if(!a)throw new Error("failed to encode header");super.write(a),e.pipe(this)}[zl](e){return El(e,this.prefix)}[Fl](e){return Il(e,"Directory"===this.type,this.portable)}write(e,t,n){"function"==typeof t&&(n=t,t=void 0),"string"==typeof e&&(e=Buffer.from(e,"string"==typeof t?t:"utf8"));let r=e.length
|
|
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}},Hl=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported",Zl=class e{tail;head;length=0;static create(t=[]){return new e(t)}constructor(e=[]){for(let t of e)this.push(t)}*[Symbol.iterator](){for(let e=this.head;e;e=e.next)yield e.value}removeNode(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");let t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),this.length--,e.next=void 0,e.prev=void 0,e.list=void 0,t}unshiftNode(e){if(e===this.head)return
|
|
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++)Kl(this,e[t]);return this.length}unshift(...e){for(var t=0,n=e.length;t<n;t++)Xl(this,e[t]);return this.length}pop(){if(!this.tail)return;let e=this.tail.value,t=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,t.list=void 0,this.length--,e}shift(){if(!this.head)return;let e=this.head.value,t=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,t.list=void 0,this.length--,e}forEach(e,t){t=t||this;for(let n=this.head,r=0;n;r++)e.call(t,n.value,r,this),n=n.next}forEachReverse(e,t){t=t||this;for(let n=this.tail,r=this.length-1;n;r--)e.call(t,n.value,r,this),n=n.prev}get(e){
|
|
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=
|
|
227
|
-
let r=t,o=t?t.next:e.head,a=new
|
|
228
|
-
},
|
|
229
|
-
this.readdirCache=e.readdirCache||new Map,this.onWriteEntry=e.onWriteEntry,this[
|
|
230
|
-
this[
|
|
231
|
-
e.pending=!0,this[
|
|
232
|
-
;e===this[
|
|
233
|
-
;constructor(e){super(e),this[
|
|
234
|
-
;return
|
|
235
|
-
;if("ENOTDIR"!==o.code&&"ENOTSUP"!==o.code)return r(o)}if(o||!a.length)return
|
|
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=
|
|
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=
|
|
238
|
-
|
|
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=Yl(this,r,e);return o}reverse(){let e=this.head,t=this.tail;for(let t=e;t;t=t.prev){let e=t.prev;t.prev=t.next,t.next=e}return this.head=t,this.tail=e,this}};function Yl(e,t,n){
|
|
227
|
+
let r=t,o=t?t.next:e.head,a=new Ql(n,r,o,e);return void 0===a.next&&(e.tail=a),void 0===a.prev&&(e.head=a),e.length++,a}function Kl(e,t){e.tail=new Ql(t,e.tail,void 0,e),e.head||(e.head=e.tail),e.length++}function Xl(e,t){e.head=new Ql(t,void 0,e.head,e),e.tail||(e.tail=e.head),e.length++}var Ql=class{list;next;prev;value;constructor(e,t,n,r){this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=void 0,n?(n.prev=this,this.next=n):this.next=void 0}},es=class{path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(e,t){this.path=e||"./",this.absolute=t}
|
|
228
|
+
},ts=Buffer.alloc(1024),ns=Symbol("onStat"),rs=Symbol("ended"),os=Symbol("queue"),as=Symbol("current"),is=Symbol("process"),ds=Symbol("processing"),ps=Symbol("processJob"),ls=Symbol("jobs"),ss=Symbol("jobDone"),us=Symbol("addFSEntry"),ms=Symbol("addTarEntry"),cs=Symbol("stat"),vs=Symbol("readdir"),hs=Symbol("onreaddir"),fs=Symbol("pipe"),Is=Symbol("entry"),ws=Symbol("entryOpt"),gs=Symbol("writeEntryClass"),bs=Symbol("write"),ys=Symbol("ondrain"),Rs=class extends Xi{sync=!1;opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[gs];onWriteEntry;[os];[ls]=0;[ds]=!1;[rs]=!1;constructor(e={}){if(super(),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Ap(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,
|
|
229
|
+
this.readdirCache=e.readdirCache||new Map,this.onWriteEntry=e.onWriteEntry,this[gs]=Jl,"function"==typeof e.onwarn&&this.on("warn",e.onwarn),this.portable=!!e.portable,e.gzip||e.brotli||e.zstd){if((e.gzip?1:0)+(e.brotli?1:0)+(e.zstd?1:0)>1)throw new TypeError("gzip, brotli, zstd are mutually exclusive");if(e.gzip&&("object"!=typeof e.gzip&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new $d(e.gzip)),e.brotli&&("object"!=typeof e.brotli&&(e.brotli={}),this.zip=new Yd(e.brotli)),e.zstd&&("object"!=typeof e.zstd&&(e.zstd={}),this.zip=new Qd(e.zstd)),!this.zip)throw new Error("impossible");let t=this.zip;t.on("data",e=>super.write(e)),t.on("end",()=>super.end()),t.on("drain",()=>this[ys]()),this.on("resume",()=>t.resume())}else this.on("drain",this[ys]);this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,e.mtime&&(this.mtime=e.mtime),this.filter="function"==typeof e.filter?e.filter:()=>!0,this[os]=new Zl,this[ls]=0,this.jobs=Number(e.jobs)||4,
|
|
230
|
+
this[ds]=!1,this[rs]=!1}[bs](e){return super.write(e)}add(e){return this.write(e),this}end(e,t,n){return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e&&this.add(e),this[rs]=!0,this[is](),n&&n(),this}write(e){if(this[rs])throw new Error("write after end");return e instanceof kp?this[ms](e):this[us](e),this.flowing}[ms](e){let t=Ap(y.resolve(this.cwd,e.path));if(this.filter(e.path,e)){let n=new es(e.path,t);n.entry=new $l(e,this[ws](n)),n.entry.on("end",()=>this[ss](n)),this[ls]+=1,this[os].push(n)}else e.resume();this[is]()}[us](e){let t=Ap(y.resolve(this.cwd,e));this[os].push(new es(e,t)),this[is]()}[cs](e){e.pending=!0,this[ls]+=1;let t=this.follow?"stat":"lstat";b[t](e.absolute,(t,n)=>{e.pending=!1,this[ls]-=1,t?this.emit("error",t):this[ns](e,n)})}[ns](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)?t.isFile()&&t.nlink>1&&e===this[as]&&!this.linkCache.get(`${t.dev}:${t.ino}`)&&!this.sync&&this[ps](e):e.ignore=!0,this[is]()}[vs](e){
|
|
231
|
+
e.pending=!0,this[ls]+=1,b.readdir(e.absolute,(t,n)=>{if(e.pending=!1,this[ls]-=1,t)return this.emit("error",t);this[hs](e,n)})}[hs](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[is]()}[is](){if(!this[ds]){this[ds]=!0;for(let e=this[os].head;e&&this[ls]<this.jobs;e=e.next)if(this[ps](e.value),e.value.ignore){let t=e.next;this[os].removeNode(e),e.next=t}this[ds]=!1,this[rs]&&0===this[os].length&&0===this[ls]&&(this.zip?this.zip.end(ts):(super.write(ts),super.end()))}}get[as](){return this[os]&&this[os].head&&this[os].head.value}[ss](e){this[os].shift(),this[ls]-=1,this[is]()}[ps](e){if(!e.pending){if(e.entry)return void(e===this[as]&&!e.piped&&this[fs](e));if(!e.stat){let t=this.statCache.get(e.absolute);t?this[ns](e,t):this[cs](e)}if(e.stat&&!e.ignore){if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){let t=this.readdirCache.get(e.absolute);if(t?this[hs](e,t):this[vs](e),!e.readdir)return}if(e.entry=this[Is](e),!e.entry)return void(e.ignore=!0)
|
|
232
|
+
;e===this[as]&&!e.piped&&this[fs](e)}}}[ws](e){return{onwarn:(e,t,n)=>this.warn(e,t,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[Is](e){this[ls]+=1;try{return new this[gs](e.path,this[ws](e)).on("end",()=>this[ss](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[ys](){this[as]&&this[as].entry&&this[as].entry.resume()}[fs](e){e.piped=!0,e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[us](r+t)});let t=e.entry,n=this.zip;if(!t)throw new Error("cannot pipe without source");n?t.on("data",e=>{n.write(e)||t.pause()}):t.on("data",e=>{super.write(e)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(e,t,n={}){Pp(this,e,t,n)}},js=class extends Rs{sync=!0
|
|
233
|
+
;constructor(e){super(e),this[gs]=Wl}pause(){}resume(){}[cs](e){let t=this.follow?"statSync":"lstatSync";this[ns](e,b[t](e.absolute))}[vs](e){this[hs](e,b.readdirSync(e.absolute))}[fs](e){let t=e.entry,n=this.zip;if(e.readdir&&e.readdir.forEach(t=>{let n=e.path,r="./"===n?"":n.replace(/\/*$/,"/");this[us](r+t)}),!t)throw new Error("Cannot pipe without source");n?t.on("data",e=>{n.write(e)}):t.on("data",e=>{super[bs](e)})}},Us=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?fl({file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Cs=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await fl({file:P.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>{e.add(t)}}):e.add(n);e.end()},Es=Od((e,t)=>{let n=new js(e),r=new kd(e.file,{mode:e.mode||438});n.pipe(r),Us(n,t)},(e,t)=>{let n=new Rs(e),r=new Ad(e.file,{mode:e.mode||438});n.pipe(r);let o=new Promise((e,t)=>{r.on("error",t),r.on("close",e),n.on("error",t)})
|
|
234
|
+
;return Cs(n,t).catch(e=>n.emit("error",e)),o},(e,t)=>{let n=new js(e);return Us(n,t),n},(e,t)=>{let n=new Rs(e);return Cs(n,t).catch(e=>n.emit("error",e)),n},(e,t)=>{if(!t?.length)throw new TypeError("no paths specified to add to archive")}),_s="win32"===(process.env.__FAKE_PLATFORM__||process.platform),{O_CREAT:Ss,O_NOFOLLOW:Ns,O_TRUNC:As,O_WRONLY:ks}=b.constants,Ps=Number(process.env.__FAKE_FS_O_FILENAME__)||b.constants.UV_FS_O_FILEMAP||0,Ts=Ps|As|Ss|ks,Ds=_s||"number"!=typeof Ns?null:Ns|As|Ss|ks,Os=null!==Ds?()=>Ds:_s&&!!Ps?e=>e<524288?Ts:"w":()=>"w",xs=(e,t,n)=>{try{return L.lchownSync(e,t,n)}catch(e){if("ENOENT"!==e?.code)throw e}},Ls=(e,t,n,r)=>{L.lchown(e,t,n,e=>{r(e&&"ENOENT"!==e?.code?e:null)})},qs=(e,t,n,r,o)=>{if(t.isDirectory())Bs(P.resolve(e,t.name),n,r,a=>{if(a)return o(a);let i=P.resolve(e,t.name);Ls(i,n,r,o)});else{let a=P.resolve(e,t.name);Ls(a,n,r,o)}},Bs=(e,t,n,r)=>{L.readdir(e,{withFileTypes:!0},(o,a)=>{if(o){if("ENOENT"===o.code)return r()
|
|
235
|
+
;if("ENOTDIR"!==o.code&&"ENOTSUP"!==o.code)return r(o)}if(o||!a.length)return Ls(e,t,n,r);let i=a.length,d=null,p=o=>{if(!d){if(o)return r(d=o);if(0===--i)return Ls(e,t,n,r)}};for(let r of a)qs(e,r,t,n,p)})},Vs=(e,t,n,r)=>{t.isDirectory()&&Fs(P.resolve(e,t.name),n,r),xs(P.resolve(e,t.name),n,r)},Fs=(e,t,n)=>{let r;try{r=L.readdirSync(e,{withFileTypes:!0})}catch(r){let o=r;if("ENOENT"===o?.code)return;if("ENOTDIR"===o?.code||"ENOTSUP"===o?.code)return xs(e,t,n);throw o}for(let o of r)Vs(e,o,t,n);return xs(e,t,n)},Ms=class extends Error{path;code;syscall="chdir";constructor(e,t){super(`${t}: Cannot cd into '${e}'`),this.path=e,this.code=t}get name(){return"CwdError"}},Gs=class extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(e,t){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=e,this.path=t}get name(){return"SymlinkError"}},zs=(e,t,n)=>{e=Ap(e)
|
|
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=Ap(t.cwd),m=(t,r)=>{t?n(t):r&&p?Bs(r,i,d,e=>m(e)):a?L.chmod(e,o,n):n()};if(e===u)return((e,t)=>{L.stat(e,(n,r)=>{(n||!r.isDirectory())&&(n=new Ms(e,n?.code||"ENOTDIR")),t(n)})})(e,m);if(l)return F.mkdir(e,{mode:o,recursive:!0}).then(e=>m(null,e??void 0),m);let c=Ap(P.relative(u,e)).split("/");Js(u,c,o,s,u,void 0,m)},Js=(e,t,n,r,o,a,i)=>{if(0===t.length)return i(null,a);let d=t.shift(),p=Ap(P.resolve(e+"/"+d));L.mkdir(p,n,Ws(p,t,n,r,o,a,i))},Ws=(e,t,n,r,o,a,i)=>d=>{d?L.lstat(e,(p,l)=>{if(p)p.path=p.path&&Ap(p.path),i(p);else if(l.isDirectory())Js(e,t,n,r,o,a,i);else if(r)L.unlink(e,d=>{if(d)return i(d);L.mkdir(e,n,Ws(e,t,n,r,o,a,i))});else{if(l.isSymbolicLink())return i(new Gs(e,e+"/"+t.join("/")));i(d)}}):Js(e,t,n,r,o,a=a||e,i)},$s=(e,t)=>{e=Ap(e)
|
|
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=Ap(t.cwd),u=t=>{t&&d&&Fs(t,a,i),o&&L.chmodSync(e,r)};if(e===s)return(e=>{let t,n=!1;try{n=L.statSync(e).isDirectory()}catch(e){t=e?.code}finally{if(!n)throw new Ms(e,t??"ENOTDIR")}})(s),u();if(p)return u(L.mkdirSync(e,{mode:r,recursive:!0})??void 0);let m,c=Ap(P.relative(s,e)).split("/");for(let e=c.shift(),t=s;e&&(t+="/"+e);e=c.shift()){t=Ap(P.resolve(t));try{L.mkdirSync(t,r),m=m||t}catch{let e=L.lstatSync(t);if(e.isDirectory())continue;if(l){L.unlinkSync(t),L.mkdirSync(t,r),m=m||t;continue}if(e.isSymbolicLink())return new Gs(t,t+"/"+c.join("/"))}}return u(m)},Hs=Object.create(null),Zs=new Set,Ys="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Ks=class{#e=new Map;#t=new Map;#n=new Set;reserve(e,t){e=Ys?["win32 parallelization disabled"]:e.map(e=>vl(x((e=>{
|
|
238
|
+
Zs.has(e)?Zs.delete(e):Hs[e]=e.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),Zs.add(e);let t=Hs[e],n=Zs.size-1e4;if(n>1e3)for(let e of Zs)if(Zs.delete(e),delete Hs[e],--n<=0)break;return t})(e))));let n=new Set(e.map(e=>e.split("/").slice(0,-1).reduce((e,t)=>{let n=e.at(-1);return void 0!==n&&(t=x(n,t)),e.push(t||"/"),e},[])).reduce((e,t)=>e.concat(t)));this.#t.set(t,{dirs:n,paths:e});for(let n of e){let e=this.#e.get(n);e?e.push(t):this.#e.set(n,[t])}for(let e of n){let n=this.#e.get(e);if(n){let e=n.at(-1);e instanceof Set?e.add(t):n.push(new Set([t]))}else this.#e.set(e,[new Set([t])])}return this.#o(t)}#r(e){let t=this.#t.get(e);if(!t)throw new Error("function does not have any path reservations");return{paths:t.paths.map(e=>this.#e.get(e)),dirs:[...t.dirs].map(e=>this.#e.get(e))}}check(e){let{paths:t,dirs:n}=this.#r(e);return t.every(t=>t&&t[0]===e)&&n.every(t=>t&&t[0]instanceof Set&&t[0].has(e))}#o(e){return!(this.#n.has(e)||!this.check(e))&&(this.#n.add(e),
|
|
239
239
|
e(()=>this.#a(e)),!0)}#a(e){if(!this.#n.has(e))return!1;let t=this.#t.get(e);if(!t)throw new Error("invalid reservation");let{paths:n,dirs:r}=t,o=new Set;for(let t of n){let n=this.#e.get(t);if(!n||n?.[0]!==e)continue;let r=n[1];if(r)if(n.shift(),"function"==typeof r)o.add(r);else for(let e of r)o.add(e);else this.#e.delete(t)}for(let t of r){let n=this.#e.get(t),r=n?.[0];if(n&&r instanceof Set){if(1===r.size&&1===n.length){this.#e.delete(t);continue}if(1===r.size){n.shift();let e=n[0];"function"==typeof e&&o.add(e)}else r.delete(e)}}return this.#n.delete(e),o.forEach(e=>this.#o(e)),!0}
|
|
240
|
-
},
|
|
241
|
-
this[
|
|
242
|
-
this.unlink=!!e.unlink,this.cwd=
|
|
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}[
|
|
244
|
-
entry:e,path:
|
|
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}[
|
|
246
|
-
;"number"==typeof r&&"number"==typeof i&&L.fchown(n,r,i,e=>e?L.chown(t,r,i,t=>a(t&&e)):a())}a()});let i=this.transform&&this.transform(e)||e;i!==e&&(i.on("error",n=>{this[
|
|
247
|
-
;this[
|
|
248
|
-
;return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?L.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return L.rmdir(String(e.absolute),t=>this[
|
|
249
|
-
if(!this[
|
|
250
|
-
n=L.openSync(String(e.absolute),
|
|
251
|
-
processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t})}catch(e){return e}}[
|
|
252
|
-
file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},
|
|
253
|
-
L.open(e.file,a,i)):d||!p?o(d):void L.fstat(p,(a,i)=>{if(a)return L.close(p,()=>o(a));((t,n,r)=>{let o=(e,n)=>{e?L.close(t,t=>r(e)):r(null,n)},a=0;if(0===n)return o(null,0);let i=0,d=Buffer.alloc(512),p=(r,l)=>{if(r||void 0===l)return o(r);if(i+=l,i<512&&l)return L.read(t,d,i,d.length-i,a+i,p);if(0===a&&31===d[0]&&139===d[1])return o(new Error("cannot append to compressed archives"));if(i<512)return o(null,a);let s=new
|
|
254
|
-
;if(e.gzip||e.brotli||e.zstd||e.file.endsWith(".br")||e.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t?.length)throw new TypeError("no paths specified to add/replace")});
|
|
240
|
+
},Xs=Symbol("onEntry"),Qs=Symbol("checkFs"),eu=Symbol("checkFs2"),tu=Symbol("isReusable"),nu=Symbol("makeFs"),ru=Symbol("file"),ou=Symbol("directory"),au=Symbol("link"),iu=Symbol("symlink"),du=Symbol("hardlink"),pu=Symbol("ensureNoSymlink"),lu=Symbol("unsupported"),su=Symbol("checkPath"),uu=Symbol("stripAbsolutePath"),mu=Symbol("mkdir"),cu=Symbol("onError"),vu=Symbol("pending"),hu=Symbol("pend"),fu=Symbol("unpend"),Iu=Symbol("ended"),wu=Symbol("maybeClose"),gu=Symbol("skip"),bu=Symbol("doChown"),yu=Symbol("uid"),Ru=Symbol("gid"),ju=Symbol("checkedCwd"),Uu="win32"===(process.env.TESTING_TAR_FAKE_PLATFORM||process.platform),Cu=(e,t,n)=>void 0!==e&&e===e>>>0?e:void 0!==t&&t===t>>>0?t:n,Eu=class extends cl{[Iu]=!1;[ju]=!1;[vu]=0;reservations=new Ks;transform;writable=!0;readable=!1;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(e={}){if(e.ondone=()=>{
|
|
241
|
+
this[Iu]=!0,this[wu]()},super(e),this.transform=e.transform,this.chmod=!!e.chmod,"number"==typeof e.uid||"number"==typeof e.gid){if("number"!=typeof e.uid||"number"!=typeof e.gid)throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;this.preserveOwner=void 0===e.preserveOwner&&"number"!=typeof e.uid?!(!process.getuid||0!==process.getuid()):!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1024,this.forceChown=!0===e.forceChown,this.win32=!!e.win32||Uu,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,
|
|
242
|
+
this.unlink=!!e.unlink,this.cwd=Ap(P.resolve(e.cwd||process.cwd())),this.strip=Number(e.strip)||0,this.processUmask=this.chmod?"number"==typeof e.processUmask?e.processUmask:process.umask():0,this.umask="number"==typeof e.umask?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",e=>this[Xs](e))}warn(e,t,n={}){return("TAR_BAD_ARCHIVE"===e||"TAR_ABORT"===e)&&(n.recoverable=!1),super.warn(e,t,n)}[wu](){this[Iu]&&0===this[vu]&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[uu](e,t){let n=e[t],{type:r}=e;if(!n||this.preservePaths)return!0;let[o,a]=bl(n),i=a.replaceAll(/\\/g,"/").split("/");if(i.includes("..")||Uu&&/^[a-z]:\.\.$/i.test(i[0]??"")){if("path"===t||"Link"===r)return this.warn("TAR_ENTRY_ERROR",`${t} contains '..'`,{entry:e,[t]:n}),!1;let o=P.posix.dirname(e.path),a=P.posix.normalize(P.posix.join(o,i.join("/")))
|
|
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}[su](e){let t=Ap(e.path),n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if("Link"===e.type){let t=Ap(String(e.linkpath)).split("/");if(!(t.length>=this.strip))return!1;e.linkpath=t.slice(this.strip).join("/")}n.splice(0,this.strip),e.path=n.join("/")}if(isFinite(this.maxDepth)&&n.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:n.length,maxDepth:this.maxDepth}),!1;if(!this[uu](e,"path")||!this[uu](e,"linkpath"))return!1;if(e.absolute=P.isAbsolute(e.path)?Ap(P.resolve(e.path)):Ap(P.resolve(this.cwd,e.path)),!this.preservePaths&&"string"==typeof e.absolute&&0!==e.absolute.indexOf(this.cwd+"/")&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{
|
|
244
|
+
entry:e,path:Ap(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&"Directory"!==e.type&&"GNUDumpDir"!==e.type)return!1;if(this.win32){let{root:t}=P.win32.parse(String(e.absolute));e.absolute=t+Cl(String(e.absolute).slice(t.length));let{root:n}=P.win32.parse(e.path);e.path=n+Cl(e.path.slice(n.length))}return!0}[Xs](e){if(!this[su](e))return e.resume();switch(B.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=448|e.mode);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Qs](e);default:return this[lu](e)}}[cu](e,t){"CwdError"===e.name?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[fu](),t.resume())}[mu](e,t,n){zs(Ap(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t},n)}[bu](e){
|
|
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}[yu](e){return Cu(this.uid,e.uid,this.processUid)}[Ru](e){return Cu(this.gid,e.gid,this.processGid)}[ru](e,t){let n="number"==typeof e.mode?4095&e.mode:this.fmode,r=new Ad(String(e.absolute),{flags:Os(e.size),mode:n,autoClose:!1});r.on("error",n=>{r.fd&&L.close(r.fd,()=>{}),r.write=()=>!0,this[cu](n,e),t()});let o=1,a=n=>{if(n)return r.fd&&L.close(r.fd,()=>{}),this[cu](n,e),void t();0===--o&&void 0!==r.fd&&L.close(r.fd,n=>{n?this[cu](n,e):this[fu](),t()})};r.on("finish",()=>{let t=String(e.absolute),n=r.fd;if("number"==typeof n&&e.mtime&&!this.noMtime){o++;let r=e.atime||new Date,i=e.mtime;L.futimes(n,r,i,e=>e?L.utimes(t,r,i,t=>a(t&&e)):a())}if("number"==typeof n&&this[bu](e)){o++;let r=this[yu](e),i=this[Ru](e)
|
|
246
|
+
;"number"==typeof r&&"number"==typeof i&&L.fchown(n,r,i,e=>e?L.chown(t,r,i,t=>a(t&&e)):a())}a()});let i=this.transform&&this.transform(e)||e;i!==e&&(i.on("error",n=>{this[cu](n,e),t()}),e.pipe(i)),i.pipe(r)}[ou](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode;this[mu](String(e.absolute),n,n=>{if(n)return this[cu](n,e),void t();let r=1,o=()=>{0===--r&&(t(),this[fu](),e.resume())};e.mtime&&!this.noMtime&&(r++,L.utimes(String(e.absolute),e.atime||new Date,e.mtime,o)),this[bu](e)&&(r++,L.chown(String(e.absolute),Number(this[yu](e)),Number(this[Ru](e)),o)),o()})}[lu](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[iu](e,t){let n=Ap(P.relative(this.cwd,P.resolve(P.dirname(String(e.absolute)),String(e.linkpath)))).split("/");this[pu](e,this.cwd,n,()=>this[au](e,String(e.linkpath),"symlink",t),n=>{this[cu](n,e),t()})}[du](e,t){let n=Ap(P.resolve(this.cwd,String(e.linkpath))),r=Ap(String(e.linkpath)).split("/")
|
|
247
|
+
;this[pu](e,this.cwd,r,()=>this[au](e,n,"link",t),n=>{this[cu](n,e),t()})}[pu](e,t,n,r,o){let a=n.shift();if(this.preservePaths||void 0===a)return r();let i=P.resolve(t,a);L.lstat(i,(t,a)=>t?r():a?.isSymbolicLink()?o(new Gs(i,P.resolve(i,n.join("/")))):void this[pu](e,i,n,r,o))}[hu](){this[vu]++}[fu](){this[vu]--,this[wu]()}[gu](e){this[fu](),e.resume()}[tu](e,t){return"File"===e.type&&!this.unlink&&t.isFile()&&t.nlink<=1&&!Uu}[Qs](e){this[hu]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,t=>this[eu](e,t))}[eu](e,t){let n=e=>{t(e)},r=()=>{if(e.absolute!==this.cwd){let t=Ap(P.dirname(String(e.absolute)));if(t!==this.cwd)return this[mu](t,this.dmode,t=>{if(t)return this[cu](t,e),void n();o()})}o()},o=()=>{L.lstat(String(e.absolute),(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>(e.mtime??r.mtime)))return this[gu](e),void n();if(t||this[tu](e,r))return this[nu](null,e,n);if(r.isDirectory()){if("Directory"===e.type){let t=t=>this[nu](t??null,e,n)
|
|
248
|
+
;return this.chmod&&e.mode&&(4095&r.mode)!==e.mode?L.chmod(String(e.absolute),Number(e.mode),t):t()}if(e.absolute!==this.cwd)return L.rmdir(String(e.absolute),t=>this[nu](t??null,e,n))}if(e.absolute===this.cwd)return this[nu](null,e,n);((e,t)=>{if(!Uu)return L.unlink(e,t);let n=e+".DELETE."+V(16).toString("hex");L.rename(e,n,e=>{if(e)return t(e);L.unlink(n,t)})})(String(e.absolute),t=>this[nu](t??null,e,n))})};this[ju]?r():(()=>{this[mu](this.cwd,this.dmode,t=>{if(t)return this[cu](t,e),void n();this[ju]=!0,r()})})()}[nu](e,t,n){if(e)return this[cu](e,t),void n();switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[ru](t,n);case"Link":return this[du](t,n);case"SymbolicLink":return this[iu](t,n);case"Directory":case"GNUDumpDir":return this[ou](t,n)}}[au](e,t,n,r){L[n](t,String(e.absolute),t=>{t?this[cu](t,e):(this[fu](),e.resume()),r()})}},_u=e=>{try{return[null,e()]}catch(e){return[e,null]}},Su=class extends Eu{sync=!0;[nu](e,t){return super[nu](e,t,()=>{})}[Qs](e){
|
|
249
|
+
if(!this[ju]){let t=this[mu](this.cwd,this.dmode);if(t)return this[cu](t,e);this[ju]=!0}if(e.absolute!==this.cwd){let t=Ap(P.dirname(String(e.absolute)));if(t!==this.cwd){let n=this[mu](t,this.dmode);if(n)return this[cu](n,e)}}let[t,n]=_u(()=>L.lstatSync(String(e.absolute)));if(n&&(this.keep||this.newer&&n.mtime>(e.mtime??n.mtime)))return this[gu](e);if(t||this[tu](e,n))return this[nu](null,e);if(n.isDirectory()){if("Directory"===e.type){let t=this.chmod&&e.mode&&(4095&n.mode)!==e.mode,[r]=t?_u(()=>{L.chmodSync(String(e.absolute),Number(e.mode))}):[];return this[nu](r,e)}let[t]=_u(()=>L.rmdirSync(String(e.absolute)));this[nu](t,e)}let[r]=e.absolute===this.cwd?[]:_u(()=>(e=>{if(!Uu)return L.unlinkSync(e);let t=e+".DELETE."+V(16).toString("hex");L.renameSync(e,t),L.unlinkSync(t)})(String(e.absolute)));this[nu](r,e)}[ru](e,t){let n,r="number"==typeof e.mode?4095&e.mode:this.fmode,o=r=>{let o;try{L.closeSync(n)}catch(e){o=e}(r||o)&&this[cu](r||o,e),t()};try{
|
|
250
|
+
n=L.openSync(String(e.absolute),Os(e.size),r)}catch(e){return o(e)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",t=>this[cu](t,e)),e.pipe(a)),a.on("data",e=>{try{L.writeSync(n,e,0,e.length)}catch(e){o(e)}}),a.on("end",()=>{let t=null;if(e.mtime&&!this.noMtime){let r=e.atime||new Date,o=e.mtime;try{L.futimesSync(n,r,o)}catch(n){try{L.utimesSync(String(e.absolute),r,o)}catch{t=n}}}if(this[bu](e)){let r=this[yu](e),o=this[Ru](e);try{L.fchownSync(n,Number(r),Number(o))}catch(n){try{L.chownSync(String(e.absolute),Number(r),Number(o))}catch{t=t||n}}}o(t)})}[ou](e,t){let n="number"==typeof e.mode?4095&e.mode:this.dmode,r=this[mu](String(e.absolute),n);if(r)return this[cu](r,e),void t();if(e.mtime&&!this.noMtime)try{L.utimesSync(String(e.absolute),e.atime||new Date,e.mtime)}catch{}if(this[bu](e))try{L.chownSync(String(e.absolute),Number(this[yu](e)),Number(this[Ru](e)))}catch{}t(),e.resume()}[mu](e,t){try{return $s(Ap(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,
|
|
251
|
+
processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:t})}catch(e){return e}}[pu](e,t,n,r,o){if(this.preservePaths||0===n.length)return r();let a=t;for(let e of n){a=P.resolve(a,e);let[i,d]=_u(()=>L.lstatSync(a));if(i)return r();if(d.isSymbolicLink())return o(new Gs(a,P.resolve(t,n.join("/"))))}r()}[au](e,t,n,r){let o=`${n}Sync`;try{L[o](t,String(e.absolute)),r(),e.resume()}catch(t){return this[cu](t,e)}}},Nu=Od(e=>{let t=new Su(e),n=e.file,r=L.statSync(n),o=e.maxReadSize||16777216;new Nd(n,{readSize:o,size:r.size}).pipe(t)},(e,t)=>{let n=new Eu(e),r=e.maxReadSize||16777216,o=e.file;return new Promise((e,t)=>{n.on("error",t),n.on("close",e),L.stat(o,(e,a)=>{if(e)t(e);else{let e=new Sd(o,{readSize:r,size:a.size});e.on("error",t),e.pipe(n)}})})},e=>new Su(e),e=>new Eu(e),(e,t)=>{t?.length&&hl(e,t)}),Au=(e,t,n,r,o)=>{let a=new kd(e.file,{fd:r,start:n});t.pipe(a),ku(t,o)},ku=(e,t)=>{t.forEach(t=>{"@"===t.charAt(0)?fl({
|
|
252
|
+
file:P.resolve(e.cwd,t.slice(1)),sync:!0,noResume:!0,onReadEntry:t=>e.add(t)}):e.add(t)}),e.end()},Pu=async(e,t)=>{for(let n of t)"@"===n.charAt(0)?await fl({file:P.resolve(String(e.cwd),n.slice(1)),noResume:!0,onReadEntry:t=>e.add(t)}):e.add(n);e.end()},Tu=Od((e,t)=>{let n,r,o=new js(e),a=!0;try{try{n=L.openSync(e.file,"r+")}catch(t){if("ENOENT"!==t?.code)throw t;n=L.openSync(e.file,"w+")}let i=L.fstatSync(n),d=Buffer.alloc(512);e:for(r=0;r<i.size;r+=512){for(let e=0,t=0;e<512;e+=t){if(t=L.readSync(n,d,e,d.length-e,r+e),0===r&&31===d[0]&&139===d[1])throw new Error("cannot append to compressed archives");if(!t)break e}let t=new up(d);if(!t.cksumValid)break;let o=512*Math.ceil((t.size||0)/512);if(r+o+512>i.size)break;r+=o,e.mtimeCache&&t.mtime&&e.mtimeCache.set(String(t.path),t.mtime)}a=!1,Au(e,o,r,n,t)}finally{if(a)try{L.closeSync(n)}catch{}}},(e,t)=>{t=Array.from(t);let n=new Rs(e);return new Promise((r,o)=>{n.on("error",o);let a="r+",i=(d,p)=>d&&"ENOENT"===d.code&&"r+"===a?(a="w+",
|
|
253
|
+
L.open(e.file,a,i)):d||!p?o(d):void L.fstat(p,(a,i)=>{if(a)return L.close(p,()=>o(a));((t,n,r)=>{let o=(e,n)=>{e?L.close(t,t=>r(e)):r(null,n)},a=0;if(0===n)return o(null,0);let i=0,d=Buffer.alloc(512),p=(r,l)=>{if(r||void 0===l)return o(r);if(i+=l,i<512&&l)return L.read(t,d,i,d.length-i,a+i,p);if(0===a&&31===d[0]&&139===d[1])return o(new Error("cannot append to compressed archives"));if(i<512)return o(null,a);let s=new up(d);if(!s.cksumValid)return o(null,a);let u=512*Math.ceil((s.size??0)/512);if(a+u+512>n||(a+=u+512,a>=n))return o(null,a);e.mtimeCache&&s.mtime&&e.mtimeCache.set(String(s.path),s.mtime),i=0,L.read(t,d,0,512,a,p)};L.read(t,d,0,512,a,p)})(p,i.size,(a,i)=>{if(a)return o(a);let d=new Ad(e.file,{fd:p,start:i});n.pipe(d),d.on("error",o),d.on("close",r),Pu(n,t)})});L.open(e.file,a,i)})},()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(e,t)=>{if(!(e=>!!e.file)(e))throw new TypeError("file is required")
|
|
254
|
+
;if(e.gzip||e.brotli||e.zstd||e.file.endsWith(".br")||e.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!t?.length)throw new TypeError("no paths specified to add/replace")});Od(Tu.syncFile,Tu.asyncFile,Tu.syncNoFile,Tu.asyncNoFile,(e,t=[])=>{Tu.validate?.(e,t),xu(e)});var Du,Ou,xu=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(n,r)=>t(n,r)&&!((e.mtimeCache?.get(n)??r.mtime??0)>(r.mtime??0)):(t,n)=>!((e.mtimeCache?.get(t)??n.mtime??0)>(n.mtime??0))};var Lu,qu=function(){if(Ou)return Du;function e(e){return Array.isArray(e)?e:[e]}Ou=1;const t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,o=/^\\#/,a=/\r?\n/g,i=/^\.*\/|^\.+$/;let d="node-ignore";"undefined"!=typeof Symbol&&(d=Symbol.for("node-ignore"));const p=d,l=/([0-z])-([0-z])/g,s=()=>!1,u=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "
|
|
255
255
|
}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,o)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(r)}${o}`:"]"===o&&r.length%2==0?`[${(e=>e.replace(l,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:""))(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],m=Object.create(null),c=e=>"string"==typeof e;class v{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}const h=(e,t)=>{const n=e;let a=!1;0===e.indexOf("!")&&(a=!0,e=e.substr(1));const i=((e,t)=>{let n=m[e]
|
|
256
256
|
;return n||(n=u.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),m[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(r,"!").replace(o,"#"),t);return new v(n,e,a,i)},f=(e,t)=>{throw new t(e)},I=(e,t,n)=>{if(!c(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(I.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},w=e=>i.test(e);I.isNotRelative=w,I.convert=e=>e;class g{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var r,o,a;r=this,o=p,a=!0,Object.defineProperty(r,o,{value:a}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[p])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&c(e)&&!t.test(e)&&!n.test(e)&&0!==e.indexOf("#"))(e)){const t=h(e,this._ignoreCase)
|
|
257
|
-
;this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(c(t)?(e=>e.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(o=>{const{negative:a}=o;if(r===a&&n!==r||a&&!n&&!r&&!t)return;o.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){const o=e&&I.convert(e);return I(o,e,this._allowRelativePaths?s:f),this._t(o,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const o=this._t(r.join("/")+"/",t,n,r);return t[e]=o.ignored?o:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const b=e=>new g(e);if(b.isPathValid=e=>I(e&&I.convert(e),e,s),b.default=b,
|
|
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
|
|
257
|
+
;this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(c(t)?(e=>e.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(o=>{const{negative:a}=o;if(r===a&&n!==r||a&&!n&&!r&&!t)return;o.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){const o=e&&I.convert(e);return I(o,e,this._allowRelativePaths?s:f),this._t(o,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||(r=e.split("/")),r.pop(),!r.length)return t[e]=this._testOne(e,n);const o=this._t(r.join("/")+"/",t,n,r);return t[e]=o.ignored?o:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const b=e=>new g(e);if(b.isPathValid=e=>I(e&&I.convert(e),e,s),b.default=b,Du=b,
|
|
258
|
+
"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");I.convert=e;const t=/^[a-z]:\//i;I.isNotRelative=e=>t.test(e)||w(e)}return Du}(),Bu=sr(qu);!function(e){e.DIRECTORY_UPLOAD="directory-upload",e.FILE_UPLOAD="file-upload",e.DIRECTORY_DOWNLOAD="directory-download",e.FILE_DOWNLOAD="file-download"}(Lu||(Lu={}));var Vu,Fu=function(){function e(e,t){var n=this;if(this.exec=e,this.parameters=t,this.defaultEncoding="base64",this.getFileIgnoreFilter=function(e){if(void 0!==e){var t=Bu({allowRelativePaths:!0}).add(e);return function(e){return!t.ignores(e)}}},this.getTarTransformFn=function(e,t){return function(n){n.path=n.path.replace(e,t)}},this.ensureDirRemote=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){switch(o.label){case 0:return t=["mkdir","-p",e],[4,this.runCommand(t)];case 1:if(n=o.sent(),
|
|
259
259
|
"Success"!==(null===(r=null==n?void 0:n.commandResult)||void 0===r?void 0:r.status))throw new Error("Failed creating remote directory.");return[2]}})})},this.ensureTarCmd=function(){return J(n,void 0,void 0,function(){var e,t,n;return W(this,function(r){switch(r.label){case 0:return e=["tar","--version"],[4,this.runCommand(e)];case 1:if(t=r.sent(),"Success"!==(null===(n=null==t?void 0:t.commandResult)||void 0===n?void 0:n.status))throw new Error("Tar command not found on remote container. Required for file copy.");return[2]}})})},this.pathExistsRemote=function(e){return J(n,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.checkIsDirRemote=function(e){return J(n,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=["test","-d",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},
|
|
260
260
|
this.checkIsFileRemote=function(e){return J(n,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=["test","-e",e],[4,this.runCommand(t)];case 1:return[2,0===n.sent().commandResult.exitCode]}})})},this.runCommand=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return J(n,$([e],t,!0),void 0,function(e,t){var n,r,o,a,i,d,p,l,s,u,m;return void 0===t&&(t="none"),W(this,function(c){switch(c.label){case 0:return r=(n=this).exec,o=n.parameters,a=o.teamId,i=o.projectId,d=o.resourceId,p=o.resourceType,l=o.containerName,s=o.instanceName,u={command:e,shell:t,containerName:l,instanceName:s},"service"!==p?[3,2]:[4,r.execServiceCommand({teamId:a,projectId:i,serviceId:d},u)];case 1:return m=c.sent(),[3,4];case 2:return[4,r.execJobCommand({teamId:a,projectId:i,jobId:d},u)];case 3:m=c.sent(),c.label=4;case 4:return[2,m]}})})},this.runSession=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i,d,p,l,s,u;return W(this,function(m){
|
|
261
|
-
switch(m.label){case 0:return n=(t=this).exec,r=t.parameters,o=r.teamId,a=r.projectId,i=r.resourceId,d=r.resourceType,p=r.containerName,l=r.instanceName,s={command:e,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:p,instanceName:l},"service"!==d?[3,2]:[4,n.execServiceSession({teamId:o,projectId:a,serviceId:i},s)];case 1:return u=m.sent(),[3,4];case 2:return[4,n.execJobSession({teamId:o,projectId:a,jobId:i},s)];case 3:u=m.sent(),m.label=4;case 4:return[2,u]}})})},!["service","job"].includes(t.resourceType))throw new Error("Invalid resource type: ".concat(t.resourceType,", only 'service' and 'job' supported"))}return e.prototype.uploadFiles=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,u,m,c,v;return W(this,function(h){switch(h.label){case 0:if(void 0===e||!
|
|
262
|
-
i=r&&void 0!==t&&""!==
|
|
263
|
-
e.prototype.uploadStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,p,l,s;return W(this,function(u){switch(u.label){case 0:return n=function(e){var t=new i({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),n="string"==typeof e,r=Buffer.isBuffer(e);return n||r?d.from(e).pipe(t):e.pipe(t)},r=
|
|
264
|
-
var r,o,a,i,d,p,l,s,u,m,c,v,h,f;return W(this,function(I){switch(I.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!I.sent(),I.label=2;case 2:if(r)throw new Error("Remote path '".concat(e,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(e)];case 3:return o=I.sent(),a=o?e:
|
|
265
|
-
if("Success"!==(null==(f=I.sent())?void 0:f.status))throw new Error("Failed to download file from container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString()));return o?[2,{type:
|
|
266
|
-
this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new
|
|
267
|
-
projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new
|
|
268
|
-
r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new
|
|
269
|
-
return J(this,void 0,void 0,function(){var r,o,a;return W(this,function(i){switch(i.label){case 0:switch(r=new
|
|
270
|
-
},
|
|
261
|
+
switch(m.label){case 0:return n=(t=this).exec,r=t.parameters,o=r.teamId,a=r.projectId,i=r.resourceId,d=r.resourceType,p=r.containerName,l=r.instanceName,s={command:e,shell:"none",tty:!1,encoding:this.defaultEncoding,containerName:p,instanceName:l},"service"!==d?[3,2]:[4,n.execServiceSession({teamId:o,projectId:a,serviceId:i},s)];case 1:return u=m.sent(),[3,4];case 2:return[4,n.execJobSession({teamId:o,projectId:a,jobId:i},s)];case 3:u=m.sent(),m.label=4;case 4:return[2,u]}})})},!["service","job"].includes(t.resourceType))throw new Error("Invalid resource type: ".concat(t.resourceType,", only 'service' and 'job' supported"))}return e.prototype.uploadFiles=function(e,t,n){return J(this,void 0,void 0,function(){var r,o,a,i,d,p,l,s,u,m,c,v;return W(this,function(h){switch(h.label){case 0:if(void 0===e||!b.existsSync(e))throw new Error("Local path '".concat(e,"' does not exists but is required for uploads."));return r=b.lstatSync(e).isFile(),o=r?y.dirname(e):e,a=r?y.basename(e):".",
|
|
262
|
+
i=r&&void 0!==t&&""!==y.extname(t),d=i?y.dirname(t):null!=t?t:o,p=void 0!==t?y.basename(t):a,l=Es({gzip:{encoding:this.defaultEncoding},cwd:o,filter:this.getFileIgnoreFilter(n),preservePaths:!0,onWriteEntry:i?this.getTarTransformFn(a,p):void 0},ko(a)),[4,this.ensureTarCmd()];case 1:return h.sent(),[4,this.ensureDirRemote(d)];case 2:return h.sent(),s=$($(["tar","-xzvf","-"],["--no-same-owner"],!0),["-C",d],!1),[4,this.runSession(s)];case 3:return u=h.sent(),m=new To,c=new To,u.stdErr.pipe(m),u.stdOut.pipe(c),l.pipe(u.stdIn),[4,u.waitForCommandResult()];case 4:if("Success"!==(null==(v=h.sent())?void 0:v.status))throw new Error("Failed to upload file to container: ".concat(null==v?void 0:v.message,", error details: ").concat(m.getContentsAsString(),"; ").concat(c.getContentsAsString()));return r?[2,{type:Lu.FILE_UPLOAD,sourceDirectory:o,sourceFile:a,targetDirectory:d,targetFile:p}]:[2,{type:Lu.DIRECTORY_UPLOAD,sourceDirectory:o,targetDirectory:d}]}})})},
|
|
263
|
+
e.prototype.uploadStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a,p,l,s;return W(this,function(u){switch(u.label){case 0:return n=function(e){var t=new i({transform:function(e,t,n){this.push(e.toString("base64")),n()}}),n="string"==typeof e,r=Buffer.isBuffer(e);return n||r?d.from(e).pipe(t):e.pipe(t)},r=y.dirname(t),[4,this.ensureTarCmd()];case 1:return u.sent(),[4,this.ensureDirRemote(r)];case 2:return u.sent(),o=["tee",t],[4,this.runSession(o)];case 3:return a=u.sent(),p=new To,l=new To,a.stdErr.pipe(p),a.stdOut.pipe(l),n(e).pipe(a.stdIn),[4,a.waitForCommandResult()];case 4:return s=u.sent(),[4,this.runCommand(["cat",t])];case 5:if(u.sent(),"Success"!==(null==s?void 0:s.status))throw new Error("Failed to upload file to container: ".concat(null==s?void 0:s.message,", error details: ").concat(p.getContentsAsString(),"; ").concat(l.getContentsAsString()));return[2]}})})},e.prototype.downloadFiles=function(e,t,n){return J(this,void 0,void 0,function(){
|
|
264
|
+
var r,o,a,i,d,p,l,s,u,m,c,v,h,f;return W(this,function(I){switch(I.label){case 0:return(r=void 0===e)?[3,2]:[4,this.pathExistsRemote(e)];case 1:r=!I.sent(),I.label=2;case 2:if(r)throw new Error("Remote path '".concat(e,"' does not exists but is required for downloads."));return[4,this.checkIsDirRemote(e)];case 3:return o=I.sent(),a=o?e:y.dirname(e),i=o?".":y.basename(e),d=void 0!==t&&""!==y.extname(t),p=!o&&d?y.basename(t):i,(l=void 0!==t?d?y.dirname(t):t:".")&&b.mkdirSync(l,{recursive:!0}),s=ko(null!=n?n:[]).map(function(e){return"--exclude=".concat(e)}),u=$($(["tar","-zcf","-"],["--no-same-owner"],!0),s,!0),m=$($([],u,!0),["-C",a,i],!1),[4,this.runSession(m)];case 4:return c=I.sent(),v=Nu({cwd:l,gzip:{encoding:this.defaultEncoding},onReadEntry:p?this.getTarTransformFn(i,p):void 0}),h=new To,c.stdErr.pipe(h),c.stdOut.pipe(v),[4,c.waitForCommandResult()];case 5:
|
|
265
|
+
if("Success"!==(null==(f=I.sent())?void 0:f.status))throw new Error("Failed to download file from container: ".concat(null==f?void 0:f.message,", error details: ").concat(h.getContentsAsString()));return o?[2,{type:Lu.DIRECTORY_DOWNLOAD,sourceDirectory:a,targetDirectory:l}]:[2,{type:Lu.FILE_DOWNLOAD,sourceDirectory:a,sourceFile:i,targetDirectory:l,targetFile:p}]}})})},e.prototype.downloadStream=function(e){return J(this,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){switch(a.label){case 0:return[4,this.checkIsFileRemote(e)];case 1:if(!a.sent())throw new Error("Remote path '".concat(e,"' must be a file."));return t=y.dirname(e),[4,this.ensureTarCmd()];case 2:return a.sent(),[4,this.ensureDirRemote(t)];case 3:return a.sent(),n=["cat",e],[4,this.runSession(n)];case 4:return r=a.sent(),o=new To,r.stdErr.pipe(o),[2,{fileStream:r.stdOut,completionPromise:r.waitForCommandResult().then(function(e){return 0===e.exitCode})}]}})})},e}(),Mu=function(){function e(e,t){this.exec=e,
|
|
266
|
+
this.stdIgnoreList=["*.*~"],t&&(this.stdIgnoreList=t)}return e.prototype.downloadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,
|
|
267
|
+
projectId:r,resourceId:n,resourceType:"service"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadServiceFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.serviceId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"service"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.downloadJobFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(a,t,"download")];case 1:return[2,i.sent()]}})})},e.prototype.downloadJobFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,
|
|
268
|
+
r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).downloadStream(t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFiles=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,this.copy(a,t,"upload")];case 1:return[2,i.sent()]}})})},e.prototype.uploadJobFileStream=function(e,t){return J(this,void 0,void 0,function(){var n,r,o,a;return W(this,function(i){switch(i.label){case 0:return n=e.jobId,r=e.projectId,o=e.teamId,a={teamId:o,projectId:r,resourceId:n,resourceType:"job"},[4,new Fu(this.exec,z(z({},a),{instanceName:t.instanceName,containerName:t.containerName})).uploadStream(t.source,t.remotePath)];case 1:return[2,i.sent()]}})})},e.prototype.copy=function(e,t,n){
|
|
269
|
+
return J(this,void 0,void 0,function(){var r,o,a;return W(this,function(i){switch(i.label){case 0:switch(r=new Fu(this.exec,z(z({},e),{instanceName:t.instanceName,containerName:t.containerName})),o=$($([],null!==(a=t.ignoreList)&&void 0!==a?a:[],!0),this.stdIgnoreList,!0),n){case"download":return[3,1];case"upload":return[3,3]}return[3,5];case 1:return[4,r.downloadFiles(t.remotePath,t.localPath,o)];case 2:case 4:return[2,i.sent()];case 3:return[4,r.uploadFiles(t.localPath,t.remotePath,o)];case 5:return[2]}})})},e}(),Gu=function(e){function t(t){var n=this.constructor,r=e.call(this,t.message)||this;r.name="NorthflankApiCallError",r.message=t.message,r.status=t.status,r.id=t.id,r.details=t.details;var o=n.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o,r}return G(t,e),t}(Error);!function(e){e.CDN="cdn",e.Mesh="mesh",e.Ingress="ingress",e.Runtime="runtime"}(Vu||(Vu={}));var zu,Ju=function(e){return{containerId:e.containerId,log:e.log,ts:new Date(e.ts)}
|
|
270
|
+
},Wu=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.baseUrl=t,a.logsConfig=n,a.token=r,a.agent=o,a.stop=function(){return J(a,void 0,void 0,function(){var e;return W(this,function(t){if(void 0===this.logSession)throw new Error("No command is running");return null===(e=this.remote)||void 0===e||e.close(),[2]})})},a}return G(t,e),t.getLogsEndpoint=function(e){var t=e.containerName,n=e.types,r=e.entityId,o=e.entityType,a=e.buildId,i=e.runId,d=e.backupId,p=e.restoreId,l=e.deploymentId,s=e.isBuild,u=e.lineLimit,m=e.teamId,c=e.projectId,v=e.queryType,h=e.startTime,f=e.endTime,I=e.duration,w=e.direction,g=e.textIncludes,b=e.textNotIncludes,y=e.regexIncludes,R=e.regexNotIncludes,j=void 0!==m?"teams/".concat(m,"/"):"",U="/v1/".concat(j,"projects/").concat(c,"/"),C=new URLSearchParams;return C.append("queryType",v),void 0!==h&&C.append("startTime",h.toISOString()),void 0!==f&&C.append("endTime",f.toISOString()),void 0!==u&&C.append("lineLimit",u.toString()),
|
|
271
271
|
void 0!==t&&C.append("containerName",t),void 0!==l&&C.append("deploymentId",l),void 0!==i&&C.append("runId",i),void 0!==a&&C.append("buildId",a),void 0!==g&&C.append("textIncludes",g),void 0!==b&&C.append("textNotIncludes",b),void 0!==y&&C.append("regexIncludes",y),void 0!==R&&C.append("regexNotIncludes",R),void 0!==w&&C.append("direction",w),void 0!==I&&C.append("duration",I.toString()),void 0!==n&&n.forEach(function(e){return C.append("type",e)}),"".concat(U).concat(function(){var e=s?"/build-logs":"/logs";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);case"addonBackup":return"addons/".concat(r,"/backups/").concat(d).concat(e);case"addonRestore":return"addons/".concat(r,"/backups/").concat(d,"/restores/").concat(p).concat(e);default:throw new Error("Unexpected Northflank entity type received in logs endpoint generation: ".concat(o))}}(),"?").concat(C.toString())},
|
|
272
|
-
Object.defineProperty(t.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(t.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(t,n){var r,o,a,i;void 0!==e.remote&&n(Error("Command is already running"));var d=e.logsEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=
|
|
273
|
-
var d="unable to parse message: ".concat(JSON.stringify(o));p(d)}}),null===(o=e.remote)||void 0===o||o.on("close",function(){e.emit("close"),e.reset(),t()}),null===(a=e.remote)||void 0===a||a.on("open",function(){e.emit("open")
|
|
274
|
-
return[2,this.executeCall(e)]})})},this.contextProvider=e}return e.prototype.getDefaultHeaders=function(){var e,t,n=this.contextProvider.getCurrentToken(),r=(null===(e=this.opts)||void 0===e?void 0:e.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(t
|
|
275
|
-
[4,
|
|
276
|
-
return J(t,void 0,void 0,function(){var t,r=this;return W(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,z(z({},t),{pagination:z(z({},t.pagination),{getNextPage:function(){return J(r,void 0,void 0,function(){var e,r,o,a,i,d,p,l=this;return W(this,function(s){return void 0===(null===(d=t.pagination)||void 0===d?void 0:d.cursor)?(e=Object.keys(t.data),r=1===e.length?((i={})[e[0]]=[],i):{},o=z(z({},t),{pagination:z(z({},t.pagination),{count:0}),data:r}),[2,(a=function(e){return z(z({},e),{pagination:z(z({},e.pagination),{getNextPage:function(){return J(l,void 0,void 0,function(){return W(this,function(t){return[2,a(e)]})})}})})
|
|
277
|
-
var t=null!==e&&e.apply(this,arguments)||this;return t.method="
|
|
278
|
-
return e=l.sent(),t=e.data,n=e.request,r=e.error,o=e.pagination,a=e.rawResponse,this.cursor=null==o?void 0:o.cursor,this._currentOffset+=null!==(p=null==o?void 0:o.count)&&void 0!==p?p:0,[2,{data:t,request:n,error:r,pagination:o,rawResponse:a}]}})})},e.prototype.getAll=function(){return J(this,void 0,void 0,function(){var e,t,n,r,o,a,i;return W(this,function(d){switch(d.label){case 0:e=[],d.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(t=d.sent()).error?[2,t]:(e.push(t),[3,1]);case 3:return r=e.flatMap(function(e){var t=Object.keys(e.data);return 1===t.length?(n=t[0],e.data[t[0]]):e.data}),[2,{data:void 0===n?r:(o={},o[n]=r,o),request:null===(a=e[0])||void 0===a?void 0:a.request,
|
|
279
|
-
return
|
|
280
|
-
var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0
|
|
281
|
-
return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){return t=e.parameters,n=e.options,r=t.teamId,o=t.projectId,a=t.addonId,i={entityId:a,projectId:o,teamId:r},d={backupId:t.backupId,restoreId:t.restoreId},[2,this.logRange(i,z(z({},n),d),"addonRestore")]})})},this.logRange=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p;return W(this,function(l){switch(l.label){case 0:return n=e.entityId,
|
|
282
|
-
})},this.tailServiceLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.logTail(i,z(z({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,
|
|
283
|
-
[2,this.logTail(
|
|
284
|
-
o=e.projectId,a=e.teamId,i=z({queryType:"tail",teamId:a,projectId:o,entityId:n,entityType:r},t),this.assertStartedWithNodejs(),d=this.contextProvider.getCurrentBaseUrl(!0),!(p=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new
|
|
285
|
-
;var w=new URLSearchParams;return w.append("queryType",l),void 0!==u&&w.append("startTime",u.toISOString()),void 0!==m&&w.append("endTime",m.toISOString()),void 0!==v&&w.append("containerName",v),void 0!==a&&w.append("deploymentId",a),void 0!==i&&w.append("runId",i),void 0!==d&&w.append("buildId",d),void 0!==h&&w.append("timestamp",h.toISOString()),void 0!==c&&w.append("duration",c.toString()),void 0!==s&&s.forEach(function(e){return w.append("metricTypes",e)}),"".concat(I).concat(function(){var e=p?"/build-metrics":"/metrics";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);default:
|
|
286
|
-
;!function(e){e.Cpu="cpu",e.Memory="memory",e.NetworkIngress="networkIngress",e.NetworkEgress="networkEgress",e.TcpConnectionOpen="tcpConnectionsOpen",e.PvcUsage="diskUsage",e.Requests="requests",e.Http4xxResponses="http4xxResponses",e.Http5xxResponses="http5xxResponses",e.Bandwidth="bandwidth",e.BandwidthVolume="bandwidthVolume"}(
|
|
287
|
-
return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.
|
|
288
|
-
|
|
289
|
-
;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,
|
|
290
|
-
data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,z(z({},n),{values:n.values.map(
|
|
291
|
-
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
292
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
293
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
272
|
+
Object.defineProperty(t.prototype,"logsEndpoint",{get:function(){return"".concat(this.baseUrl).concat(t.getLogsEndpoint(this.logsConfig))},enumerable:!1,configurable:!0}),t.prototype.start=function(){return J(this,void 0,void 0,function(){var e=this;return W(this,function(t){switch(t.label){case 0:if(void 0!==this.logSession)throw new Error("Command is already running");return this.logSession=new Promise(function(t,n){var r,o,a,i;void 0!==e.remote&&n(Error("Command is already running"));var d=e.logsEndpoint.replace("https:","wss:").replace("http:","ws:");e.remote=new ai(d,{agent:e.agent}),null===(r=e.remote)||void 0===r||r.on("message",function(t){var n,r,o=JSON.parse(t.toString());switch(null==o?void 0:o.type){case"init":var a=o.data;"successful"!==a.auth&&p("Log tail initialization failed: ".concat(null!==(n=null==a?void 0:a.message)&&void 0!==n?n:"Reason unknown"));break;case"log-lines":var i=o.data;e.emit("logs-received",i.map(Ju));break;case"error":
|
|
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}(t),$u=function(){if(yo)try{
|
|
274
|
+
return JSON.parse(b.readFileSync(y.join(y.dirname(u(import.meta.url)),"../../package.json")).toString())}catch(e){return{}}return{}},Hu=function(){function e(e,t){var n=this;this.opts=t,this.call=function(e){return J(n,void 0,void 0,function(){return W(this,function(t){return[2,this.executeCall(e)]})})},this.contextProvider=e}return e.prototype.getDefaultHeaders=function(){var e,t,n=this.contextProvider.getCurrentToken(),r=(null===(e=this.opts)||void 0===e?void 0:e.customUserAgent)?" (".concat(this.opts.customUserAgent,")"):"";return{Authorization:this.withAuth?"Bearer ".concat(n):void 0,"Content-Type":"application/json","User-Agent":"northflank-js-client/".concat(null===(t=$u())||void 0===t?void 0:t.version).concat(r)}},e.prototype.executeCall=function(e){return J(this,void 0,void 0,function(){var t,n,r,o,a,i,d,p,l,s,u,m,c,v=this;return W(this,function(h){switch(h.label){case 0:if(t=this.method,n=this.opts.agent,r={method:t,headers:this.getDefaultHeaders(),agent:n},
|
|
275
|
+
!(o=null===(c=this.contextProvider)||void 0===c?void 0:c.getCurrentBaseUrl()))throw new Error("Api client context not correctly initialized, please provide a url to the context.");return a="".concat(o).concat(this.endpointUrl(e)),i=this.body(e),d=z(z({url:a},r),{body:i}),[4,rm(a,z(z({},r),{body:i}))];case 1:return[4,(p=h.sent()).text()];case 2:return l=h.sent(),s=function(){if(200!==p.status){var e=null==u?void 0:u.error,t=(null==e?void 0:e.message)||"",n={status:p.status,message:t,id:null==e?void 0:e.id,details:null==e?void 0:e.details};if(v.opts.throwErrorOnHttpErrorCode)throw new Gu(n);return n}},u=function(){try{return JSON.parse(l)}catch(e){throw Error("Failed reading api request result: \n\tStatus: ".concat(p.statusText," (").concat(p.status,")\n\tMessage: ").concat(l))}}(),m=s(),[2,{data:null==u?void 0:u.data,rawResponse:p,request:d,error:m,pagination:null==u?void 0:u.pagination}]}})})},e}(),Zu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
276
|
+
;return t.method="get",t.body=function(){},t}return G(t,e),t}(Hu),Yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.all=function(e){return J(t,void 0,void 0,function(){return W(this,function(t){return[2,new tm(this,e).getAll()]})})},t.call=function(n){return J(t,void 0,void 0,function(){var t,r=this;return W(this,function(o){switch(o.label){case 0:return[4,e.prototype.executeCall.call(this,n)];case 1:return t=o.sent(),[2,z(z({},t),{pagination:z(z({},t.pagination),{getNextPage:function(){return J(r,void 0,void 0,function(){var e,r,o,a,i,d,p,l=this;return W(this,function(s){return void 0===(null===(d=t.pagination)||void 0===d?void 0:d.cursor)?(e=Object.keys(t.data),r=1===e.length?((i={})[e[0]]=[],i):{},o=z(z({},t),{pagination:z(z({},t.pagination),{count:0}),data:r}),[2,(a=function(e){return z(z({},e),{pagination:z(z({},e.pagination),{getNextPage:function(){return J(l,void 0,void 0,function(){return W(this,function(t){return[2,a(e)]})})}})})
|
|
277
|
+
})(o)]):[2,new tm(this,n,null===(p=t.pagination)||void 0===p?void 0:p.cursor).getNext()]})})}})})]}})})},t}return G(t,e),t}(Zu),Ku=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="post",t}return G(t,e),t}(Hu),Xu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="delete",t}return G(t,e),t}(Hu),Qu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="put",t}return G(t,e),t}(Hu),em=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.method="patch",t}return G(t,e),t}(Hu),tm=function(){function e(e,t,n){void 0===n&&(n=null);var r=this;this.endpoint=e,this.opts=t,this._currentOffset=0,this.hasNext=function(){return void 0!==r.cursor},this.cursor=n}return Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},enumerable:!1,configurable:!0}),e.prototype.getNext=function(){return J(this,void 0,void 0,function(){
|
|
278
|
+
var e,t,n,r,o,a,i,d,p;return W(this,function(l){switch(l.label){case 0:return[4,this.endpoint.call(z(z({},this.opts),{options:z(z({},null===(i=this.opts)||void 0===i?void 0:i.options),{cursor:null!==(d=this.cursor)&&void 0!==d?d:void 0})}))];case 1:return e=l.sent(),t=e.data,n=e.request,r=e.error,o=e.pagination,a=e.rawResponse,this.cursor=null==o?void 0:o.cursor,this._currentOffset+=null!==(p=null==o?void 0:o.count)&&void 0!==p?p:0,[2,{data:t,request:n,error:r,pagination:o,rawResponse:a}]}})})},e.prototype.getAll=function(){return J(this,void 0,void 0,function(){var e,t,n,r,o,a,i;return W(this,function(d){switch(d.label){case 0:e=[],d.label=1;case 1:return this.hasNext()?[4,this.getNext()]:[3,3];case 2:return(t=d.sent()).error?[2,t]:(e.push(t),[3,1]);case 3:return r=e.flatMap(function(e){var t=Object.keys(e.data);return 1===t.length?(n=t[0],e.data[t[0]]):e.data}),[2,{data:void 0===n?r:(o={},o[n]=r,o),request:null===(a=e[0])||void 0===a?void 0:a.request,
|
|
279
|
+
rawResponse:null===(i=e[0])||void 0===i?void 0:i.rawResponse}]}})})},e}(),nm=function(e){return new Promise(function(t){setTimeout(function(){t()},e)})},rm=function(e,t,n,r){return void 0===t&&(t={}),void 0===n&&(n=3),void 0===r&&(r=500),new Promise(function(o,a){var i=function(n){return Ro(e,t).then(function(e){o(e)}).catch(function(e){return J(void 0,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return n>0?[4,nm(r)]:[3,2];case 1:return t.sent(),[2,i(n-1)];case 2:return[2,a(e)]}})})})};return i(n)})},om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch log lines over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){return Wu.getLogsEndpoint(e)},t.body=function(){},t}return G(t,e),t}(Zu),am=function(e,t){void 0===t&&(t={});var n=this;this.contextProvider=e,this.clientOpts=t,this.getServiceLogs=function(e){
|
|
280
|
+
return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"service")]})})},this.getServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,null!=n?n:{},"job")]})})},this.getJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.logRange(i,z(z({},n),{isBuild:!0
|
|
281
|
+
}),"job")]})})},this.getAddonLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId},[2,this.logRange(r,null!=n?n:{},"addon")]})})},this.getAddonBackupLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logRange(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.getAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i,d;return W(this,function(p){return t=e.parameters,n=e.options,r=t.teamId,o=t.projectId,a=t.addonId,i={entityId:a,projectId:o,teamId:r},d={backupId:t.backupId,restoreId:t.restoreId},[2,this.logRange(i,z(z({},n),d),"addonRestore")]})})},this.logRange=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p;return W(this,function(l){switch(l.label){case 0:return n=e.entityId,
|
|
282
|
+
o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:n,entityType:r},t),{queryType:"range"}),[4,new om(this.contextProvider,this.clientOpts).call(i)];case 1:return(d=l.sent()).error?[2,d]:[2,z(z({},d),{data:null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.map(Ju)})]}})})},this.tailServiceLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.serviceId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"service")]})})},this.tailServiceBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.logTail(i,z(z({},n),{isBuild:!0}),"service")]})})},this.tailJobLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.jobId,projectId:t.projectId,
|
|
283
|
+
teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"job")]})})},this.tailJobBuildLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o,a;return W(this,function(i){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a={entityId:o,projectId:r,teamId:t.teamId},[2,this.logTail(a,z(z({},n),{isBuild:!0}),"job")]})})},this.tailAddonLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,null!=n?n:{},"addon")]})})},this.tailAddonBackupLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r;return W(this,function(o){return t=e.parameters,n=e.options,r={entityId:t.addonId,projectId:t.projectId,teamId:t.teamId},[2,this.logTail(r,z(z({},n),{backupId:t.backupId}),"addonBackup")]})})},this.tailAddonRestoresLogs=function(e){return J(n,void 0,void 0,function(){var t,n,r,o;return W(this,function(a){return t=e.parameters,n=e.options,r={
|
|
284
|
+
entityId:t.addonId,projectId:t.projectId},o={backupId:t.backupId,restoreId:t.restoreId},[2,this.logTail(r,z(z({},n),o),"addonRestore")]})})},this.logTail=function(e,t,r){return J(n,void 0,void 0,function(){var n,o,a,i,d,p;return W(this,function(l){if(n=e.entityId,o=e.projectId,a=e.teamId,i=z({queryType:"tail",teamId:a,projectId:o,entityId:n,entityType:r},t),this.assertStartedWithNodejs(),d=this.contextProvider.getCurrentBaseUrl(!0),!(p=this.contextProvider.getCurrentToken()))throw new Error("API token not found");return[2,new Wu(d,i,p,this.clientOpts.agent)]})})},this.assertStartedWithNodejs=function(){if(!yo)throw new Error("Command exec only possible when started with nodejs")}},im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetch metrics entries over a specific time span",t.withAuth=!0,t.requiredPermissions="Account > Service | Job | Addon > General > Read",t.endpointUrl=function(e){
|
|
285
|
+
var t=e.teamId,n=e.projectId,r=e.entityId,o=e.entityType,a=e.deploymentId,i=e.runId,d=e.buildId,p=e.isBuild,l=e.queryType,s=e.metricTypes,u=e.startTime,m=e.endTime,c=e.duration,v=e.containerName,h=e.timestamp,f=void 0!==t?"teams/".concat(t,"/"):"",I="/v1/".concat(f,"projects/").concat(n,"/");var w=new URLSearchParams;return w.append("queryType",l),void 0!==u&&w.append("startTime",u.toISOString()),void 0!==m&&w.append("endTime",m.toISOString()),void 0!==v&&w.append("containerName",v),void 0!==a&&w.append("deploymentId",a),void 0!==i&&w.append("runId",i),void 0!==d&&w.append("buildId",d),void 0!==h&&w.append("timestamp",h.toISOString()),void 0!==c&&w.append("duration",c.toString()),void 0!==s&&s.forEach(function(e){return w.append("metricTypes",e)}),"".concat(I).concat(function(){var e=p?"/build-metrics":"/metrics";switch(o){case"service":return"services/".concat(r).concat(e);case"job":return"jobs/".concat(r).concat(e);case"addon":return"addons/".concat(r).concat(e);default:
|
|
286
|
+
throw new Error("Unexpected Northflank entity type received in metrics endpoint generation: ".concat(o))}}(),"?").concat(w.toString())},t.body=function(){},t}return G(t,e),t}(Zu),dm=function(e){return{metadata:e.metadata,data:e.data.map(function(e){return{value:e.value,ts:new Date(e.ts)}})}};!function(e){e.Cpu="cpu",e.Memory="memory",e.NetworkIngress="networkIngress",e.NetworkEgress="networkEgress",e.TcpConnectionOpen="tcpConnectionsOpen",e.PvcUsage="diskUsage",e.Requests="requests",e.Http4xxResponses="http4xxResponses",e.Http5xxResponses="http5xxResponses",e.Bandwidth="bandwidth",e.BandwidthVolume="bandwidthVolume"}(zu||(zu={}));var pm=function(e){var t=this;this.contextProvider=e,this.getServiceMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={teamId:a,entityId:r,projectId:o},[2,this.metricsSingle(i,null!=n?n:{},"service")]})})},
|
|
287
|
+
this.getServiceBuildMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,null!=n?n:{},"job")]})})},this.getJobBuildMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.jobId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonMetrics=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.addonId,
|
|
288
|
+
o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsSingle(i,null!=n?n:{},"addon")]})})},this.metricsSingle=function(e,n,r){return J(t,void 0,void 0,function(){var t,o,a,i;return W(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:t,entityType:r},n),{queryType:"single"}),[2,this.getMetrics(i)]})})},this.getServiceMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.serviceId,o=t.projectId,a=t.teamId,i={entityId:r,projectId:o,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"service")]})})},this.getServiceBuildMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.serviceId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,z(z({},n),{isBuild:!0}),"service")]})})},this.getJobMetricsRange=function(e){
|
|
289
|
+
return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"job")]})})},this.getJobBuildMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.jobId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,z(z({},n),{isBuild:!0}),"job")]})})},this.getAddonMetricsRange=function(e){return J(t,void 0,void 0,function(){var t,n,r,o,a,i;return W(this,function(d){return t=e.parameters,n=e.options,r=t.projectId,o=t.addonId,a=t.teamId,i={entityId:o,projectId:r,teamId:a},[2,this.metricsRange(i,null!=n?n:{},"addon")]})})},this.metricsRange=function(e,n,r){return J(t,void 0,void 0,function(){var t,o,a,i;return W(this,function(d){return t=e.entityId,o=e.projectId,a=e.teamId,i=z(z({teamId:a,projectId:o,entityId:t,entityType:r},n),{
|
|
290
|
+
queryType:"range"}),[2,this.getMetrics(i)]})})},this.getMetrics=function(e){return J(t,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return[4,new im(this.contextProvider,{}).call(e)];case 1:return(t=n.sent()).error?[2,t]:[2,z(z({},t),{data:Object.fromEntries(Object.entries(t.data).map(function(e){var t=e[0],n=e[1];return[t,z(z({},n),{values:n.values.map(dm)})]}))})]}})})}},lm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the available addon types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/addon-types"},t.body=function(){},t}return G(t,e),t}(Zu),sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the backup destinations saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r
|
|
291
|
+
;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new backup destination to this account.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Create",t.endpointUrl=function(e){var t
|
|
292
|
+
;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations"):"/v1/backup-destinations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),mm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a backup destination, including secrets.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
293
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
294
294
|
;return t.description="Updates a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{
|
|
295
|
-
if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
296
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
295
|
+
if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a backup destination.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
296
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId));else{if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
297
297
|
;return t.description="Lists the backups associated with a backup destinations.",t.withAuth=!0,t.requiredPermissions="Account > BackupDestinations > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"backupDestinationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.backupDestinationId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/backup-destinations/").concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups");else{
|
|
298
|
-
if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(
|
|
299
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/billing/invoices"):"/v1/billing/invoices";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
298
|
+
if(!(null==e?void 0:e.parameters)||!("backupDestinationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.backupDestinationId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/backup-destinations/".concat(encodeURIComponent(e.parameters.backupDestinationId),"/backups")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of past invoices",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n
|
|
299
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/billing/invoices"):"/v1/billing/invoices";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
300
300
|
;return t.description="Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.",t.withAuth=!0,t.requiredPermissions="Account > Billing > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/billing/invoices/details"):"/v1/billing/invoices/details";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){
|
|
301
|
-
return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
302
|
-
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
303
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
304
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
305
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
301
|
+
return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Zu),wm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud providers",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/cloud-providers"},t.body=function(){},t}return G(t,e),t}(Zu),gm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists clusters for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
302
|
+
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),bm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
303
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or update a cluster.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
304
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters"):"/v1/cloud-providers/clusters"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Rm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given cluster",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
305
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),jm=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 G(t,e),t}(
|
|
308
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
307
|
+
;o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given cluster. Fails if the cluster has associated projects.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
308
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.clusterId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/clusters/").concat(encodeURIComponent(e.parameters.clusterId));else{if(!(null==e?void 0:e.parameters)||!("clusterId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.clusterId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of nodes for the given cluster",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
310
|
+
;a="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Em=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Cordon a node on the cluster to prevent new pods from scheduling on it.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
312
|
+
if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/cordon")}return i},t.body=function(){},t}return G(t,e),t}(Ku),_m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Drain a node by evicting all running pods.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
314
|
+
if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/drain")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Uncordon a node on the cluster if it was previously cordoned.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Clusters > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
317
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
318
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
319
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
320
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
316
|
+
if(!((null==e?void 0:e.parameters)&&"clusterId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.clusterId)&&(null==e?void 0:e.parameters)&&"nodeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.nodeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/cloud-providers/clusters/".concat(encodeURIComponent(e.parameters.clusterId),"/nodes/").concat(encodeURIComponent(e.parameters.nodeId),"/uncordon")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Nm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n
|
|
317
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Am=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
|
|
318
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a integration.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
319
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations"):"/v1/cloud-providers/integrations"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Pm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given integration",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
320
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Tm=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 G(t,e),t}(
|
|
323
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
324
|
-
;return t.description="Lists supported cloud provider node types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},t.body=function(){},t}return G(t,e),t}(
|
|
325
|
-
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the Directory Sync directory groups for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return"/v1/directory-groups"},t.body=function(){},t}return G(t,e),t}(
|
|
326
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/dns-id"):"/v1/dns-id"},t.body=function(){},t}return G(t,e),t}(
|
|
327
|
-
;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
328
|
-
}(
|
|
329
|
-
if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
330
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
322
|
+
;o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Dm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given integration. Fails if the integration is associated with existing clusters.",t.withAuth=!0,t.requiredPermissions="Account > Cloud > Integrations > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
323
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"integrationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.integrationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/cloud-providers/integrations/").concat(encodeURIComponent(e.parameters.integrationId));else{if(!(null==e?void 0:e.parameters)||!("integrationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.integrationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/cloud-providers/integrations/".concat(encodeURIComponent(e.parameters.integrationId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
324
|
+
;return t.description="Lists supported cloud provider node types",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/node-types".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists supported cloud provider regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/cloud-providers/regions".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),Lm=function(e){function t(){
|
|
325
|
+
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the Directory Sync directory groups for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return"/v1/directory-groups"},t.body=function(){},t}return G(t,e),t}(Zu),qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the partially random string used when generating host names for the authenticated account.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
326
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/dns-id"):"/v1/dns-id"},t.body=function(){},t}return G(t,e),t}(Zu),Bm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available domains",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains"):"/v1/domains"
|
|
327
|
+
;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Vm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Registers a new domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains"):"/v1/domains"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t
|
|
328
|
+
}(Ku),Fm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{
|
|
329
|
+
if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Mm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a domain and each of its registered subdomains.",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
330
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain));else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Gm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve certificate data for a domain to verify its contents.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
333
|
-
if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/import")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
334
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
332
|
+
;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/certificate")}return o},t.body=function(){},t}return G(t,e),t}(Zu),zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Import a certificate for the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/import");else{
|
|
333
|
+
if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/import")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Jm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new subdomain to the domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
334
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/subdomains");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Wm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates subdomain to the domain.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
336
|
+
;o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),$m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
338
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))}return i},t.body=function(){},t}return G(t,e),t}(Zu),Hm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from a domain.",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
340
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assigns a service port to the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
342
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a subdomain from its assigned service",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
344
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/assign")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes the CDN integration from the given subdomain",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
346
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/disable")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Xm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Enables a CDN integration on the given subdomain",t.withAuth=!0,t.requiredPermissions="Account > Subdomains > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
348
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/cdn/enable")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new path to the subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Create",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
350
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List paths for a given subdomain.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
352
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths")}return i},t.body=function(){},t}return G(t,e),t}(Zu),tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get subdomain path details.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
355
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(){},t}return G(t,e),t}(Zu),nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a path.",t.withAuth=!0,t.requiredPermissions="Account > SubdomainPaths > General > Update",
|
|
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 G(t,e),t}(
|
|
358
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(){},t}return G(t,e),t}(Xu),rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a subdomain path.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
361
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Assign a subdomain path to a port.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
364
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unassign a subdomain path to a port.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
367
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.subdomain)&&(null==e?void 0:e.parameters)&&"subdomainPath"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.subdomainPath)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/paths/").concat(encodeURIComponent(e.parameters.subdomainPath),"/assign")}return p},t.body=function(){},t}return G(t,e),t}(Xu),ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the given subdomain",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
370
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/verify");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/verify")}return o},t.body=function(){},t}return G(t,e),t}(
|
|
371
|
-
t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
372
|
-
t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
373
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
374
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
369
|
+
if(!((null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.domain)&&(null==e?void 0:e.parameters)&&"subdomain"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.subdomain)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/subdomains/").concat(encodeURIComponent(e.parameters.subdomain),"/verify")}return i},t.body=function(){},t}return G(t,e),t}(Ku),dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attempts to verify the domain",t.withAuth=!0,t.requiredPermissions="Account > Domains > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
370
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"domain"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.domain))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/domains/").concat(encodeURIComponent(e.parameters.domain),"/verify");else{if(!(null==e?void 0:e.parameters)||!("domain"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.domain))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/domains/".concat(encodeURIComponent(e.parameters.domain),"/verify")}return o},t.body=function(){},t}return G(t,e),t}(Ku),pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of egress IPs belonging to the team",t.withAuth=!0,
|
|
371
|
+
t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Create",
|
|
372
|
+
t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
373
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips"):"/v1/egress-ips"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given egress IP",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
374
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an egress IP",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
377
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
378
|
-
t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
379
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
380
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"gradualRolloutStrategyId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.gradualRolloutStrategyId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies/").concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId));else{if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
376
|
+
;o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given egress IP.",t.withAuth=!0,t.requiredPermissions="Account > EgressIps > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
377
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"egressIpId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.egressIpId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/egress-ips/").concat(encodeURIComponent(e.parameters.egressIpId));else{if(!(null==e?void 0:e.parameters)||!("egressIpId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.egressIpId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/egress-ips/".concat(encodeURIComponent(e.parameters.egressIpId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new gradual rollout strategy.",t.withAuth=!0,
|
|
378
|
+
t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
|
|
379
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies"):"/v1/gradual-rollout-strategies"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a gradual rollout strategy.",t.withAuth=!0,t.requiredPermissions="Account > GradualRollouts > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
380
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"gradualRolloutStrategyId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.gradualRolloutStrategyId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/gradual-rollout-strategies/").concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId));else{if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Ic=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 G(t,e),t}(
|
|
383
|
-
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
384
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
385
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId));else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
382
|
+
if(!(null==e?void 0:e.parameters)||!("gradualRolloutStrategyId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.gradualRolloutStrategyId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/gradual-rollout-strategies/".concat(encodeURIComponent(e.parameters.gradualRolloutStrategyId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),wc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of log sinks added to this account.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
383
|
+
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),gc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
384
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks"):"/v1/integrations/log-sinks"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
385
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId));else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a log sink.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
388
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/pause");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/pause")}return o},t.body=function(){},t}return G(t,e),t}(
|
|
387
|
+
;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pauses a given log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
388
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/pause");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/pause")}return o},t.body=function(){},t}return G(t,e),t}(Ku),jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes a paused log sink.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
391
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/settings");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/settings")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
392
|
-
;return t.description="Lists notification integrations for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
393
|
-
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
390
|
+
;o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/resume")}return o},t.body=function(){},t}return G(t,e),t}(Ku),Uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the settings for a log sink.",t.withAuth=!0,t.requiredPermissions="Account > Sinks > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
391
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"logSinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.logSinkId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/log-sinks/").concat(encodeURIComponent(e.parameters.logSinkId),"/settings");else{if(!(null==e?void 0:e.parameters)||!("logSinkId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.logSinkId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/log-sinks/".concat(encodeURIComponent(e.parameters.logSinkId),"/settings")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),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 G(t,e),t}(Yu),Ec=function(e){function t(){
|
|
393
|
+
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications"):"/v1/integrations/notifications"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),_c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a notification integration.",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Read",t.endpointUrl=function(e){var t,n,r,o
|
|
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 G(t,e),t}(
|
|
396
|
-
if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
397
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
398
|
-
;return t.description="Lists the container registry credentials saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
399
|
-
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new set of container registry credentials to this account.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
395
|
+
t.body=function(){},t}return G(t,e),t}(Zu),Sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{
|
|
396
|
+
if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a notification integration",t.withAuth=!0,t.requiredPermissions="Account > Team > Notifications > Manage",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
397
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"notificationId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.notificationId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/notifications/").concat(encodeURIComponent(e.parameters.notificationId));else{if(!(null==e?void 0:e.parameters)||!("notificationId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.notificationId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/notifications/".concat(encodeURIComponent(e.parameters.notificationId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
398
|
+
;return t.description="Lists the container registry credentials saved to this account. Does not display secrets.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),kc=function(e){function t(){
|
|
399
|
+
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new set of container registry credentials to this account.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries"):"/v1/integrations/registries"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Pc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Read Encrypted",
|
|
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 G(t,e),t}(
|
|
402
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"credentialId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.credentialId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries/").concat(encodeURIComponent(e.parameters.credentialId));else{if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
401
|
+
;o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a set of registry credential data.",t.withAuth=!0,t.requiredPermissions="Account > Credentials > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
402
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"credentialId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.credentialId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/registries/").concat(encodeURIComponent(e.parameters.credentialId));else{if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Dc=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 G(t,e),t}(
|
|
405
|
-
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
406
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
407
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
404
|
+
if(!(null==e?void 0:e.parameters)||!("credentialId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.credentialId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/registries/".concat(encodeURIComponent(e.parameters.credentialId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the SSH identities saved to this account. Does not display SSH public keys.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
405
|
+
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a new SSH identity to this account.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
406
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities"):"/v1/integrations/ssh-identities"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Views SSH identity data including public keys.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
407
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates SSH identity data.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
410
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
409
|
+
;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates SSH identity data.",t.withAuth=!0,t.requiredPermissions="Account > Ssh > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
410
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"identityId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.identityId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/ssh-identities/").concat(encodeURIComponent(e.parameters.identityId));else{if(!(null==e?void 0:e.parameters)||!("identityId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.identityId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Vc=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 G(t,e),t}(
|
|
412
|
+
;o="/v1/integrations/ssh-identities/".concat(encodeURIComponent(e.parameters.identityId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists linked version control providers",t.withAuth=!0,t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs"):"/v1/integrations/vcs"},t.body=function(){},t}return G(t,e),t}(Zu),Mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generate a token for a specific VCS link.",
|
|
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 G(t,e),t}(
|
|
415
|
-
t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs/repos"):"/v1/integrations/vcs/repos";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
414
|
+
if(!((null==e?void 0:e.parameters)&&"customVCSId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.customVCSId)&&(null==e?void 0:e.parameters)&&"vcsLinkId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.vcsLinkId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/integrations/vcs/custom/".concat(encodeURIComponent(e.parameters.customVCSId),"/token/").concat(encodeURIComponent(e.parameters.vcsLinkId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Ku),Gc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of repositories accessible to this account",t.withAuth=!0,
|
|
415
|
+
t.requiredPermissions="Account > Git > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/integrations/vcs/repos"):"/v1/integrations/vcs/repos";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of branches for the repo",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
420
|
-
;return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
421
|
-
t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
422
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
419
|
+
}).join("&")):"";return"".concat(l).concat(u)},t.body=function(){},t}return G(t,e),t}(Yu),Jc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of load balancers belonging to the team",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):""
|
|
420
|
+
;return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),Wc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),$c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a load balancer",t.withAuth=!0,
|
|
421
|
+
t.requiredPermissions="Account > LoadBalancers > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers"):"/v1/load-balancers"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given load balancer",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
|
|
422
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),Zc=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 G(t,e),t}(
|
|
425
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
426
|
-
t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/org-roles".concat(r)},t.body=function(){},t}return G(t,e),t}(
|
|
427
|
-
t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
428
|
-
return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
429
|
-
;return t.description="Adds a user to a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
430
|
-
"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(
|
|
431
|
-
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
432
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
433
|
-
return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
434
|
-
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
435
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
424
|
+
if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given load balancer.",t.withAuth=!0,t.requiredPermissions="Account > LoadBalancers > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
425
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"loadBalancerId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.loadBalancerId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/load-balancers/").concat(encodeURIComponent(e.parameters.loadBalancerId));else{if(!(null==e?void 0:e.parameters)||!("loadBalancerId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.loadBalancerId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/load-balancers/".concat(encodeURIComponent(e.parameters.loadBalancerId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),Kc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of platform roles for the authenticated org.",
|
|
426
|
+
t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/org-roles".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),Xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new platform role for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates role or updates all user-editable fields on a platform role for the authenticated org.",t.withAuth=!0,
|
|
427
|
+
t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return"/v1/org-roles"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a specific org platform role.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Zu),tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Partially updates a platform role for the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){
|
|
428
|
+
return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a platform role from the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Xu),rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
429
|
+
;return t.description="Adds a user to a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a user from a platform role in the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
430
|
+
"/v1/org-roles/".concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(Xu),av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available billing plans",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){return"/v1/plans"},t.body=function(){},t}return G(t,e),t}(Zu),iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists projects for the authenticated user or team.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
431
|
+
r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
432
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects"):"/v1/projects"},t.body=function(e){
|
|
433
|
+
return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project.",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{
|
|
434
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given project",t.withAuth=!0,t.requiredPermissions="Project > Projects > Manage > Read",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
435
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId));else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}return o},t.body=function(){},t}return G(t,e),t}(Zu),uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the given project. Fails if the project isn't empty.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
437
|
+
;a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId))}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Xu),mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
440
|
-
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
441
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
439
|
+
;return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{
|
|
440
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
441
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given addon",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
443
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an addon",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
445
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Iv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
447
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),wv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about an addon's backup schedules",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
449
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a new backup schedule for an addon.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
451
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a backup schedule for an addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
454
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"scheduleId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.scheduleId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backup-schedules/").concat(encodeURIComponent(e.parameters.scheduleId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of backups for the given addon.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
456
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for the given addon",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
458
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
461
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Uv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a given backup",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",
|
|
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 G(t,e),t}(
|
|
464
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Cv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the in progress backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",
|
|
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 G(t,e),t}(
|
|
467
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Ku),Ev=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts an in-progress backup restore.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
471
|
+
t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),_v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Generates a temporary download link for downloading the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
473
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/download-link")}return p},t.body=function(){},t}return G(t,e),t}(Zu),Sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restores the given addon to the given backup state.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
477
|
+
t.body=function(){},t}return G(t,e),t}(Ku),Nv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of restores for the given backup.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
480
|
+
t.body=function(){},t}return G(t,e),t}(Yu),Av=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Flags a temporary backup generated by a backup schedule to be retained indefinitely rather than being deleted after the expiry date.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
482
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.addonId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/backups/").concat(encodeURIComponent(e.parameters.backupId),"/retain")}return p},t.body=function(){},t}return G(t,e),t}(Ku),kv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given addon.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
484
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Pv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns the credentials for connecting to the given addon.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
487
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
486
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/credentials")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Tv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Imports a database from an external archive or existing live database.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){return[].forEach(function(t){var n
|
|
487
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/import")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Dv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the network settings for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
489
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/network-settings")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Ov=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
491
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Ku),xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Reset the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
493
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/reset")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Lv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restart the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
495
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restart")}return i},t.body=function(){},t}return G(t,e),t}(Ku),qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns a list of restores for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
497
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/restores")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Bv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resume the given addon if it is paused.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
499
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/resume")}return i},t.body=function(){},t}return G(t,e),t}(Ku),Vv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the allocated resources for the given addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
501
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the security rules for the addon.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
503
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/security")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about the current addon version including available upgrades and upgrade history.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
505
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Gv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Upgrades the addon to a new version.",t.withAuth=!0,t.requiredPermissions="Project > Addons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
507
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.addonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/addons/").concat(encodeURIComponent(e.parameters.addonId),"/version")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of external addons belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
510
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
509
|
+
var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Jv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new external addon (third-party cloud resource provisioned via OpenTofu)",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
510
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/external-addons");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Wv=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 G(t,e),t}(
|
|
513
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),$v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates configuration for an external addon",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
515
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes an external addon and destroys the associated cloud resource",t.withAuth=!0,t.requiredPermissions="Project > ExternalAddons > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
517
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"externalAddonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.externalAddonId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/external-addons/").concat(encodeURIComponent(e.parameters.externalAddonId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Zv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of jobs belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
520
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
519
|
+
return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new job (manual or cron based on settings.cron presence)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
520
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Kv=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 G(t,e),t}(
|
|
523
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
522
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Xv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
523
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Qv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a cron job",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
525
|
+
;o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a cron job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
527
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/cron/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
|
|
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 G(t,e),t
|
|
529
|
-
}(
|
|
530
|
-
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
529
|
+
}(Ku),nh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual");else{
|
|
530
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a new manual job that only runs when initiated via the UI, CLI, API or JS client.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
532
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/manual/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
534
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a job (manual or cron based on current type and settings.cron)",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
536
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
538
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))
|
|
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 G(t,e),t}(
|
|
540
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/branches")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),ph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists builds for the given job.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
542
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),lh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Start a new build for the given job. Given a commit sha, it will build that commit.",
|
|
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 G(t,e),t}(
|
|
544
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the build arguments of the given job. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d
|
|
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 G(t,e),t}(
|
|
546
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets build arguments for the given job.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
548
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),mh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
550
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-arguments/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
552
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-options")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
554
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build-source")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
556
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job build",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",
|
|
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 G(t,e),t}(
|
|
559
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Ih=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given job.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
561
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),wh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given job.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
563
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")}return i},t.body=function(){},t}return G(t,e),t}(Zu),gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
565
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/deployment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
567
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")}return i},t.body=function(){},t}return G(t,e),t}(Zu),yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
569
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/health-checks")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
571
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Ku),jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
573
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/pull-requests")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Uh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given job. Optionally takes several arguments to override resumed settings.",
|
|
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 G(t,e),t}(
|
|
575
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/resume")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Fetches run history for the given job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
577
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Starts a new job run for the given job",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
579
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),_h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Returns data about the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
581
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given job run",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Deploy Build",t.endpointUrl=function(e){
|
|
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 G(t,e),t}(
|
|
584
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.jobId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Nh=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 G(t,e),t}(
|
|
587
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),Ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given job.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
589
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given job. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Jobs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
591
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/runtime-environment/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Ph=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given job.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > Deployment > Scale Job",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
593
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates settings for the job",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
595
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/settings")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modify cron job to toggle suspending of its schedule.",t.withAuth=!0,t.requiredPermissions="Project > Jobs > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
597
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"jobId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.jobId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/jobs/").concat(encodeURIComponent(e.parameters.jobId),"/suspend")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all AI models for a project",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
600
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
599
|
+
var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
600
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Lh=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 G(t,e),t}(
|
|
603
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
605
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete an AI model",t.withAuth=!0,t.requiredPermissions="Project > AiModels > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
607
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"llmModelDeploymentId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.llmModelDeploymentId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/llm-model-deployments/").concat(encodeURIComponent(e.parameters.llmModelDeploymentId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all pipelines for a project",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
609
|
+
var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a pipeline",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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 G(t,e),t}(
|
|
611
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),Mh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
613
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a given preview template.",t.withAuth=!0,
|
|
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 G(t,e),t}(
|
|
615
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active preview environments for a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
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 G(t,e),t}(
|
|
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
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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))
|
|
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");
|
|
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,"'"))}),
|
|
622
|
-
|
|
617
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
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,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,"'"))}),
|
|
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))l="/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");l="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/previews/").concat(encodeURIComponent(e.parameters.previewId))}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("&")):""
|
|
621
|
+
;return"".concat(l).concat(u)},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Xu),Wh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run the given preview template.",t.withAuth=!0,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,"'"))}),
|
|
622
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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{
|
|
623
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),$h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of preview template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
623
624
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
625
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.pipelineId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given preview template run.",
|
|
625
626
|
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
627
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
628
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/preview-envs/runs/").concat(encodeURIComponent(e.parameters.templateRunId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a release flow",t.withAuth=!0,
|
|
628
629
|
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
630
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
631
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a release flow",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",
|
|
631
632
|
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
633
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
634
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
634
635
|
;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
636
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
637
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.stage)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a release flow",t.withAuth=!0,
|
|
637
638
|
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
639
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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
640
|
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 G(t,e),t}(
|
|
641
|
+
t.body=function(){},t}return G(t,e),t}(Yu),Qh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l,s;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
641
642
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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
643
|
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.projectId)&&(null==e?void 0:e.parameters)&&"pipelineId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.pipelineId)&&(null==e?void 0:e.parameters)&&"stage"in(null==e?void 0:e.parameters)&&void 0!==(null===(p=null==e?void 0:e.parameters)||void 0===p?void 0:p.stage)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(l=null==e?void 0:e.parameters)||void 0===l?void 0:l.runId)))throw new Error("No matching endpoint URL found for provided parameters");s="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/pipelines/").concat(encodeURIComponent(e.parameters.pipelineId),"/release-flows/").concat(encodeURIComponent(e.parameters.stage),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return s},t.body=function(){},t}return G(t,e),t
|
|
643
|
-
}(
|
|
644
|
+
}(Zu),ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given release flow run",t.withAuth=!0,t.requiredPermissions="Project > Pipelines > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p,l,s;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
644
645
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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
646
|
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 G(t,e),t}(
|
|
647
|
-
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(
|
|
647
|
+
return G(t,e),t}(Ku),tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all preview blueprints for a project",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))a="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints");else{
|
|
648
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),nf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
|
|
648
649
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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 G(t,e),t}(
|
|
650
|
+
return G(t,e),t}(Ku),rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
650
651
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
652
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
652
653
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
654
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a preview blueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
654
655
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
656
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of active previews for a preview blueprint.",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
656
657
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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))
|
|
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");
|
|
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,"'"))}),
|
|
658
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
659
|
+
;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,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,"'"))}),
|
|
660
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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))l="/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{
|
|
661
|
+
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");l="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId))}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("&")):""
|
|
662
|
+
;return"".concat(l).concat(u)},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Xu),lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause a preview environment generated by a preview blueprint.",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
663
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
664
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/pause")}return p},t.body=function(){},t}return G(t,e),t}(Ku),sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
664
665
|
;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
666
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
667
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/reset")}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
667
668
|
;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
669
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
670
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"previewId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.previewId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/previews/").concat(encodeURIComponent(e.parameters.previewId),"/resume")}return p},t.body=function(){},t}return G(t,e),t}(Ku),mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
670
671
|
;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
672
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
673
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a previewBlueprint",t.withAuth=!0,t.requiredPermissions="Project > PreviewBlueprints > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
673
674
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
675
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.previewBlueprintId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),vf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
675
676
|
;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
677
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
678
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given preview blueprint run",t.withAuth=!0,
|
|
678
679
|
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
680
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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,"'"))})
|
|
682
|
-
"/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")}
|
|
683
|
-
|
|
684
|
-
;return
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
if(!(null==e?void 0:e.parameters)
|
|
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)
|
|
691
|
-
|
|
692
|
-
|
|
681
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"previewBlueprintId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.previewBlueprintId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/preview-blueprints/").concat(encodeURIComponent(e.parameters.previewBlueprintId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Ku),ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of project secrets belonging to the project",t.withAuth=!0,
|
|
682
|
+
t.requiredPermissions="undefined",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),"/secrets");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")
|
|
683
|
+
;a="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets")}var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),If=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){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,"'"))}),
|
|
684
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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),"/secrets");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),"/secrets")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
685
|
+
;return t.description="Creates or updates a project 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,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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),"/secrets");else{
|
|
686
|
+
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),"/secrets")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a project secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){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,"'"))}),
|
|
687
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(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))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{
|
|
688
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.secretId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a project secret including its contents",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
689
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(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))d="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{
|
|
690
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.secretId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a project secret",t.withAuth=!0,t.requiredPermissions="undefined",
|
|
691
|
+
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)&&"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))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{
|
|
692
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.secretId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),Rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a project secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){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
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(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))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));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)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.secretId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Link an addon to a project secret or edit the settings of the linked addon.",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
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,"'"))}),
|
|
696
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(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)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.addonId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId));else{
|
|
697
|
+
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)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.secretId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.addonId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return p},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about a given addon link.",t.withAuth=!0,
|
|
698
|
+
t.requiredPermissions="undefined",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,"'"))}),
|
|
699
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(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)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.addonId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId));else{
|
|
700
|
+
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)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.secretId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.addonId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Unlinks an addon from the project secret.",t.withAuth=!0,t.requiredPermissions="undefined",
|
|
701
|
+
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,"'"))}),
|
|
702
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId)&&(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)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.addonId))p="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId));else{
|
|
703
|
+
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)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.secretId)&&(null==e?void 0:e.parameters)&&"addonId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.addonId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/addons/").concat(encodeURIComponent(e.parameters.addonId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View a project secret with details about its linked addons",t.withAuth=!0,t.requiredPermissions="undefined",
|
|
704
|
+
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)&&"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))i="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/details");else{
|
|
705
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.secretId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId),"/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),_f=function(e){function t(){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
|
|
706
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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{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")}
|
|
707
|
+
var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),Sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
708
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/build");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Nf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a build service.",
|
|
709
|
+
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{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")
|
|
710
|
+
;o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a build service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
693
711
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/build/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
|
|
695
713
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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 G(t,e),t}(
|
|
697
|
-
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
714
|
+
return G(t,e),t}(Ku),Pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/combined");else{
|
|
715
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),Tf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
698
716
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/combined/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n
|
|
700
718
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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 G(t,e),t}(
|
|
702
|
-
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
719
|
+
return G(t,e),t}(Ku),Of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/services/deployment");else{
|
|
720
|
+
if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a deployment service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
703
721
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
722
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/deployment/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),Lf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
705
723
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
724
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
707
725
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
726
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId))}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Xu),Bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the branches of the given service.",t.withAuth=!0,
|
|
709
727
|
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 G(t,e),t}(
|
|
728
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/branches")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Vf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the builds for the service",t.withAuth=!0,
|
|
711
729
|
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 G(t,e),t}(
|
|
730
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
713
731
|
;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
732
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Mf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the build arguments of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",
|
|
716
734
|
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 G(t,e),t}(
|
|
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");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build-arguments")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),Gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the build arguments for the given service.",t.withAuth=!0,
|
|
718
736
|
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 G(t,e),t}(
|
|
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),"/build-arguments")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the build arguments accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t,n,r,o,a,i
|
|
720
738
|
;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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),"/build-arguments/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Jf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the build options for a given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
722
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),"/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 G(t,e),t}(
|
|
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),"/build-options")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the version control source for a given build or combined service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
724
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),"/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 G(t,e),t}(
|
|
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),"/build-source")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),$f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a build for the service",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
726
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,"'"))}),
|
|
727
745
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
746
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),Hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Aborts the given service build",t.withAuth=!0,
|
|
729
747
|
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
748
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
749
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.serviceId)&&(null==e?void 0:e.parameters)&&"buildId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.buildId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/build/").concat(encodeURIComponent(e.parameters.buildId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of containers for the given service.",t.withAuth=!0,
|
|
732
750
|
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 G(t,e),t}(
|
|
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");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/containers")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),Yf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the deployment of the given service.",t.withAuth=!0,
|
|
734
752
|
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 G(t,e),t}(
|
|
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),"/deployment")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the deployment settings of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Update Deployment",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
736
754
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/deployment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),Xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
738
756
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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),"/health-checks")}return i},t.body=function(){},t}return G(t,e),t}(Zu),Qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates health checks for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
740
758
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
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),"/health-checks")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),eI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Pause the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
742
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),"/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 G(t,e),t}(
|
|
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),"/pause")}return i},t.body=function(){},t}return G(t,e),t}(Ku),tI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists the ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
744
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)&&(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 G(t,e),t}(
|
|
763
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")}return i},t.body=function(){},t}return G(t,e),t}(Zu),nI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the list of ports for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
746
764
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
765
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/ports")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),rI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about the pull-requests of the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
748
766
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
767
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/pull-requests")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),oI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Restarts the given service.",t.withAuth=!0,
|
|
750
768
|
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 G(t,e),t}(
|
|
769
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/restart")}return i},t.body=function(){},t}return G(t,e),t}(Ku),aI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Resumes the given service. Optionally takes several arguments to override resumed settings.",t.withAuth=!0,t.requiredPermissions="Project > Services > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
752
770
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
771
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/resume")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),iI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets the runtime environment of the given service. If the API key does not have the permission 'Project > Secrets > General > Read', secrets inherited from secret groups will not be displayed.",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",
|
|
754
772
|
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 G(t,e),t}(
|
|
773
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Zu),dI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sets the runtime environment for the given service.",t.withAuth=!0,
|
|
756
774
|
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 G(t,e),t}(
|
|
775
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),pI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details about the runtime environment accessible by the given service. Also requires the permission 'Project > Secrets > General > Read'",t.withAuth=!0,t.requiredPermissions="Project > Secrets > Services > Read",t.endpointUrl=function(e){var t,n,r,o,a,i
|
|
758
776
|
;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
777
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/runtime-environment/details")}return i},t.body=function(){},t}return G(t,e),t}(Zu),lI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Modifies the scaling settings for the given service.",t.withAuth=!0,t.requiredPermissions="Project > Services > Deployment > Scale Service",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
760
778
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
779
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"serviceId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.serviceId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/services/").concat(encodeURIComponent(e.parameters.serviceId),"/scale")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),sI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of volumes belonging to the project",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
762
780
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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 G(t,e),t}(
|
|
764
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
781
|
+
var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),uI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a volume with the specified payload",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
782
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/volumes");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),mI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Retrieve a volume",t.withAuth=!0,
|
|
765
783
|
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 G(t,e),t}(
|
|
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))}return i},t.body=function(){},t}return G(t,e),t}(Zu),cI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update volume mounts and storage size",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
767
785
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
786
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),vI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes this volume and its associated data.",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Delete",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
769
787
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
788
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId))}return i},t.body=function(){},t}return G(t,e),t}(Xu),hI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Attach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
771
789
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
790
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/attach")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),fI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get list of backups associated with a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
773
791
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
792
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),II=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Initiates a backup for a given volume",t.withAuth=!0,
|
|
775
793
|
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 G(t,e),t}(
|
|
794
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),wI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get details for a specific volume backup",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d,p;if([].forEach(function(t){var n
|
|
777
795
|
;if(void 0===(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
796
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
797
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),gI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete the volume backup",t.withAuth=!0,t.requiredPermissions="Project > Volumes > Backups > Delete",
|
|
780
798
|
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
799
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
800
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.volumeId)&&(null==e?void 0:e.parameters)&&"backupId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.backupId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/backups/").concat(encodeURIComponent(e.parameters.backupId))}return p},t.body=function(){},t}return G(t,e),t}(Xu),bI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Detach a volume",t.withAuth=!0,t.requiredPermissions="Project > Volumes > General > Update",
|
|
783
801
|
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 G(t,e),t}(
|
|
802
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"volumeId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.volumeId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/volumes/").concat(encodeURIComponent(e.parameters.volumeId),"/detach")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),yI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists all workflows for a project",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
785
803
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"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 G(t,e),t}(
|
|
787
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
804
|
+
var i=Object.entries(null!==(o=null==e?void 0:e.options)&&void 0!==o?o:{}).filter(function(e){return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),RI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Create",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.projectId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/projects/").concat(encodeURIComponent(e.parameters.projectId),"/workflows");else{if(!(null==e?void 0:e.parameters)||!("projectId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.projectId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),jI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets details about a workflow",t.withAuth=!0,
|
|
788
806
|
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 G(t,e),t}(
|
|
807
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),UI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > General > Update",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
790
808
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
809
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId))}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),CI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Runs a given workflow with given arguments. This endpoint can be used as part of a CI pipeline to automatically trigger a release process.",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Start",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
792
810
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
811
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs")}return i},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),EI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists runs of a workflow",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Read",t.endpointUrl=function(e){var t,n,r,o,a,i,d;if([].forEach(function(t){var n
|
|
794
812
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
813
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.workflowId)))throw new Error("No matching endpoint URL found for provided parameters");d="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs")}var p=Object.entries(null!==(i=null==e?void 0:e.options)&&void 0!==i?i:{}).filter(function(e){return void 0!==e[1]}),l=p.length>0?"?".concat(p.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(d).concat(l)},t.body=function(){},t}return G(t,e),t}(Yu),_I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given workflow run",t.withAuth=!0,
|
|
796
814
|
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
815
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
816
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId))}return p},t.body=function(){},t}return G(t,e),t}(Zu),SI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given workflow run",t.withAuth=!0,t.requiredPermissions="Project > Workflows > Runs > Abort",
|
|
799
817
|
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
818
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
802
|
-
return"/v1/regions"},t.body=function(){},t}return G(t,e),t}(
|
|
803
|
-
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
804
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
805
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
819
|
+
if(!((null==e?void 0:e.parameters)&&"projectId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.projectId)&&(null==e?void 0:e.parameters)&&"workflowId"in(null==e?void 0:e.parameters)&&void 0!==(null===(i=null==e?void 0:e.parameters)||void 0===i?void 0:i.workflowId)&&(null==e?void 0:e.parameters)&&"runId"in(null==e?void 0:e.parameters)&&void 0!==(null===(d=null==e?void 0:e.parameters)||void 0===d?void 0:d.runId)))throw new Error("No matching endpoint URL found for provided parameters");p="/v1/projects/".concat(encodeURIComponent(e.parameters.projectId),"/workflows/").concat(encodeURIComponent(e.parameters.workflowId),"/runs/").concat(encodeURIComponent(e.parameters.runId),"/abort")}return p},t.body=function(){},t}return G(t,e),t}(Ku),NI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Lists available project regions",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){
|
|
820
|
+
return"/v1/regions"},t.body=function(){},t}return G(t,e),t}(Zu),AI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of global secrets",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),kI=function(e){function t(){
|
|
821
|
+
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),PI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates or updates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n
|
|
822
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets"):"/v1/secrets"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),TI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a global secret with the specified payload",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
823
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),DI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a global secret including its contents",t.withAuth=!0,
|
|
806
824
|
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 G(t,e),t}(
|
|
808
|
-
if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
809
|
-
;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(
|
|
810
|
-
return G(t,e),t}(
|
|
825
|
+
t.body=function(){},t}return G(t,e),t}(Zu),OI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a global secret",t.withAuth=!0,t.requiredPermissions="undefined",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"secretId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.secretId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/secrets/").concat(encodeURIComponent(e.parameters.secretId));else{
|
|
826
|
+
if(!(null==e?void 0:e.parameters)||!("secretId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.secretId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/secrets/".concat(encodeURIComponent(e.parameters.secretId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),xI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="List the resource tags for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"
|
|
827
|
+
;var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),LI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Add a new resource tag for this entity.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}
|
|
828
|
+
return G(t,e),t}(Ku),qI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update or create a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags"):"/v1/tags"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),BI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="View details for a given resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Read",t.endpointUrl=function(e){var t,n,r,o
|
|
811
829
|
;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(){},t}return G(t,e),t
|
|
812
|
-
}(
|
|
813
|
-
if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
814
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(){},t}return G(t,e),t}(
|
|
815
|
-
t.requiredPermissions="Organisation > Team > General > Create",t.endpointUrl=function(e){return"/v1/teams"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
816
|
-
return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(){},t}return G(t,e),t}(
|
|
817
|
-
;return t.description="Gets a list of members belonging to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members").concat(r)},t.body=function(){},t}return G(t,e),t}(
|
|
818
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
819
|
-
t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles").concat(r)},t.body=function(){},t}return G(t,e),t}(
|
|
820
|
-
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
821
|
-
;return t.description="Gets details about a specific platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(
|
|
822
|
-
"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
823
|
-
return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
824
|
-
}return G(t,e),t}(
|
|
825
|
-
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
830
|
+
}(Zu),VI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Patch a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{
|
|
831
|
+
if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),FI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a resource tag.",t.withAuth=!0,t.requiredPermissions="Account > Tags > General > Delete",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
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)&&"resourceTagId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.resourceTagId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/tags/").concat(encodeURIComponent(e.parameters.resourceTagId));else{if(!(null==e?void 0:e.parameters)||!("resourceTagId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.resourceTagId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/tags/".concat(encodeURIComponent(e.parameters.resourceTagId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),MI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new team belonging to the authenticated org.",t.withAuth=!0,
|
|
833
|
+
t.requiredPermissions="Organisation > Team > General > Create",t.endpointUrl=function(e){return"/v1/teams"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),GI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of teams belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Read",t.endpointUrl=function(e){var t,n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams".concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),zI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets information about a team belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Read",t.endpointUrl=function(e){
|
|
834
|
+
return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(){},t}return G(t,e),t}(Zu),JI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates the description of a team belonging to the authenticated org.",t.withAuth=!0,t.requiredPermissions="Organisation > Team > General > Update",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),WI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
835
|
+
;return t.description="Gets a list of members belonging to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members").concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),$I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Sends an invitation email to add a user to a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n
|
|
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,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),HI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a member from a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Members > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t}return G(t,e),t}(Xu),ZI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Gets a list of platform roles for a team.",
|
|
837
|
+
t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){var t;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))});var n=Object.entries(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:{}).filter(function(e){return void 0!==e[1]}),r=n.length>0?"?".concat(n.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles").concat(r)},t.body=function(){},t}return G(t,e),t}(Yu),YI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates a new platform role for a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n
|
|
838
|
+
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),KI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Creates role or updates all user-editable fields on a platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Qu),XI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this
|
|
839
|
+
;return t.description="Gets details about a specific platform role.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Read",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Zu),QI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Updates a platform role for a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
840
|
+
"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(em),ew=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Deletes a platform role from a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId))},t.body=function(){},t}return G(t,e),t}(Xu),tw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Adds a user to a platform role in a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){
|
|
841
|
+
return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members")},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),nw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Removes a user from a platform role in a team.",t.withAuth=!0,t.requiredPermissions="Account > Admin > Roles > Manage",t.endpointUrl=function(e){return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/roles/").concat(encodeURIComponent(e.parameters.roleId),"/members/").concat(encodeURIComponent(e.parameters.memberId))},t.body=function(){},t
|
|
842
|
+
}return G(t,e),t}(Xu),rw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of templates",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r;[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),r=(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates";var o=Object.entries(null!==(n=null==e?void 0:e.options)&&void 0!==n?n:{}).filter(function(e){return void 0!==e[1]}),a=o.length>0?"?".concat(o.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(r).concat(a)},t.body=function(){},t}return G(t,e),t}(Yu),ow=function(e){function t(){
|
|
843
|
+
var t=null!==e&&e.apply(this,arguments)||this;return t.description="Create a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Create",t.endpointUrl=function(e){var t;return[].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)?"/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates"):"/v1/templates"},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),aw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n
|
|
826
844
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
828
|
-
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId));else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
845
|
+
return void 0!==e[1]}),d=i.length>0?"?".concat(i.map(function(e){return"".concat(e[0],"=").concat(e[1])}).join("&")):"";return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),iw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Update a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Update",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
846
|
+
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId));else{if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),dw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Delete a template",t.withAuth=!0,
|
|
829
847
|
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 G(t,e),t}(
|
|
831
|
-
if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(
|
|
848
|
+
;o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId))}return o},t.body=function(){},t}return G(t,e),t}(Xu),pw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Run a template",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Run",t.endpointUrl=function(e){var t,n,r,o;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.parameters)&&void 0!==(null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.teamId)&&(null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n.templateId))o="/v1/teams/".concat(encodeURIComponent(e.parameters.teamId),"/templates/").concat(encodeURIComponent(e.parameters.templateId),"/runs");else{
|
|
849
|
+
if(!(null==e?void 0:e.parameters)||!("templateId"in(null==e?void 0:e.parameters))||void 0===(null===(r=null==e?void 0:e.parameters)||void 0===r?void 0:r.templateId))throw new Error("No matching endpoint URL found for provided parameters");o="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs")}return o},t.body=function(e){return JSON.stringify(e.data)},t}return G(t,e),t}(Ku),lw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get a list of template runs",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
832
850
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
851
|
+
;return"".concat(a).concat(d)},t.body=function(){},t}return G(t,e),t}(Yu),sw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Get information about the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > General > Read",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),
|
|
834
852
|
(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
853
|
+
if(!((null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId))}return i},t.body=function(){},t}return G(t,e),t}(Zu),uw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.description="Abort the given template run.",t.withAuth=!0,t.requiredPermissions="Account > Templates > Runs > Abort",t.endpointUrl=function(e){var t,n,r,o,a,i;if([].forEach(function(t){var n
|
|
836
854
|
;if(void 0===(null===(n=null==e?void 0:e.parameters)||void 0===n?void 0:n[t]))throw new Error("Required argument not set: '".concat(t,"'"))}),(null==e?void 0:e.parameters)&&"teamId"in(null==e?void 0:e.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 G(t,e),t}(
|
|
855
|
+
if(!((null==e?void 0:e.parameters)&&"templateId"in(null==e?void 0:e.parameters)&&void 0!==(null===(o=null==e?void 0:e.parameters)||void 0===o?void 0:o.templateId)&&(null==e?void 0:e.parameters)&&"templateRunId"in(null==e?void 0:e.parameters)&&void 0!==(null===(a=null==e?void 0:e.parameters)||void 0===a?void 0:a.templateRunId)))throw new Error("No matching endpoint URL found for provided parameters");i="/v1/templates/".concat(encodeURIComponent(e.parameters.templateId),"/runs/").concat(encodeURIComponent(e.parameters.templateRunId),"/abort")}return i},t.body=function(){},t}return G(t,e),t}(Ku),mw=function(){function e(){}return e.prototype.loadContext=function(){this.contextWrapper=this.loadContextWrapper()},e.prototype.getInfo=function(){return""},e.prototype.storeContext=function(e){this.writeContext(e),this.contextWrapper=e},e.prototype.addContext=function(e,t){if(void 0===t&&(t=!0),this.loadContext(),
|
|
838
856
|
!t&&void 0!==this.findContext(e.name))throw new Error("Context with name ".concat(e.name," already exists"));this.removeContext(e.name);var n=z({host:"https://api.northflank.com"},e),r=this.contextWrapper,o={current:n.name,contexts:$($([],r.contexts,!0),[n],!1),lastUpdateCheck:r.lastUpdateCheck};this.storeContext(o)},e.prototype.removeContext=function(e){this.loadContext();var t=this.contextWrapper,n=t.contexts.filter(function(t){return t.name!==e}),r={current:t.current===e?void 0:t.current,contexts:$([],n,!0),lastUpdateCheck:t.lastUpdateCheck};this.storeContext(r)},e.prototype.getCurrentContext=function(){var e,t=null===(e=this.contextWrapper)||void 0===e?void 0:e.current;return void 0===t?t:this.findContext(t)},e.prototype.findContext=function(e){return this.contextWrapper.contexts.find(function(t){return t.name===e})},e.prototype.getCurrentBaseUrl=function(e){var t=this.getCurrentContext()
|
|
839
857
|
;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
858
|
var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(Buffer.from(t,"base64").toString("utf8"))}catch(e){return}}(t.token),o=null!==(e=null==r?void 0:r.entityType)&&void 0!==e?e:"team";return this.updateContext(z(z({},t),{tokenScope:o})),o}}},e.prototype.getCurrentPlanId=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.plan},e.prototype.getCurrentRegion=function(){var e;return null===(e=this.getCurrentContext())||void 0===e?void 0:e.region},e.prototype.useContext=function(e){if(this.loadContext(),!this.findContext(e))throw new Error("Context with name ".concat(e," doesn't exist"));var t=this.contextWrapper,n=z(z({},t),{current:e});this.storeContext(n)},e.prototype.updateContext=function(e){if(this.loadContext(),!this.findContext(e.name))throw new Error("Context with name ".concat(e.name," doesn't exist"));var t=this.contextWrapper.contexts.map(function(t){return t.name===e.name?z(z({},t),e):t}),n=z(z({},this.contextWrapper),{
|
|
841
859
|
contexts:t});this.storeContext(n)},e.prototype.updateToken=function(e,t){this.loadContext();var n=null!=t?t:this.getCurrentName(),r=this.findContext(n);if(!r)throw new Error("Context with name ".concat(t," doesn't exist"));this.updateContext(z(z({},r),{token:e}))},e.prototype.useProjectId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set project id to current context, current context not defined");var n=z(z({},t),{project:e});this.addContext(n)},e.prototype.useServiceId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set service id to current context, current context not defined");var n=z(z({},t),{service:e});this.addContext(n)},e.prototype.useJobId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set job id to current context, current context not defined");var n=z(z({},t),{job:e});this.addContext(n)},
|
|
842
|
-
e.prototype.usePlanId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set plan id to current context, current context not defined");var n=z(z({},t),{plan:e});this.addContext(n)},e.prototype.useRegion=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set region id to current context, current context not defined");var n=z(z({},t),{region:e});this.addContext(n)},e.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},e.prototype.setLastUpdateCheck=function(e){this.loadContext();var t=this.contextWrapper,n=z(z({},t),{lastUpdateCheck:e});this.storeContext(n)},e}(),
|
|
843
|
-
n.configPath=t||"".concat(
|
|
844
|
-
var t=e.call(this)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t.loadContext(),t}return G(t,e),t.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},t.prototype.writeContext=function(e){this.inMemoryContextWrapper=e},t}(
|
|
845
|
-
o.backupDestination=new
|
|
846
|
-
o.llmModelDeployment=new
|
|
847
|
-
;return n.backupDestinations=new
|
|
848
|
-
n.blueprintTemplatePreviews=new
|
|
849
|
-
var n=new
|
|
850
|
-
n.pipelineTemplatePreview=new
|
|
851
|
-
n}(),n.llmModelDeployment=new
|
|
852
|
-
n.globalSecret=new
|
|
853
|
-
;return n.subdomain=function(){var n={};return n.cdn=new
|
|
854
|
-
n.ports=new
|
|
855
|
-
restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new
|
|
860
|
+
e.prototype.usePlanId=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set plan id to current context, current context not defined");var n=z(z({},t),{plan:e});this.addContext(n)},e.prototype.useRegion=function(e){this.loadContext();var t=this.getCurrentContext();if(void 0===t)throw new Error("Failed to set region id to current context, current context not defined");var n=z(z({},t),{region:e});this.addContext(n)},e.prototype.getLastUpdateCheck=function(){return this.contextWrapper.lastUpdateCheck||new Date},e.prototype.setLastUpdateCheck=function(e){this.loadContext();var t=this.contextWrapper,n=z(z({},t),{lastUpdateCheck:e});this.storeContext(n)},e}(),cw=function(e){function t(t){var n=e.call(this)||this;return n.assertDir=function(e){try{b.existsSync(e)||b.mkdirSync(e,{recursive:!0})}catch(t){throw console.log("Failed to login, local files could not be created: ".concat(e,", error: ").concat(t.message)),t}},
|
|
861
|
+
n.configPath=t||"".concat(f.homedir(),"/.northflank"),n.configFile="".concat(n.configPath,"/config.json"),n.loadContext(),n}return G(t,e),t.prototype.loadContextWrapper=function(){var e;try{e=b.readFileSync(this.configFile,"utf8")}catch(e){if("ENOENT"===e.code)return{contexts:[],lastUpdateCheck:new Date(0)};throw new Error("Failed to read config file ".concat(this.configFile,": ").concat(e.message))}try{return JSON.parse(e)}catch(e){throw new Error("Config file ".concat(this.configFile," contains invalid JSON: ").concat(e.message))}},t.prototype.writeContext=function(e){this.assertConfigDir();try{b.writeFileSync(this.configFile,JSON.stringify(e,null,"\t"),{mode:416})}catch(e){throw console.log("Failed to persist api context, local files could not be created, error: ".concat(e.message)),e}},t.prototype.assertConfigDir=function(){this.assertDir(this.configPath)},t.prototype.getInfo=function(){return"Cli config stored in: ".concat(this.configPath)},t}(mw),vw=function(e){function t(){
|
|
862
|
+
var t=e.call(this)||this;return t.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)},t.loadContext(),t}return G(t,e),t.prototype.loadContextWrapper=function(){return this.inMemoryContextWrapper||(this.inMemoryContextWrapper={contexts:[],lastUpdateCheck:new Date(0)}),this.inMemoryContextWrapper},t.prototype.writeContext=function(e){this.inMemoryContextWrapper=e},t}(mw),hw=function(e,t){void 0===t&&(t={});var n,r,o,a=this;this.baseUrl=function(){return a.contextProvider.getCurrentBaseUrl()},this.contextProvider=e,this.forwarding=new li(e,new _f(e,t),new mv(e,t),t.agent),this.exec=new ui(e,t.agent),this.logs=new am(e,t),this.metrics=new pm(e),this.fileCopy=new Mu(this.exec),this.endpoints={get:(o={},o.addon=((r=new hv(e,t)).types=new lm(e,t),r.backupSchedules=new wv(e,t),r.backups=new yv(e,t),r.backup=((n=new jv(e,t)).download=new _v(e,t),n.restores=new Nv(e,t),n),r.containers=new kv(e,t),r.credentials=new Pv(e,t),r.restores=new qv(e,t),r.version=new Mv(e,t),r),
|
|
863
|
+
o.backupDestination=new mm(e,t),o.invoice=function(){var n={};return n.details=new Im(e,t),n}(),o.cloud=function(){var n={};return n.cluster=new Rm(e,t),n.integration=new Pm(e,t),n}(),o.orgDirectoryGroups=new Lm(e,t),o.dnsId=new qm(e,t),o.domain=new Fm(e,t),o.domainCertificate=new Gm(e,t),o.subdomain=function(){var n=new $m(e,t);return n.path=new tc(e,t),n}(),o.egressIp=new uc(e,t),o.logSink=new bc(e,t),o.notification=new _c(e,t),o.registryCredentials=new Pc(e,t),o.sshIdentities=new Lc(e,t),o.loadBalancer=new Hc(e,t),o.orgRole=new ev(e,t),o.project=new sv(e,t),o.externalAddon=new Wv(e,t),o.job=function(){var n=new oh(e,t);return n.branches=new dh(e,t),n.builds=new ph(e,t),n.buildArguments=new sh(e,t),n.buildArgumentDetails=new mh(e,t),n.build=new hh(e,t),n.containers=new Ih(e,t),n.deployment=new wh(e,t),n.healthChecks=new bh(e,t),n.pullRequests=new jh(e,t),n.runs=new Ch(e,t),n.run=new _h(e,t),n.runtimeEnvironment=new Nh(e,t),n.runtimeEnvironmentDetails=new kh(e,t),n}(),
|
|
864
|
+
o.llmModelDeployment=new Lh(e,t),o.pipeline=new Fh(e,t),o.previewTemplate=new Mh(e,t),o.previewTemplateRun=new Hh(e,t),o.releaseFlow=new Zh(e,t),o.releaseFlowRun=new Qh(e,t),o.previewBlueprint=new rf(e,t),o.previewBlueprintRun=new vf(e,t),o.secret=new bf(e,t),o.secretLink=new Uf(e,t),o.secretDetails=new Ef(e,t),o.service=function(){var n=new Lf(e,t);return n.branches=new Bf(e,t),n.builds=new Vf(e,t),n.buildArguments=new Mf(e,t),n.buildArgumentDetails=new zf(e,t),n.build=new $f(e,t),n.containers=new Zf(e,t),n.deployment=new Yf(e,t),n.healthChecks=new Xf(e,t),n.ports=new tI(e,t),n.pullRequests=new rI(e,t),n.runtimeEnvironment=new iI(e,t),n.runtimeEnvironmentDetails=new pI(e,t),n}(),o.volume=function(){var n=new mI(e,t);return n.backups=new fI(e,t),n.backup=new wI(e,t),n}(),o.workflow=new jI(e,t),o.workflowRun=new _I(e,t),o.globalSecret=new DI(e,t),o.tag=new BI(e,t),o.team=new zI(e,t),o.teamRole=new XI(e,t),o.template=new aw(e,t),o.templateRun=new sw(e,t),o),list:function(){var n={}
|
|
865
|
+
;return n.backupDestinations=new sm(e,t),n.backupDestinationsBackups=new hm(e,t),n.invoices=new fm(e,t),n.cloud=function(){var n={};return n.providers=new wm(e,t),n.clusters=new gm(e,t),n.cluster=function(){var n={};return n.nodes=new Cm(e,t),n}(),n.integrations=new Nm(e,t),n.nodeTypes=new Om(e,t),n.regions=new xm(e,t),n}(),n.domains=new Bm(e,t),n.subdomain=function(){var n={};return n.path=new ec(e,t),n}(),n.egressIps=new pc(e,t),n.logSinks=new wc(e,t),n.notifications=new Cc(e,t),n.registryCredentials=new Ac(e,t),n.sshIdentities=new Oc(e,t),n.vcs=new Fc(e,t),n.repos=new Gc(e,t),n.branches=new zc(e,t),n.loadBalancers=new Jc(e,t),n.orgRoles=new Kc(e,t),n.plans=new av(e,t),n.projects=new iv(e,t),n.addons=new mv(e,t),n.externalAddons=new zv(e,t),n.jobs=new Zv(e,t),n.llmModelDeployments=new Oh(e,t),n.pipelines=new Vh(e,t),n.pipelineTemplatePreviews=new zh(e,t),n.previewTemplateRuns=new $h(e,t),n.releaseFlowRuns=new Xh(e,t),n.previewBlueprints=new tf(e,t),
|
|
866
|
+
n.blueprintTemplatePreviews=new df(e,t),n.previewBlueprintRuns=new cf(e,t),n.secrets=new ff(e,t),n.services=new _f(e,t),n.volumes=new sI(e,t),n.workflows=new yI(e,t),n.workflowRuns=new EI(e,t),n.regions=new NI(e,t),n.globalSecrets=new AI(e,t),n.tags=new xI(e,t),n.teams=new GI(e,t),n.teamMembers=new WI(e,t),n.teamRoles=new ZI(e,t),n.templates=new rw(e,t),n.templateRuns=new lw(e,t),n}(),add:function(){var n={};return n.backupDestination=new um(e,t),n.domain=function(){var n={};return n.subdomain=new Jm(e,t),n}(),n.subdomain=function(){var n={};return n.path=new Qm(e,t),n}(),n.registryCredentials=new kc(e,t),n.sshIdentities=new xc(e,t),n.tag=new LI(e,t),n}(),patch:function(){var n={};return n.backupDestination=new cm(e,t),n.cloud=function(){var n={};return n.cluster=new jm(e,t),n.integration=new Tm(e,t),n}(),n.egressIp=new mc(e,t),n.gradualRolloutStrategy=new fc(e,t),n.loadBalancer=new Zc(e,t),n.orgRole=new tv(e,t),n.project=new lv(e,t),n.addon=new fv(e,t),n.job=function(){
|
|
867
|
+
var n=new ah(e,t);return n.cron=new eh(e,t),n.manual=new rh(e,t),n}(),n.secret=new gf(e,t),n.service=function(){var n={};return n.build=new Af(e,t),n.combined=new Tf(e,t),n.deployment=new xf(e,t),n}(),n.globalSecret=new TI(e,t),n.tag=new VI(e,t),n.team=new JI(e,t),n.teamRole=new QI(e,t),n}(),delete:function(){var n={};return n.backupDestination=new vm(e,t),n.cloud=function(){var n={};return n.cluster=new Um(e,t),n.integration=new Dm(e,t),n}(),n.domain=new Mm(e,t),n.subdomain=function(){var n=new Hm(e,t);return n.path=new nc(e,t),n}(),n.egressIp=new cc(e,t),n.gradualRolloutStrategy=new Ic(e,t),n.logSink=new yc(e,t),n.notification=new Nc(e,t),n.registryCredentials=new Dc(e,t),n.sshIdentities=new Vc(e,t),n.loadBalancer=new Yc(e,t),n.orgRole=new nv(e,t),n.orgRoleMember=new ov(e,t),n.project=new uv(e,t),n.addon=function(){var n=new Iv(e,t);return n.backupSchedule=new bv(e,t),n}(),n.backup=new Uv(e,t),n.externalAddon=new Hv(e,t),n.job=new ih(e,t),n.llmModelDeployment=new Bh(e,t),
|
|
868
|
+
n.pipelineTemplatePreview=new Jh(e,t),n.previewBlueprint=new af(e,t),n.blueprintTemplatePreview=new pf(e,t),n.secret=new yf(e,t),n.secretLink=new Cf(e,t),n.service=new qf(e,t),n.volume=function(){var n=new vI(e,t);return n.backup=new gI(e,t),n}(),n.globalSecret=new OI(e,t),n.tag=new FI(e,t),n.teamMember=new HI(e,t),n.teamRole=new ew(e,t),n.teamRoleMember=new nw(e,t),n.template=new dw(e,t),n}(),create:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new bm(e,t),n.integration=new Am(e,t),n}(),n.domain=new Vm(e,t),n.egressIp=new lc(e,t),n.gradualRolloutStrategy=new vc(e,t),n.logSink=new gc(e,t),n.notification=new Ec(e,t),n.customVcs=function(){var n={};return n.token=new Mc(e,t),n}(),n.loadBalancer=new Wc(e,t),n.orgRole=new Xc(e,t),n.orgRoleMember=new rv(e,t),n.project=new dv(e,t),n.addon=function(){var n=new cv(e,t);return n.backupSchedule=new gv(e,t),n}(),n.externalAddon=new Jv(e,t),n.job=function(){var n=new Yv(e,t);return n.cron=new Xv(e,t),n.manual=new th(e,t),
|
|
869
|
+
n}(),n.llmModelDeployment=new xh(e,t),n.previewBlueprint=new nf(e,t),n.secret=new If(e,t),n.service=function(){var n={};return n.build=new Sf(e,t),n.combined=new kf(e,t),n.deployment=new Df(e,t),n}(),n.volume=new uI(e,t),n.workflow=new RI(e,t),n.globalSecret=new kI(e,t),n.team=new MI(e,t),n.teamMemberInvite=new $I(e,t),n.teamRole=new YI(e,t),n.teamRoleMember=new tw(e,t),n.template=new ow(e,t),n}(),put:function(){var n={};return n.cloud=function(){var n={};return n.cluster=new ym(e,t),n.integration=new km(e,t),n}(),n.domain=function(){var n={};return n.subdomain=new Wm(e,t),n}(),n.egressIp=new sc(e,t),n.gradualRolloutStrategy=new hc(e,t),n.sshIdentities=new qc(e,t),n.loadBalancer=new $c(e,t),n.orgRole=new Qc(e,t),n.project=new pv(e,t),n.addon=new vv(e,t),n.job=function(){var n=new Kv(e,t);return n.cron=new Qv(e,t),n.manual=new nh(e,t),n}(),n.secret=new wf(e,t),n.service=function(){var n={};return n.build=new Nf(e,t),n.combined=new Pf(e,t),n.deployment=new Of(e,t),n}(),
|
|
870
|
+
n.globalSecret=new PI(e,t),n.tag=new qI(e,t),n.teamRole=new KI(e,t),n}(),cordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Em(e,t),n}(),n}(),n}(),drain:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new _m(e,t),n}(),n}(),n}(),uncordon:function(){var n={};return n.cloud=function(){var n={};return n.cluster=function(){var n={};return n.node=new Sm(e,t),n}(),n}(),n}(),import:function(){var n={};return n.domainCertificate=new zm(e,t),n.addon=function(){var n={};return n.backup=new Tv(e,t),n}(),n}(),assign:function(){var n={};return n.subdomain=function(){var n={};return n.service=new Zm(e,t),n.path=new oc(e,t),n}(),n}(),unassign:function(){var n={};return n.subdomain=function(){var n=new Ym(e,t);return n.path=new ac(e,t),n}(),n}(),disable:function(){var n={};return n.subdomain=function(){var n={};return n.cdn=new Km(e,t),n}(),n}(),enable:function(){var n={}
|
|
871
|
+
;return n.subdomain=function(){var n={};return n.cdn=new Xm(e,t),n}(),n}(),update:function(){var n={};return n.subdomain=function(){var n={};return n.path=new rc(e,t),n}(),n.logSink=new Uc(e,t),n.notification=new Sc(e,t),n.registryCredentials=new Tc(e,t),n.sshIdentities=new Bc(e,t),n.addon=function(){var n={};return n.networkSettings=new Dv(e,t),n.security=new Fv(e,t),n.version=new Gv(e,t),n}(),n.externalAddon=new $v(e,t),n.job=function(){var n={};return n.buildArguments=new uh(e,t),n.buildOptions=new ch(e,t),n.buildSource=new vh(e,t),n.deployment=new gh(e,t),n.healthChecks=new yh(e,t),n.runtimeEnvironment=new Ah(e,t),n.settings=new Th(e,t),n}(),n.llmModelDeployment=new qh(e,t),n.previewTemplate=new Gh(e,t),n.releaseFlow=new Yh(e,t),n.previewBlueprint=new of(e,t),n.secret=new Rf(e,t),n.secretLink=new jf(e,t),n.service=function(){var n={};return n.buildArguments=new Gf(e,t),n.buildOptions=new Jf(e,t),n.buildSource=new Wf(e,t),n.deployment=new Kf(e,t),n.healthChecks=new Qf(e,t),
|
|
872
|
+
n.ports=new nI(e,t),n.runtimeEnvironment=new dI(e,t),n}(),n.volume=new cI(e,t),n.workflow=new UI(e,t),n.template=new iw(e,t),n}(),verify:function(){var n={};return n.subdomain=new ic(e,t),n.domain=new dc(e,t),n}(),pause:function(){var n={};return n.logSink=new Rc(e,t),n.addon=new Ov(e,t),n.job=new Rh(e,t),n.blueprintTemplatePreview=new lf(e,t),n.service=new eI(e,t),n}(),resume:function(){var n={};return n.logSink=new jc(e,t),n.addon=new Bv(e,t),n.job=new Uh(e,t),n.blueprintTemplatePreview=new uf(e,t),n.service=new aI(e,t),n}(),backup:function(){var n={};return n.addon=new Rv(e,t),n.volume=new II(e,t),n}(),abort:function(){var n={};return n.addon=function(){var n={};return n.backup=new Cv(e,t),n.restore=new Ev(e,t),n}(),n.job=function(){var n={};return n.build=new fh(e,t),n.run=new Sh(e,t),n}(),n.releaseFlowRun=new ef(e,t),n.previewBlueprintRun=new hf(e,t),n.service=function(){var n={};return n.build=new Hf(e,t),n}(),n.workflowRun=new SI(e,t),n.templateRun=new uw(e,t),n}(),
|
|
873
|
+
restore:function(){var n={};return n.addon=function(){var n={};return n.backup=new Sv(e,t),n}(),n}(),retain:function(){var n={};return n.addon=function(){var n={};return n.backup=new Av(e,t),n}(),n}(),reset:function(){var n={};return n.addon=new xv(e,t),n.blueprintTemplatePreview=new sf(e,t),n}(),restart:function(){var n={};return n.addon=new Lv(e,t),n.service=new oI(e,t),n}(),scale:function(){var n={};return n.addon=new Vv(e,t),n.job=new Ph(e,t),n.service=new lI(e,t),n}(),start:function(){var n={};return n.job=function(){var n={};return n.build=new lh(e,t),n.run=new Eh(e,t),n}(),n.service=function(){var n={};return n.build=new Ff(e,t),n}(),n}(),suspend:function(){var n={};return n.job=new Dh(e,t),n}(),run:function(){var n={};return n.previewTemplate=new Wh(e,t),n.releaseFlow=new Kh(e,t),n.previewBlueprint=new mf(e,t),n.workflow=new CI(e,t),n.template=new pw(e,t),n}(),attach:function(){var n={};return n.volume=new hI(e,t),n}(),detach:function(){var n={};return n.volume=new bI(e,t),n
|
|
856
874
|
}(),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
875
|
;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
876
|
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
|
|
@@ -879,4 +897,4 @@ e.llmModelDeployment=a.endpoints.update.llmModelDeployment.call,e.previewTemplat
|
|
|
879
897
|
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
898
|
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
899
|
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}()}
|
|
882
|
-
;export{_v as AbortAddonBackupEndpoint,Sv as AbortAddonRestoreEndpoint,wh as AbortJobBuildEndpoint,Ah as AbortJobRunEndpoint,If as AbortPreviewblueprintrunEndpoint,nf as AbortReleaseflowrunEndpoint,Yf as AbortServiceBuildEndpoint,cw as AbortTemplaterunEndpoint,AI as AbortWorkflowrunEndpoint,cm as AddBackupdestinationEndpoint,$m as AddDomainSubdomainEndpoint,Tc as AddRegistrycredentialsEndpoint,qc as AddSshidentitiesEndpoint,tc as AddSubdomainPathEndpoint,BI as AddTagEndpoint,Iw as ApiClient,vw as ApiClientContextProvider,hw as ApiClientFileContextProvider,fw as ApiClientInMemoryContextProvider,Yu as ApiEndpoint,ic as AssignSubdomainPathEndpoint,Km as AssignSubdomainServiceEndpoint,II as AttachVolumeEndpoint,Uv as BackupAddonEndpoint,gI as BackupVolumeEndpoint,Bu as CopyType,Sm as CordonCloudClusterNodeEndpoint,yv as CreateAddonBackupscheduleEndpoint,hv as CreateAddonEndpoint,Rm as CreateCloudClusterEndpoint,Pm as CreateCloudIntegrationEndpoint,zc as CreateCustomvcsTokenEndpoint,Mm as CreateDomainEndpoint,uc as CreateEgressipEndpoint,$v as CreateExternaladdonEndpoint,TI as CreateGlobalsecretEndpoint,fc as CreateGradualrolloutstrategyEndpoint,eh as CreateJobCronEndpoint,Xv as CreateJobEndpoint,rh as CreateJobManualEndpoint,qh as CreateLlmmodeldeploymentEndpoint,Hc as CreateLoadbalancerEndpoint,yc as CreateLogsinkEndpoint,Sc as CreateNotificationEndpoint,ev as CreateOrgroleEndpoint,av as CreateOrgrolememberEndpoint,of as CreatePreviewblueprintEndpoint,lv as CreateProjectEndpoint,gf as CreateSecretEndpoint,Af as CreateServiceBuildEndpoint,Tf as CreateServiceCombinedEndpoint,xf as CreateServiceDeploymentEndpoint,zI as CreateTeamEndpoint,ZI as CreateTeammemberinviteEndpoint,XI as CreateTeamroleEndpoint,rw as CreateTeamrolememberEndpoint,iw as CreateTemplateEndpoint,cI as CreateVolumeEndpoint,UI as CreateWorkflowEndpoint,Rv as DeleteAddonBackupscheduleEndpoint,gv as DeleteAddonEndpoint,em as DeleteApiEndpoint,Ev as DeleteBackupEndpoint,fm as DeleteBackupdestinationEndpoint,sf as DeleteBlueprinttemplatepreviewEndpoint,Em as DeleteCloudClusterEndpoint,xm as DeleteCloudIntegrationEndpoint,zm as DeleteDomainEndpoint,hc as DeleteEgressipEndpoint,Yv as DeleteExternaladdonEndpoint,LI as DeleteGlobalsecretEndpoint,gc as DeleteGradualrolloutstrategyEndpoint,ph as DeleteJobEndpoint,Fh as DeleteLlmmodeldeploymentEndpoint,Xc as DeleteLoadbalancerEndpoint,jc as DeleteLogsinkEndpoint,kc as DeleteNotificationEndpoint,ov as DeleteOrgroleEndpoint,iv as DeleteOrgrolememberEndpoint,$h as DeletePipelinetemplatepreviewEndpoint,pf as DeletePreviewblueprintEndpoint,cv as DeleteProjectEndpoint,xc as DeleteRegistrycredentialsEndpoint,jf as DeleteSecretEndpoint,_f as DeleteSecretlinkEndpoint,Vf as DeleteServiceEndpoint,Mc as DeleteSshidentitiesEndpoint,Ym as DeleteSubdomainEndpoint,oc as DeleteSubdomainPathEndpoint,GI as DeleteTagEndpoint,YI as DeleteTeammemberEndpoint,nw as DeleteTeamroleEndpoint,ow as DeleteTeamrolememberEndpoint,lw as DeleteTemplateEndpoint,yI as DeleteVolumeBackupEndpoint,fI as DeleteVolumeEndpoint,RI as DetachVolumeEndpoint,Qm as DisableSubdomainCdnEndpoint,Nm as DrainCloudClusterNodeEndpoint,ec as EnableSubdomainCdnEndpoint,mi as ExecCommandStandard,Nv as GetAddonBackupDownloadEndpoint,Cv as GetAddonBackupEndpoint,kv as GetAddonBackupRestoresEndpoint,jv as GetAddonBackupsEndpoint,bv as GetAddonBackupschedulesEndpoint,Tv as GetAddonContainersEndpoint,Dv as GetAddonCredentialsEndpoint,Iv as GetAddonEndpoint,Vv as GetAddonRestoresEndpoint,um as GetAddonTypesEndpoint,zv as GetAddonVersionEndpoint,Ku as GetApiEndpoint,Xu as GetApiEndpointPaginated,vm as GetBackupdestinationEndpoint,Um as GetCloudClusterEndpoint,Dm as GetCloudIntegrationEndpoint,Vm as GetDnsidEndpoint,Gm as GetDomainEndpoint,Jm as GetDomaincertificateEndpoint,cc as GetEgressipEndpoint,Hv as GetExternaladdonEndpoint,xI as GetGlobalsecretEndpoint,gm as GetInvoiceDetailsEndpoint,lh as GetJobBranchesEndpoint,Ih as GetJobBuildEndpoint,vh as GetJobBuildargumentdetailsEndpoint,mh as GetJobBuildargumentsEndpoint,sh as GetJobBuildsEndpoint,gh as GetJobContainersEndpoint,bh as GetJobDeploymentEndpoint,ih as GetJobEndpoint,Rh as GetJobHealthchecksEndpoint,Ch as GetJobPullrequestsEndpoint,Nh as GetJobRunEndpoint,_h as GetJobRunsEndpoint,kh as GetJobRuntimeenvironmentEndpoint,Th as GetJobRuntimeenvironmentdetailsEndpoint,Bh as GetLlmmodeldeploymentEndpoint,Yc as GetLoadbalancerEndpoint,Rc as GetLogsinkEndpoint,Nc as GetNotificationEndpoint,Bm as GetOrgdirectorygroupsEndpoint,nv as GetOrgroleEndpoint,Gh as GetPipelineEndpoint,af as GetPreviewblueprintEndpoint,ff as GetPreviewblueprintrunEndpoint,zh as GetPreviewtemplateEndpoint,Yh as GetPreviewtemplaterunEndpoint,mv as GetProjectEndpoint,Dc as GetRegistrycredentialsEndpoint,Kh as GetReleaseflowEndpoint,tf as GetReleaseflowrunEndpoint,Rf as GetSecretEndpoint,Sf as GetSecretdetailsEndpoint,Ef as GetSecretlinkEndpoint,Ff as GetServiceBranchesEndpoint,Zf as GetServiceBuildEndpoint,Wf as GetServiceBuildargumentdetailsEndpoint,zf as GetServiceBuildargumentsEndpoint,Mf as GetServiceBuildsEndpoint,Kf as GetServiceContainersEndpoint,Xf as GetServiceDeploymentEndpoint,Bf as GetServiceEndpoint,eI as GetServiceHealthchecksEndpoint,rI as GetServicePortsEndpoint,aI as GetServicePullrequestsEndpoint,pI as GetServiceRuntimeenvironmentEndpoint,sI as GetServiceRuntimeenvironmentdetailsEndpoint,Bc as GetSshidentitiesEndpoint,Zm as GetSubdomainEndpoint,rc as GetSubdomainPathEndpoint,FI as GetTagEndpoint,WI as GetTeamEndpoint,ew as GetTeamroleEndpoint,dw as GetTemplateEndpoint,mw as GetTemplaterunEndpoint,bI as GetVolumeBackupEndpoint,wI as GetVolumeBackupsEndpoint,vI as GetVolumeEndpoint,CI as GetWorkflowEndpoint,NI as GetWorkflowrunEndpoint,Ov as ImportAddonBackupEndpoint,Wm as ImportDomaincertificateEndpoint,vv as ListAddonsEndpoint,mm as ListBackupdestinationsEndpoint,Im as ListBackupdestinationsbackupsEndpoint,lf as ListBlueprinttemplatepreviewsEndpoint,Wc as ListBranchesEndpoint,_m as ListCloudClusterNodesEndpoint,ym as ListCloudClustersEndpoint,km as ListCloudIntegrationsEndpoint,Lm as ListCloudNodetypesEndpoint,bm as ListCloudProvidersEndpoint,qm as ListCloudRegionsEndpoint,Fm as ListDomainsEndpoint,sc as ListEgressipsEndpoint,Wv as ListExternaladdonsEndpoint,PI as ListGlobalsecretsEndpoint,wm as ListInvoicesEndpoint,Kv as ListJobsEndpoint,Lh as ListLlmmodeldeploymentsEndpoint,$c as ListLoadbalancersEndpoint,bc as ListLogsinksEndpoint,_c as ListNotificationsEndpoint,Qc as ListOrgrolesEndpoint,Mh as ListPipelinesEndpoint,Wh as ListPipelinetemplatepreviewsEndpoint,dv as ListPlansEndpoint,hf as ListPreviewblueprintrunsEndpoint,rf as ListPreviewblueprintsEndpoint,Zh as ListPreviewtemplaterunsEndpoint,pv as ListProjectsEndpoint,kI as ListRegionsEndpoint,Pc as ListRegistrycredentialsEndpoint,ef as ListReleaseflowrunsEndpoint,Jc as ListReposEndpoint,wf as ListSecretsEndpoint,Nf as ListServicesEndpoint,Lc as ListSshidentitiesEndpoint,nc as ListSubdomainPathEndpoint,qI as ListTagsEndpoint,HI as ListTeammembersEndpoint,KI as ListTeamrolesEndpoint,JI as ListTeamsEndpoint,uw as ListTemplaterunsEndpoint,aw as ListTemplatesEndpoint,Gc as ListVcsEndpoint,mI as ListVolumesEndpoint,SI as ListWorkflowrunsEndpoint,jI as ListWorkflowsEndpoint,Mu as LogType,Wu as MetricType,Ju as NorthflankApiCallError,ci as NorthflankExecCommand,zu as NorthflankFileCopy,dm as NorthflankLogFetch,sm as NorthflankMetricFetch,ui as NorthflankPortForwarder,wv as PatchAddonEndpoint,nm as PatchApiEndpoint,hm as PatchBackupdestinationEndpoint,Cm as PatchCloudClusterEndpoint,Om as PatchCloudIntegrationEndpoint,vc as PatchEgressipEndpoint,OI as PatchGlobalsecretEndpoint,wc as PatchGradualrolloutstrategyEndpoint,nh as PatchJobCronEndpoint,dh as PatchJobEndpoint,ah as PatchJobManualEndpoint,Kc as PatchLoadbalancerEndpoint,rv as PatchOrgroleEndpoint,uv as PatchProjectEndpoint,yf as PatchSecretEndpoint,Pf as PatchServiceBuildEndpoint,Of as PatchServiceCombinedEndpoint,qf as PatchServiceDeploymentEndpoint,MI as PatchTagEndpoint,$I as PatchTeamEndpoint,tw as PatchTeamroleEndpoint,Lv as PauseAddonEndpoint,uf as PauseBlueprinttemplatepreviewEndpoint,Uh as PauseJobEndpoint,Uc as PauseLogsinkEndpoint,nI as PauseServiceEndpoint,Qu as PostApiEndpoint,fv as PutAddonEndpoint,tm as PutApiEndpoint,jm as PutCloudClusterEndpoint,Tm as PutCloudIntegrationEndpoint,Hm as PutDomainSubdomainEndpoint,mc as PutEgressipEndpoint,DI as PutGlobalsecretEndpoint,Ic as PutGradualrolloutstrategyEndpoint,th as PutJobCronEndpoint,Qv as PutJobEndpoint,oh as PutJobManualEndpoint,Zc as PutLoadbalancerEndpoint,tv as PutOrgroleEndpoint,sv as PutProjectEndpoint,bf as PutSecretEndpoint,kf as PutServiceBuildEndpoint,Df as PutServiceCombinedEndpoint,Lf as PutServiceDeploymentEndpoint,Vc as PutSshidentitiesEndpoint,VI as PutTagEndpoint,QI as PutTeamroleEndpoint,qv as ResetAddonEndpoint,mf as ResetBlueprinttemplatepreviewEndpoint,Bv as RestartAddonEndpoint,iI as RestartServiceEndpoint,Av as RestoreAddonBackupEndpoint,Fv as ResumeAddonEndpoint,cf as ResumeBlueprinttemplatepreviewEndpoint,Eh as ResumeJobEndpoint,Cc as ResumeLogsinkEndpoint,dI as ResumeServiceEndpoint,Pv as RetainAddonBackupEndpoint,vf as RunPreviewblueprintEndpoint,Hh as RunPreviewtemplateEndpoint,Qh as RunReleaseflowEndpoint,sw as RunTemplateEndpoint,_I as RunWorkflowEndpoint,Mv as ScaleAddonEndpoint,Dh as ScaleJobEndpoint,uI as ScaleServiceEndpoint,uh as StartJobBuildEndpoint,Sh as StartJobRunEndpoint,Gf as StartServiceBuildEndpoint,xh as SuspendJobEndpoint,Xm as UnassignSubdomainEndpoint,dc as UnassignSubdomainPathEndpoint,Am as UncordonCloudClusterNodeEndpoint,xv as UpdateAddonNetworksettingsEndpoint,Gv as UpdateAddonSecurityEndpoint,Jv as UpdateAddonVersionEndpoint,Zv as UpdateExternaladdonEndpoint,ch as UpdateJobBuildargumentsEndpoint,hh as UpdateJobBuildoptionsEndpoint,fh as UpdateJobBuildsourceEndpoint,yh as UpdateJobDeploymentEndpoint,jh as UpdateJobHealthchecksEndpoint,Ph as UpdateJobRuntimeenvironmentEndpoint,Oh as UpdateJobSettingsEndpoint,Vh as UpdateLlmmodeldeploymentEndpoint,Ec as UpdateLogsinkEndpoint,Ac as UpdateNotificationEndpoint,df as UpdatePreviewblueprintEndpoint,Jh as UpdatePreviewtemplateEndpoint,Oc as UpdateRegistrycredentialsEndpoint,Xh as UpdateReleaseflowEndpoint,Uf as UpdateSecretEndpoint,Cf as UpdateSecretlinkEndpoint,Jf as UpdateServiceBuildargumentsEndpoint,$f as UpdateServiceBuildoptionsEndpoint,Hf as UpdateServiceBuildsourceEndpoint,Qf as UpdateServiceDeploymentEndpoint,tI as UpdateServiceHealthchecksEndpoint,oI as UpdateServicePortsEndpoint,lI as UpdateServiceRuntimeenvironmentEndpoint,Fc as UpdateSshidentitiesEndpoint,ac as UpdateSubdomainPathEndpoint,pw as UpdateTemplateEndpoint,hI as UpdateVolumeEndpoint,EI as UpdateWorkflowEndpoint,lc as VerifyDomainEndpoint,pc as VerifySubdomainEndpoint};
|
|
900
|
+
;export{Cv as AbortAddonBackupEndpoint,Ev as AbortAddonRestoreEndpoint,fh as AbortJobBuildEndpoint,Sh as AbortJobRunEndpoint,hf as AbortPreviewblueprintrunEndpoint,ef as AbortReleaseflowrunEndpoint,Hf as AbortServiceBuildEndpoint,uw as AbortTemplaterunEndpoint,SI as AbortWorkflowrunEndpoint,um as AddBackupdestinationEndpoint,Jm as AddDomainSubdomainEndpoint,kc as AddRegistrycredentialsEndpoint,xc as AddSshidentitiesEndpoint,Qm as AddSubdomainPathEndpoint,LI as AddTagEndpoint,hw as ApiClient,mw as ApiClientContextProvider,cw as ApiClientFileContextProvider,vw as ApiClientInMemoryContextProvider,Hu as ApiEndpoint,oc as AssignSubdomainPathEndpoint,Zm as AssignSubdomainServiceEndpoint,hI as AttachVolumeEndpoint,Rv as BackupAddonEndpoint,II as BackupVolumeEndpoint,Lu as CopyType,Em as CordonCloudClusterNodeEndpoint,gv as CreateAddonBackupscheduleEndpoint,cv as CreateAddonEndpoint,bm as CreateCloudClusterEndpoint,Am as CreateCloudIntegrationEndpoint,Mc as CreateCustomvcsTokenEndpoint,Vm as CreateDomainEndpoint,lc as CreateEgressipEndpoint,Jv as CreateExternaladdonEndpoint,kI as CreateGlobalsecretEndpoint,vc as CreateGradualrolloutstrategyEndpoint,Xv as CreateJobCronEndpoint,Yv as CreateJobEndpoint,th as CreateJobManualEndpoint,xh as CreateLlmmodeldeploymentEndpoint,Wc as CreateLoadbalancerEndpoint,gc as CreateLogsinkEndpoint,Ec as CreateNotificationEndpoint,Xc as CreateOrgroleEndpoint,rv as CreateOrgrolememberEndpoint,nf as CreatePreviewblueprintEndpoint,dv as CreateProjectEndpoint,If as CreateSecretEndpoint,Sf as CreateServiceBuildEndpoint,kf as CreateServiceCombinedEndpoint,Df as CreateServiceDeploymentEndpoint,MI as CreateTeamEndpoint,$I as CreateTeammemberinviteEndpoint,YI as CreateTeamroleEndpoint,tw as CreateTeamrolememberEndpoint,ow as CreateTemplateEndpoint,uI as CreateVolumeEndpoint,RI as CreateWorkflowEndpoint,bv as DeleteAddonBackupscheduleEndpoint,Iv as DeleteAddonEndpoint,Xu as DeleteApiEndpoint,Uv as DeleteBackupEndpoint,vm as DeleteBackupdestinationEndpoint,pf as DeleteBlueprinttemplatepreviewEndpoint,Um as DeleteCloudClusterEndpoint,Dm as DeleteCloudIntegrationEndpoint,Mm as DeleteDomainEndpoint,cc as DeleteEgressipEndpoint,Hv as DeleteExternaladdonEndpoint,OI as DeleteGlobalsecretEndpoint,Ic as DeleteGradualrolloutstrategyEndpoint,ih as DeleteJobEndpoint,Bh as DeleteLlmmodeldeploymentEndpoint,Yc as DeleteLoadbalancerEndpoint,yc as DeleteLogsinkEndpoint,Nc as DeleteNotificationEndpoint,nv as DeleteOrgroleEndpoint,ov as DeleteOrgrolememberEndpoint,Jh as DeletePipelinetemplatepreviewEndpoint,af as DeletePreviewblueprintEndpoint,uv as DeleteProjectEndpoint,Dc as DeleteRegistrycredentialsEndpoint,yf as DeleteSecretEndpoint,Cf as DeleteSecretlinkEndpoint,qf as DeleteServiceEndpoint,Vc as DeleteSshidentitiesEndpoint,Hm as DeleteSubdomainEndpoint,nc as DeleteSubdomainPathEndpoint,FI as DeleteTagEndpoint,HI as DeleteTeammemberEndpoint,ew as DeleteTeamroleEndpoint,nw as DeleteTeamrolememberEndpoint,dw as DeleteTemplateEndpoint,gI as DeleteVolumeBackupEndpoint,vI as DeleteVolumeEndpoint,bI as DetachVolumeEndpoint,Km as DisableSubdomainCdnEndpoint,_m as DrainCloudClusterNodeEndpoint,Xm as EnableSubdomainCdnEndpoint,si as ExecCommandStandard,_v as GetAddonBackupDownloadEndpoint,jv as GetAddonBackupEndpoint,Nv as GetAddonBackupRestoresEndpoint,yv as GetAddonBackupsEndpoint,wv as GetAddonBackupschedulesEndpoint,kv as GetAddonContainersEndpoint,Pv as GetAddonCredentialsEndpoint,hv as GetAddonEndpoint,qv as GetAddonRestoresEndpoint,lm as GetAddonTypesEndpoint,Mv as GetAddonVersionEndpoint,Zu as GetApiEndpoint,Yu as GetApiEndpointPaginated,mm as GetBackupdestinationEndpoint,Rm as GetCloudClusterEndpoint,Pm as GetCloudIntegrationEndpoint,qm as GetDnsidEndpoint,Fm as GetDomainEndpoint,Gm as GetDomaincertificateEndpoint,uc as GetEgressipEndpoint,Wv as GetExternaladdonEndpoint,DI as GetGlobalsecretEndpoint,Im as GetInvoiceDetailsEndpoint,dh as GetJobBranchesEndpoint,hh as GetJobBuildEndpoint,mh as GetJobBuildargumentdetailsEndpoint,sh as GetJobBuildargumentsEndpoint,ph as GetJobBuildsEndpoint,Ih as GetJobContainersEndpoint,wh as GetJobDeploymentEndpoint,oh as GetJobEndpoint,bh as GetJobHealthchecksEndpoint,jh as GetJobPullrequestsEndpoint,_h as GetJobRunEndpoint,Ch as GetJobRunsEndpoint,Nh as GetJobRuntimeenvironmentEndpoint,kh as GetJobRuntimeenvironmentdetailsEndpoint,Lh as GetLlmmodeldeploymentEndpoint,Hc as GetLoadbalancerEndpoint,bc as GetLogsinkEndpoint,_c as GetNotificationEndpoint,Lm as GetOrgdirectorygroupsEndpoint,ev as GetOrgroleEndpoint,Fh as GetPipelineEndpoint,rf as GetPreviewblueprintEndpoint,vf as GetPreviewblueprintrunEndpoint,Mh as GetPreviewtemplateEndpoint,Hh as GetPreviewtemplaterunEndpoint,sv as GetProjectEndpoint,Pc as GetRegistrycredentialsEndpoint,Zh as GetReleaseflowEndpoint,Qh as GetReleaseflowrunEndpoint,bf as GetSecretEndpoint,Ef as GetSecretdetailsEndpoint,Uf as GetSecretlinkEndpoint,Bf as GetServiceBranchesEndpoint,$f as GetServiceBuildEndpoint,zf as GetServiceBuildargumentdetailsEndpoint,Mf as GetServiceBuildargumentsEndpoint,Vf as GetServiceBuildsEndpoint,Zf as GetServiceContainersEndpoint,Yf as GetServiceDeploymentEndpoint,Lf as GetServiceEndpoint,Xf as GetServiceHealthchecksEndpoint,tI as GetServicePortsEndpoint,rI as GetServicePullrequestsEndpoint,iI as GetServiceRuntimeenvironmentEndpoint,pI as GetServiceRuntimeenvironmentdetailsEndpoint,Lc as GetSshidentitiesEndpoint,$m as GetSubdomainEndpoint,tc as GetSubdomainPathEndpoint,BI as GetTagEndpoint,zI as GetTeamEndpoint,XI as GetTeamroleEndpoint,aw as GetTemplateEndpoint,sw as GetTemplaterunEndpoint,wI as GetVolumeBackupEndpoint,fI as GetVolumeBackupsEndpoint,mI as GetVolumeEndpoint,jI as GetWorkflowEndpoint,_I as GetWorkflowrunEndpoint,Tv as ImportAddonBackupEndpoint,zm as ImportDomaincertificateEndpoint,mv as ListAddonsEndpoint,sm as ListBackupdestinationsEndpoint,hm as ListBackupdestinationsbackupsEndpoint,df as ListBlueprinttemplatepreviewsEndpoint,zc as ListBranchesEndpoint,Cm as ListCloudClusterNodesEndpoint,gm as ListCloudClustersEndpoint,Nm as ListCloudIntegrationsEndpoint,Om as ListCloudNodetypesEndpoint,wm as ListCloudProvidersEndpoint,xm as ListCloudRegionsEndpoint,Bm as ListDomainsEndpoint,pc as ListEgressipsEndpoint,zv as ListExternaladdonsEndpoint,AI as ListGlobalsecretsEndpoint,fm as ListInvoicesEndpoint,Zv as ListJobsEndpoint,Oh as ListLlmmodeldeploymentsEndpoint,Jc as ListLoadbalancersEndpoint,wc as ListLogsinksEndpoint,Cc as ListNotificationsEndpoint,Kc as ListOrgrolesEndpoint,Vh as ListPipelinesEndpoint,zh as ListPipelinetemplatepreviewsEndpoint,av as ListPlansEndpoint,cf as ListPreviewblueprintrunsEndpoint,tf as ListPreviewblueprintsEndpoint,$h as ListPreviewtemplaterunsEndpoint,iv as ListProjectsEndpoint,NI as ListRegionsEndpoint,Ac as ListRegistrycredentialsEndpoint,Xh as ListReleaseflowrunsEndpoint,Gc as ListReposEndpoint,ff as ListSecretsEndpoint,_f as ListServicesEndpoint,Oc as ListSshidentitiesEndpoint,ec as ListSubdomainPathEndpoint,xI as ListTagsEndpoint,WI as ListTeammembersEndpoint,ZI as ListTeamrolesEndpoint,GI as ListTeamsEndpoint,lw as ListTemplaterunsEndpoint,rw as ListTemplatesEndpoint,Fc as ListVcsEndpoint,sI as ListVolumesEndpoint,EI as ListWorkflowrunsEndpoint,yI as ListWorkflowsEndpoint,Vu as LogType,zu as MetricType,Gu as NorthflankApiCallError,ui as NorthflankExecCommand,Mu as NorthflankFileCopy,am as NorthflankLogFetch,pm as NorthflankMetricFetch,li as NorthflankPortForwarder,fv as PatchAddonEndpoint,em as PatchApiEndpoint,cm as PatchBackupdestinationEndpoint,jm as PatchCloudClusterEndpoint,Tm as PatchCloudIntegrationEndpoint,mc as PatchEgressipEndpoint,TI as PatchGlobalsecretEndpoint,fc as PatchGradualrolloutstrategyEndpoint,eh as PatchJobCronEndpoint,ah as PatchJobEndpoint,rh as PatchJobManualEndpoint,Zc as PatchLoadbalancerEndpoint,tv as PatchOrgroleEndpoint,lv as PatchProjectEndpoint,gf as PatchSecretEndpoint,Af as PatchServiceBuildEndpoint,Tf as PatchServiceCombinedEndpoint,xf as PatchServiceDeploymentEndpoint,VI as PatchTagEndpoint,JI as PatchTeamEndpoint,QI as PatchTeamroleEndpoint,Ov as PauseAddonEndpoint,lf as PauseBlueprinttemplatepreviewEndpoint,Rh as PauseJobEndpoint,Rc as PauseLogsinkEndpoint,eI as PauseServiceEndpoint,Ku as PostApiEndpoint,vv as PutAddonEndpoint,Qu as PutApiEndpoint,ym as PutCloudClusterEndpoint,km as PutCloudIntegrationEndpoint,Wm as PutDomainSubdomainEndpoint,sc as PutEgressipEndpoint,PI as PutGlobalsecretEndpoint,hc as PutGradualrolloutstrategyEndpoint,Qv as PutJobCronEndpoint,Kv as PutJobEndpoint,nh as PutJobManualEndpoint,$c as PutLoadbalancerEndpoint,Qc as PutOrgroleEndpoint,pv as PutProjectEndpoint,wf as PutSecretEndpoint,Nf as PutServiceBuildEndpoint,Pf as PutServiceCombinedEndpoint,Of as PutServiceDeploymentEndpoint,qc as PutSshidentitiesEndpoint,qI as PutTagEndpoint,KI as PutTeamroleEndpoint,xv as ResetAddonEndpoint,sf as ResetBlueprinttemplatepreviewEndpoint,Lv as RestartAddonEndpoint,oI as RestartServiceEndpoint,Sv as RestoreAddonBackupEndpoint,Bv as ResumeAddonEndpoint,uf as ResumeBlueprinttemplatepreviewEndpoint,Uh as ResumeJobEndpoint,jc as ResumeLogsinkEndpoint,aI as ResumeServiceEndpoint,Av as RetainAddonBackupEndpoint,mf as RunPreviewblueprintEndpoint,Wh as RunPreviewtemplateEndpoint,Kh as RunReleaseflowEndpoint,pw as RunTemplateEndpoint,CI as RunWorkflowEndpoint,Vv as ScaleAddonEndpoint,Ph as ScaleJobEndpoint,lI as ScaleServiceEndpoint,lh as StartJobBuildEndpoint,Eh as StartJobRunEndpoint,Ff as StartServiceBuildEndpoint,Dh as SuspendJobEndpoint,Ym as UnassignSubdomainEndpoint,ac as UnassignSubdomainPathEndpoint,Sm as UncordonCloudClusterNodeEndpoint,Dv as UpdateAddonNetworksettingsEndpoint,Fv as UpdateAddonSecurityEndpoint,Gv as UpdateAddonVersionEndpoint,$v as UpdateExternaladdonEndpoint,uh as UpdateJobBuildargumentsEndpoint,ch as UpdateJobBuildoptionsEndpoint,vh as UpdateJobBuildsourceEndpoint,gh as UpdateJobDeploymentEndpoint,yh as UpdateJobHealthchecksEndpoint,Ah as UpdateJobRuntimeenvironmentEndpoint,Th as UpdateJobSettingsEndpoint,qh as UpdateLlmmodeldeploymentEndpoint,Uc as UpdateLogsinkEndpoint,Sc as UpdateNotificationEndpoint,of as UpdatePreviewblueprintEndpoint,Gh as UpdatePreviewtemplateEndpoint,Tc as UpdateRegistrycredentialsEndpoint,Yh as UpdateReleaseflowEndpoint,Rf as UpdateSecretEndpoint,jf as UpdateSecretlinkEndpoint,Gf as UpdateServiceBuildargumentsEndpoint,Jf as UpdateServiceBuildoptionsEndpoint,Wf as UpdateServiceBuildsourceEndpoint,Kf as UpdateServiceDeploymentEndpoint,Qf as UpdateServiceHealthchecksEndpoint,nI as UpdateServicePortsEndpoint,dI as UpdateServiceRuntimeenvironmentEndpoint,Bc as UpdateSshidentitiesEndpoint,rc as UpdateSubdomainPathEndpoint,iw as UpdateTemplateEndpoint,cI as UpdateVolumeEndpoint,UI as UpdateWorkflowEndpoint,dc as VerifyDomainEndpoint,ic as VerifySubdomainEndpoint};
|