Comparing version 5.0.0-rc.7 to 5.0.0-rc.8
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("got"),require("humps"),require("query-string"),require("form-data"),require("randomstring")):"function"==typeof define&&define.amd?define(["exports","got","humps","query-string","form-data","randomstring"],e):e((t=t||self)["node-gitlab"]={},t.Request,t.Humps,t.QueryString,t.FormData,t.RandomString)}(this,function(t,e,o,n,r,s){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r,s=s&&s.hasOwnProperty("default")?s.default:s;var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function i(t,e){function o(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var u=function(){return(u=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function c(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&(o[n[r]]=t[n[r]])}return o}function a(t,e,o,n){return new(o||(o=Promise))(function(r,s){function p(t){try{u(n.next(t))}catch(t){s(t)}}function i(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){t.done?r(t.value):new o(function(e){e(t.value)}).then(p,i)}u((n=n.apply(t,e||[])).next())})}function h(t,e){var o,n,r,s,p={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;p;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return p.label++,{value:s[1],done:!1};case 5:p.label++,n=s[1],s=[0];continue;case 7:s=p.ops.pop(),p.trys.pop();continue;default:if(!(r=(r=p.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){p=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){p.label=s[1];break}if(6===s[0]&&p.label<r[1]){p.label=r[1],r=s;break}if(r&&p.label<r[2]){p.label=r[2],p.ops.push(s);break}r[2]&&p.ops.pop(),p.trys.pop();continue}s=e.call(t,p)}catch(t){s=[6,t],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}function m(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,s=o.call(t),p=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function d(t,e,r){var s=r.body,p=r.query,i=r.sudo;return[e,{baseUrl:t.url,headers:u({sudo:i},t.headers),query:p&&n.stringify(o.decamelizeKeys(p),{arrayFormat:"bracket"}),body:s&&o.decamelizeKeys(s),rejectUnauthorized:t.rejectUnauthorized,json:!0}]}function f(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r,s,p,i,a,m,y,I,v,R,U;return h(this,function(h){switch(h.label){case 0:return r=n.showPagination,s=n.maxPages,p=n.sudo,i=c(n,["showPagination","maxPages","sudo"]),a=d(t,o,{query:i,sudo:p}),[4,e.get.apply(e,l(a))];case 1:return m=h.sent(),y=m.headers,I=m.body,v={total:y["x-total"],next:y["x-next-page"]||null,current:y["x-page"]||null,previous:y["x-prev-page"]||null,perPage:y["x-per-page"],totalPages:y["x-total-pages"]},R=!s||v.current<s,!i.page&&R&&v.next?[4,f(t,o,u({page:v.next},n))]:[3,3];case 2:return U=h.sent(),[2,l(I,U)];case 3:return[2,(i.page||s)&&r?{data:I,pagination:v}:I]}})})}function y(t,o,n){return void 0===n&&(n={}),e.stream.apply(e,l(d(t,o,{query:n})))}function I(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r,s;return h(this,function(p){switch(p.label){case 0:return r=n.sudo,s=c(n,["sudo"]),[4,e.post.apply(e,l(d(t,o,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function v(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r;return h(this,function(s){switch(s.label){case 0:return n.sudo,r=c(n,["sudo"]),[4,e.put.apply(e,l(d(t,o,{body:r})))];case 1:return[2,s.sent().body]}})})}function R(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r;return h(this,function(s){switch(s.label){case 0:return n.sudo,r=c(n,["sudo"]),[4,e.delete.apply(e,l(d(t,o,{query:r})))];case 1:return[2,s.sent().body]}})})}var U=function(){return function(t){var o=t.token,n=t.oauthToken,r=t.sudo,s=t.host,p=void 0===s?"https://gitlab.com":s,i=t.url,u=void 0===i?"":i,c=t.version,a=void 0===c?"v4":c,h=t.rejectUnauthorized,m=void 0===h||h,l=t.requester,d=void 0===l?e:l;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=m,this.requester=d,n?this.headers.authorization="Bearer "+n:o&&(this.headers["private-token"]=o),r&&(this.headers.Sudo=r)}}();function j(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=m(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"groups",t)},e.prototype.create=function(t){return I(this,"groups",t)},e.prototype.createLDAPLink=function(t,e,o,n,r){return I(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links",u({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return v(this,"groups/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return R(this,"groups/"+encodeURIComponent(t),e)},e.prototype.removeLDAPLink=function(t,e,o){void 0===o&&(o={});var n=o.provider,r=c(o,["provider"]);return R(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links/"+(n?n+"/"+e:""+e),r)},e.prototype.search=function(t,e){return f(this,"groups",u({search:t},e))},e.prototype.show=function(t,e){return f(this,"groups/"+encodeURIComponent(t),e)},e.prototype.subgroups=function(t,e){return f(this,"groups/"+encodeURIComponent(t)+"/subgroups",e)},e.prototype.syncLDAP=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/ldap_sync",e)},e}(U),g=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t){return f(this,encodeURIComponent(t)+"/access_requests")},e.prototype.request=function(t){return I(this,encodeURIComponent(t)+"/access_requests")},e.prototype.approve=function(t,e,o){var n=o.accessLevel,r=m([t,e].map(encodeURIComponent),2);return I(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},e.prototype.deny=function(t,e){var o=m([t,e].map(encodeURIComponent),2);return R(this,o[0]+"/access_requests/"+o[1])},e}(U);function b(t,e,o,n,r){var s=m([t,o].map(encodeURIComponent),2),p=[s[0],e,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var _=function(t){function e(e,o){var n=t.call(this,u({url:"projects"},o))||this;return n.resourceType=e,n}return i(e,t),e.prototype.all=function(t,e,o,n){return f(this,b(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return I(this,b(t,this.resourceType,e,null,n),u({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return R(this,b(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return f(this,b(t,this.resourceType,e,o,n),r)},e}(U),w=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.add=function(t,e){return I(this,encodeURIComponent(t)+"/badges",e)},e.prototype.all=function(t,e){return f(this,encodeURIComponent(t)+"/badges",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return f(this,encodeURIComponent(t)+"/badges/render",u({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/badges/"+n[1],o)},e}(U),P=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return f(this,encodeURIComponent(t)+"/custom_attributes",e)},e.prototype.set=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/custom_attributes/"+r[1],u({value:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/custom_attributes/"+n[1],o)},e}(U),q=function(t){function e(e,o,n){var r=t.call(this,u({url:e},n))||this;return r.resource2Type=o,r}return i(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=m([t,e,o,n].map(encodeURIComponent),4),i=p[0],c=p[1],a=p[2],h=p[3];return v(this,i+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+h,u({body:r},s))},e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return f(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},e.prototype.create=function(t,e,o,n){if(!o)throw new Error("Missing required content argument");var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,s+"/"+this.resource2Type+"/"+p+"/discussions",u({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=m([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return v(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=m([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return R(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return f(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},e}(U),k=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return f(this,encodeURIComponent(t)+"/boards",e)},e.prototype.create=function(t,e,o){return I(this,encodeURIComponent(t)+"/boards",u({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,r[0]+"/boards/"+r[1]+"/lists",u({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=m([t,e,o].map(encodeURIComponent),3);return v(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],u({position:n},r))},e.prototype.lists=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return R(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return f(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(U),S=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e,o){void 0===e&&(e=!1);var n=[encodeURIComponent(t),"members"];return e&&n.push("all"),f(this,n.join("/"),{options:o})},e.prototype.add=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,s+"/members",u({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/members/"+r[1],u({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/members/"+n[1],o)},e}(U),T=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return f(this,encodeURIComponent(t)+"/milestones",e)},e.prototype.create=function(t,e,o){return I(this,encodeURIComponent(t)+"/milestones",u({title:e},o))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/milestones/"+n[1],o)},e}(U),G=function(t){function e(e,o,n){var r=t.call(this,u({url:e},n))||this;return r.resource2Type=o,r}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return f(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},e.prototype.create=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,s+"/"+this.resource2Type+"/"+p+"/notes",u({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=m([t,e,o].map(encodeURIComponent),3),p=s[0],i=s[1],c=s[2];return v(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+c,u({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return R(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return f(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e}(U),A=function(t){function e(e,o){return t.call(this,u({url:["templates",e].join("/")},o))||this}return i(e,t),e.prototype.all=function(t){return f(this,"",t)},e.prototype.show=function(t,e){return I(this,""+encodeURIComponent(t),e)},e}(U),E=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return f(this,encodeURIComponent(t)+"/variables",e)},e.prototype.create=function(t,e){return I(this,encodeURIComponent(t)+"/variables",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/variables/"+n[1],o)},e}(U),M=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(g),x=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(w),D=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(P),B=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(k),L=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(S),N=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(T),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"groups/"+encodeURIComponent(t)+"/projects",e)},e.prototype.add=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(U),K=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(E),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"groups/"+encodeURIComponent(t)+"/epics",e)},e.prototype.create=function(t,e,o){return I(this,"groups/"+encodeURIComponent(t)+"/epics",u({title:e},o))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(U),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},e.prototype.assign=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return v(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return R(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return R(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(U),z=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return i(e,t),e}(G),H=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return i(e,t),e}(q),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"users",t)},e.prototype.activities=function(t){return f(this,"users/activities",t)},e.prototype.projects=function(t,e){return f(this,"users/"+encodeURIComponent(t)+"/projects",e)},e.prototype.block=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/block",e)},e.prototype.create=function(t){return I(this,"users",t)},e.prototype.current=function(t){return f(this,"user",t)},e.prototype.edit=function(t,e){return v(this,"users/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return f(this,"users/"+encodeURIComponent(t)+"/events",e)},e.prototype.session=function(t,e,o){return I(this,"session",u({email:t,password:e},o))},e.prototype.search=function(t,e){return f(this,"users",u({search:t},e))},e.prototype.show=function(t,e){return f(this,"users/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return R(this,"users/"+encodeURIComponent(t),e)},e.prototype.unblock=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/unblock",e)},e}(U),W=function(t){function e(e){return t.call(this,"users",e)||this}return i(e,t),e}(P),Y=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return f(this,Y(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]);return I(this,Y(o),u({email:t},n))},e.prototype.show=function(t,e){return f(this,"user/emails/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return R(this,Y(o)+"/"+r,n)},e}(U),X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",e)},e.prototype.add=function(t,e,o,n,r){return I(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",u({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e.prototype.revoke=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(U),Z=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return f(this,Z(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return I(this,Z(n),u({title:t,key:e},r))},e.prototype.show=function(t,e){return f(this,"user/keys/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return R(this,Z(o)+"/"+r,n)},e}(U),tt=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return f(this,tt(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return I(this,tt(n),u({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return f(this,tt(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return R(this,tt(o)+"/"+r,n)},e}(U),ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/repository/branches",e)},e.prototype.create=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/branches",u({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/protected_branches",u({name:e},o))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(U),nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/repository/commits",e)},e.prototype.cherryPick=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/cherry_pick",u({branch:o},n))},e.prototype.comments=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",o)},e.prototype.create=function(t,e,o,n,r){return void 0===n&&(n=[]),I(this,"projects/"+encodeURIComponent(t)+"/repository/commits",u({branch:e,commitMessage:o,actions:n},r))},e.prototype.createComment=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",u({note:o},n))},e.prototype.diff=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/diff",o)},e.prototype.editStatus=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,o)},e.prototype.references=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/refs",o)},e.prototype.show=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e,o)},e.prototype.status=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/statuses",o)},e}(U),rt=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return i(e,t),e}(q),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/deployments",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(U),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},e.prototype.enable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(U),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.create=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(U),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=c(t,["projectId"]);return f(this,e?"projects/"+encodeURIComponent(e)+"/issues":"issues",o)},e.prototype.create=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/issues",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2),p=s[0],i=s[1],c=m([o,n].map(encodeURIComponent),2),a=c[0],h=c[1];return I(this,"projects/"+p+"/issues/"+i+"/links",u({targetProjectId:a,targetIssueId:h},r))},e.prototype.participants=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.timeStats=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(U),ct=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return i(e,t),e}(G),at=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return i(e,t),e}(q),ht=function(t){function e(e){return t.call(this,"issues",e)||this}return i(e,t),e}(_),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.cancel=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},e.prototype.downloadSingleArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([t,e].map(encodeURIComponent),2),u=i[0],a=i[1];return s?y(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p):f(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([t,e,o].map(encodeURIComponent),3),u=i[0],a=i[1],h=i[2];return s?y(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p):f(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},e.prototype.erase=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.keepArtifacts=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},e.prototype.play=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},e.prototype.retry=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(U),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.create=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.edit=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/labels",u({name:e},o))},e.prototype.remove=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/labels",u({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(U),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.accept=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]);return f(this,e?"projects/"+encodeURIComponent(e)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},e.prototype.approve=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.approvals=function(t,e){var o=e.mergerequestIId,n=c(e,["mergerequestIId"]),r=m([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return f(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.approvers=function(t,e,o,n){var r=n.mergerequestIId,s=c(n,["mergerequestIId"]),p=m([t,r].map(encodeURIComponent),2),i=p[0],a=p[1];return I(this,r?"projects/"+i+"/merge_requests/"+a+"/approvals":"projects/"+i+"/approvals",u({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},e.prototype.closesIssues=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},e.prototype.commits=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},e.prototype.create=function(t,e,o,n,r){var s=encodeURIComponent(t);return I(this,"projects/"+s+"/merge_requests",u({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=c(e,["mergerequestIId"]),r=m([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.pipelines=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.timeStats=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},e.prototype.version=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return f(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},e.prototype.versions=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},e.prototype.unapprove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(U),ft=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return i(e,t),e}(_),yt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return i(e,t),e}(q),It=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return i(e,t),e}(G),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/pipelines",e)},e.prototype.create=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipeline",u({ref:e},o))},e.prototype.show=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e,o)},e.prototype.retry=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/retry",o)},e.prototype.cancel=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/cancel",o)},e.prototype.showJobs=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/jobs",o)},e}(U),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",e)},e.prototype.create=function(t,e,o,n,r){return I(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",u({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.takeOwnership=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(U),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.create=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.edit=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return v(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return f(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return R(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(U),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"projects",t)},e.prototype.archive=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/archive",e)},e.prototype.create=function(t){var e=t.userId,o=c(t,["userId"]);return I(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return v(this,"projects/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/events",e)},e.prototype.fork=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/fork",e)},e.prototype.forks=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/forks",e)},e.prototype.languages=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/languages",e)},e.prototype.mirrorPull=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/mirror/pull",e)},e.prototype.remove=function(t,e){return R(this,"projects/"+encodeURIComponent(t),e)},e.prototype.search=function(t){return f(this,"projects",{search:t})},e.prototype.share=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/share",u({groupId:e,groupAccess:o},n))},e.prototype.show=function(t,e){return f(this,"projects/"+encodeURIComponent(t),e)},e.prototype.star=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/star",e)},e.prototype.statuses=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,u({state:o},n))},e.prototype.transfer=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/transfer",{namespace:e})},e.prototype.unarchive=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/unarchive",e)},e.prototype.unshare=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/share"+n[1],o)},e.prototype.unstar=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/unstar",e)},e.prototype.updatePushRule=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o){var n=o.fileName,p=void 0===n?s(8):n,i=encodeURIComponent(t),u=new r;return u.append(p,{file:{value:e,options:{filename:p,contentType:"application/octet-stream"}}}),I(this,"projects/"+i+"/uploads",u)},e}(U),Ct=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(g),gt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(w),bt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(P),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.download=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/export/download",e)},e.prototype.exportStatus=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/export",e)},e.prototype.import=function(t,e,o){var n=new r;return n.append(e,{file:{value:t,options:{filename:e,contentType:"application/octet-stream"}}}),I(this,"projects/import",u({},n,o))},e.prototype.importStatus=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/import",e)},e.prototype.schedule=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export",e)},e}(U),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(k),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/hooks",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e.prototype.add=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/hooks",u({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/hooks/"+r[1],u({url:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(U),qt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(S),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(T),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/snippets",e)},e.prototype.content=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},e.prototype.create=function(t,e,o,n,r,s){return I(this,"projects/"+encodeURIComponent(t)+"/snippets",u({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(U),Tt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return i(e,t),e}(G),Gt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return i(e,t),e}(q),At=function(t){function e(e){return t.call(this,"issues",e)||this}return i(e,t),e}(_),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/protected_branches",e)},e.prototype.protect=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/protected_branches",u({name:e},o))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(U),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/protected_tags",e)},e.prototype.protect=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/protected_tags",u({name:e},o))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(U),xt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(E),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.compare=function(t,e,o,n){return f(this,"projects/"+encodeURIComponent(t)+"/repository/compare",u({from:e,to:o},n))},e.prototype.contributors=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/repository/contributors",e)},e.prototype.showArchive=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/repository/archive",e)},e.prototype.showBlob=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e,o)},e.prototype.showBlobRaw=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e+"/raw",o)},e.prototype.tree=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/repository/tree",e)},e}(U),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/repository/files/"+r[1],u({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+r[0]+"/repository/files/"+r[1],u({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",u({ref:o},n))},e}(U),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){var e=t.projectId,o=c(t,["projectId"]);return f(this,e?"projects/"+encodeURIComponent(e)+"/runners":"runners/all",o)},e.prototype.allOwned=function(t){return f(this,"runners",t)},e.prototype.edit=function(t,e){return v(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,"projects/"+r+"/runners",u({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/runners/"+n[1],o)},e.prototype.jobs=function(t,e){return f(this,"runners/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.remove=function(t,e){return R(this,"runners/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return f(this,"runners/"+encodeURIComponent(t),e)},e}(U),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.edit=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.remove=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.show=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e}(U),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.create=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(U),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"todos",t)},e.prototype.create=function(t,e,o){return I(this,"projects/"+t+"/merge_requests/"+e+"/todo",o)},e.prototype.done=function(t){var e=t.todoId,o="mark_as_done";return e&&(o=e+"/"+o),R(this,"todos/"+o,c(t,["todoId"]))},e}(U),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return f(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e}(U),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.edit=function(t,e){e.upsert;var o=c(e,["upsert"]),n=encodeURIComponent(t);try{return v(this,"projects/"+n+"/push_rule",o)}catch(e){if(e.message.includes("exist"))return this.create(t,o);throw e}},e.prototype.remove=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.show=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e}(U),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"application/settings",t)},e.prototype.edit=function(t){return v(this,"application/settings",t)},e}(U),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"broadcast_messages",t)},e.prototype.create=function(t){return I(this,"broadcast_messages",t)},e.prototype.edit=function(t,e){return v(this,"broadcast_messages/"+encodeURIComponent(t),e)},e.prototype.remove=function(t){return R(this,"broadcast_messages/"+encodeURIComponent(t))},e.prototype.show=function(t,e){return f(this,"broadcast_messages/"+encodeURIComponent(t),e)},e}(U),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"events",t)},e}(U),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"features",t)},e.prototype.set=function(t,e){return I(this,"features/"+encodeURIComponent(t),e)},e}(U),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"geo_nodes",t)},e.prototype.create=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.edit=function(t,e){return v(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.failures=function(t){return I(this,"geo_nodes/current/failures",t)},e.prototype.repair=function(t,e){return R(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return f(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.status=function(t,e){return f(this,"geo_nodes/"+encodeURIComponent(t)+"/status",e)},e.prototype.statuses=function(t){return f(this,"geo_nodes/statuses",t)},e}(U),Qt=function(t){function e(e){return t.call(this,"gitignores",e)||this}return i(e,t),e}(A),Xt=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return i(e,t),e}(A),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.show=function(t,e){return f(this,"keys/"+encodeURIComponent(t),e)},e}(U),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"licence",t)},e.prototype.create=function(t){return I(this,"licence",t)},e}(U),te=function(t){function e(e){return t.call(this,"licences",e)||this}return i(e,t),e}(A),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.lint=function(t,e){return I(this,"lint",u({content:t},e))},e}(U),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,"namespaces",t)},e.prototype.show=function(t,e){return f(this,"namespaces/"+encodeURIComponent(t),e)},e}(U),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),f(this,r+"notification_settings",n)},e.prototype.edit=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),v(this,r+"notification_settings",n)},e}(U),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(t,e){return I(this,"markdown",u({text:t},e))},e}(U),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=c(t,["projectId"]);return f(this,(e?"projects/"+encodeURIComponent(e)+"/":"")+"pages/domains",o)},e.prototype.create=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pages/domains",u({domain:e},o))},e.prototype.edit=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.show=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.remove=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e}(U),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=c(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),f(this,p+"search",u({scope:t,search:e},s))},e}(U),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.queueMetrics=function(){return f(this,"sidekiq/queue_metrics")},e.prototype.processMetrics=function(){return f(this,"sidekiq/process_metrics")},e.prototype.jobStats=function(){return f(this,"sidekiq/job_stats")},e.prototype.compoundMetrics=function(){return f(this,"sidekiq/compound_metrics")},e}(U),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return f(this,t.public?"snippets/public":"snippets",c(t,["public"]))},e.prototype.content=function(t,e){return f(this,"snippets/"+encodeURIComponent(t)+"/raw",e)},e.prototype.create=function(t,e,o,n,r){return I(this,"snippets",u({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return v(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return R(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return f(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.userAgentDetails=function(t,e){return f(this,"snippets/"+encodeURIComponent(t)+"/user_agent_detail",e)},e}(U),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return I(this,"hooks",u({url:t},e))},e.prototype.all=function(t){return f(this,"hooks",t)},e.prototype.edit=function(t,e,o){return v(this,"hooks/"+encodeURIComponent(t),u({url:e},o))},e.prototype.remove=function(t,e){return R(this,"hooks/"+encodeURIComponent(t),e)},e}(U),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.show=function(t){return f(this,"version",t)},e}(U),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return f(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.create=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.edit=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.show=function(t,e,o){return f(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.remove=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e}(U),me=Object.freeze({Groups:C,GroupAccessRequests:M,GroupBadges:x,GroupCustomAttributes:D,GroupIssueBoards:B,GroupMembers:L,GroupMilestones:N,GroupProjects:O,GroupVariables:K,Epics:F,EpicIssues:V,EpicNotes:z,EpicDiscussions:H,Users:J,UserCustomAttributes:W,UserEmails:Q,UserImpersonationTokens:X,UserKeys:$,UserGPGKeys:et,Branches:ot,Commits:nt,CommitDiscussions:rt,Deployments:st,DeployKeys:pt,Environments:it,Issues:ut,IssueNotes:ct,IssueDiscussions:at,IssueAwardEmojis:ht,Jobs:mt,Labels:lt,MergeRequests:dt,MergeRequestAwardEmojis:ft,MergeRequestDiscussions:yt,MergeRequestNotes:It,Pipelines:vt,PipelineSchedules:Rt,PipelineScheduleVariables:Ut,Projects:jt,ProjectAccessRequests:Ct,ProjectBadges:gt,ProjectCustomAttributes:bt,ProjectImportExport:_t,ProjectIssueBoards:wt,ProjectHooks:Pt,ProjectMembers:qt,ProjectMilestones:kt,ProjectSnippets:St,ProjectSnippetNotes:Tt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:At,ProtectedBranches:Et,ProtectedTags:Mt,ProjectVariables:xt,Repositories:Dt,RepositoryFiles:Bt,Runners:Lt,Services:Nt,Tags:Ot,Todos:Kt,Triggers:Ft,PushRule:Vt,ApplicationSettings:zt,BroadcastMessages:Ht,Events:Jt,FeatureFlags:Wt,GeoNodes:Yt,GitignoreTemplates:Qt,GitLabCIYMLTemplates:Xt,Keys:Zt,Licence:$t,LicenceTemplates:te,Lint:ee,Namespaces:oe,NotificationSettings:ne,Markdown:re,PagesDomains:se,Search:pe,SidekiqMetrics:ie,Snippets:ue,SystemHooks:ce,Version:ae,Wikis:he}),le=j({Groups:C,GroupAccessRequests:M,GroupBadges:x,GroupCustomAttributes:D,GroupIssueBoards:B,GroupMembers:L,GroupMilestones:N,GroupProjects:O,GroupVariables:K,Epics:F,EpicIssues:V,EpicNotes:z,EpicDiscussions:H}),de=j({Users:J,UserCustomAttributes:W,UserEmails:Q,UserImpersonationTokens:X,UserKeys:$,UserGPGKeys:et}),fe=j({Branches:ot,Commits:nt,CommitDiscussions:rt,DeployKeys:pt,Deployments:st,Environments:it,Issues:ut,IssueAwardEmojis:ht,IssueNotes:ct,IssueDiscussions:at,Jobs:mt,Labels:lt,MergeRequests:dt,MergeRequestAwardEmojis:ft,MergeRequestDiscussions:yt,MergeRequestNotes:It,Pipelines:vt,PipelineSchedules:Rt,PipelineScheduleVariables:Ut,Projects:jt,ProjectAccessRequests:Ct,ProjectBadges:gt,ProjectCustomAttributes:bt,ProjectImportExport:_t,ProjectIssueBoards:wt,ProjectHooks:Pt,ProjectMembers:qt,ProjectMilestones:kt,ProjectSnippets:St,ProjectSnippetNotes:Tt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:At,ProtectedBranches:Et,ProtectedTags:Mt,ProjectVariables:xt,Repositories:Dt,RepositoryFiles:Bt,Runners:Lt,Services:Nt,Tags:Ot,Triggers:Ft}),ye=j(me);t.GroupsBundle=le,t.UsersBundle=de,t.ProjectsBundle=fe,t.Gitlab=ye,t.Groups=C,t.GroupAccessRequests=M,t.GroupBadges=x,t.GroupCustomAttributes=D,t.GroupIssueBoards=B,t.GroupMembers=L,t.GroupMilestones=N,t.GroupProjects=O,t.GroupVariables=K,t.Epics=F,t.EpicIssues=V,t.EpicNotes=z,t.EpicDiscussions=H,t.Users=J,t.UserCustomAttributes=W,t.UserEmails=Q,t.UserImpersonationTokens=X,t.UserKeys=$,t.UserGPGKeys=et,t.Branches=ot,t.Commits=nt,t.CommitDiscussions=rt,t.Deployments=st,t.DeployKeys=pt,t.Environments=it,t.Issues=ut,t.IssueNotes=ct,t.IssueDiscussions=at,t.IssueAwardEmojis=ht,t.Jobs=mt,t.Labels=lt,t.MergeRequests=dt,t.MergeRequestAwardEmojis=ft,t.MergeRequestDiscussions=yt,t.MergeRequestNotes=It,t.Pipelines=vt,t.PipelineSchedules=Rt,t.PipelineScheduleVariables=Ut,t.Projects=jt,t.ProjectAccessRequests=Ct,t.ProjectBadges=gt,t.ProjectCustomAttributes=bt,t.ProjectImportExport=_t,t.ProjectIssueBoards=wt,t.ProjectHooks=Pt,t.ProjectMembers=qt,t.ProjectMilestones=kt,t.ProjectSnippets=St,t.ProjectSnippetNotes=Tt,t.ProjectSnippetDiscussions=Gt,t.ProjectSnippetAwardEmojis=At,t.ProtectedBranches=Et,t.ProtectedTags=Mt,t.ProjectVariables=xt,t.Repositories=Dt,t.RepositoryFiles=Bt,t.Runners=Lt,t.Services=Nt,t.Tags=Ot,t.Todos=Kt,t.Triggers=Ft,t.PushRule=Vt,t.ApplicationSettings=zt,t.BroadcastMessages=Ht,t.Events=Jt,t.FeatureFlags=Wt,t.GeoNodes=Yt,t.GitignoreTemplates=Qt,t.GitLabCIYMLTemplates=Xt,t.Keys=Zt,t.Licence=$t,t.LicenceTemplates=te,t.Lint=ee,t.Namespaces=oe,t.NotificationSettings=ne,t.Markdown=re,t.PagesDomains=se,t.Search=pe,t.SidekiqMetrics=ie,t.Snippets=ue,t.SystemHooks=ce,t.Version=ae,t.Wikis=he,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("got"),require("humps"),require("query-string"),require("form-data"),require("randomstring")):"function"==typeof define&&define.amd?define(["exports","got","humps","query-string","form-data","randomstring"],e):e((t=t||self)["node-gitlab"]={},t.Request,t.Humps,t.QueryString,t.FormData,t.RandomString)}(this,function(t,e,o,n,r,s){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r,s=s&&s.hasOwnProperty("default")?s.default:s;var p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function i(t,e){function o(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var u=function(){return(u=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function c(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&(o[n[r]]=t[n[r]])}return o}function a(t,e,o,n){return new(o||(o=Promise))(function(r,s){function p(t){try{u(n.next(t))}catch(t){s(t)}}function i(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){t.done?r(t.value):new o(function(e){e(t.value)}).then(p,i)}u((n=n.apply(t,e||[])).next())})}function h(t,e){var o,n,r,s,p={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;p;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return p.label++,{value:s[1],done:!1};case 5:p.label++,n=s[1],s=[0];continue;case 7:s=p.ops.pop(),p.trys.pop();continue;default:if(!(r=(r=p.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){p=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){p.label=s[1];break}if(6===s[0]&&p.label<r[1]){p.label=r[1],r=s;break}if(r&&p.label<r[2]){p.label=r[2],p.ops.push(s);break}r[2]&&p.ops.pop(),p.trys.pop();continue}s=e.call(t,p)}catch(t){s=[6,t],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}function m(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,r,s=o.call(t),p=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function d(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=m(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function f(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}function y(t,e,r){var s=r.body,p=r.query,i=r.sudo;return[e,{baseUrl:t.url,headers:u({sudo:i},t.headers),query:p&&n.stringify(o.decamelizeKeys(p),{arrayFormat:"bracket"}),body:s&&o.decamelizeKeys(s,f),rejectUnauthorized:t.rejectUnauthorized,json:!0}]}function I(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r,s,p,i,a,m,d,f,v,R,U;return h(this,function(h){switch(h.label){case 0:return r=n.showPagination,s=n.maxPages,p=n.sudo,i=c(n,["showPagination","maxPages","sudo"]),a=y(t,o,{query:i,sudo:p}),[4,e.get.apply(e,l(a))];case 1:return m=h.sent(),d=m.headers,f=m.body,v={total:d["x-total"],next:d["x-next-page"]||null,current:d["x-page"]||null,previous:d["x-prev-page"]||null,perPage:d["x-per-page"],totalPages:d["x-total-pages"]},R=!s||v.current<s,!i.page&&R&&v.next?[4,I(t,o,u({page:v.next},n))]:[3,3];case 2:return U=h.sent(),[2,l(f,U)];case 3:return[2,(i.page||s)&&r?{data:f,pagination:v}:f]}})})}function v(t,o,n){return void 0===n&&(n={}),e.stream.apply(e,l(y(t,o,{query:n})))}function R(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r,s;return h(this,function(p){switch(p.label){case 0:return r=n.sudo,s=c(n,["sudo"]),[4,e.post.apply(e,l(y(t,o,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function U(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r;return h(this,function(s){switch(s.label){case 0:return n.sudo,r=c(n,["sudo"]),[4,e.put.apply(e,l(y(t,o,{body:r})))];case 1:return[2,s.sent().body]}})})}function j(t,o,n){return void 0===n&&(n={}),a(this,void 0,void 0,function(){var r;return h(this,function(s){switch(s.label){case 0:return n.sudo,r=c(n,["sudo"]),[4,e.delete.apply(e,l(y(t,o,{query:r})))];case 1:return[2,s.sent().body]}})})}var C=function(){return function(t){var o=t.token,n=t.oauthToken,r=t.sudo,s=t.host,p=void 0===s?"https://gitlab.com":s,i=t.url,u=void 0===i?"":i,c=t.version,a=void 0===c?"v4":c,h=t.rejectUnauthorized,m=void 0===h||h,l=t.requester,d=void 0===l?e:l;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=m,this.requester=d,n?this.headers.authorization="Bearer "+n:o&&(this.headers["private-token"]=o),r&&(this.headers.Sudo=r)}}(),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"groups",t)},e.prototype.create=function(t){return R(this,"groups",t)},e.prototype.createLDAPLink=function(t,e,o,n,r){return R(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links",u({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return U(this,"groups/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"groups/"+encodeURIComponent(t),e)},e.prototype.removeLDAPLink=function(t,e,o){void 0===o&&(o={});var n=o.provider,r=c(o,["provider"]);return j(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links/"+(n?n+"/"+e:""+e),r)},e.prototype.search=function(t,e){return I(this,"groups",u({search:t},e))},e.prototype.show=function(t,e){return I(this,"groups/"+encodeURIComponent(t),e)},e.prototype.subgroups=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/subgroups",e)},e.prototype.syncLDAP=function(t,e){return R(this,"groups/"+encodeURIComponent(t)+"/ldap_sync",e)},e}(C),b=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t){return I(this,encodeURIComponent(t)+"/access_requests")},e.prototype.request=function(t){return R(this,encodeURIComponent(t)+"/access_requests")},e.prototype.approve=function(t,e,o){var n=o.accessLevel,r=m([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},e.prototype.deny=function(t,e){var o=m([t,e].map(encodeURIComponent),2);return j(this,o[0]+"/access_requests/"+o[1])},e}(C);function _(t,e,o,n,r){var s=m([t,o].map(encodeURIComponent),2),p=[s[0],e,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var w=function(t){function e(e,o){var n=t.call(this,u({url:"projects"},o))||this;return n.resourceType=e,n}return i(e,t),e.prototype.all=function(t,e,o,n){return I(this,_(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return R(this,_(t,this.resourceType,e,null,n),u({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return j(this,_(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return I(this,_(t,this.resourceType,e,o,n),r)},e}(C),P=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.add=function(t,e){return R(this,encodeURIComponent(t)+"/badges",e)},e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/badges",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return I(this,encodeURIComponent(t)+"/badges/render",u({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/badges/"+n[1],o)},e}(C),q=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/custom_attributes",e)},e.prototype.set=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return U(this,r[0]+"/custom_attributes/"+r[1],u({value:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/custom_attributes/"+n[1],o)},e}(C),k=function(t){function e(e,o,n){var r=t.call(this,u({url:e},n))||this;return r.resource2Type=o,r}return i(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=m([t,e,o,n].map(encodeURIComponent),4),i=p[0],c=p[1],a=p[2],h=p[3];return U(this,i+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+h,u({body:r},s))},e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},e.prototype.create=function(t,e,o,n){if(!o)throw new Error("Missing required content argument");var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/discussions",u({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=m([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return U(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=m([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return j(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return I(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},e}(C),S=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/boards",e)},e.prototype.create=function(t,e,o){return R(this,encodeURIComponent(t)+"/boards",u({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/boards/"+r[1]+"/lists",u({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=m([t,e,o].map(encodeURIComponent),3);return U(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],u({position:n},r))},e.prototype.lists=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return I(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(C),T=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e,o){void 0===e&&(e=!1);var n=[encodeURIComponent(t),"members"];return e&&n.push("all"),I(this,n.join("/"),{options:o})},e.prototype.add=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/members",u({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return U(this,r[0]+"/members/"+r[1],u({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/members/"+n[1],o)},e}(C),G=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/milestones",e)},e.prototype.create=function(t,e,o){return R(this,encodeURIComponent(t)+"/milestones",u({title:e},o))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1],o)},e}(C),A=function(t){function e(e,o,n){var r=t.call(this,u({url:e},n))||this;return r.resource2Type=o,r}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return I(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},e.prototype.create=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/notes",u({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=m([t,e,o].map(encodeURIComponent),3),p=s[0],i=s[1],c=s[2];return U(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+c,u({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return j(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return I(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e}(C),E=function(t){function e(e,o){return t.call(this,u({url:["templates",e].join("/")},o))||this}return i(e,t),e.prototype.all=function(t){return I(this,"",t)},e.prototype.show=function(t,e){return R(this,""+encodeURIComponent(t),e)},e}(C),M=function(t){function e(e,o){return t.call(this,u({url:e},o))||this}return i(e,t),e.prototype.all=function(t,e){return I(this,encodeURIComponent(t)+"/variables",e)},e.prototype.create=function(t,e){return R(this,encodeURIComponent(t)+"/variables",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/variables/"+n[1],o)},e}(C),x=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(b),D=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(P),B=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(q),L=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(S),N=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(T),O=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(G),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/projects",e)},e.prototype.add=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(C),F=function(t){function e(e){return t.call(this,"groups",e)||this}return i(e,t),e}(M),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"groups/"+encodeURIComponent(t)+"/epics",e)},e.prototype.create=function(t,e,o){return R(this,"groups/"+encodeURIComponent(t)+"/epics",u({title:e},o))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(C),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},e.prototype.assign=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(C),H=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return i(e,t),e}(A),J=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return i(e,t),e}(k),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"users",t)},e.prototype.activities=function(t){return I(this,"users/activities",t)},e.prototype.projects=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/projects",e)},e.prototype.block=function(t,e){return R(this,"users/"+encodeURIComponent(t)+"/block",e)},e.prototype.create=function(t){return R(this,"users",t)},e.prototype.current=function(t){return I(this,"user",t)},e.prototype.edit=function(t,e){return U(this,"users/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/events",e)},e.prototype.session=function(t,e,o){return R(this,"session",u({email:t,password:e},o))},e.prototype.search=function(t,e){return I(this,"users",u({search:t},e))},e.prototype.show=function(t,e){return I(this,"users/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"users/"+encodeURIComponent(t),e)},e.prototype.unblock=function(t,e){return R(this,"users/"+encodeURIComponent(t)+"/unblock",e)},e}(C),Y=function(t){function e(e){return t.call(this,"users",e)||this}return i(e,t),e}(q),Q=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return I(this,Q(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]);return R(this,Q(o),u({email:t},n))},e.prototype.show=function(t,e){return I(this,"user/emails/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return j(this,Q(o)+"/"+r,n)},e}(C),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",e)},e.prototype.add=function(t,e,o,n,r){return R(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",u({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e.prototype.revoke=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(C),X=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return I(this,X(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return R(this,X(n),u({title:t,key:e},r))},e.prototype.show=function(t,e){return I(this,"user/keys/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return j(this,X(o)+"/"+r,n)},e}(C),et=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=c(t,["userId"]);return I(this,et(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return R(this,et(n),u({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return I(this,et(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=c(e,["userId"]),r=encodeURIComponent(t);return j(this,et(o)+"/"+r,n)},e}(C),nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/branches",e)},e.prototype.create=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/branches",u({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",u({name:e},o))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(C),rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits",e)},e.prototype.cherryPick=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/cherry_pick",u({branch:o},n))},e.prototype.comments=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",o)},e.prototype.create=function(t,e,o,n,r){return void 0===n&&(n=[]),R(this,"projects/"+encodeURIComponent(t)+"/repository/commits",u({branch:e,commitMessage:o,actions:n},r))},e.prototype.createComment=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",u({note:o},n))},e.prototype.diff=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/diff",o)},e.prototype.editStatus=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,o)},e.prototype.references=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/refs",o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e,o)},e.prototype.status=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/statuses",o)},e.prototype.mergeRequests=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests")},e}(C),st=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return i(e,t),e}(k),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deployments",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(C),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},e.prototype.enable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(C),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(C),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=c(t,["projectId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/issues":"issues",o)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/issues",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2),p=s[0],i=s[1],c=m([o,n].map(encodeURIComponent),2),a=c[0],h=c[1];return R(this,"projects/"+p+"/issues/"+i+"/links",u({targetProjectId:a,targetIssueId:h},r))},e.prototype.participants=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.timeStats=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(C),at=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return i(e,t),e}(A),ht=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return i(e,t),e}(k),mt=function(t){function e(e){return t.call(this,"issues",e)||this}return i(e,t),e}(w),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.cancel=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},e.prototype.downloadSingleArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([t,e].map(encodeURIComponent),2),u=i[0],a=i[1];return s?v(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p):I(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([t,e,o].map(encodeURIComponent),3),u=i[0],a=i[1],h=i[2];return s?v(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p):I(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},e.prototype.erase=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.keepArtifacts=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},e.prototype.play=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},e.prototype.retry=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(C),dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/labels",u({name:e},o))},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/labels",u({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(C),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.accept=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},e.prototype.approve=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.approvals=function(t,e){var o=e.mergerequestIId,n=c(e,["mergerequestIId"]),r=m([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return I(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.approvers=function(t,e,o,n){var r=n.mergerequestIId,s=c(n,["mergerequestIId"]),p=m([t,r].map(encodeURIComponent),2),i=p[0],a=p[1];return R(this,r?"projects/"+i+"/merge_requests/"+a+"/approvals":"projects/"+i+"/approvals",u({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},e.prototype.closesIssues=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},e.prototype.commits=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},e.prototype.create=function(t,e,o,n,r){var s=encodeURIComponent(t);return R(this,"projects/"+s+"/merge_requests",u({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=c(e,["mergerequestIId"]),r=m([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.pipelines=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.timeStats=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},e.prototype.version=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return I(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},e.prototype.versions=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},e.prototype.unapprove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.unsubscribe=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(C),yt=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return i(e,t),e}(w),It=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return i(e,t),e}(k),vt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return i(e,t),e}(A),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines",e)},e.prototype.create=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipeline",u({ref:e},o))},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e,o)},e.prototype.retry=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/retry",o)},e.prototype.cancel=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/cancel",o)},e.prototype.showJobs=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/jobs",o)},e}(C),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",e)},e.prototype.create=function(t,e,o,n,r){return R(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",u({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.takeOwnership=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(C),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.create=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.edit=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return I(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=m([t,e,o].map(encodeURIComponent),3);return j(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(C),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"projects",t)},e.prototype.archive=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/archive",e)},e.prototype.create=function(t){var e=t.userId,o=c(t,["userId"]);return R(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return U(this,"projects/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/events",e)},e.prototype.fork=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/fork",e)},e.prototype.forks=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/forks",e)},e.prototype.languages=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/languages",e)},e.prototype.mirrorPull=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/mirror/pull",e)},e.prototype.remove=function(t,e){return j(this,"projects/"+encodeURIComponent(t),e)},e.prototype.search=function(t){return I(this,"projects",{search:t})},e.prototype.share=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/share",u({groupId:e,groupAccess:o},n))},e.prototype.show=function(t,e){return I(this,"projects/"+encodeURIComponent(t),e)},e.prototype.star=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/star",e)},e.prototype.statuses=function(t,e,o,n){return R(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,u({state:o},n))},e.prototype.transfer=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/transfer",{namespace:e})},e.prototype.unarchive=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/unarchive",e)},e.prototype.unshare=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/share"+n[1],o)},e.prototype.unstar=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/unstar",e)},e.prototype.updatePushRule=function(t,e){return U(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o){var n=o.fileName,p=void 0===n?s(8):n,i=encodeURIComponent(t),u=new r;return u.append(p,{file:{value:e,options:{filename:p,contentType:"application/octet-stream"}}}),R(this,"projects/"+i+"/uploads",u)},e}(C),gt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(b),bt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(P),_t=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(q),wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.download=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export/download",e)},e.prototype.exportStatus=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/export",e)},e.prototype.import=function(t,e,o){var n=new r;return n.append(e,{file:{value:t,options:{filename:e,contentType:"application/octet-stream"}}}),R(this,"projects/import",u({},n,o))},e.prototype.importStatus=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/import",e)},e.prototype.schedule=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/export",e)},e}(C),Pt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(S),qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/hooks",e)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e.prototype.add=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/hooks",u({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/hooks/"+r[1],u({url:o},n))},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(C),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(T),St=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(G),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/snippets",e)},e.prototype.content=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},e.prototype.create=function(t,e,o,n,r,s){return R(this,"projects/"+encodeURIComponent(t)+"/snippets",u({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(C),Gt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return i(e,t),e}(A),At=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return i(e,t),e}(k),Et=function(t){function e(e){return t.call(this,"issues",e)||this}return i(e,t),e}(w),Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/protected_branches",e)},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",u({name:e},o))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(C),xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/protected_tags",e)},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_tags",u({name:e},o))},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(C),Dt=function(t){function e(e){return t.call(this,"projects",e)||this}return i(e,t),e}(M),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.compare=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/compare",u({from:e,to:o},n))},e.prototype.contributors=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/contributors",e)},e.prototype.showArchive=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/archive",e)},e.prototype.showBlob=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e,o)},e.prototype.showBlobRaw=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e+"/raw",o)},e.prototype.tree=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tree",e)},e}(C),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+r[0]+"/repository/files/"+r[1],u({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1],u({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",u({ref:o},n))},e}(C),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){var e=t.projectId,o=c(t,["projectId"]);return I(this,e?"projects/"+encodeURIComponent(e)+"/runners":"runners/all",o)},e.prototype.allOwned=function(t){return I(this,"runners",t)},e.prototype.edit=function(t,e){return U(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return R(this,"projects/"+r+"/runners",u({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/runners/"+n[1],o)},e.prototype.jobs=function(t,e){return I(this,"runners/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.remove=function(t,e){return j(this,"runners/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"runners/"+encodeURIComponent(t),e)},e}(C),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e}(C),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(C),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"todos",t)},e.prototype.create=function(t,e,o){return R(this,"projects/"+t+"/merge_requests/"+e+"/todo",o)},e.prototype.done=function(t){var e=t.todoId,o="mark_as_done";return e&&(o=e+"/"+o),j(this,"todos/"+o,c(t,["todoId"]))},e}(C),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.edit=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=m([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e}(C),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.edit=function(t,e){e.upsert;var o=c(e,["upsert"]),n=encodeURIComponent(t);try{return U(this,"projects/"+n+"/push_rule",o)}catch(e){if(e.message.includes("exist"))return this.create(t,o);throw e}},e.prototype.remove=function(t,e){return j(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.show=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e}(C),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"application/settings",t)},e.prototype.edit=function(t){return U(this,"application/settings",t)},e}(C),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"broadcast_messages",t)},e.prototype.create=function(t){return R(this,"broadcast_messages",t)},e.prototype.edit=function(t,e){return U(this,"broadcast_messages/"+encodeURIComponent(t),e)},e.prototype.remove=function(t){return j(this,"broadcast_messages/"+encodeURIComponent(t))},e.prototype.show=function(t,e){return I(this,"broadcast_messages/"+encodeURIComponent(t),e)},e}(C),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"events",t)},e}(C),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"features",t)},e.prototype.set=function(t,e){return R(this,"features/"+encodeURIComponent(t),e)},e}(C),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"geo_nodes",t)},e.prototype.create=function(t,e){return R(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.edit=function(t,e){return U(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.failures=function(t){return R(this,"geo_nodes/current/failures",t)},e.prototype.repair=function(t,e){return j(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.status=function(t,e){return I(this,"geo_nodes/"+encodeURIComponent(t)+"/status",e)},e.prototype.statuses=function(t){return I(this,"geo_nodes/statuses",t)},e}(C),Zt=function(t){function e(e){return t.call(this,"gitignores",e)||this}return i(e,t),e}(E),$t=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return i(e,t),e}(E),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.show=function(t,e){return I(this,"keys/"+encodeURIComponent(t),e)},e}(C),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"licence",t)},e.prototype.create=function(t){return R(this,"licence",t)},e}(C),ee=function(t){function e(e){return t.call(this,"licences",e)||this}return i(e,t),e}(E),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.lint=function(t,e){return R(this,"lint",u({content:t},e))},e}(C),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,"namespaces",t)},e.prototype.show=function(t,e){return I(this,"namespaces/"+encodeURIComponent(t),e)},e}(C),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),I(this,r+"notification_settings",n)},e.prototype.edit=function(t){void 0===t&&(t={});var e=t.projectId,o=t.groupId,n=c(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),U(this,r+"notification_settings",n)},e}(C),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(t,e){return R(this,"markdown",u({text:t},e))},e}(C),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=c(t,["projectId"]);return I(this,(e?"projects/"+encodeURIComponent(e)+"/":"")+"pages/domains",o)},e.prototype.create=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pages/domains",u({domain:e},o))},e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e}(C),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=c(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),I(this,p+"search",u({scope:t,search:e},s))},e}(C),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.queueMetrics=function(){return I(this,"sidekiq/queue_metrics")},e.prototype.processMetrics=function(){return I(this,"sidekiq/process_metrics")},e.prototype.jobStats=function(){return I(this,"sidekiq/job_stats")},e.prototype.compoundMetrics=function(){return I(this,"sidekiq/compound_metrics")},e}(C),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t){return I(this,t.public?"snippets/public":"snippets",c(t,["public"]))},e.prototype.content=function(t,e){return I(this,"snippets/"+encodeURIComponent(t)+"/raw",e)},e.prototype.create=function(t,e,o,n,r){return R(this,"snippets",u({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return U(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return j(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return I(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.userAgentDetails=function(t,e){return I(this,"snippets/"+encodeURIComponent(t)+"/user_agent_detail",e)},e}(C),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.add=function(t,e){return R(this,"hooks",u({url:t},e))},e.prototype.all=function(t){return I(this,"hooks",t)},e.prototype.edit=function(t,e,o){return U(this,"hooks/"+encodeURIComponent(t),u({url:e},o))},e.prototype.remove=function(t,e){return j(this,"hooks/"+encodeURIComponent(t),e)},e}(C),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.show=function(t){return I(this,"version",t)},e}(C),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.all=function(t,e){return I(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.create=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.edit=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.show=function(t,e,o){return I(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e}(C),le=Object.freeze({Groups:g,GroupAccessRequests:x,GroupBadges:D,GroupCustomAttributes:B,GroupIssueBoards:L,GroupMembers:N,GroupMilestones:O,GroupProjects:K,GroupVariables:F,Epics:V,EpicIssues:z,EpicNotes:H,EpicDiscussions:J,Users:W,UserCustomAttributes:Y,UserEmails:Z,UserImpersonationTokens:$,UserKeys:tt,UserGPGKeys:ot,Branches:nt,Commits:rt,CommitDiscussions:st,Deployments:pt,DeployKeys:it,Environments:ut,Issues:ct,IssueNotes:at,IssueDiscussions:ht,IssueAwardEmojis:mt,Jobs:lt,Labels:dt,MergeRequests:ft,MergeRequestAwardEmojis:yt,MergeRequestDiscussions:It,MergeRequestNotes:vt,Pipelines:Rt,PipelineSchedules:Ut,PipelineScheduleVariables:jt,Projects:Ct,ProjectAccessRequests:gt,ProjectBadges:bt,ProjectCustomAttributes:_t,ProjectImportExport:wt,ProjectIssueBoards:Pt,ProjectHooks:qt,ProjectMembers:kt,ProjectMilestones:St,ProjectSnippets:Tt,ProjectSnippetNotes:Gt,ProjectSnippetDiscussions:At,ProjectSnippetAwardEmojis:Et,ProtectedBranches:Mt,ProtectedTags:xt,ProjectVariables:Dt,Repositories:Bt,RepositoryFiles:Lt,Runners:Nt,Services:Ot,Tags:Kt,Todos:Ft,Triggers:Vt,PushRule:zt,ApplicationSettings:Ht,BroadcastMessages:Jt,Events:Wt,FeatureFlags:Yt,GeoNodes:Qt,GitignoreTemplates:Zt,GitLabCIYMLTemplates:$t,Keys:Xt,Licence:te,LicenceTemplates:ee,Lint:oe,Namespaces:ne,NotificationSettings:re,Markdown:se,PagesDomains:pe,Search:ie,SidekiqMetrics:ue,Snippets:ce,SystemHooks:ae,Version:he,Wikis:me}),de=d({Groups:g,GroupAccessRequests:x,GroupBadges:D,GroupCustomAttributes:B,GroupIssueBoards:L,GroupMembers:N,GroupMilestones:O,GroupProjects:K,GroupVariables:F,Epics:V,EpicIssues:z,EpicNotes:H,EpicDiscussions:J}),fe=d({Users:W,UserCustomAttributes:Y,UserEmails:Z,UserImpersonationTokens:$,UserKeys:tt,UserGPGKeys:ot}),ye=d({Branches:nt,Commits:rt,CommitDiscussions:st,DeployKeys:it,Deployments:pt,Environments:ut,Issues:ct,IssueAwardEmojis:mt,IssueNotes:at,IssueDiscussions:ht,Jobs:lt,Labels:dt,MergeRequests:ft,MergeRequestAwardEmojis:yt,MergeRequestDiscussions:It,MergeRequestNotes:vt,Pipelines:Rt,PipelineSchedules:Ut,PipelineScheduleVariables:jt,Projects:Ct,ProjectAccessRequests:gt,ProjectBadges:bt,ProjectCustomAttributes:_t,ProjectImportExport:wt,ProjectIssueBoards:Pt,ProjectHooks:qt,ProjectMembers:kt,ProjectMilestones:St,ProjectSnippets:Tt,ProjectSnippetNotes:Gt,ProjectSnippetDiscussions:At,ProjectSnippetAwardEmojis:Et,ProtectedBranches:Mt,ProtectedTags:xt,ProjectVariables:Dt,Repositories:Bt,RepositoryFiles:Lt,Runners:Nt,Services:Ot,Tags:Kt,Triggers:Vt}),Ie=d(le);t.GroupsBundle=de,t.UsersBundle=fe,t.ProjectsBundle=ye,t.Gitlab=Ie,t.Groups=g,t.GroupAccessRequests=x,t.GroupBadges=D,t.GroupCustomAttributes=B,t.GroupIssueBoards=L,t.GroupMembers=N,t.GroupMilestones=O,t.GroupProjects=K,t.GroupVariables=F,t.Epics=V,t.EpicIssues=z,t.EpicNotes=H,t.EpicDiscussions=J,t.Users=W,t.UserCustomAttributes=Y,t.UserEmails=Z,t.UserImpersonationTokens=$,t.UserKeys=tt,t.UserGPGKeys=ot,t.Branches=nt,t.Commits=rt,t.CommitDiscussions=st,t.Deployments=pt,t.DeployKeys=it,t.Environments=ut,t.Issues=ct,t.IssueNotes=at,t.IssueDiscussions=ht,t.IssueAwardEmojis=mt,t.Jobs=lt,t.Labels=dt,t.MergeRequests=ft,t.MergeRequestAwardEmojis=yt,t.MergeRequestDiscussions=It,t.MergeRequestNotes=vt,t.Pipelines=Rt,t.PipelineSchedules=Ut,t.PipelineScheduleVariables=jt,t.Projects=Ct,t.ProjectAccessRequests=gt,t.ProjectBadges=bt,t.ProjectCustomAttributes=_t,t.ProjectImportExport=wt,t.ProjectIssueBoards=Pt,t.ProjectHooks=qt,t.ProjectMembers=kt,t.ProjectMilestones=St,t.ProjectSnippets=Tt,t.ProjectSnippetNotes=Gt,t.ProjectSnippetDiscussions=At,t.ProjectSnippetAwardEmojis=Et,t.ProtectedBranches=Mt,t.ProtectedTags=xt,t.ProjectVariables=Dt,t.Repositories=Bt,t.RepositoryFiles=Lt,t.Runners=Nt,t.Services=Ot,t.Tags=Kt,t.Todos=Ft,t.Triggers=Vt,t.PushRule=zt,t.ApplicationSettings=Ht,t.BroadcastMessages=Jt,t.Events=Wt,t.FeatureFlags=Yt,t.GeoNodes=Qt,t.GitignoreTemplates=Zt,t.GitLabCIYMLTemplates=$t,t.Keys=Xt,t.Licence=te,t.LicenceTemplates=ee,t.Lint=oe,t.Namespaces=ne,t.NotificationSettings=re,t.Markdown=se,t.PagesDomains=pe,t.Search=ie,t.SidekiqMetrics=ue,t.Snippets=ce,t.SystemHooks=ae,t.Version=he,t.Wikis=me,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -5,1 +5,2 @@ import { Constructor, Bundle } from '../../types/types'; | ||
}, P extends keyof T>(services: T): Bundle<T, P>; | ||
export declare function skipAllCaps(key: any, convert: any, options: any): any; |
@@ -14,3 +14,4 @@ import { BaseService } from '../infrastructure'; | ||
status(projectId: ProjectId, sha: string, options?: BaseRequestOptions): Promise<import("../../types/types").GetResponse>; | ||
mergeRequests(projectId: ProjectId, sha: string): Promise<import("../../types/types").GetResponse>; | ||
} | ||
export default Commits; |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "5.0.0-rc.7", | ||
"version": "5.0.0-rc.8", | ||
"main": "dist/index.js", | ||
@@ -51,3 +51,3 @@ "module": "dist/index.es.js", | ||
"humps": "^2.0.1", | ||
"ky": "^0.5.1", | ||
"ky": "^0.6.0", | ||
"query-string": "^6.2.0", | ||
@@ -57,10 +57,10 @@ "randomstring": "^1.1.5" | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^3.0.1", | ||
"@semantic-release/git": "^7.0.6", | ||
"@semantic-release/npm": "^5.1.2", | ||
"@semantic-release/changelog": "^3.0.2", | ||
"@semantic-release/git": "^7.0.7", | ||
"@semantic-release/npm": "^5.1.3", | ||
"@types/humps": "^1.1.2", | ||
"@types/jest": "^23.3.10", | ||
"@types/jest": "^23.3.12", | ||
"codecov": "^3.1.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"husky": "^1.3.0", | ||
"husky": "^1.3.1", | ||
"jest": "^23.6.0", | ||
@@ -70,9 +70,9 @@ "jest-extended": "^0.11.0", | ||
"prettier": "^1.15.3", | ||
"rollup": "^0.68.2", | ||
"rollup": "^1.1.0", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-json": "^3.1.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-terser": "^3.0.0", | ||
"rollup-plugin-terser": "^4.0.2", | ||
"rollup-plugin-typescript2": "^0.18.1", | ||
"semantic-release": "^15.13.1", | ||
"semantic-release": "^15.13.2", | ||
"ts-jest": "^23.10.5", | ||
@@ -79,0 +79,0 @@ "tslint": "^5.12.0", |
@@ -154,3 +154,3 @@ [](https://www.npmjs.com/package/gitlab) | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -162,3 +162,3 @@ }) | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
oauthToken: 'abcdefghij123456' | ||
@@ -177,3 +177,3 @@ }) | ||
const service = new Projects({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -193,3 +193,3 @@ }) | ||
const services = new ProjectsBundle({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -287,3 +287,3 @@ }) | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -312,3 +312,3 @@ }); | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -330,3 +330,3 @@ }); | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -345,3 +345,3 @@ }); | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -391,3 +391,3 @@ }); | ||
const service = new NotificationSettings({ | ||
url: 'http://example.com', // Defaults to http://gitlab.com | ||
url: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -412,3 +412,3 @@ sudo: 8 // Can be the user ID or a username | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to http://gitlab.com | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
@@ -415,0 +415,0 @@ requester: YourCustomRequester |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
321214
2057