Comparing version 5.0.0-rc.13 to 5.0.0-rc.14
229
CHANGELOG.md
@@ -1,54 +0,56 @@ | ||
# [5.0.0](https://github.com/jdalrymple/node-gitlab/compare/4.2.0...5.0.0) (2018-12-19) | ||
### Breaking | ||
* Added content as a required parameter for RepositoryFiles | ||
* Removed projectId from System Hooks API since it wasn't required | ||
* Removed dependency on FS. Now the Projects API takes in two arguments `projectId` and `content` as well as an option fileName argument | ||
* Changing everything to named exports for simplicity | ||
* Switching required initialization argument from 'url' to 'host' | ||
* Updated Approvals API support to match https://docs.gitlab.com/ee/api/merge_request_approvals.html | ||
* MergeRequest Pipelines require the mergeRequestId | ||
* NotificationSettings API edit function now takes one parameter, `options` | ||
* Changing the access level enum property from master to maintainer as per https://gitlab.com/gitlab-org/gitlab-ce/issues/42751 | ||
* Notes now require a body argument instead of checking the options argument for a body parameter | ||
* Bumped min node version to > v10 LTS | ||
- Added content as a required parameter for RepositoryFiles | ||
- Removed projectId from System Hooks API since it wasn't required | ||
- Removed dependency on FS. Now the Projects API takes in two arguments `projectId` and `content` as well as an option fileName argument | ||
- Changing everything to named exports for simplicity | ||
- Switching required initialization argument from 'url' to 'host' | ||
- Updated Approvals API support to match https://docs.gitlab.com/ee/api/merge_request_approvals.html | ||
- MergeRequest Pipelines require the mergeRequestId | ||
- NotificationSettings API edit function now takes one parameter, `options` | ||
- Changing the access level enum property from master to maintainer as per https://gitlab.com/gitlab-org/gitlab-ce/issues/42751 | ||
- Notes now require a body argument instead of checking the options argument for a body parameter | ||
- Bumped min node version to > v10 LTS | ||
### Bug Fixes | ||
* #227 (https://github.com/jdalrymple/node-gitlab/issues/227) Fixing array syntax thanks to Lukas Eipert (https://github.com/leipert) (f9bc34d (https://github.com/jdalrymple/node-gitlab/commit/f9bc34d)) | ||
* Fixing Todos support. If todoId was not passed, an undefined value would be introduced into the url (cbeef18 (https://github.com/jdalrymple/node-gitlab/commit/cbeef18)) | ||
* ResourceAwardEmojis API wasn't properly filtering based on awardId (70f4315 (https://github.com/jdalrymple/node-gitlab/commit/70f4315)) | ||
* Removed xhr library in favour of ky, and switched request for got for a smaller package size and retry functionality | ||
* Fixing ci lint url (#278) | ||
* Fixing form data (#272) | ||
* Fixing randomstring usage (#271) | ||
* Incorrect http method used to update MR approvers #262 | ||
- #227 (https://github.com/jdalrymple/node-gitlab/issues/227) Fixing array syntax thanks to Lukas Eipert (https://github.com/leipert) (f9bc34d (https://github.com/jdalrymple/node-gitlab/commit/f9bc34d)) | ||
- Fixing Todos support. If todoId was not passed, an undefined value would be introduced into the url (cbeef18 (https://github.com/jdalrymple/node-gitlab/commit/cbeef18)) | ||
- ResourceAwardEmojis API wasn't properly filtering based on awardId (70f4315 (https://github.com/jdalrymple/node-gitlab/commit/70f4315)) | ||
- Removed xhr library in favour of ky, and switched request for got for a smaller package size and retry functionality | ||
- Fixing ci lint url (#278) | ||
- Fixing form data (#272) | ||
- Fixing randomstring usage (#271) | ||
- Incorrect http method used to update MR approvers #262 | ||
### Features | ||
* Added the ability to add sudo to specific requests (780244f (https://github.com/jdalrymple/node-gitlab/commit/780244f)) | ||
* Added the missing edit function to the Groups API | ||
* Added LDAP support to the Groups API | ||
* Added missing method for triggering pipelines (#275) | ||
* Implement jobToken property to allow authentication via CI job token (#269) | ||
- Added the ability to add sudo to specific requests (780244f (https://github.com/jdalrymple/node-gitlab/commit/780244f)) | ||
- Added the missing edit function to the Groups API | ||
- Added LDAP support to the Groups API | ||
- Added missing method for triggering pipelines (#275) | ||
- Implement jobToken property to allow authentication via CI job token (#269) | ||
### Documentation | ||
* Removing xml request docs | ||
* Updating imports to be named imports | ||
### Tests | ||
* Fixing integration test for ApplicationSettings (#273) | ||
- Removing xml request docs | ||
- Updating imports to be named imports | ||
### Tests | ||
- Fixing integration test for ApplicationSettings (#273) | ||
## [4.5.1](https://github.com/jdalrymple/node-gitlab/compare/4.5.0...4.5.1) (2019-03-22) | ||
### Bug Fixes | ||
* Updating packages ([2c47d24](https://github.com/jdalrymple/node-gitlab/commit/2c47d24)) | ||
- Updating packages ([2c47d24](https://github.com/jdalrymple/node-gitlab/commit/2c47d24)) | ||
# [4.5.0](https://github.com/jdalrymple/node-gitlab/compare/4.4.1...4.5.0) (2019-03-19) | ||
### Features | ||
* Updated MergeRequests API options ([a306799](https://github.com/jdalrymple/node-gitlab/commit/a306799)) | ||
- Updated MergeRequests API options ([a306799](https://github.com/jdalrymple/node-gitlab/commit/a306799)) | ||
@@ -59,108 +61,100 @@ # [4.4.1](https://github.com/jdalrymple/node-gitlab/compare/4.3.0...4.4.1) (2019-03-06) | ||
* **Projects:** | ||
* Add support for DELETE /projects/:id/fork ([ef53a2](https://github.com/jdalrymple/node-gitlab/commit/ef53a2)) | ||
- **Projects:** | ||
* **MergeRequests:** | ||
* Add MergeRequest.participants request ([b11a4f](https://github.com/jdalrymple/node-gitlab/commit/b11a4f)) | ||
- Add support for DELETE /projects/:id/fork ([ef53a2](https://github.com/jdalrymple/node-gitlab/commit/ef53a2)) | ||
* **Triggers:** | ||
* Add missing method for triggering pipelines ([5858fc](https://github.com/jdalrymple/node-gitlab/commit/5858fc)) | ||
- **MergeRequests:** | ||
- Add MergeRequest.participants request ([b11a4f](https://github.com/jdalrymple/node-gitlab/commit/b11a4f)) | ||
- **Triggers:** | ||
- Add missing method for triggering pipelines ([5858fc](https://github.com/jdalrymple/node-gitlab/commit/5858fc)) | ||
### Bug Fixes | ||
* Add missing / from unshare in Projects ([6fb7f5](https://github.com/jdalrymple/node-gitlab/commit/6fb7f5)) | ||
* Change lint api url. ([1d6e6e](https://github.com/jdalrymple/node-gitlab/commit/1d6e6e)) | ||
* Implement jobToken property to allow authentication via CI job token ([8f551f](https://github.com/jdalrymple/node-gitlab/commit/8f551f)) | ||
- Add missing / from unshare in Projects ([6fb7f5](https://github.com/jdalrymple/node-gitlab/commit/6fb7f5)) | ||
- Change lint api url. ([1d6e6e](https://github.com/jdalrymple/node-gitlab/commit/1d6e6e)) | ||
- Implement jobToken property to allow authentication via CI job token ([8f551f](https://github.com/jdalrymple/node-gitlab/commit/8f551f)) | ||
### Docs | ||
* Update README.md with `rejectUnauthorized` | ||
* Fixing typo in the host url | ||
- Update README.md with `rejectUnauthorized` | ||
- Fixing typo in the host url | ||
# [4.3.0](https://github.com/jdalrymple/node-gitlab/compare/4.2.7...4.3.0) (2018-12-12) | ||
### Features | ||
* **services:** Add protected tags ([8203830](https://github.com/jdalrymple/node-gitlab/commit/8203830)) | ||
- **services:** Add protected tags ([8203830](https://github.com/jdalrymple/node-gitlab/commit/8203830)) | ||
## [4.2.7](https://github.com/jdalrymple/node-gitlab/compare/4.2.6...4.2.7) (2018-11-26) | ||
### Bug Fixes | ||
* Handing the function arguments in the incorrect order ([26235ff](https://github.com/jdalrymple/node-gitlab/commit/26235ff)) | ||
- Handing the function arguments in the incorrect order ([26235ff](https://github.com/jdalrymple/node-gitlab/commit/26235ff)) | ||
## [4.2.6](https://github.com/jdalrymple/node-gitlab/compare/4.2.5...4.2.6) (2018-11-26) | ||
### Bug Fixes | ||
* Update pagination docs and conditions [#238](https://github.com/jdalrymple/node-gitlab/issues/238) ([266de00](https://github.com/jdalrymple/node-gitlab/commit/266de00)) | ||
- Update pagination docs and conditions [#238](https://github.com/jdalrymple/node-gitlab/issues/238) ([266de00](https://github.com/jdalrymple/node-gitlab/commit/266de00)) | ||
## [4.2.5](https://github.com/jdalrymple/node-gitlab/compare/4.2.4...4.2.5) (2018-11-26) | ||
### Bug Fixes | ||
* Project variables urls were being generated incorrectly ([28b28cf](https://github.com/jdalrymple/node-gitlab/commit/28b28cf)) | ||
- Project variables urls were being generated incorrectly ([28b28cf](https://github.com/jdalrymple/node-gitlab/commit/28b28cf)) | ||
## [4.2.4](https://github.com/jdalrymple/node-gitlab/compare/4.2.3...4.2.4) (2018-11-26) | ||
### Bug Fixes | ||
* Event properties using the incorrect boolean operator ([5f21a46](https://github.com/jdalrymple/node-gitlab/commit/5f21a46)) | ||
- Event properties using the incorrect boolean operator ([5f21a46](https://github.com/jdalrymple/node-gitlab/commit/5f21a46)) | ||
## [4.2.3](https://github.com/jdalrymple/node-gitlab/compare/4.2.2...4.2.3) (2018-11-26) | ||
### Bug Fixes | ||
* Filtering all events shouldnt require an action or a target [#61](https://github.com/jdalrymple/node-gitlab/issues/61) ([cda23b8](https://github.com/jdalrymple/node-gitlab/commit/cda23b8)) | ||
- Filtering all events shouldnt require an action or a target [#61](https://github.com/jdalrymple/node-gitlab/issues/61) ([cda23b8](https://github.com/jdalrymple/node-gitlab/commit/cda23b8)) | ||
## [4.2.1](https://github.com/jdalrymple/node-gitlab/compare/4.2.0...4.2.1) (2018-10-29) | ||
### Bug Fixes | ||
* Updating application settings test to match updated API ([dececa6](https://github.com/jdalrymple/node-gitlab/commit/dececa6)) | ||
- Updating application settings test to match updated API ([dececa6](https://github.com/jdalrymple/node-gitlab/commit/dececa6)) | ||
# [4.2.0](https://github.com/jdalrymple/node-gitlab/compare/4.1.1...4.2.0) (2018-10-10) | ||
### Bug Fixes | ||
* jest.config file to properly run tests again. Follow up issue to fix these exceptions ([dcee7ac](https://github.com/jdalrymple/node-gitlab/commit/dcee7ac)) | ||
- jest.config file to properly run tests again. Follow up issue to fix these exceptions ([dcee7ac](https://github.com/jdalrymple/node-gitlab/commit/dcee7ac)) | ||
### Features | ||
* Add sudo abilities [#203](https://github.com/jdalrymple/node-gitlab/issues/203) ([4bf574c](https://github.com/jdalrymple/node-gitlab/commit/4bf574c)) | ||
- Add sudo abilities [#203](https://github.com/jdalrymple/node-gitlab/issues/203) ([4bf574c](https://github.com/jdalrymple/node-gitlab/commit/4bf574c)) | ||
## [4.1.1](https://github.com/jdalrymple/node-gitlab/compare/4.1.0...4.1.1) (2018-09-25) | ||
### Bug Fixes | ||
* Updating ApplicationSettings test ([0d345b7](https://github.com/jdalrymple/node-gitlab/commit/0d345b7)) | ||
- Updating ApplicationSettings test ([0d345b7](https://github.com/jdalrymple/node-gitlab/commit/0d345b7)) | ||
# [4.1.0](https://github.com/jdalrymple/node-gitlab/compare/4.0.1...4.1.0) (2018-09-19) | ||
### Features | ||
* Added user edit support [#186](https://github.com/jdalrymple/node-gitlab/issues/186) ([95e8999](https://github.com/jdalrymple/node-gitlab/commit/95e8999)) | ||
* Adding markdown support [#182](https://github.com/jdalrymple/node-gitlab/issues/182) ([#193](https://github.com/jdalrymple/node-gitlab/issues/193)) ([2113e8e](https://github.com/jdalrymple/node-gitlab/commit/2113e8e)) | ||
* Re-add list all project members endpoint ([#190](https://github.com/jdalrymple/node-gitlab/issues/190)) ([5b07b6a](https://github.com/jdalrymple/node-gitlab/commit/5b07b6a)), closes [/github.com/jdalrymple/node-gitlab/commit/e081a1629f33e3af172101b94977f281879539c9#diff-379104d7d595f3793c2d7380496cc3c3](https://github.com//github.com/jdalrymple/node-gitlab/commit/e081a1629f33e3af172101b94977f281879539c9/issues/diff-379104d7d595f3793c2d7380496cc3c3) [#141](https://github.com/jdalrymple/node-gitlab/issues/141) | ||
- Added user edit support [#186](https://github.com/jdalrymple/node-gitlab/issues/186) ([95e8999](https://github.com/jdalrymple/node-gitlab/commit/95e8999)) | ||
- Adding markdown support [#182](https://github.com/jdalrymple/node-gitlab/issues/182) ([#193](https://github.com/jdalrymple/node-gitlab/issues/193)) ([2113e8e](https://github.com/jdalrymple/node-gitlab/commit/2113e8e)) | ||
- Re-add list all project members endpoint ([#190](https://github.com/jdalrymple/node-gitlab/issues/190)) ([5b07b6a](https://github.com/jdalrymple/node-gitlab/commit/5b07b6a)), closes [/github.com/jdalrymple/node-gitlab/commit/e081a1629f33e3af172101b94977f281879539c9#diff-379104d7d595f3793c2d7380496cc3c3](https://github.com//github.com/jdalrymple/node-gitlab/commit/e081a1629f33e3af172101b94977f281879539c9/issues/diff-379104d7d595f3793c2d7380496cc3c3) [#141](https://github.com/jdalrymple/node-gitlab/issues/141) | ||
## [4.0.1](https://github.com/jdalrymple/node-gitlab/compare/4.0.0...4.0.1) (2018-09-06) | ||
### Bug Fixes | ||
* Updating the package.lock ([9b4b6f9](https://github.com/jdalrymple/node-gitlab/commit/9b4b6f9)) | ||
- Updating the package.lock ([9b4b6f9](https://github.com/jdalrymple/node-gitlab/commit/9b4b6f9)) | ||
# [4.0.0-beta](https://github.com/jdalrymple/node-gitlab/compare/3.11.0...4.0.0-beta) (2018-08-22) | ||
### Major Update | ||
### Major Update | ||
- Migration to Typescript | ||
@@ -170,86 +164,74 @@ | ||
### Bug Fixes | ||
* Camelcasing broke the body params ([e50f588](https://github.com/jdalrymple/node-gitlab/commit/e50f588)) | ||
- Camelcasing broke the body params ([e50f588](https://github.com/jdalrymple/node-gitlab/commit/e50f588)) | ||
## [3.11.2](https://github.com/jdalrymple/node-gitlab/compare/3.11.1...3.11.2) (2018-08-28) | ||
### Bug Fixes | ||
* obey rate limits for all request types correctly ([#170](https://github.com/jdalrymple/node-gitlab/issues/170)) ([4bc7c69](https://github.com/jdalrymple/node-gitlab/commit/4bc7c69)), closes [#165](https://github.com/jdalrymple/node-gitlab/issues/165) | ||
* Testing negated npmignore ([86960c4](https://github.com/jdalrymple/node-gitlab/commit/86960c4)) | ||
- obey rate limits for all request types correctly ([#170](https://github.com/jdalrymple/node-gitlab/issues/170)) ([4bc7c69](https://github.com/jdalrymple/node-gitlab/commit/4bc7c69)), closes [#165](https://github.com/jdalrymple/node-gitlab/issues/165) | ||
- Testing negated npmignore ([86960c4](https://github.com/jdalrymple/node-gitlab/commit/86960c4)) | ||
## [3.11.1](https://github.com/jdalrymple/node-gitlab/compare/3.11.0...3.11.1) (2018-08-28) | ||
### Bug Fixes | ||
* **applications-settings:** Edit of application settings not working ([#169](https://github.com/jdalrymple/node-gitlab/issues/169)) ([f0213ca](https://github.com/jdalrymple/node-gitlab/commit/f0213ca)) | ||
* **test:** Application settings api updated ([#177](https://github.com/jdalrymple/node-gitlab/issues/177)) ([0723a7a](https://github.com/jdalrymple/node-gitlab/commit/0723a7a)) | ||
- **applications-settings:** Edit of application settings not working ([#169](https://github.com/jdalrymple/node-gitlab/issues/169)) ([f0213ca](https://github.com/jdalrymple/node-gitlab/commit/f0213ca)) | ||
- **test:** Application settings api updated ([#177](https://github.com/jdalrymple/node-gitlab/issues/177)) ([0723a7a](https://github.com/jdalrymple/node-gitlab/commit/0723a7a)) | ||
# [3.11.0](https://github.com/jdalrymple/node-gitlab/compare/3.10.1...3.11.0) (2018-08-20) | ||
### Bug Fixes | ||
* Revert "fix(api): Updating project members all function to include the inherited members. [#141](https://github.com/jdalrymple/node-gitlab/issues/141)" until properly implemented by GitLab (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6669) ([24d9bcd](https://github.com/jdalrymple/node-gitlab/commit/24d9bcd)) | ||
- Revert "fix(api): Updating project members all function to include the inherited members. [#141](https://github.com/jdalrymple/node-gitlab/issues/141)" until properly implemented by GitLab (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6669) ([24d9bcd](https://github.com/jdalrymple/node-gitlab/commit/24d9bcd)) | ||
### Features | ||
* **projects:** add archive/unarchive functionality ([#168](https://github.com/jdalrymple/node-gitlab/issues/168)) ([5e7b1bd](https://github.com/jdalrymple/node-gitlab/commit/5e7b1bd)), closes [#166](https://github.com/jdalrymple/node-gitlab/issues/166) | ||
- **projects:** add archive/unarchive functionality ([#168](https://github.com/jdalrymple/node-gitlab/issues/168)) ([5e7b1bd](https://github.com/jdalrymple/node-gitlab/commit/5e7b1bd)), closes [#166](https://github.com/jdalrymple/node-gitlab/issues/166) | ||
## [3.10.1](https://github.com/jdalrymple/node-gitlab/compare/3.10.0...3.10.1) (2018-08-16) | ||
### Bug Fixes | ||
* Typo in PagesDomains all() method ([#162](https://github.com/jdalrymple/node-gitlab/issues/162)) ([128f150](https://github.com/jdalrymple/node-gitlab/commit/128f150)) | ||
- Typo in PagesDomains all() method ([#162](https://github.com/jdalrymple/node-gitlab/issues/162)) ([128f150](https://github.com/jdalrymple/node-gitlab/commit/128f150)) | ||
# [3.10.0](https://github.com/jdalrymple/node-gitlab/compare/3.9.0...3.10.0) (2018-08-15) | ||
### Features | ||
* Expose reject unauthorized in request helper ([#160](https://github.com/jdalrymple/node-gitlab/issues/160)) ([01a2ce2](https://github.com/jdalrymple/node-gitlab/commit/01a2ce2)), closes [#142](https://github.com/jdalrymple/node-gitlab/issues/142) | ||
- Expose reject unauthorized in request helper ([#160](https://github.com/jdalrymple/node-gitlab/issues/160)) ([01a2ce2](https://github.com/jdalrymple/node-gitlab/commit/01a2ce2)), closes [#142](https://github.com/jdalrymple/node-gitlab/issues/142) | ||
# [3.9.0](https://github.com/jdalrymple/node-gitlab/compare/3.8.0...3.9.0) (2018-08-15) | ||
### Bug Fixes | ||
* Fix error while throwing an error in RequestHelper ([#156](https://github.com/jdalrymple/node-gitlab/issues/156)) ([177d7fd](https://github.com/jdalrymple/node-gitlab/commit/177d7fd)) | ||
* Handling errors before retrying request ([#142](https://github.com/jdalrymple/node-gitlab/issues/142)) [skip-ci] ([bc3b366](https://github.com/jdalrymple/node-gitlab/commit/bc3b366)) | ||
* Linting Master ([#157](https://github.com/jdalrymple/node-gitlab/issues/157)) ([ab14ed7](https://github.com/jdalrymple/node-gitlab/commit/ab14ed7)) | ||
- Fix error while throwing an error in RequestHelper ([#156](https://github.com/jdalrymple/node-gitlab/issues/156)) ([177d7fd](https://github.com/jdalrymple/node-gitlab/commit/177d7fd)) | ||
- Handling errors before retrying request ([#142](https://github.com/jdalrymple/node-gitlab/issues/142)) [skip-ci](<[bc3b366](https://github.com/jdalrymple/node-gitlab/commit/bc3b366)>) | ||
- Linting Master ([#157](https://github.com/jdalrymple/node-gitlab/issues/157)) ([ab14ed7](https://github.com/jdalrymple/node-gitlab/commit/ab14ed7)) | ||
### Features | ||
* Add deploy keys enable functionality ([#155](https://github.com/jdalrymple/node-gitlab/issues/155)) thanks to [Michael Matzka](https://github.com/mimaidms ) ([66547ad](https://github.com/jdalrymple/node-gitlab/commit/66547ad)) | ||
- Add deploy keys enable functionality ([#155](https://github.com/jdalrymple/node-gitlab/issues/155)) thanks to [Michael Matzka](https://github.com/mimaidms) ([66547ad](https://github.com/jdalrymple/node-gitlab/commit/66547ad)) | ||
# [3.8.0](https://github.com/jdalrymple/node-gitlab/compare/3.7.0...3.8.0) (2018-08-14) | ||
### Bug Fixes | ||
* **api:** Updating project members all function to include the inherited members. [#141](https://github.com/jdalrymple/node-gitlab/issues/141) ([e081a16](https://github.com/jdalrymple/node-gitlab/commit/e081a16)) | ||
* **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.0 ([dc9748d](https://github.com/jdalrymple/node-gitlab/commit/dc9748d)) | ||
* **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.1 ([12b6ca1](https://github.com/jdalrymple/node-gitlab/commit/12b6ca1)), closes [#139](https://github.com/jdalrymple/node-gitlab/issues/139) | ||
* **package:** Updating packages and fixing [#140](https://github.com/jdalrymple/node-gitlab/issues/140) due to a babel update ([04d1769](https://github.com/jdalrymple/node-gitlab/commit/04d1769)) | ||
- **api:** Updating project members all function to include the inherited members. [#141](https://github.com/jdalrymple/node-gitlab/issues/141) ([e081a16](https://github.com/jdalrymple/node-gitlab/commit/e081a16)) | ||
- **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.0 ([dc9748d](https://github.com/jdalrymple/node-gitlab/commit/dc9748d)) | ||
- **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.1 ([12b6ca1](https://github.com/jdalrymple/node-gitlab/commit/12b6ca1)), closes [#139](https://github.com/jdalrymple/node-gitlab/issues/139) | ||
- **package:** Updating packages and fixing [#140](https://github.com/jdalrymple/node-gitlab/issues/140) due to a babel update ([04d1769](https://github.com/jdalrymple/node-gitlab/commit/04d1769)) | ||
### Features | ||
* Add push rule service ([#143](https://github.com/jdalrymple/node-gitlab/issues/143)) ([395f83c](https://github.com/jdalrymple/node-gitlab/commit/395f83c)) | ||
* Add transfer a project to a new namespace ([#145](https://github.com/jdalrymple/node-gitlab/issues/145)) ([87e9f55](https://github.com/jdalrymple/node-gitlab/commit/87e9f55)) | ||
- Add push rule service ([#143](https://github.com/jdalrymple/node-gitlab/issues/143)) ([395f83c](https://github.com/jdalrymple/node-gitlab/commit/395f83c)) | ||
- Add transfer a project to a new namespace ([#145](https://github.com/jdalrymple/node-gitlab/issues/145)) ([87e9f55](https://github.com/jdalrymple/node-gitlab/commit/87e9f55)) | ||
# [3.7.0](https://github.com/jdalrymple/node-gitlab/compare/3.6.0...3.7.0) (2018-08-02) | ||
### Features | ||
* Adding update push rules to Projects, and updating the Protected Branches service to match the updated API thanks to [jennparise](https://github.com/jennparise)([#134](https://github.com/jdalrymple/node-gitlab/issues/134)) ([9f3de02](https://github.com/jdalrymple/node-gitlab/commit/9f3de02)) | ||
* Updating Project Snippets API [#138](https://github.com/jdalrymple/node-gitlab/issues/138) ([a7858bd](https://github.com/jdalrymple/node-gitlab/commit/a7858bd)) | ||
- Adding update push rules to Projects, and updating the Protected Branches service to match the updated API thanks to [jennparise](https://github.com/jennparise)([#134](https://github.com/jdalrymple/node-gitlab/issues/134)) ([9f3de02](https://github.com/jdalrymple/node-gitlab/commit/9f3de02)) | ||
- Updating Project Snippets API [#138](https://github.com/jdalrymple/node-gitlab/issues/138) ([a7858bd](https://github.com/jdalrymple/node-gitlab/commit/a7858bd)) | ||
@@ -260,13 +242,14 @@ # [3.6.0](https://github.com/jdalrymple/node-gitlab/compare/3.5.1...3.6.0) (2018-07-24) | ||
* **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 4.0.0 ([#122](https://github.com/jdalrymple/node-gitlab/issues/122)) ([5351dcc](https://github.com/jdalrymple/node-gitlab/commit/5351dcc)) | ||
- **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 4.0.0 ([#122](https://github.com/jdalrymple/node-gitlab/issues/122)) ([5351dcc](https://github.com/jdalrymple/node-gitlab/commit/5351dcc)) | ||
### Features | ||
* Add mirror pull trigger ([#130](https://github.com/jdalrymple/node-gitlab/issues/130)) ([b6ccb80](https://github.com/jdalrymple/node-gitlab/commit/b6ccb80)) thanks to [Joseph Petersen](https://github.com/casz) | ||
* Making API version modifyable ([a2732b9](https://github.com/jdalrymple/node-gitlab/commit/a2732b9)) | ||
* Updating Jobs API ([03a2f2d](https://github.com/jdalrymple/node-gitlab/commit/03a2f2d)) | ||
* Updating participants function for issues ([f60e7ed](https://github.com/jdalrymple/node-gitlab/commit/f60e7ed)) thanks to [Fabian Aussems](https://github.com/mozinator) | ||
* Added pipelines to MergeRequests in [#128](https://github.com/jdalrymple/node-gitlab/pull/128) thanks to [jnovick](https://github.com/jnovick) | ||
- Add mirror pull trigger ([#130](https://github.com/jdalrymple/node-gitlab/issues/130)) ([b6ccb80](https://github.com/jdalrymple/node-gitlab/commit/b6ccb80)) thanks to [Joseph Petersen](https://github.com/casz) | ||
- Making API version modifyable ([a2732b9](https://github.com/jdalrymple/node-gitlab/commit/a2732b9)) | ||
- Updating Jobs API ([03a2f2d](https://github.com/jdalrymple/node-gitlab/commit/03a2f2d)) | ||
- Updating participants function for issues ([f60e7ed](https://github.com/jdalrymple/node-gitlab/commit/f60e7ed)) thanks to [Fabian Aussems](https://github.com/mozinator) | ||
- Added pipelines to MergeRequests in [#128](https://github.com/jdalrymple/node-gitlab/pull/128) thanks to [jnovick](https://github.com/jnovick) | ||
# [3.5.1](https://github.com/jdalrymple/node-gitlab/tags/3.4.5) (2018-7-08) | ||
- Fixed migrating-from-node-gitlab link in Table of Contents #118 thanks to [Quentin Dreyer](https://github.com/qkdreyer) | ||
@@ -277,2 +260,3 @@ - Fix methods for editing MR approval/approver settings #119 thanks to [Norm MacLennan](https://github.com/maclennann) | ||
# [3.5.0](https://github.com/jdalrymple/node-gitlab/tags/3.4.5) (2018-7-04) | ||
- Obey the rate limit (9b46250), closes #73 thanks to [Max Wittig](https://github.com/max-wittig) | ||
@@ -318,3 +302,3 @@ | ||
- Typo fix and branch id encoding thanks to [Igor Katsuba](https://github.com/Defenderbass) | ||
in [#92](https://github.com/jdalrymple/node-gitlab/pull/92) and [#91](https://github.com/jdalrymple/node-gitlab/pull/91) | ||
in [#92](https://github.com/jdalrymple/node-gitlab/pull/92) and [#91](https://github.com/jdalrymple/node-gitlab/pull/91) | ||
- Removal of non standard babel plugins in prep for move to Typescript thanks to [Pavel Birukov](https://github.com/r00ger) in [#90](https://github.com/jdalrymple/node-gitlab/pull/90) | ||
@@ -353,3 +337,3 @@ - Docs update pointing to the wrong npm package thanks to [Joseph Petersen](https://github.com/casz) in [#88](https://github.com/jdalrymple/node-gitlab/pull/88) | ||
- Fixed incorrectly named bundles | ||
- Fixed incorrectly named bundles | ||
@@ -395,5 +379,7 @@ # [3.2.0](https://github.com/jdalrymple/node-gitlab/tags/3.2.0) (2018-4-21) | ||
### Breaking Changes between 2.2.6 and 3.0.0 | ||
- Instantiation of the API must use the new operator consistently. See usage above. | ||
- All services being exported are not capitalized for clarity that they are themselves api's and not properties. ie. Gitlab.Projects vs Gitlab.projects | ||
- All subservices (services exposed as properties of other services) have been moved out into their own service | ||
``` | ||
@@ -404,4 +390,6 @@ ProjectRepository -> Repositories, Tags, Commits, Branches and RepositoryFiles | ||
``` | ||
- Moved createTodo function from MergeRequests API to Todos API | ||
- Many services have been renamed: | ||
``` | ||
@@ -420,2 +408,3 @@ ProjectProtectedBranches -> ProtectedBranches | ||
- Some services were merged: | ||
``` | ||
@@ -467,3 +456,3 @@ Issues = ProjectIssues + Issues. ProjectId is optional for all() | ||
- Added proper docs for ProjectRepositoryFiles, enabled default urlEncoding for the passed in file paths and also documented | ||
how to run locally via npm linking for Development testing thanks to [Adam Dehnel](https://github.com/arsdehnel) in [PR #23](https://github.com/jdalrymple/node-gitlab/pull/23) | ||
how to run locally via npm linking for Development testing thanks to [Adam Dehnel](https://github.com/arsdehnel) in [PR #23](https://github.com/jdalrymple/node-gitlab/pull/23) | ||
- Exposed the Merge Requests resource which was missing from the exports list thanks to [fewieden](https://github.com/fewieden) in [PR #26](https://github.com/jdalrymple/node-gitlab/pull/26) | ||
@@ -474,2 +463,3 @@ - Added support for the Project Environments API and the Project Jobs API thanks to [Jeff Pelton](https://github.com/comster) in [PR #28](https://github.com/jdalrymple/node-gitlab/pull/28) | ||
### Breaking Changes between 2.1.0 and 2.2.0 | ||
- Fixed a problem with the get responses where the response contained the full request response and not just the body | ||
@@ -486,4 +476,5 @@ | ||
### Breaking Changes between 1.3.3 and 2.1.0 | ||
- The `list` functions are no longer supported and have all been renamed to `all` | ||
- The `update` functions are no longer supported and have all been renamed to `edit` | ||
- The `update` functions are no longer supported and have all been renamed to `edit` | ||
- The `addKey` function has been renamed to `add` in UserKeys class | ||
@@ -496,3 +487,2 @@ - The deploy_keys and merge_requests properties have been renamed to deployKeys and mergeRequests | ||
# [2.0.1-rc.1](https://github.com/jdalrymple/node-gitlab/62a4d360f0ca2cd584caf852d96ced3761992072) (2017-11-29) | ||
@@ -504,3 +494,3 @@ | ||
- Extended the ProjectMergeRequests class for additional functionality that was missing for project merge requests such as | ||
accepting merge requests, canceling merges when the pipeline succeeds, listing issues that will close on merge, subscribing/unsubscribing to merges, creating todos, time spent and time estimates as well as time stats. | ||
accepting merge requests, canceling merges when the pipeline succeeds, listing issues that will close on merge, subscribing/unsubscribing to merges, creating todos, time spent and time estimates as well as time stats. | ||
- Fixed the notes endpoints for ProjectMergeRequests. This can now be access via projects.mergeRequests.notes.[command here] | ||
@@ -510,3 +500,2 @@ - Added comments endpoints to the ProjectRepositoryCommits class | ||
# [1.3.3](https://github.com/jdalrymple/node-gitlab/b8a3db4a4aaf9482fb3905883d92d940babfb461) (2017-11-29) | ||
@@ -550,3 +539,2 @@ | ||
# [1.2.0](https://github.com/jdalrymple/node-gitlab/b08779a321fb25668df1e0f7e001394679cc47ba) (2017-11-25) | ||
@@ -576,3 +564,3 @@ | ||
- Patch, fixed a broken pagination property | ||
- Adding in missing options parameter in the groups API thanks to a pull request from [Cory Zibell](https://github.com/coryzibell) | ||
- Adding in missing options parameter in the groups API thanks to a pull request from [Cory Zibell](https://github.com/coryzibell) | ||
@@ -586,3 +574,3 @@ # [1.1.0](https://github.com/jdalrymple/node-gitlab/385ef9f351981f26180e1381525ade458bcde1cd) (2017-09-24) | ||
- Adding default file name for file uploads. If none is supplied, the file name is | ||
inferred from the file path | ||
inferred from the file path | ||
@@ -605,3 +593,2 @@ # [1.0.13](https://github.com/jdalrymple/node-gitlab/3eb244a5b487f487859f750e46c8fa287b4455c4) (2017-07-31) | ||
# [1.0.10](https://github.com/jdalrymple/node-gitlab/commit/c4a55aba89d83fda1552b3d5688b090b0c2b60aa) (2017-07-13) | ||
@@ -608,0 +595,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("humps"),require("query-string"),require("got"),require("form-data"),require("randomstring")):"function"==typeof define&&define.amd?define(["exports","humps","query-string","got","form-data","randomstring"],t):t((e=e||self)["node-gitlab"]={},e.Humps,e.QueryString,e.Request,e.FormData,e.RandomString)}(this,function(e,t,o,n,r,s){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n,r=r&&r.hasOwnProperty("default")?r.default:r,s=s&&s.hasOwnProperty("default")?s.default:s;var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function i(e,t){function o(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var u=function(){return(u=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function c(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o}function a(e,t,o,n){return new(o||(o=Promise))(function(r,s){function p(e){try{u(n.next(e))}catch(e){s(e)}}function i(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){e.done?r(e.value):new o(function(t){t(e.value)}).then(p,i)}u((n=n.apply(e,t||[])).next())})}function h(e,t){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=t.call(e,p)}catch(e){s=[6,e],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(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,s=o.call(e),p=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function l(e){return function(t){var o=this;Object.entries(e||{}).forEach(function(e){var n=m(e,2),r=n[0],s=n[1];o[r]=new s(t)})}}function f(e,t,o){return/^[A-Z0-9_]+$/.test(e)?e:t(e,o)}function y(e,n,r){var s=r.body,p=r.query,i=r.sudo;return[n,{baseUrl:e.url,headers:u({sudo:i},e.headers),query:p&&o.stringify(t.decamelizeKeys(p),{arrayFormat:"bracket"}),body:s&&t.decamelizeKeys(s,f),rejectUnauthorized:e.rejectUnauthorized,json:!0}]}function I(e,t,o,n){return void 0===o&&(o={}),void 0===n&&(n=!1),a(this,void 0,void 0,function(){var r,s,p,i,a,m,l,f,v,R,U,j;return h(this,function(h){switch(h.label){case 0:return s=o.showPagination,p=o.maxPages,i=o.sudo,a=c(o,["showPagination","maxPages","sudo"]),m=y(e,t,{query:a,sudo:i}),[4,(r=e.requester).get.apply(r,d(m))];case 1:return l=h.sent(),f=l.headers,v=l.body,R={total:f["x-total"],next:f["x-next-page"]||null,current:f["x-page"]||null,previous:f["x-prev-page"]||null,perPage:f["x-per-page"],totalPages:f["x-total-pages"]},U=!p||R.current<p,!n&&a.page||!U||!R.next?[3,3]:[4,I(e,t,u({},o,{page:R.next}),!0)];case 2:return j=h.sent(),[2,d(v,j)];case 3:return[2,(a.page||U)&&s?{data:v,pagination:R}:v]}})})}function v(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){return h(this,function(n){return[2,I(e,t,o)]})})}function R(e,t,o){var n;return void 0===o&&(o={}),(n=e.requester).stream.apply(n,d(y(e,t,{query:o})))}function U(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){var n,r,s;return h(this,function(p){switch(p.label){case 0:return r=o.sudo,s=c(o,["sudo"]),[4,(n=e.requester).post.apply(n,d(y(e,t,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function j(e,t,o){return a(this,void 0,void 0,function(){var n,r;return h(this,function(s){switch(s.label){case 0:return n={baseUrl:e.url,headers:e.headers,body:o,rejectUnauthorized:e.rejectUnauthorized},[4,e.requester.post(t,n)];case 1:r=s.sent();try{return[2,JSON.parse(r.body)]}catch(e){return[2,{}]}return[2]}})})}function C(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){var n,r;return h(this,function(s){switch(s.label){case 0:return o.sudo,r=c(o,["sudo"]),[4,(n=e.requester).put.apply(n,d(y(e,t,{body:r})))];case 1:return[2,s.sent().body]}})})}function g(e,t,o){return void 0===o&&(o={}),a(this,void 0,void 0,function(){var n,r;return h(this,function(s){switch(s.label){case 0:return o.sudo,r=c(o,["sudo"]),[4,(n=e.requester).delete.apply(n,d(y(e,t,{query:r})))];case 1:return[2,s.sent().body]}})})}var b=function(){return function(e){var t=e.token,o=e.jobToken,r=e.oauthToken,s=e.sudo,p=e.host,i=void 0===p?"https://gitlab.com":p,u=e.url,c=void 0===u?"":u,a=e.version,h=void 0===a?"v4":a,m=e.rejectUnauthorized,d=void 0===m||m,l=e.requester,f=void 0===l?n:l;this.url=[i,"api",h,c].join("/"),this.headers={},this.rejectUnauthorized=d,this.requester=f,r?this.headers.authorization="Bearer "+r:o?this.headers["job-token"]=o:t&&(this.headers["private-token"]=t),s&&(this.headers.Sudo=s)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"groups",e)},t.prototype.create=function(e){return U(this,"groups",e)},t.prototype.createLDAPLink=function(e,t,o,n,r){return U(this,"groups/"+encodeURIComponent(e)+"/ldap_group_links",u({cn:t,groupAccess:o,provider:n},r))},t.prototype.edit=function(e,t){return C(this,"groups/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return g(this,"groups/"+encodeURIComponent(e),t)},t.prototype.removeLDAPLink=function(e,t,o){void 0===o&&(o={});var n=o.provider,r=c(o,["provider"]);return g(this,"groups/"+encodeURIComponent(e)+"/ldap_group_links/"+(n?n+"/"+t:""+t),r)},t.prototype.search=function(e,t){return v(this,"groups",u({search:e},t))},t.prototype.show=function(e,t){return v(this,"groups/"+encodeURIComponent(e),t)},t.prototype.subgroups=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/subgroups",t)},t.prototype.syncLDAP=function(e,t){return U(this,"groups/"+encodeURIComponent(e)+"/ldap_sync",t)},t}(b),w=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e){return v(this,encodeURIComponent(e)+"/access_requests")},t.prototype.request=function(e){return U(this,encodeURIComponent(e)+"/access_requests")},t.prototype.approve=function(e,t,o){var n=o.accessLevel,r=m([e,t].map(encodeURIComponent),2);return U(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},t.prototype.deny=function(e,t){var o=m([e,t].map(encodeURIComponent),2);return g(this,o[0]+"/access_requests/"+o[1])},t}(b);function q(e,t,o,n,r){var s=m([e,o].map(encodeURIComponent),2),p=[s[0],t,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var P=function(e){function t(t,o){var n=e.call(this,u({url:"projects"},o))||this;return n.resourceType=t,n}return i(t,e),t.prototype.all=function(e,t,o,n){return v(this,q(e,this.resourceType,t,null,o),n)},t.prototype.award=function(e,t,o,n,r){return U(this,q(e,this.resourceType,t,null,n),u({name:o},r))},t.prototype.remove=function(e,t,o,n,r){return g(this,q(e,this.resourceType,t,o,n),r)},t.prototype.show=function(e,t,o,n,r){return v(this,q(e,this.resourceType,t,o,n),r)},t}(b),k=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.add=function(e,t){return U(this,encodeURIComponent(e)+"/badges",t)},t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/badges",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/badges/"+n[1],o)},t.prototype.preview=function(e,t,o,n){return v(this,encodeURIComponent(e)+"/badges/render",u({linkUrl:t,imageUrl:o},n))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/badges/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/badges/"+n[1],o)},t}(b),S=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/custom_attributes",t)},t.prototype.set=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return C(this,r[0]+"/custom_attributes/"+r[1],u({value:o},n))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/custom_attributes/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/custom_attributes/"+n[1],o)},t}(b),T=function(e){function t(t,o,n){var r=e.call(this,u({url:t},n))||this;return r.resource2Type=o,r}return i(t,e),t.prototype.addNote=function(e,t,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=m([e,t,o,n].map(encodeURIComponent),4),i=p[0],c=p[1],a=p[2],h=p[3];return C(this,i+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+h,u({body:r},s))},t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},t.prototype.create=function(e,t,o,n){if(!o)throw new Error("Missing required content argument");var r=m([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,s+"/"+this.resource2Type+"/"+p+"/discussions",u({body:o},n))},t.prototype.editNote=function(e,t,o,n,r){var s=m([e,t,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return C(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},t.prototype.removeNote=function(e,t,o,n,r){var s=m([e,t,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return g(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,r)},t.prototype.show=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},t}(b),G=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/boards",t)},t.prototype.create=function(e,t,o){return U(this,encodeURIComponent(e)+"/boards",u({name:t},o))},t.prototype.createList=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,r[0]+"/boards/"+r[1]+"/lists",u({labelId:o},n))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/boards/"+n[1],o)},t.prototype.editList=function(e,t,o,n,r){var s=m([e,t,o].map(encodeURIComponent),3);return C(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],u({position:n},r))},t.prototype.lists=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/boards/"+n[1]+"/lists",o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/boards/"+n[1],o)},t.prototype.removeList=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/boards/"+n[1],o)},t.prototype.showList=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return v(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},t}(b),E=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t,o){void 0===t&&(t=!1);var n=[encodeURIComponent(e),"members"];return t&&n.push("all"),v(this,n.join("/"),{options:o})},t.prototype.add=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,s+"/members",u({userId:p,accessLevel:o},n))},t.prototype.edit=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return C(this,r[0]+"/members/"+r[1],u({accessLevel:o},n))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/members/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/members/"+n[1],o)},t}(b),A=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/milestones",t)},t.prototype.create=function(e,t,o){return U(this,encodeURIComponent(e)+"/milestones",u({title:t},o))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/milestones/"+n[1],o)},t.prototype.issues=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1]+"/issues",o)},t.prototype.mergeRequests=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/milestones/"+n[1],o)},t}(b),M=function(e){function t(t,o,n){var r=e.call(this,u({url:t},n))||this;return r.resource2Type=o,r}return i(t,e),t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},t.prototype.create=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,s+"/"+this.resource2Type+"/"+p+"/notes",u({body:o},n))},t.prototype.edit=function(e,t,o,n,r){var s=m([e,t,o].map(encodeURIComponent),3),p=s[0],i=s[1],c=s[2];return C(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+c,u({body:n},r))},t.prototype.remove=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return g(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},t.prototype.show=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},t}(b),x=function(e){function t(t,o){return e.call(this,u({url:["templates",t].join("/")},o))||this}return i(t,e),t.prototype.all=function(e){return v(this,"",e)},t.prototype.show=function(e,t){return U(this,""+encodeURIComponent(e),t)},t}(b),D=function(e){function t(t,o){return e.call(this,u({url:t},o))||this}return i(t,e),t.prototype.all=function(e,t){return v(this,encodeURIComponent(e)+"/variables",t)},t.prototype.create=function(e,t){return U(this,encodeURIComponent(e)+"/variables",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,n[0]+"/variables/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,n[0]+"/variables/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,n[0]+"/variables/"+n[1],o)},t}(b),B=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(w),L=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(k),O=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(S),N=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(G),F=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(E),K=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(A),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/projects",t)},t.prototype.add=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/projects/"+n[1],o)},t}(b),z=function(e){function t(t){return e.call(this,"groups",t)||this}return i(t,e),t}(D),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/epics",t)},t.prototype.create=function(e,t,o){return U(this,"groups/"+encodeURIComponent(e)+"/epics",u({title:t},o))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"groups/"+n[0]+"/epics/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"groups/"+n[0]+"/epics/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/epics/"+n[1],o)},t}(b),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},t.prototype.assign=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return C(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t.prototype.edit=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t.prototype.remove=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t}(b),W=function(e){function t(t){return e.call(this,"groups","epics",t)||this}return i(t,e),t}(M),Y=function(e){function t(t){return e.call(this,"groups","epics",t)||this}return i(t,e),t}(T),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"users",e)},t.prototype.activities=function(e){return v(this,"users/activities",e)},t.prototype.projects=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/projects",t)},t.prototype.block=function(e,t){return U(this,"users/"+encodeURIComponent(e)+"/block",t)},t.prototype.create=function(e){return U(this,"users",e)},t.prototype.current=function(e){return v(this,"user",e)},t.prototype.edit=function(e,t){return C(this,"users/"+encodeURIComponent(e),t)},t.prototype.events=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/events",t)},t.prototype.session=function(e,t,o){return U(this,"session",u({email:e,password:t},o))},t.prototype.search=function(e,t){return v(this,"users",u({search:e},t))},t.prototype.show=function(e,t){return v(this,"users/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return g(this,"users/"+encodeURIComponent(e),t)},t.prototype.unblock=function(e,t){return U(this,"users/"+encodeURIComponent(e)+"/unblock",t)},t}(b),Z=function(e){function t(t){return e.call(this,"users",t)||this}return i(t,e),t}(S),$=function(e){return e?"users/"+encodeURIComponent(e)+"/emails":"user/emails"},X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=c(e,["userId"]);return v(this,$(t),o)},t.prototype.add=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]);return U(this,$(o),u({email:e},n))},t.prototype.show=function(e,t){return v(this,"user/emails/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return g(this,$(o)+"/"+r,n)},t}(b),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/impersonation_tokens",t)},t.prototype.add=function(e,t,o,n,r){return U(this,"users/"+encodeURIComponent(e)+"/impersonation_tokens",u({name:t,expiresAt:n,scopes:o},r))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},t.prototype.revoke=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},t}(b),te=function(e){return e?"users/"+encodeURIComponent(e)+"/keys":"user/keys"},oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=c(e,["userId"]);return v(this,te(t),o)},t.prototype.create=function(e,t,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return U(this,te(n),u({title:e,key:t},r))},t.prototype.show=function(e,t){return v(this,"user/keys/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return g(this,te(o)+"/"+r,n)},t}(b),ne=function(e){return e?"users/"+encodeURIComponent(e)+"/gpg_keys":"users/gpg_keys"},re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=c(e,["userId"]);return v(this,ne(t),o)},t.prototype.add=function(e,t,o){void 0===o&&(o={});var n=o.userId,r=c(o,["userId"]);return U(this,ne(n),u({title:e,key:t},r))},t.prototype.show=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return v(this,ne(o)+"/"+r,n)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=c(t,["userId"]),r=encodeURIComponent(e);return g(this,ne(o)+"/"+r,n)},t}(b),se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/branches",t)},t.prototype.create=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/repository/branches",u({branch:t,ref:o},n))},t.prototype.protect=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/protected_branches",u({name:t},o))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},t}(b),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits",t)},t.prototype.cherryPick=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/cherry_pick",u({branch:o},n))},t.prototype.comments=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/comments",o)},t.prototype.create=function(e,t,o,n,r){return void 0===n&&(n=[]),U(this,"projects/"+encodeURIComponent(e)+"/repository/commits",u({branch:t,commitMessage:o,actions:n},r))},t.prototype.createComment=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/comments",u({note:o},n))},t.prototype.diff=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/diff",o)},t.prototype.editStatus=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/statuses/"+t,o)},t.prototype.references=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/refs",o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t,o)},t.prototype.status=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/statuses",o)},t.prototype.mergeRequests=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/merge_requests")},t}(b),ie=function(e){function t(t){return e.call(this,"projects","commits",t)||this}return i(t,e),t}(T),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/deployments",t)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/deployments/"+n[1],o)},t}(b),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.add=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/deploy_keys",t)},t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/deploy_keys",t)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},t.prototype.enable=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},t}(b),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/environments",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/environments",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/environments/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/environments/"+n[1],o)},t.prototype.stop=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},t}(b),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.addSpentTime=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",u({duration:o},n))},t.prototype.addTimeEstimate=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",u({duration:o},n))},t.prototype.all=function(e){var t=e.projectId,o=c(e,["projectId"]);return v(this,t?"projects/"+encodeURIComponent(t)+"/issues":"issues",o)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/issues",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.link=function(e,t,o,n,r){var s=m([e,t].map(encodeURIComponent),2),p=s[0],i=s[1],c=m([o,n].map(encodeURIComponent),2),a=c[0],h=c[1];return U(this,"projects/"+p+"/issues/"+i+"/links",u({targetProjectId:a,targetIssueId:h},r))},t.prototype.participants=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.resetSpentTime=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},t.prototype.resetTimeEstimate=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.subscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},t.prototype.timeStats=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},t.prototype.unsubscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},t}(b),me=function(e){function t(t){return e.call(this,"projects","issues",t)||this}return i(t,e),t}(M),de=function(e){function t(t){return e.call(this,"projects","issues",t)||this}return i(t,e),t}(T),le=function(e){function t(t){return e.call(this,"issues",t)||this}return i(t,e),t}(P),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/jobs",t)},t.prototype.cancel=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},t.prototype.downloadSingleArtifactFile=function(e,t,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([e,t].map(encodeURIComponent),2),u=i[0],a=i[1];return s?R(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p):v(this,"projects/"+u+"/jobs/"+a+"/artifacts/"+o,p)},t.prototype.downloadLatestArtifactFile=function(e,t,o,n){var r=n.stream,s=void 0!==r&&r,p=c(n,["stream"]),i=m([e,t,o].map(encodeURIComponent),3),u=i[0],a=i[1],h=i[2];return s?R(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p):v(this,"projects/"+u+"/jobs/artifacts/"+a+"/download?job="+h,p)},t.prototype.downloadTraceFile=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},t.prototype.erase=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},t.prototype.keepArtifacts=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},t.prototype.play=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},t.prototype.retry=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1],o)},t.prototype.showPipelineJobs=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},t}(b),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/labels",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/labels",t)},t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/labels",u({name:t},o))},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/labels",u({name:t},o))},t.prototype.subscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},t.prototype.unsubscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},t}(b),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.accept=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},t.prototype.addSpentTime=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/add_spent_time",u({duration:o},n))},t.prototype.addTimeEstimate=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/time_estimate",u({duration:o},n))},t.prototype.all=function(e){var t=e.projectId,o=e.groupId,n=c(e,["projectId","groupId"]);return v(this,t?"projects/"+encodeURIComponent(t)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},t.prototype.approve=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},t.prototype.approvals=function(e,t){var o=t.mergerequestIId,n=c(t,["mergerequestIId"]),r=m([e,o].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},t.prototype.approvers=function(e,t,o,n){var r=n.mergerequestIId,s=c(n,["mergerequestIId"]),p=m([e,r].map(encodeURIComponent),2),i=p[0],a=p[1];return C(this,r?"projects/"+i+"/merge_requests/"+a+"/approvers":"projects/"+i+"/approvers",u({approverIds:t,approverGroupIds:o},s))},t.prototype.cancelOnPipelineSucess=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},t.prototype.changes=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},t.prototype.closesIssues=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},t.prototype.commits=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},t.prototype.create=function(e,t,o,n,r){var s=encodeURIComponent(e);return U(this,"projects/"+s+"/merge_requests",u({id:s,sourceBranch:t,targetBranch:o,title:n},r))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.editApprovals=function(e,t){var o=t.mergerequestIId,n=c(t,["mergerequestIId"]),r=m([e,o].map(encodeURIComponent),2),s=r[0],p=r[1];return U(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},t.prototype.participants=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/participants",o)},t.prototype.pipelines=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.resetSpentTime=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},t.prototype.resetTimeEstimate=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.timeStats=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},t.prototype.version=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},t.prototype.versions=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},t.prototype.unapprove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},t.prototype.unsubscribe=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},t}(b),ve=function(e){function t(t){return e.call(this,"merge_requests",t)||this}return i(t,e),t}(P),Re=function(e){function t(t){return e.call(this,"projects","merge_requests",t)||this}return i(t,e),t}(T),Ue=function(e){function t(t){return e.call(this,"projects","merge_requests",t)||this}return i(t,e),t}(M),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines",t)},t.prototype.create=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pipeline",u({ref:t},o))},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t,o)},t.prototype.retry=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/retry",o)},t.prototype.cancel=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/cancel",o)},t.prototype.showJobs=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/jobs",o)},t}(b),Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/pipeline_schedules",t)},t.prototype.create=function(e,t,o,n,r){return U(this,"projects/"+encodeURIComponent(e)+"/pipeline_schedules",u({description:t,ref:o,cron:n},r))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.takeOwnership=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},t}(b),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},t.prototype.create=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},t.prototype.edit=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return C(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t.prototype.show=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return v(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t.prototype.remove=function(e,t,o,n){var r=m([e,t,o].map(encodeURIComponent),3);return g(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t}(b),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"projects",e)},t.prototype.archive=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/archive",t)},t.prototype.create=function(e){var t=e.userId,o=c(e,["userId"]);return U(this,t?"projects/user/"+encodeURIComponent(t):"projects",o)},t.prototype.edit=function(e,t){return C(this,"projects/"+encodeURIComponent(e),t)},t.prototype.events=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/events",t)},t.prototype.fork=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/fork",t)},t.prototype.forks=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/forks",t)},t.prototype.languages=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/languages",t)},t.prototype.mirrorPull=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/mirror/pull",t)},t.prototype.remove=function(e,t){return g(this,"projects/"+encodeURIComponent(e),t)},t.prototype.removeFork=function(e){return g(this,"projects/"+encodeURIComponent(e)+"/fork")},t.prototype.search=function(e){return v(this,"projects",{search:e})},t.prototype.share=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/share",u({groupId:t,groupAccess:o},n))},t.prototype.show=function(e,t){return v(this,"projects/"+encodeURIComponent(e),t)},t.prototype.star=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/star",t)},t.prototype.statuses=function(e,t,o,n){return U(this,"projects/"+encodeURIComponent(e)+"/statuses/"+t,u({state:o},n))},t.prototype.transfer=function(e,t){return C(this,"projects/"+encodeURIComponent(e)+"/transfer",{namespace:t})},t.prototype.unarchive=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/unarchive",t)},t.prototype.unshare=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/share/"+n[1],o)},t.prototype.unstar=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/unstar",t)},t.prototype.updatePushRule=function(e,t){return C(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.upload=function(e,t,o){void 0===o&&(o={});var n=encodeURIComponent(e),p=new r,i={filename:s.generate(8),contentType:"application/octet-stream"};return p.append("file",t,Object.assign(i,o)),j(this,"projects/"+n+"/uploads",p)},t}(b),_e=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(w),we=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(k),qe=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(S),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.download=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/export/download",t)},t.prototype.exportStatus=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/export",t)},t.prototype.import=function(e,t){var o=new r;return o.append("file",e,{filename:t,contentType:"application/octet-stream"}),j(this,"projects/import",o)},t.prototype.importStatus=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/import",t)},t.prototype.schedule=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/export",t)},t}(b),ke=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(G),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/hooks",t)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/hooks/"+n[1],o)},t.prototype.add=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/hooks",u({url:t},o))},t.prototype.edit=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+r[0]+"/hooks/"+r[1],u({url:o},n))},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/hooks/"+n[1],o)},t}(b),Te=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(E),Ge=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(A),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/snippets",t)},t.prototype.content=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},t.prototype.create=function(e,t,o,n,r,s){return U(this,"projects/"+encodeURIComponent(e)+"/snippets",u({title:t,fileName:o,code:n,visibility:r},s))},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.userAgentDetails=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},t}(b),Ae=function(e){function t(t){return e.call(this,"projects","snippets",t)||this}return i(t,e),t}(M),Me=function(e){function t(t){return e.call(this,"projects","snippets",t)||this}return i(t,e),t}(T),xe=function(e){function t(t){return e.call(this,"issues",t)||this}return i(t,e),t}(P),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/protected_branches",t)},t.prototype.protect=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/protected_branches",u({name:t},o))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},t}(b),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/protected_tags",t)},t.prototype.protect=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/protected_tags",u({name:t},o))},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},t}(b),Le=function(e){function t(t){return e.call(this,"projects",t)||this}return i(t,e),t}(D),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.compare=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/repository/compare",u({from:t,to:o},n))},t.prototype.contributors=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/contributors",t)},t.prototype.showArchive=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/archive",t)},t.prototype.showBlob=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/blobs/"+t,o)},t.prototype.showBlobRaw=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/repository/blobs/"+t+"/raw",o)},t.prototype.tree=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/tree",t)},t}(b),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.create=function(e,t,o,n,r){var s=m([e,t].map(encodeURIComponent),2);return U(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},t.prototype.edit=function(e,t,o,n,r){var s=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+s[0]+"/repository/files/"+s[1],u({branch:o,content:n},r))},t.prototype.remove=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+r[0]+"/repository/files/"+r[1],u({branch:o},n))},t.prototype.show=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/repository/files/"+r[1],u({ref:o},n))},t.prototype.showRaw=function(e,t,o,n){var r=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",u({ref:o},n))},t}(b),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){var t=e.projectId,o=c(e,["projectId"]);return v(this,t?"projects/"+encodeURIComponent(t)+"/runners":"runners/all",o)},t.prototype.allOwned=function(e){return v(this,"runners",e)},t.prototype.edit=function(e,t){return C(this,"runners/"+encodeURIComponent(e),t)},t.prototype.enable=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return U(this,"projects/"+r+"/runners",u({runnerId:s},o))},t.prototype.disable=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/runners/"+n[1],o)},t.prototype.jobs=function(e,t){return v(this,"runners/"+encodeURIComponent(e)+"/jobs",t)},t.prototype.remove=function(e,t){return g(this,"runners/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return v(this,"runners/"+encodeURIComponent(e),t)},t}(b),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t}(b),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/tags",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/repository/tags",t)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},t}(b),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"todos",e)},t.prototype.create=function(e,t,o){return U(this,"projects/"+e+"/merge_requests/"+t+"/todo",o)},t.prototype.done=function(e){var t=e.todoId,o="mark_as_done";return t&&(o=t+"/"+o),g(this,"todos/"+o,c(e,["todoId"]))},t}(b),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.add=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/triggers",t)},t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/triggers",t)},t.prototype.edit=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return g(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.show=function(e,t,o){var n=m([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.pipeline=function(e,t){if(!t.ref)throw new Error("Missing required property: ref");if(!t.token)throw new Error("Missing required property: token");return U(this,"projects/"+encodeURIComponent(e)+"/trigger/pipeline",t)},t}(b),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.edit=function(e,t){t.upsert;var o=c(t,["upsert"]),n=encodeURIComponent(e);try{return C(this,"projects/"+n+"/push_rule",o)}catch(t){if(t.message.includes("exist"))return this.create(e,o);throw t}},t.prototype.remove=function(e,t){return g(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.show=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t}(b),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"application/settings",e)},t.prototype.edit=function(e){return C(this,"application/settings",e)},t}(b),Ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"broadcast_messages",e)},t.prototype.create=function(e){return U(this,"broadcast_messages",e)},t.prototype.edit=function(e,t){return C(this,"broadcast_messages/"+encodeURIComponent(e),t)},t.prototype.remove=function(e){return g(this,"broadcast_messages/"+encodeURIComponent(e))},t.prototype.show=function(e,t){return v(this,"broadcast_messages/"+encodeURIComponent(e),t)},t}(b),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"events",e)},t}(b),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"features",e)},t.prototype.set=function(e,t){return U(this,"features/"+encodeURIComponent(e),t)},t}(b),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"geo_nodes",e)},t.prototype.create=function(e,t){return U(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.edit=function(e,t){return C(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.failures=function(e){return U(this,"geo_nodes/current/failures",e)},t.prototype.repair=function(e,t){return g(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return v(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.status=function(e,t){return v(this,"geo_nodes/"+encodeURIComponent(e)+"/status",t)},t.prototype.statuses=function(e){return v(this,"geo_nodes/statuses",e)},t}(b),Xe=function(e){function t(t){return e.call(this,"gitignores",t)||this}return i(t,e),t}(x),et=function(e){function t(t){return e.call(this,"gitlab_ci_ymls",t)||this}return i(t,e),t}(x),tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.show=function(e,t){return v(this,"keys/"+encodeURIComponent(e),t)},t}(b),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"licence",e)},t.prototype.create=function(e){return U(this,"licence",e)},t}(b),nt=function(e){function t(t){return e.call(this,"licences",t)||this}return i(t,e),t}(x),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.lint=function(e,t){return U(this,"ci/lint",u({content:e},t))},t}(b),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,"namespaces",e)},t.prototype.show=function(e,t){return v(this,"namespaces/"+encodeURIComponent(e),t)},t}(b),pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){var t=e.projectId,o=e.groupId,n=c(e,["projectId","groupId"]),r="";return t?r+="projects/"+encodeURIComponent(t)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),v(this,r+"notification_settings",n)},t.prototype.edit=function(e){var t=e.projectId,o=e.groupId,n=c(e,["projectId","groupId"]),r="";return t?r+="projects/"+encodeURIComponent(t)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),C(this,r+"notification_settings",n)},t}(b),it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){return U(this,"markdown",u({text:e},t))},t}(b),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.projectId,o=c(e,["projectId"]);return v(this,(t?"projects/"+encodeURIComponent(t)+"/":"")+"pages/domains",o)},t.prototype.create=function(e,t,o){return U(this,"projects/"+encodeURIComponent(e)+"/pages/domains",u({domain:t},o))},t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t}(b),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t,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)+"/"),v(this,p+"search",u({scope:e,search:t},s))},t}(b),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.queueMetrics=function(){return v(this,"sidekiq/queue_metrics")},t.prototype.processMetrics=function(){return v(this,"sidekiq/process_metrics")},t.prototype.jobStats=function(){return v(this,"sidekiq/job_stats")},t.prototype.compoundMetrics=function(){return v(this,"sidekiq/compound_metrics")},t}(b),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e){return v(this,e.public?"snippets/public":"snippets",c(e,["public"]))},t.prototype.content=function(e,t){return v(this,"snippets/"+encodeURIComponent(e)+"/raw",t)},t.prototype.create=function(e,t,o,n,r){return U(this,"snippets",u({title:e,fileName:t,content:o,visibility:n},r))},t.prototype.edit=function(e,t){return C(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return g(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return v(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.userAgentDetails=function(e,t){return v(this,"snippets/"+encodeURIComponent(e)+"/user_agent_detail",t)},t}(b),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.add=function(e,t){return U(this,"hooks",u({url:e},t))},t.prototype.all=function(e){return v(this,"hooks",e)},t.prototype.edit=function(e,t,o){return C(this,"hooks/"+encodeURIComponent(e),u({url:t},o))},t.prototype.remove=function(e,t){return g(this,"hooks/"+encodeURIComponent(e),t)},t}(b),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.show=function(e){return v(this,"version",e)},t}(b),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.all=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/wikis",t)},t.prototype.create=function(e,t){return U(this,"projects/"+encodeURIComponent(e)+"/wikis",t)},t.prototype.edit=function(e,t,o){return C(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t.prototype.show=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t.prototype.remove=function(e,t,o){return g(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t}(b),ft=Object.freeze({Groups:_,GroupAccessRequests:B,GroupBadges:L,GroupCustomAttributes:O,GroupIssueBoards:N,GroupMembers:F,GroupMilestones:K,GroupProjects:V,GroupVariables:z,Epics:H,EpicIssues:J,EpicNotes:W,EpicDiscussions:Y,Users:Q,UserCustomAttributes:Z,UserEmails:X,UserImpersonationTokens:ee,UserKeys:oe,UserGPGKeys:re,Branches:se,Commits:pe,CommitDiscussions:ie,Deployments:ue,DeployKeys:ce,Environments:ae,Issues:he,IssueNotes:me,IssueDiscussions:de,IssueAwardEmojis:le,Jobs:fe,Labels:ye,MergeRequests:Ie,MergeRequestAwardEmojis:ve,MergeRequestDiscussions:Re,MergeRequestNotes:Ue,Pipelines:je,PipelineSchedules:Ce,PipelineScheduleVariables:ge,Projects:be,ProjectAccessRequests:_e,ProjectBadges:we,ProjectCustomAttributes:qe,ProjectImportExport:Pe,ProjectIssueBoards:ke,ProjectHooks:Se,ProjectMembers:Te,ProjectMilestones:Ge,ProjectSnippets:Ee,ProjectSnippetNotes:Ae,ProjectSnippetDiscussions:Me,ProjectSnippetAwardEmojis:xe,ProtectedBranches:De,ProtectedTags:Be,ProjectVariables:Le,Repositories:Oe,RepositoryFiles:Ne,Runners:Fe,Services:Ke,Tags:Ve,Todos:ze,Triggers:He,PushRule:Je,ApplicationSettings:We,BroadcastMessages:Ye,Events:Qe,FeatureFlags:Ze,GeoNodes:$e,GitignoreTemplates:Xe,GitLabCIYMLTemplates:et,Keys:tt,Licence:ot,LicenceTemplates:nt,Lint:rt,Namespaces:st,NotificationSettings:pt,Markdown:it,PagesDomains:ut,Search:ct,SidekiqMetrics:at,Snippets:ht,SystemHooks:mt,Version:dt,Wikis:lt}),yt=l({Groups:_,GroupAccessRequests:B,GroupBadges:L,GroupCustomAttributes:O,GroupIssueBoards:N,GroupMembers:F,GroupMilestones:K,GroupProjects:V,GroupVariables:z,Epics:H,EpicIssues:J,EpicNotes:W,EpicDiscussions:Y}),It=l({Users:Q,UserCustomAttributes:Z,UserEmails:X,UserImpersonationTokens:ee,UserKeys:oe,UserGPGKeys:re}),vt=l({Branches:se,Commits:pe,CommitDiscussions:ie,DeployKeys:ce,Deployments:ue,Environments:ae,Issues:he,IssueAwardEmojis:le,IssueNotes:me,IssueDiscussions:de,Jobs:fe,Labels:ye,MergeRequests:Ie,MergeRequestAwardEmojis:ve,MergeRequestDiscussions:Re,MergeRequestNotes:Ue,Pipelines:je,PipelineSchedules:Ce,PipelineScheduleVariables:ge,Projects:be,ProjectAccessRequests:_e,ProjectBadges:we,ProjectCustomAttributes:qe,ProjectImportExport:Pe,ProjectIssueBoards:ke,ProjectHooks:Se,ProjectMembers:Te,ProjectMilestones:Ge,ProjectSnippets:Ee,ProjectSnippetNotes:Ae,ProjectSnippetDiscussions:Me,ProjectSnippetAwardEmojis:xe,ProtectedBranches:De,ProtectedTags:Be,ProjectVariables:Le,Repositories:Oe,RepositoryFiles:Ne,Runners:Fe,Services:Ke,Tags:Ve,Triggers:He}),Rt=l(ft);e.ApplicationSettings=We,e.Branches=se,e.BroadcastMessages=Ye,e.CommitDiscussions=ie,e.Commits=pe,e.DeployKeys=ce,e.Deployments=ue,e.Environments=ae,e.EpicDiscussions=Y,e.EpicIssues=J,e.EpicNotes=W,e.Epics=H,e.Events=Qe,e.FeatureFlags=Ze,e.GeoNodes=$e,e.GitLabCIYMLTemplates=et,e.GitignoreTemplates=Xe,e.Gitlab=Rt,e.GroupAccessRequests=B,e.GroupBadges=L,e.GroupCustomAttributes=O,e.GroupIssueBoards=N,e.GroupMembers=F,e.GroupMilestones=K,e.GroupProjects=V,e.GroupVariables=z,e.Groups=_,e.GroupsBundle=yt,e.IssueAwardEmojis=le,e.IssueDiscussions=de,e.IssueNotes=me,e.Issues=he,e.Jobs=fe,e.Keys=tt,e.Labels=ye,e.Licence=ot,e.LicenceTemplates=nt,e.Lint=rt,e.Markdown=it,e.MergeRequestAwardEmojis=ve,e.MergeRequestDiscussions=Re,e.MergeRequestNotes=Ue,e.MergeRequests=Ie,e.Namespaces=st,e.NotificationSettings=pt,e.PagesDomains=ut,e.PipelineScheduleVariables=ge,e.PipelineSchedules=Ce,e.Pipelines=je,e.ProjectAccessRequests=_e,e.ProjectBadges=we,e.ProjectCustomAttributes=qe,e.ProjectHooks=Se,e.ProjectImportExport=Pe,e.ProjectIssueBoards=ke,e.ProjectMembers=Te,e.ProjectMilestones=Ge,e.ProjectSnippetAwardEmojis=xe,e.ProjectSnippetDiscussions=Me,e.ProjectSnippetNotes=Ae,e.ProjectSnippets=Ee,e.ProjectVariables=Le,e.Projects=be,e.ProjectsBundle=vt,e.ProtectedBranches=De,e.ProtectedTags=Be,e.PushRule=Je,e.Repositories=Oe,e.RepositoryFiles=Ne,e.Runners=Fe,e.Search=ct,e.Services=Ke,e.SidekiqMetrics=at,e.Snippets=ht,e.SystemHooks=mt,e.Tags=Ve,e.Todos=ze,e.Triggers=He,e.UserCustomAttributes=Z,e.UserEmails=X,e.UserGPGKeys=re,e.UserImpersonationTokens=ee,e.UserKeys=oe,e.Users=Q,e.UsersBundle=It,e.Version=dt,e.Wikis=lt,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("universal-url"),require("li"),require("ky-universal"),require("humps"),require("query-string"),require("form-data"),require("randomstring")):"function"==typeof define&&define.amd?define(["exports","universal-url","li","ky-universal","humps","query-string","form-data","randomstring"],t):t((e=e||self)["node-gitlab"]={},e["universal-url"],e.Li,e.Ky,e.Humps,e.QueryString,e.FormData,e.RandomString)}(this,function(e,t,o,n,r,s,p,i){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o,n=n&&n.hasOwnProperty("default")?n.default:n,p=p&&p.hasOwnProperty("default")?p.default:p,i=i&&i.hasOwnProperty("default")?i.default:i;var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function c(e,t){function o(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var a=function(){return(a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function m(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o}function h(e,t,o,n){return new(o||(o=Promise))(function(r,s){function p(e){try{u(n.next(e))}catch(e){s(e)}}function i(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){e.done?r(e.value):new o(function(t){t(e.value)}).then(p,i)}u((n=n.apply(e,t||[])).next())})}function d(e,t){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=t.call(e,p)}catch(e){s=[6,e],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 l(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,s=o.call(e),p=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)p.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return p}function f(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function y(e,t,n){return void 0===n&&(n={}),h(this,void 0,void 0,function(){var r,s,p,i,u,c,a,h,l,I,v;return d(this,function(d){switch(d.label){case 0:return r=n.showPagination,s=n.maxPages,p=n.sudo,i=m(n,["showPagination","maxPages","sudo"]),[4,e.requester.get(e,t,{query:i,sudo:p})];case 1:return u=d.sent(),c=u.headers,a=u.body,h={total:c["x-total"],next:parseInt(c["x-next-page"],10)||null,current:parseInt(c["x-page"],10)||1,previous:c["x-prev-page"]||null,perPage:c["x-per-page"],totalPages:c["x-total-pages"]},l=!s||h.current<s,!i.page&&l&&h.next?(I=o.parse(c.link).next,[4,y(e,I.replace(/.+\/api\/v\d\//,""),{maxPages:s,sudo:p})]):[3,3];case 2:return v=d.sent(),[2,f(a,v)];case 3:return[2,(i.page||l)&&r?{data:a,pagination:h}:a]}})})}function I(e,t,o){if(void 0===o&&(o={}),"function"!=typeof e.requester.stream)throw new Error("Stream method is not implementated in requester!");return e.requester.stream(e,t,{query:o})}function v(e,t,o){return void 0===o&&(o={}),h(this,void 0,void 0,function(){var n,r;return d(this,function(s){switch(s.label){case 0:return n=o.sudo,r=m(o,["sudo"]),[4,e.requester.post(e,t,{body:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function R(e,t,o){return void 0===o&&(o={}),h(this,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return o.sudo,n=m(o,["sudo"]),[4,e.requester.put(e,t,{body:n})];case 1:return[2,r.sent().body]}})})}function j(e,t,o){return void 0===o&&(o={}),h(this,void 0,void 0,function(){var n,r;return d(this,function(s){switch(s.label){case 0:return n=o.sudo,r=m(o,["sudo"]),[4,e.requester.delete(e,t,{query:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function U(e){return function(t){var o=this;Object.entries(e||{}).forEach(function(e){var n=l(e,2),r=n[0],s=n[1];o[r]=new s(t)})}}function C(e,t,o){return/^[A-Z0-9_]+$/.test(e)?e:t(e,o)}var g={};function b(e,t,o){var n=o.body,p=o.query,i=o.sudo,u=new Headers(e.headers);return i&&u.append("sudo",""+i),[t,{headers:u,searchParams:s.stringify(r.decamelizeKeys(p||{}),{arrayFormat:"bracket"}),prefixUrl:e.url,json:"object"==typeof n?r.decamelizeKeys(n,C):n,rejectUnauthorized:e.rejectUnauthorized}]}["get","post","put","delete"].forEach(function(e){g[e]=function(t,o,s){return h(this,void 0,void 0,function(){var p,i,u,c;return d(this,function(a){switch(a.label){case 0:return[4,n[e].apply(n,f(b(t,o,s)))];case 1:return p=a.sent(),i=p.status,u=p.headers,[4,p.json()];case 2:return"object"==typeof(c=a.sent())&&(c=r.camelizeKeys(c||{})),[2,{body:c,headers:u=u||{},status:i}]}})})}});var _=function(){return function(e){var t=e.token,o=e.jobToken,n=e.oauthToken,r=e.sudo,s=e.host,p=void 0===s?"https://gitlab.com":s,i=e.url,u=void 0===i?"":i,c=e.version,a=void 0===c?"v4":c,m=e.rejectUnauthorized,h=void 0===m||m,d=e.requester,l=void 0===d?g:d;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=h,this.requester=l,n?this.headers.authorization="Bearer "+n:o?this.headers["job-token"]=o:t&&(this.headers["private-token"]=t),r&&(this.headers.Sudo=""+r)}}(),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"groups",e)},t.prototype.create=function(e){return v(this,"groups",e)},t.prototype.createLDAPLink=function(e,t,o,n,r){return v(this,"groups/"+encodeURIComponent(e)+"/ldap_group_links",a({cn:t,groupAccess:o,provider:n},r))},t.prototype.edit=function(e,t){return R(this,"groups/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return j(this,"groups/"+encodeURIComponent(e),t)},t.prototype.removeLDAPLink=function(e,t,o){void 0===o&&(o={});var n=o.provider,r=m(o,["provider"]);return j(this,"groups/"+encodeURIComponent(e)+"/ldap_group_links/"+(n?n+"/"+t:""+t),r)},t.prototype.search=function(e,t){return y(this,"groups",a({search:e},t))},t.prototype.show=function(e,t){return y(this,"groups/"+encodeURIComponent(e),t)},t.prototype.subgroups=function(e,t){return y(this,"groups/"+encodeURIComponent(e)+"/subgroups",t)},t.prototype.syncLDAP=function(e,t){return v(this,"groups/"+encodeURIComponent(e)+"/ldap_sync",t)},t}(_),q=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.all=function(e){return y(this,encodeURIComponent(e)+"/access_requests")},t.prototype.request=function(e){return v(this,encodeURIComponent(e)+"/access_requests")},t.prototype.approve=function(e,t,o){var n=o.accessLevel,r=l([e,t].map(encodeURIComponent),2);return v(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},t.prototype.deny=function(e,t){var o=l([e,t].map(encodeURIComponent),2);return j(this,o[0]+"/access_requests/"+o[1])},t}(_);function P(e,t,o,n,r){var s=l([e,o].map(encodeURIComponent),2),p=[s[0],t,s[1]];return r&&p.push("notes",encodeURIComponent(r)),p.push(encodeURIComponent("award_emoji")),n&&p.push(encodeURIComponent(n)),p.join("/")}var k=function(e){function t(t,o){var n=e.call(this,a({url:"projects"},o))||this;return n.resourceType=t,n}return c(t,e),t.prototype.all=function(e,t,o,n){return y(this,P(e,this.resourceType,t,null,o),n)},t.prototype.award=function(e,t,o,n,r){return v(this,P(e,this.resourceType,t,null,n),a({name:o},r))},t.prototype.remove=function(e,t,o,n,r){return j(this,P(e,this.resourceType,t,o,n),r)},t.prototype.show=function(e,t,o,n,r){return y(this,P(e,this.resourceType,t,o,n),r)},t}(_),S=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.add=function(e,t){return v(this,encodeURIComponent(e)+"/badges",t)},t.prototype.all=function(e,t){return y(this,encodeURIComponent(e)+"/badges",t)},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,n[0]+"/badges/"+n[1],o)},t.prototype.preview=function(e,t,o,n){return y(this,encodeURIComponent(e)+"/badges/render",a({linkUrl:t,imageUrl:o},n))},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,n[0]+"/badges/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/badges/"+n[1],o)},t}(_),T=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.all=function(e,t){return y(this,encodeURIComponent(e)+"/custom_attributes",t)},t.prototype.set=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return R(this,r[0]+"/custom_attributes/"+r[1],a({value:o},n))},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,n[0]+"/custom_attributes/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/custom_attributes/"+n[1],o)},t}(_),E=function(e){function t(t,o,n){var r=e.call(this,a({url:t},n))||this;return r.resource2Type=o,r}return c(t,e),t.prototype.addNote=function(e,t,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=l([e,t,o,n].map(encodeURIComponent),4),i=p[0],u=p[1],c=p[2],m=p[3];return R(this,i+"/"+this.resource2Type+"/"+u+"/discussions/"+c+"/notes/"+m,a({body:r},s))},t.prototype.all=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return y(this,r+"/"+this.resource2Type+"/"+s+"/discussions",o)},t.prototype.create=function(e,t,o,n){if(!o)throw new Error("Missing required content argument");var r=l([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions",a({body:o},n))},t.prototype.editNote=function(e,t,o,n,r){var s=l([e,t,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,{body:r})},t.prototype.removeNote=function(e,t,o,n,r){var s=l([e,t,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)},t.prototype.show=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return y(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},t}(_),G=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.all=function(e,t){return y(this,encodeURIComponent(e)+"/boards",t)},t.prototype.create=function(e,t,o){return v(this,encodeURIComponent(e)+"/boards",a({name:t},o))},t.prototype.createList=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return v(this,r[0]+"/boards/"+r[1]+"/lists",a({labelId:o},n))},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,n[0]+"/boards/"+n[1],o)},t.prototype.editList=function(e,t,o,n,r){var s=l([e,t,o].map(encodeURIComponent),3);return R(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],a({position:n},r))},t.prototype.lists=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1]+"/lists",o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,n[0]+"/boards/"+n[1],o)},t.prototype.removeList=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return j(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1],o)},t.prototype.showList=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return y(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},t}(_),A=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.all=function(e,t,o){void 0===t&&(t=!1);var n=[encodeURIComponent(e),"members"];return t&&n.push("all"),y(this,n.join("/"),{options:o})},t.prototype.add=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/members",a({userId:p,accessLevel:o},n))},t.prototype.edit=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return R(this,r[0]+"/members/"+r[1],a({accessLevel:o},n))},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/members/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,n[0]+"/members/"+n[1],o)},t}(_),M=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.all=function(e,t){return y(this,encodeURIComponent(e)+"/milestones",t)},t.prototype.create=function(e,t,o){return v(this,encodeURIComponent(e)+"/milestones",a({title:t},o))},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,n[0]+"/milestones/"+n[1],o)},t.prototype.issues=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/issues",o)},t.prototype.mergeRequests=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1],o)},t}(_),x=function(e){function t(t,o,n){var r=e.call(this,a({url:t},n))||this;return r.resource2Type=o,r}return c(t,e),t.prototype.all=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return y(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},t.prototype.create=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes",a({body:o},n))},t.prototype.edit=function(e,t,o,n,r){var s=l([e,t,o].map(encodeURIComponent),3),p=s[0],i=s[1],u=s[2];return R(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+u,a({body:n},r))},t.prototype.remove=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return j(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},t.prototype.show=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return y(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},t}(_),D=function(e){function t(t,o){return e.call(this,a({url:["templates",t].join("/")},o))||this}return c(t,e),t.prototype.all=function(e){return y(this,"",e)},t.prototype.show=function(e,t){return v(this,""+encodeURIComponent(e),t)},t}(_),B=function(e){function t(t,o){return e.call(this,a({url:t},o))||this}return c(t,e),t.prototype.all=function(e,t){return y(this,encodeURIComponent(e)+"/variables",t)},t.prototype.create=function(e,t){return v(this,encodeURIComponent(e)+"/variables",t)},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,n[0]+"/variables/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,n[0]+"/variables/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,n[0]+"/variables/"+n[1],o)},t}(_),L=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(q),O=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(S),N=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(T),K=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(G),F=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(A),V=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(M),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"groups/"+encodeURIComponent(e)+"/projects",t)},t.prototype.add=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/projects/"+n[1],o)},t}(_),H=function(e){function t(t){return e.call(this,"groups",t)||this}return c(t,e),t}(B),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"groups/"+encodeURIComponent(e)+"/epics",t)},t.prototype.create=function(e,t,o){return v(this,"groups/"+encodeURIComponent(e)+"/epics",a({title:t},o))},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/epics/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"groups/"+n[0]+"/epics/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1],o)},t}(_),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},t.prototype.assign=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return R(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t.prototype.edit=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t.prototype.remove=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},t}(_),Y=function(e){function t(t){return e.call(this,"groups","epics",t)||this}return c(t,e),t}(x),Q=function(e){function t(t){return e.call(this,"groups","epics",t)||this}return c(t,e),t}(E),Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"users",e)},t.prototype.activities=function(e){return y(this,"users/activities",e)},t.prototype.projects=function(e,t){return y(this,"users/"+encodeURIComponent(e)+"/projects",t)},t.prototype.block=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/block",t)},t.prototype.create=function(e){return v(this,"users",e)},t.prototype.current=function(e){return y(this,"user",e)},t.prototype.edit=function(e,t){return R(this,"users/"+encodeURIComponent(e),t)},t.prototype.events=function(e,t){return y(this,"users/"+encodeURIComponent(e)+"/events",t)},t.prototype.session=function(e,t,o){return v(this,"session",a({email:e,password:t},o))},t.prototype.search=function(e,t){return y(this,"users",a({search:e},t))},t.prototype.show=function(e,t){return y(this,"users/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return j(this,"users/"+encodeURIComponent(e),t)},t.prototype.unblock=function(e,t){return v(this,"users/"+encodeURIComponent(e)+"/unblock",t)},t}(_),$=function(e){function t(t){return e.call(this,"users",t)||this}return c(t,e),t}(T),X=function(e){return e?"users/"+encodeURIComponent(e)+"/emails":"user/emails"},ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=m(e,["userId"]);return y(this,X(t),o)},t.prototype.add=function(e,t){void 0===t&&(t={});var o=t.userId,n=m(t,["userId"]);return v(this,X(o),a({email:e},n))},t.prototype.show=function(e,t){return y(this,"user/emails/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=m(t,["userId"]),r=encodeURIComponent(e);return j(this,X(o)+"/"+r,n)},t}(_),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"users/"+encodeURIComponent(e)+"/impersonation_tokens",t)},t.prototype.add=function(e,t,o,n,r){return v(this,"users/"+encodeURIComponent(e)+"/impersonation_tokens",a({name:t,expiresAt:n,scopes:o},r))},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},t.prototype.revoke=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},t}(_),oe=function(e){return e?"users/"+encodeURIComponent(e)+"/keys":"user/keys"},ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=m(e,["userId"]);return y(this,oe(t),o)},t.prototype.create=function(e,t,o){void 0===o&&(o={});var n=o.userId,r=m(o,["userId"]);return v(this,oe(n),a({title:e,key:t},r))},t.prototype.show=function(e,t){return y(this,"user/keys/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=m(t,["userId"]),r=encodeURIComponent(e);return j(this,oe(o)+"/"+r,n)},t}(_),re=function(e){return e?"users/"+encodeURIComponent(e)+"/gpg_keys":"users/gpg_keys"},se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.userId,o=m(e,["userId"]);return y(this,re(t),o)},t.prototype.add=function(e,t,o){void 0===o&&(o={});var n=o.userId,r=m(o,["userId"]);return v(this,re(n),a({title:e,key:t},r))},t.prototype.show=function(e,t){void 0===t&&(t={});var o=t.userId,n=m(t,["userId"]),r=encodeURIComponent(e);return y(this,re(o)+"/"+r,n)},t.prototype.remove=function(e,t){void 0===t&&(t={});var o=t.userId,n=m(t,["userId"]),r=encodeURIComponent(e);return j(this,re(o)+"/"+r,n)},t}(_),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/branches",t)},t.prototype.create=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/repository/branches",a({branch:t,ref:o},n))},t.prototype.protect=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/protected_branches",a({name:t},o))},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},t}(_),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits",t)},t.prototype.cherryPick=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/cherry_pick",a({branch:o},n))},t.prototype.comments=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/comments",o)},t.prototype.create=function(e,t,o,n,r){return void 0===n&&(n=[]),v(this,"projects/"+encodeURIComponent(e)+"/repository/commits",a({branch:t,commitMessage:o,actions:n},r))},t.prototype.createComment=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/comments",a({note:o},n))},t.prototype.diff=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/diff",o)},t.prototype.editStatus=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/statuses/"+t,o)},t.prototype.references=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/refs",o)},t.prototype.show=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t,o)},t.prototype.status=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/statuses",o)},t.prototype.mergeRequests=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/commits/"+t+"/merge_requests")},t}(_),ue=function(e){function t(t){return e.call(this,"projects","commits",t)||this}return c(t,e),t}(E),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/deployments",t)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deployments/"+n[1],o)},t}(_),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.add=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/deploy_keys",t)},t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/deploy_keys",t)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},t.prototype.enable=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},t}(_),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/environments",t)},t.prototype.create=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/environments",t)},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/environments/"+n[1],o)},t.prototype.stop=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},t}(_),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.addSpentTime=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",a({duration:o},n))},t.prototype.addTimeEstimate=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",a({duration:o},n))},t.prototype.all=function(e){void 0===e&&(e={});var t=e.projectId,o=m(e,["projectId"]);return y(this,t?"projects/"+encodeURIComponent(t)+"/issues":"issues",o)},t.prototype.create=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/issues",t)},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.link=function(e,t,o,n,r){var s=l([e,t].map(encodeURIComponent),2),p=s[0],i=s[1],u=l([o,n].map(encodeURIComponent),2),c=u[0],m=u[1];return v(this,"projects/"+p+"/issues/"+i+"/links",a({targetProjectId:c,targetIssueId:m},r))},t.prototype.participants=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.resetSpentTime=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},t.prototype.resetTimeEstimate=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1],o)},t.prototype.subscribe=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},t.prototype.timeStats=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},t.prototype.unsubscribe=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},t}(_),de=function(e){function t(t){return e.call(this,"projects","issues",t)||this}return c(t,e),t}(x),le=function(e){function t(t){return e.call(this,"projects","issues",t)||this}return c(t,e),t}(E),fe=function(e){function t(t){return e.call(this,"issues",t)||this}return c(t,e),t}(k),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/jobs",t)},t.prototype.cancel=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/cancel",o)},t.prototype.downloadSingleArtifactFile=function(e,t,o,n){var r=n.stream,s=void 0!==r&&r,p=m(n,["stream"]),i=l([e,t].map(encodeURIComponent),2),u=i[0],c=i[1];return s?I(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p):y(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p)},t.prototype.downloadLatestArtifactFile=function(e,t,o,n){var r=n.stream,s=void 0!==r&&r,p=m(n,["stream"]),i=l([e,t,o].map(encodeURIComponent),3),u=i[0],c=i[1],a=i[2];return s?I(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p):y(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p)},t.prototype.downloadTraceFile=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},t.prototype.erase=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},t.prototype.eraseArtifacts=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts",o)},t.prototype.keepArtifacts=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},t.prototype.play=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},t.prototype.retry=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1],o)},t.prototype.showPipelineJobs=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},t}(_),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/labels",t)},t.prototype.create=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/labels",t)},t.prototype.edit=function(e,t,o){return R(this,"projects/"+encodeURIComponent(e)+"/labels",a({name:t},o))},t.prototype.remove=function(e,t,o){return j(this,"projects/"+encodeURIComponent(e)+"/labels",a({name:t},o))},t.prototype.subscribe=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},t.prototype.unsubscribe=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},t}(_),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.accept=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},t.prototype.addSpentTime=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/add_spent_time",a({duration:o},n))},t.prototype.addTimeEstimate=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/time_estimate",a({duration:o},n))},t.prototype.all=function(e){var t=e.projectId,o=e.groupId,n=m(e,["projectId","groupId"]);return y(this,t?"projects/"+encodeURIComponent(t)+"/merge_requests":o?"groups/"+encodeURIComponent(o)+"/merge_requests":"merge_requests",n)},t.prototype.approve=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},t.prototype.approvals=function(e,t){var o=t.mergerequestIId,n=m(t,["mergerequestIId"]),r=l([e,o].map(encodeURIComponent),2),s=r[0],p=r[1];return y(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},t.prototype.approvers=function(e,t,o,n){var r=n.mergerequestIId,s=m(n,["mergerequestIId"]),p=l([e,r].map(encodeURIComponent),2),i=p[0],u=p[1];return R(this,r?"projects/"+i+"/merge_requests/"+u+"/approvers":"projects/"+i+"/approvers",a({approverIds:t,approverGroupIds:o},s))},t.prototype.cancelOnPipelineSucess=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},t.prototype.changes=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},t.prototype.closesIssues=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},t.prototype.commits=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},t.prototype.create=function(e,t,o,n,r){var s=encodeURIComponent(e);return v(this,"projects/"+s+"/merge_requests",a({id:s,sourceBranch:t,targetBranch:o,title:n},r))},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.editApprovals=function(e,t){var o=t.mergerequestIId,n=m(t,["mergerequestIId"]),r=l([e,o].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},t.prototype.participants=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/participants",o)},t.prototype.pipelines=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.resetSpentTime=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},t.prototype.resetTimeEstimate=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},t.prototype.timeStats=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},t.prototype.version=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},t.prototype.versions=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},t.prototype.unapprove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},t.prototype.unsubscribe=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},t}(_),Re=function(e){function t(t){return e.call(this,"merge_requests",t)||this}return c(t,e),t}(k),je=function(e){function t(t){return e.call(this,"projects","merge_requests",t)||this}return c(t,e),t}(E),Ue=function(e){function t(t){return e.call(this,"projects","merge_requests",t)||this}return c(t,e),t}(x),Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/pipelines",t)},t.prototype.create=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipeline",a({ref:t},o))},t.prototype.show=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t,o)},t.prototype.retry=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/retry",o)},t.prototype.cancel=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/cancel",o)},t.prototype.showJobs=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/pipelines/"+t+"/jobs",o)},t}(_),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/pipeline_schedules",t)},t.prototype.create=function(e,t,o,n,r){return v(this,"projects/"+encodeURIComponent(e)+"/pipeline_schedules",a({description:t,ref:o,cron:n},r))},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},t.prototype.takeOwnership=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},t}(_),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},t.prototype.create=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},t.prototype.edit=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return R(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t.prototype.show=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t.prototype.remove=function(e,t,o,n){var r=l([e,t,o].map(encodeURIComponent),3);return j(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},t}(_),_e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"projects",e)},t.prototype.archive=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/archive",t)},t.prototype.create=function(e){var t=e.userId,o=m(e,["userId"]);return v(this,t?"projects/user/"+encodeURIComponent(t):"projects",o)},t.prototype.edit=function(e,t){return R(this,"projects/"+encodeURIComponent(e),t)},t.prototype.events=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/events",t)},t.prototype.fork=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/fork",t)},t.prototype.forks=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/forks",t)},t.prototype.languages=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/languages",t)},t.prototype.mirrorPull=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/mirror/pull",t)},t.prototype.remove=function(e,t){return j(this,"projects/"+encodeURIComponent(e),t)},t.prototype.removeFork=function(e){return j(this,"projects/"+encodeURIComponent(e)+"/fork")},t.prototype.search=function(e){return y(this,"projects",{search:e})},t.prototype.share=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/share",a({groupId:t,groupAccess:o},n))},t.prototype.show=function(e,t){return y(this,"projects/"+encodeURIComponent(e),t)},t.prototype.star=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/star",t)},t.prototype.statuses=function(e,t,o,n){return v(this,"projects/"+encodeURIComponent(e)+"/statuses/"+t,a({state:o},n))},t.prototype.transfer=function(e,t){return R(this,"projects/"+encodeURIComponent(e)+"/transfer",{namespace:t})},t.prototype.unarchive=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/unarchive",t)},t.prototype.unshare=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/share/"+n[1],o)},t.prototype.unstar=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/unstar",t)},t.prototype.updatePushRule=function(e,t){return R(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.upload=function(e,t,o,n){void 0===o&&(o={});var r=encodeURIComponent(e),s=new p,u={filename:i.generate(8),contentType:"application/octet-stream"};return s.append("file",t,Object.assign(u,o)),v(this,"projects/"+r+"/uploads",a({},n,{form:s}))},t}(_),we=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(q),qe=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(S),Pe=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(T),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.download=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/export/download",t)},t.prototype.exportStatus=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/export",t)},t.prototype.import=function(e,t,o){var n=new p;return n.append("file",e,{filename:t,contentType:"application/octet-stream"}),v(this,"projects/import",a({},o,{form:n}))},t.prototype.importStatus=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/import",t)},t.prototype.schedule=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/export",t)},t}(_),Se=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(G),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/hooks",t)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/hooks/"+n[1],o)},t.prototype.add=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/hooks",a({url:t},o))},t.prototype.edit=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/hooks/"+r[1],a({url:o},n))},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/hooks/"+n[1],o)},t}(_),Ee=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(A),Ge=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(M),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/snippets",t)},t.prototype.content=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},t.prototype.create=function(e,t,o,n,r,s){return v(this,"projects/"+encodeURIComponent(e)+"/snippets",a({title:t,fileName:o,code:n,visibility:r},s))},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1],o)},t.prototype.userAgentDetails=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},t}(_),Me=function(e){function t(t){return e.call(this,"projects","snippets",t)||this}return c(t,e),t}(x),xe=function(e){function t(t){return e.call(this,"projects","snippets",t)||this}return c(t,e),t}(E),De=function(e){function t(t){return e.call(this,"issues",t)||this}return c(t,e),t}(k),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/protected_branches",t)},t.prototype.protect=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/protected_branches",a({name:t},o))},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},t}(_),Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/protected_tags",t)},t.prototype.protect=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/protected_tags",a({name:t},o))},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},t.prototype.unprotect=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},t}(_),Oe=function(e){function t(t){return e.call(this,"projects",t)||this}return c(t,e),t}(B),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.compare=function(e,t,o,n){return y(this,"projects/"+encodeURIComponent(e)+"/repository/compare",a({from:t,to:o},n))},t.prototype.contributors=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/contributors",t)},t.prototype.showArchive=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/archive",t)},t.prototype.showBlob=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/blobs/"+t,o)},t.prototype.showBlobRaw=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/repository/blobs/"+t+"/raw",o)},t.prototype.tree=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/tree",t)},t}(_),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.create=function(e,t,o,n,r){var s=l([e,t].map(encodeURIComponent),2);return v(this,"projects/"+s[0]+"/repository/files/"+s[1],a({branch:o,content:n},r))},t.prototype.edit=function(e,t,o,n,r){var s=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],a({branch:o,content:n},r))},t.prototype.remove=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+r[0]+"/repository/files/"+r[1],a({branch:o},n))},t.prototype.show=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1],a({ref:o},n))},t.prototype.showRaw=function(e,t,o,n){var r=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",a({ref:o},n))},t}(_),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){var t=e.projectId,o=m(e,["projectId"]);return y(this,t?"projects/"+encodeURIComponent(t)+"/runners":"runners/all",o)},t.prototype.allOwned=function(e){return y(this,"runners",e)},t.prototype.edit=function(e,t){return R(this,"runners/"+encodeURIComponent(e),t)},t.prototype.enable=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,"projects/"+r+"/runners",a({runnerId:s},o))},t.prototype.disable=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/runners/"+n[1],o)},t.prototype.jobs=function(e,t){return y(this,"runners/"+encodeURIComponent(e)+"/jobs",t)},t.prototype.remove=function(e,t){return j(this,"runners/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return y(this,"runners/"+encodeURIComponent(e),t)},t}(_),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.edit=function(e,t,o){return R(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t.prototype.remove=function(e,t,o){return j(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t.prototype.show=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/services/"+t,o)},t}(_),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/repository/tags",t)},t.prototype.create=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/repository/tags",t)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},t}(_),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"todos",e)},t.prototype.create=function(e,t,o){return v(this,"projects/"+e+"/merge_requests/"+t+"/todo",o)},t.prototype.done=function(e){var t=e.todoId,o="mark_as_done";return t&&(o=t+"/"+o),j(this,"todos/"+o,m(e,["todoId"]))},t}(_),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.add=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/triggers",t)},t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/triggers",t)},t.prototype.edit=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.remove=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.show=function(e,t,o){var n=l([e,t].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/triggers/"+n[1],o)},t.prototype.pipeline=function(e,t){if(!t.ref)throw new Error("Missing required property: ref");if(!t.token)throw new Error("Missing required property: token");return v(this,"projects/"+encodeURIComponent(e)+"/trigger/pipeline",t)},t}(_),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.create=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.edit=function(e,t){t.upsert;var o=m(t,["upsert"]),n=encodeURIComponent(e);try{return R(this,"projects/"+n+"/push_rule",o)}catch(t){if(t.message.includes("exist"))return this.create(e,o);throw t}},t.prototype.remove=function(e,t){return j(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t.prototype.show=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/push_rule",t)},t}(_),Ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"application/settings",e)},t.prototype.edit=function(e){return R(this,"application/settings",e)},t}(_),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"broadcast_messages",e)},t.prototype.create=function(e){return v(this,"broadcast_messages",e)},t.prototype.edit=function(e,t){return R(this,"broadcast_messages/"+encodeURIComponent(e),t)},t.prototype.remove=function(e){return j(this,"broadcast_messages/"+encodeURIComponent(e))},t.prototype.show=function(e,t){return y(this,"broadcast_messages/"+encodeURIComponent(e),t)},t}(_),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"events",e)},t}(_),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"features",e)},t.prototype.set=function(e,t){return v(this,"features/"+encodeURIComponent(e),t)},t}(_),Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"geo_nodes",e)},t.prototype.create=function(e,t){return v(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.edit=function(e,t){return R(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.failures=function(e){return v(this,"geo_nodes/current/failures",e)},t.prototype.repair=function(e,t){return j(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return y(this,"geo_nodes/"+encodeURIComponent(e),t)},t.prototype.status=function(e,t){return y(this,"geo_nodes/"+encodeURIComponent(e)+"/status",t)},t.prototype.statuses=function(e){return y(this,"geo_nodes/statuses",e)},t}(_),et=function(e){function t(t){return e.call(this,"gitignores",t)||this}return c(t,e),t}(D),tt=function(e){function t(t){return e.call(this,"gitlab_ci_ymls",t)||this}return c(t,e),t}(D),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.show=function(e,t){return y(this,"keys/"+encodeURIComponent(e),t)},t}(_),nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"licence",e)},t.prototype.create=function(e){return v(this,"licence",e)},t}(_),rt=function(e){function t(t){return e.call(this,"licences",t)||this}return c(t,e),t}(D),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.lint=function(e,t){return v(this,"ci/lint",a({content:e},t))},t}(_),pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,"namespaces",e)},t.prototype.show=function(e,t){return y(this,"namespaces/"+encodeURIComponent(e),t)},t}(_),it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){var t=e.projectId,o=e.groupId,n=m(e,["projectId","groupId"]),r="";return t?r+="projects/"+encodeURIComponent(t)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),y(this,r+"notification_settings",n)},t.prototype.edit=function(e){var t=e.projectId,o=e.groupId,n=m(e,["projectId","groupId"]),r="";return t?r+="projects/"+encodeURIComponent(t)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),R(this,r+"notification_settings",n)},t}(_),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.render=function(e,t){return v(this,"markdown",a({text:e},t))},t}(_),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){void 0===e&&(e={});var t=e.projectId,o=m(e,["projectId"]);return y(this,(t?"projects/"+encodeURIComponent(t)+"/":"")+"pages/domains",o)},t.prototype.create=function(e,t,o){return v(this,"projects/"+encodeURIComponent(e)+"/pages/domains",a({domain:t},o))},t.prototype.edit=function(e,t,o){return R(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t.prototype.show=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t.prototype.remove=function(e,t,o){return j(this,"projects/"+encodeURIComponent(e)+"/pages/domains/"+t,o)},t}(_),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t,o){var n=o.projectId,r=o.groupId,s=m(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),y(this,p+"search",a({scope:e,search:t},s))},t}(_),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.queueMetrics=function(){return y(this,"sidekiq/queue_metrics")},t.prototype.processMetrics=function(){return y(this,"sidekiq/process_metrics")},t.prototype.jobStats=function(){return y(this,"sidekiq/job_stats")},t.prototype.compoundMetrics=function(){return y(this,"sidekiq/compound_metrics")},t}(_),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e){return y(this,e.public?"snippets/public":"snippets",m(e,["public"]))},t.prototype.content=function(e,t){return y(this,"snippets/"+encodeURIComponent(e)+"/raw",t)},t.prototype.create=function(e,t,o,n,r){return v(this,"snippets",a({title:e,fileName:t,content:o,visibility:n},r))},t.prototype.edit=function(e,t){return R(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.remove=function(e,t){return j(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.show=function(e,t){return y(this,"snippets/"+encodeURIComponent(e),t)},t.prototype.userAgentDetails=function(e,t){return y(this,"snippets/"+encodeURIComponent(e)+"/user_agent_detail",t)},t}(_),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.add=function(e,t){return v(this,"hooks",a({url:e},t))},t.prototype.all=function(e){return y(this,"hooks",e)},t.prototype.edit=function(e,t,o){return R(this,"hooks/"+encodeURIComponent(e),a({url:t},o))},t.prototype.remove=function(e,t){return j(this,"hooks/"+encodeURIComponent(e),t)},t}(_),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.show=function(e){return y(this,"version",e)},t}(_),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.all=function(e,t){return y(this,"projects/"+encodeURIComponent(e)+"/wikis",t)},t.prototype.create=function(e,t){return v(this,"projects/"+encodeURIComponent(e)+"/wikis",t)},t.prototype.edit=function(e,t,o){return R(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t.prototype.show=function(e,t,o){return y(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t.prototype.remove=function(e,t,o){return j(this,"projects/"+encodeURIComponent(e)+"/wikis/"+t,o)},t}(_),yt=Object.freeze({Groups:w,GroupAccessRequests:L,GroupBadges:O,GroupCustomAttributes:N,GroupIssueBoards:K,GroupMembers:F,GroupMilestones:V,GroupProjects:z,GroupVariables:H,Epics:J,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Q,Users:Z,UserCustomAttributes:$,UserEmails:ee,UserImpersonationTokens:te,UserKeys:ne,UserGPGKeys:se,Branches:pe,Commits:ie,CommitDiscussions:ue,Deployments:ce,DeployKeys:ae,Environments:me,Issues:he,IssueNotes:de,IssueDiscussions:le,IssueAwardEmojis:fe,Jobs:ye,Labels:Ie,MergeRequests:ve,MergeRequestAwardEmojis:Re,MergeRequestDiscussions:je,MergeRequestNotes:Ue,Pipelines:Ce,PipelineSchedules:ge,PipelineScheduleVariables:be,Projects:_e,ProjectAccessRequests:we,ProjectBadges:qe,ProjectCustomAttributes:Pe,ProjectImportExport:ke,ProjectIssueBoards:Se,ProjectHooks:Te,ProjectMembers:Ee,ProjectMilestones:Ge,ProjectSnippets:Ae,ProjectSnippetNotes:Me,ProjectSnippetDiscussions:xe,ProjectSnippetAwardEmojis:De,ProtectedBranches:Be,ProtectedTags:Le,ProjectVariables:Oe,Repositories:Ne,RepositoryFiles:Ke,Runners:Fe,Services:Ve,Tags:ze,Todos:He,Triggers:Je,PushRule:We,ApplicationSettings:Ye,BroadcastMessages:Qe,Events:Ze,FeatureFlags:$e,GeoNodes:Xe,GitignoreTemplates:et,GitLabCIYMLTemplates:tt,Keys:ot,Licence:nt,LicenceTemplates:rt,Lint:st,Namespaces:pt,NotificationSettings:it,Markdown:ut,PagesDomains:ct,Search:at,SidekiqMetrics:mt,Snippets:ht,SystemHooks:dt,Version:lt,Wikis:ft});t.shim();var It=U({Groups:w,GroupAccessRequests:L,GroupBadges:O,GroupCustomAttributes:N,GroupIssueBoards:K,GroupMembers:F,GroupMilestones:V,GroupProjects:z,GroupVariables:H,Epics:J,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Q}),vt=U({Users:Z,UserCustomAttributes:$,UserEmails:ee,UserImpersonationTokens:te,UserKeys:ne,UserGPGKeys:se}),Rt=U({Branches:pe,Commits:ie,CommitDiscussions:ue,DeployKeys:ae,Deployments:ce,Environments:me,Issues:he,IssueAwardEmojis:fe,IssueNotes:de,IssueDiscussions:le,Jobs:ye,Labels:Ie,MergeRequests:ve,MergeRequestAwardEmojis:Re,MergeRequestDiscussions:je,MergeRequestNotes:Ue,Pipelines:Ce,PipelineSchedules:ge,PipelineScheduleVariables:be,Projects:_e,ProjectAccessRequests:we,ProjectBadges:qe,ProjectCustomAttributes:Pe,ProjectImportExport:ke,ProjectIssueBoards:Se,ProjectHooks:Te,ProjectMembers:Ee,ProjectMilestones:Ge,ProjectSnippets:Ae,ProjectSnippetNotes:Me,ProjectSnippetDiscussions:xe,ProjectSnippetAwardEmojis:De,ProtectedBranches:Be,ProtectedTags:Le,ProjectVariables:Oe,Repositories:Ne,RepositoryFiles:Ke,Runners:Fe,Services:Ve,Tags:ze,Triggers:Je}),jt=U(yt);e.ApplicationSettings=Ye,e.Branches=pe,e.BroadcastMessages=Qe,e.CommitDiscussions=ue,e.Commits=ie,e.DeployKeys=ae,e.Deployments=ce,e.Environments=me,e.EpicDiscussions=Q,e.EpicIssues=W,e.EpicNotes=Y,e.Epics=J,e.Events=Ze,e.FeatureFlags=$e,e.GeoNodes=Xe,e.GitLabCIYMLTemplates=tt,e.GitignoreTemplates=et,e.Gitlab=jt,e.GroupAccessRequests=L,e.GroupBadges=O,e.GroupCustomAttributes=N,e.GroupIssueBoards=K,e.GroupMembers=F,e.GroupMilestones=V,e.GroupProjects=z,e.GroupVariables=H,e.Groups=w,e.GroupsBundle=It,e.IssueAwardEmojis=fe,e.IssueDiscussions=le,e.IssueNotes=de,e.Issues=he,e.Jobs=ye,e.Keys=ot,e.Labels=Ie,e.Licence=nt,e.LicenceTemplates=rt,e.Lint=st,e.Markdown=ut,e.MergeRequestAwardEmojis=Re,e.MergeRequestDiscussions=je,e.MergeRequestNotes=Ue,e.MergeRequests=ve,e.Namespaces=pt,e.NotificationSettings=it,e.PagesDomains=ct,e.PipelineScheduleVariables=be,e.PipelineSchedules=ge,e.Pipelines=Ce,e.ProjectAccessRequests=we,e.ProjectBadges=qe,e.ProjectCustomAttributes=Pe,e.ProjectHooks=Te,e.ProjectImportExport=ke,e.ProjectIssueBoards=Se,e.ProjectMembers=Ee,e.ProjectMilestones=Ge,e.ProjectSnippetAwardEmojis=De,e.ProjectSnippetDiscussions=xe,e.ProjectSnippetNotes=Me,e.ProjectSnippets=Ae,e.ProjectVariables=Oe,e.Projects=_e,e.ProjectsBundle=Rt,e.ProtectedBranches=Be,e.ProtectedTags=Le,e.PushRule=We,e.Repositories=Ne,e.RepositoryFiles=Ke,e.Runners=Fe,e.Search=at,e.Services=Ve,e.SidekiqMetrics=mt,e.Snippets=ht,e.SystemHooks=dt,e.Tags=ze,e.Todos=He,e.Triggers=Je,e.UserCustomAttributes=$,e.UserEmails=ee,e.UserGPGKeys=se,e.UserImpersonationTokens=te,e.UserKeys=ne,e.Users=Z,e.UsersBundle=vt,e.Version=lt,e.Wikis=ft,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -1,1 +0,1 @@ | ||
import{decamelizeKeys as t}from"humps";import{stringify as e}from"query-string";import o from"got";import n from"form-data";import r from"randomstring";var s=function(t,e){return(s=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 p(t,e){function o(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=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 u(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 c(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 a(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 h(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 m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function d(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=h(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function l(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}function f(o,n,r){var s=r.body,p=r.query,u=r.sudo;return[n,{baseUrl:o.url,headers:i({sudo:u},o.headers),query:p&&e(t(p),{arrayFormat:"bracket"}),body:s&&t(s,l),rejectUnauthorized:o.rejectUnauthorized,json:!0}]}function y(t,e,o,n){return void 0===o&&(o={}),void 0===n&&(n=!1),c(this,void 0,void 0,function(){var r,s,p,c,h,d,l,I,v,R,U,C;return a(this,function(a){switch(a.label){case 0:return s=o.showPagination,p=o.maxPages,c=o.sudo,h=u(o,["showPagination","maxPages","sudo"]),d=f(t,e,{query:h,sudo:c}),[4,(r=t.requester).get.apply(r,m(d))];case 1:return l=a.sent(),I=l.headers,v=l.body,R={total:I["x-total"],next:I["x-next-page"]||null,current:I["x-page"]||null,previous:I["x-prev-page"]||null,perPage:I["x-per-page"],totalPages:I["x-total-pages"]},U=!p||R.current<p,!n&&h.page||!U||!R.next?[3,3]:[4,y(t,e,i({},o,{page:R.next}),!0)];case 2:return C=a.sent(),[2,m(v,C)];case 3:return[2,(h.page||U)&&s?{data:v,pagination:R}:v]}})})}function I(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){return a(this,function(n){return[2,y(t,e,o)]})})}function v(t,e,o){var n;return void 0===o&&(o={}),(n=t.requester).stream.apply(n,m(f(t,e,{query:o})))}function R(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){var n,r,s;return a(this,function(p){switch(p.label){case 0:return r=o.sudo,s=u(o,["sudo"]),[4,(n=t.requester).post.apply(n,m(f(t,e,{body:s,sudo:r})))];case 1:return[2,p.sent().body]}})})}function U(t,e,o){return c(this,void 0,void 0,function(){var n,r;return a(this,function(s){switch(s.label){case 0:return n={baseUrl:t.url,headers:t.headers,body:o,rejectUnauthorized:t.rejectUnauthorized},[4,t.requester.post(e,n)];case 1:r=s.sent();try{return[2,JSON.parse(r.body)]}catch(t){return[2,{}]}return[2]}})})}function C(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){var n,r;return a(this,function(s){switch(s.label){case 0:return o.sudo,r=u(o,["sudo"]),[4,(n=t.requester).put.apply(n,m(f(t,e,{body:r})))];case 1:return[2,s.sent().body]}})})}function j(t,e,o){return void 0===o&&(o={}),c(this,void 0,void 0,function(){var n,r;return a(this,function(s){switch(s.label){case 0:return o.sudo,r=u(o,["sudo"]),[4,(n=t.requester).delete.apply(n,m(f(t,e,{query:r})))];case 1:return[2,s.sent().body]}})})}var g=function(){return function(t){var e=t.token,n=t.jobToken,r=t.oauthToken,s=t.sudo,p=t.host,i=void 0===p?"https://gitlab.com":p,u=t.url,c=void 0===u?"":u,a=t.version,h=void 0===a?"v4":a,m=t.rejectUnauthorized,d=void 0===m||m,l=t.requester,f=void 0===l?o:l;this.url=[i,"api",h,c].join("/"),this.headers={},this.rejectUnauthorized=d,this.requester=f,r?this.headers.authorization="Bearer "+r:n?this.headers["job-token"]=n:e&&(this.headers["private-token"]=e),s&&(this.headers.Sudo=s)}}(),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return C(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=u(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",i({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}(g),_=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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=h([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=h([t,e].map(encodeURIComponent),2);return j(this,o[0]+"/access_requests/"+o[1])},e}(g);function w(t,e,o,n,r){var s=h([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 q=function(t){function e(e,o){var n=t.call(this,i({url:"projects"},o))||this;return n.resourceType=e,n}return p(e,t),e.prototype.all=function(t,e,o,n){return I(this,w(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return R(this,w(t,this.resourceType,e,null,n),i({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return j(this,w(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return I(this,w(t,this.resourceType,e,o,n),r)},e}(g),k=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return I(this,encodeURIComponent(t)+"/badges/render",i({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/badges/"+n[1],o)},e}(g),P=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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=h([t,e].map(encodeURIComponent),2);return C(this,r[0]+"/custom_attributes/"+r[1],i({value:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/custom_attributes/"+n[1],o)},e}(g),T=function(t){function e(e,o,n){var r=t.call(this,i({url:e},n))||this;return r.resource2Type=o,r}return p(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=h([t,e,o,n].map(encodeURIComponent),4),u=p[0],c=p[1],a=p[2],m=p[3];return C(this,u+"/"+this.resource2Type+"/"+c+"/discussions/"+a+"/notes/"+m,i({body:r},s))},e.prototype.all=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/discussions",i({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=h([t,e,o,n].map(encodeURIComponent),4),p=s[0],i=s[1],u=s[2],c=s[3];return C(this,p+"/"+this.resource2Type+"/"+i+"/discussions/"+u+"/notes/"+c,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=h([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=h([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}(g),S=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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",i({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/boards/"+r[1]+"/lists",i({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=h([t,e,o].map(encodeURIComponent),3);return C(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],i({position:n},r))},e.prototype.lists=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=h([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=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=h([t,e,o].map(encodeURIComponent),3);return I(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(g),A=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/members",i({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return C(this,r[0]+"/members/"+r[1],i({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/members/"+n[1],o)},e}(g),E=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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",i({title:e},o))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/milestones/"+n[1],o)},e}(g),x=function(t){function e(e,o,n){var r=t.call(this,i({url:e},n))||this;return r.resource2Type=o,r}return p(e,t),e.prototype.all=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return R(this,s+"/"+this.resource2Type+"/"+p+"/notes",i({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=h([t,e,o].map(encodeURIComponent),3),p=s[0],u=s[1],c=s[2];return C(this,p+"/"+this.resource2Type+"/"+u+"/notes/"+c,i({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=h([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=h([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}(g),M=function(t){function e(e,o){return t.call(this,i({url:["templates",e].join("/")},o))||this}return p(e,t),e.prototype.all=function(t){return I(this,"",t)},e.prototype.show=function(t,e){return R(this,""+encodeURIComponent(t),e)},e}(g),G=function(t){function e(e,o){return t.call(this,i({url:e},o))||this}return p(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=h([t,e].map(encodeURIComponent),2);return C(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,n[0]+"/variables/"+n[1],o)},e}(g),O=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(_),L=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(k),D=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(P),B=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(S),N=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(A),F=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(E),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(g),K=function(t){function e(e){return t.call(this,"groups",e)||this}return p(e,t),e}(G),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({title:e},o))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(g),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=h([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=h([t,e,o].map(encodeURIComponent),3);return C(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=h([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=h([t,e,o].map(encodeURIComponent),3);return j(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(g),H=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return p(e,t),e}(x),W=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return p(e,t),e}(T),Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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 C(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",i({email:t,password:e},o))},e.prototype.search=function(t,e){return I(this,"users",i({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}(g),Z=function(t){function e(e){return t.call(this,"users",e)||this}return p(e,t),e}(P),$=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return I(this,$(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]);return R(this,$(o),i({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=u(e,["userId"]),r=encodeURIComponent(t);return j(this,$(o)+"/"+r,n)},e}(g),X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(g),tt=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return I(this,tt(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=u(o,["userId"]);return R(this,tt(n),i({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=u(e,["userId"]),r=encodeURIComponent(t);return j(this,tt(o)+"/"+r,n)},e}(g),ot=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=u(t,["userId"]);return I(this,ot(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=u(o,["userId"]);return R(this,ot(n),i({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return I(this,ot(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=u(e,["userId"]),r=encodeURIComponent(t);return j(this,ot(o)+"/"+r,n)},e}(g),rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/protected_branches",i({name:e},o))},e.prototype.remove=function(t,e,o){var n=h([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=h([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=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(g),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({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",i({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",i({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}(g),pt=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return p(e,t),e}(T),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(g),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([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=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(g),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(g),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",i({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",i({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=u(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=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2),p=s[0],u=s[1],c=h([o,n].map(encodeURIComponent),2),a=c[0],m=c[1];return R(this,"projects/"+p+"/issues/"+u+"/links",i({targetProjectId:a,targetIssueId:m},r))},e.prototype.participants=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=h([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=h([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=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=h([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=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(g),ht=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return p(e,t),e}(x),mt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return p(e,t),e}(T),dt=function(t){function e(e){return t.call(this,"issues",e)||this}return p(e,t),e}(q),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([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=u(n,["stream"]),i=h([t,e].map(encodeURIComponent),2),c=i[0],a=i[1];return s?v(this,"projects/"+c+"/jobs/"+a+"/artifacts/"+o,p):I(this,"projects/"+c+"/jobs/"+a+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=u(n,["stream"]),i=h([t,e,o].map(encodeURIComponent),3),c=i[0],a=i[1],m=i[2];return s?v(this,"projects/"+c+"/jobs/artifacts/"+a+"/download?job="+m,p):I(this,"projects/"+c+"/jobs/artifacts/"+a+"/download?job="+m,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=h([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=h([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=h([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=h([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=h([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=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(g),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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 C(this,"projects/"+encodeURIComponent(t)+"/labels",i({name:e},o))},e.prototype.remove=function(t,e,o){return j(this,"projects/"+encodeURIComponent(t)+"/labels",i({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(g),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.accept=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/add_spent_time",i({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/time_estimate",i({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=u(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=h([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=u(e,["mergerequestIId"]),r=h([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=u(n,["mergerequestIId"]),p=h([t,r].map(encodeURIComponent),2),c=p[0],a=p[1];return C(this,r?"projects/"+c+"/merge_requests/"+a+"/approvers":"projects/"+c+"/approvers",i({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=h([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=h([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=h([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",i({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=u(e,["mergerequestIId"]),r=h([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.participants=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/participants",o)},e.prototype.pipelines=function(t,e,o){var n=h([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=h([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=h([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=h([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=h([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=h([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=h([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=h([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=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(g),It=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return p(e,t),e}(q),vt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return p(e,t),e}(T),Rt=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return p(e,t),e}(x),Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({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}(g),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([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=h([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=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(g),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=h([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=h([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=h([t,e,o].map(encodeURIComponent),3);return C(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=h([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=h([t,e,o].map(encodeURIComponent),3);return j(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(g),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=u(t,["userId"]);return R(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return C(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.removeFork=function(t){return j(this,"projects/"+encodeURIComponent(t)+"/fork")},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",i({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,i({state:o},n))},e.prototype.transfer=function(t,e){return C(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=h([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 C(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o){void 0===o&&(o={});var s=encodeURIComponent(t),p=new n,i={filename:r.generate(8),contentType:"application/octet-stream"};return p.append("file",e,Object.assign(i,o)),U(this,"projects/"+s+"/uploads",p)},e}(g),bt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(_),_t=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(k),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(P),qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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){var o=new n;return o.append("file",t,{filename:e,contentType:"application/octet-stream"}),U(this,"projects/import",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}(g),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(S),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([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",i({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+r[0]+"/hooks/"+r[1],i({url:o},n))},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(g),Tt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(A),St=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(E),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([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",i({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(g),Et=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return p(e,t),e}(x),xt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return p(e,t),e}(T),Mt=function(t){function e(e){return t.call(this,"issues",e)||this}return p(e,t),e}(q),Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({name:e},o))},e.prototype.show=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(g),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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",i({name:e},o))},e.prototype.show=function(t,e,o){var n=h([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=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(g),Lt=function(t){function e(e){return t.call(this,"projects",e)||this}return p(e,t),e}(G),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.compare=function(t,e,o,n){return I(this,"projects/"+encodeURIComponent(t)+"/repository/compare",i({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}(g),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.create=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],i({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+s[0]+"/repository/files/"+s[1],i({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+r[0]+"/repository/files/"+r[1],i({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1],i({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",i({ref:o},n))},e}(g),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){var e=t.projectId,o=u(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 C(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return R(this,"projects/"+r+"/runners",i({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=h([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}(g),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.edit=function(t,e,o){return C(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}(g),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([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=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(g),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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,u(t,["todoId"]))},e}(g),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=h([t,e].map(encodeURIComponent),2);return C(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return j(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=h([t,e].map(encodeURIComponent),2);return I(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.pipeline=function(t,e){if(!e.ref)throw new Error("Missing required property: ref");if(!e.token)throw new Error("Missing required property: token");return R(this,"projects/"+encodeURIComponent(t)+"/trigger/pipeline",e)},e}(g),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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=u(e,["upsert"]),n=encodeURIComponent(t);try{return C(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}(g),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"application/settings",t)},e.prototype.edit=function(t){return C(this,"application/settings",t)},e}(g),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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 C(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}(g),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"events",t)},e}(g),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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}(g),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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 C(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}(g),Qt=function(t){function e(e){return t.call(this,"gitignores",e)||this}return p(e,t),e}(M),Xt=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return p(e,t),e}(M),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.show=function(t,e){return I(this,"keys/"+encodeURIComponent(t),e)},e}(g),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,"licence",t)},e.prototype.create=function(t){return R(this,"licence",t)},e}(g),oe=function(t){function e(e){return t.call(this,"licences",e)||this}return p(e,t),e}(M),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.lint=function(t,e){return R(this,"ci/lint",i({content:t},e))},e}(g),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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}(g),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=u(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){var e=t.projectId,o=t.groupId,n=u(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),C(this,r+"notification_settings",n)},e}(g),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e){return R(this,"markdown",i({text:t},e))},e}(g),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=u(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",i({domain:e},o))},e.prototype.edit=function(t,e,o){return C(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}(g),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=u(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),I(this,p+"search",i({scope:t,search:e},s))},e}(g),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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}(g),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.all=function(t){return I(this,t.public?"snippets/public":"snippets",u(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",i({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return C(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}(g),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.add=function(t,e){return R(this,"hooks",i({url:t},e))},e.prototype.all=function(t){return I(this,"hooks",t)},e.prototype.edit=function(t,e,o){return C(this,"hooks/"+encodeURIComponent(t),i({url:e},o))},e.prototype.remove=function(t,e){return j(this,"hooks/"+encodeURIComponent(t),e)},e}(g),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.show=function(t){return I(this,"version",t)},e}(g),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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 C(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}(g),le=Object.freeze({Groups:b,GroupAccessRequests:O,GroupBadges:L,GroupCustomAttributes:D,GroupIssueBoards:B,GroupMembers:N,GroupMilestones:F,GroupProjects:z,GroupVariables:K,Epics:V,EpicIssues:J,EpicNotes:H,EpicDiscussions:W,Users:Y,UserCustomAttributes:Z,UserEmails:Q,UserImpersonationTokens:X,UserKeys:et,UserGPGKeys:nt,Branches:rt,Commits:st,CommitDiscussions:pt,Deployments:it,DeployKeys:ut,Environments:ct,Issues:at,IssueNotes:ht,IssueDiscussions:mt,IssueAwardEmojis:dt,Jobs:lt,Labels:ft,MergeRequests:yt,MergeRequestAwardEmojis:It,MergeRequestDiscussions:vt,MergeRequestNotes:Rt,Pipelines:Ut,PipelineSchedules:Ct,PipelineScheduleVariables:jt,Projects:gt,ProjectAccessRequests:bt,ProjectBadges:_t,ProjectCustomAttributes:wt,ProjectImportExport:qt,ProjectIssueBoards:kt,ProjectHooks:Pt,ProjectMembers:Tt,ProjectMilestones:St,ProjectSnippets:At,ProjectSnippetNotes:Et,ProjectSnippetDiscussions:xt,ProjectSnippetAwardEmojis:Mt,ProtectedBranches:Gt,ProtectedTags:Ot,ProjectVariables:Lt,Repositories:Dt,RepositoryFiles:Bt,Runners:Nt,Services:Ft,Tags:zt,Todos:Kt,Triggers:Vt,PushRule:Jt,ApplicationSettings:Ht,BroadcastMessages:Wt,Events:Yt,FeatureFlags:Zt,GeoNodes:$t,GitignoreTemplates:Qt,GitLabCIYMLTemplates:Xt,Keys:te,Licence:ee,LicenceTemplates:oe,Lint:ne,Namespaces:re,NotificationSettings:se,Markdown:pe,PagesDomains:ie,Search:ue,SidekiqMetrics:ce,Snippets:ae,SystemHooks:he,Version:me,Wikis:de}),fe=d({Groups:b,GroupAccessRequests:O,GroupBadges:L,GroupCustomAttributes:D,GroupIssueBoards:B,GroupMembers:N,GroupMilestones:F,GroupProjects:z,GroupVariables:K,Epics:V,EpicIssues:J,EpicNotes:H,EpicDiscussions:W}),ye=d({Users:Y,UserCustomAttributes:Z,UserEmails:Q,UserImpersonationTokens:X,UserKeys:et,UserGPGKeys:nt}),Ie=d({Branches:rt,Commits:st,CommitDiscussions:pt,DeployKeys:ut,Deployments:it,Environments:ct,Issues:at,IssueAwardEmojis:dt,IssueNotes:ht,IssueDiscussions:mt,Jobs:lt,Labels:ft,MergeRequests:yt,MergeRequestAwardEmojis:It,MergeRequestDiscussions:vt,MergeRequestNotes:Rt,Pipelines:Ut,PipelineSchedules:Ct,PipelineScheduleVariables:jt,Projects:gt,ProjectAccessRequests:bt,ProjectBadges:_t,ProjectCustomAttributes:wt,ProjectImportExport:qt,ProjectIssueBoards:kt,ProjectHooks:Pt,ProjectMembers:Tt,ProjectMilestones:St,ProjectSnippets:At,ProjectSnippetNotes:Et,ProjectSnippetDiscussions:xt,ProjectSnippetAwardEmojis:Mt,ProtectedBranches:Gt,ProtectedTags:Ot,ProjectVariables:Lt,Repositories:Dt,RepositoryFiles:Bt,Runners:Nt,Services:Ft,Tags:zt,Triggers:Vt}),ve=d(le);export{Ht as ApplicationSettings,rt as Branches,Wt as BroadcastMessages,pt as CommitDiscussions,st as Commits,ut as DeployKeys,it as Deployments,ct as Environments,W as EpicDiscussions,J as EpicIssues,H as EpicNotes,V as Epics,Yt as Events,Zt as FeatureFlags,$t as GeoNodes,Xt as GitLabCIYMLTemplates,Qt as GitignoreTemplates,ve as Gitlab,O as GroupAccessRequests,L as GroupBadges,D as GroupCustomAttributes,B as GroupIssueBoards,N as GroupMembers,F as GroupMilestones,z as GroupProjects,K as GroupVariables,b as Groups,fe as GroupsBundle,dt as IssueAwardEmojis,mt as IssueDiscussions,ht as IssueNotes,at as Issues,lt as Jobs,te as Keys,ft as Labels,ee as Licence,oe as LicenceTemplates,ne as Lint,pe as Markdown,It as MergeRequestAwardEmojis,vt as MergeRequestDiscussions,Rt as MergeRequestNotes,yt as MergeRequests,re as Namespaces,se as NotificationSettings,ie as PagesDomains,jt as PipelineScheduleVariables,Ct as PipelineSchedules,Ut as Pipelines,bt as ProjectAccessRequests,_t as ProjectBadges,wt as ProjectCustomAttributes,Pt as ProjectHooks,qt as ProjectImportExport,kt as ProjectIssueBoards,Tt as ProjectMembers,St as ProjectMilestones,Mt as ProjectSnippetAwardEmojis,xt as ProjectSnippetDiscussions,Et as ProjectSnippetNotes,At as ProjectSnippets,Lt as ProjectVariables,gt as Projects,Ie as ProjectsBundle,Gt as ProtectedBranches,Ot as ProtectedTags,Jt as PushRule,Dt as Repositories,Bt as RepositoryFiles,Nt as Runners,ue as Search,Ft as Services,ce as SidekiqMetrics,ae as Snippets,he as SystemHooks,zt as Tags,Kt as Todos,Vt as Triggers,Z as UserCustomAttributes,Q as UserEmails,nt as UserGPGKeys,X as UserImpersonationTokens,et as UserKeys,Y as Users,ye as UsersBundle,me as Version,de as Wikis}; | ||
import{shim as t}from"universal-url";import e from"li";import o from"ky-universal";import{decamelizeKeys as n,camelizeKeys as r}from"humps";import{stringify as s}from"query-string";import p from"form-data";import i from"randomstring";var u=function(t,e){return(u=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 c(t,e){function o(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var a=function(){return(a=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 h(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 m(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 d(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 l(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 f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function y(t,o,n){return void 0===n&&(n={}),m(this,void 0,void 0,function(){var r,s,p,i,u,c,a,m,l,I,v;return d(this,function(d){switch(d.label){case 0:return r=n.showPagination,s=n.maxPages,p=n.sudo,i=h(n,["showPagination","maxPages","sudo"]),[4,t.requester.get(t,o,{query:i,sudo:p})];case 1:return u=d.sent(),c=u.headers,a=u.body,m={total:c["x-total"],next:parseInt(c["x-next-page"],10)||null,current:parseInt(c["x-page"],10)||1,previous:c["x-prev-page"]||null,perPage:c["x-per-page"],totalPages:c["x-total-pages"]},l=!s||m.current<s,!i.page&&l&&m.next?(I=e.parse(c.link).next,[4,y(t,I.replace(/.+\/api\/v\d\//,""),{maxPages:s,sudo:p})]):[3,3];case 2:return v=d.sent(),[2,f(a,v)];case 3:return[2,(i.page||l)&&r?{data:a,pagination:m}:a]}})})}function I(t,e,o){if(void 0===o&&(o={}),"function"!=typeof t.requester.stream)throw new Error("Stream method is not implementated in requester!");return t.requester.stream(t,e,{query:o})}function v(t,e,o){return void 0===o&&(o={}),m(this,void 0,void 0,function(){var n,r;return d(this,function(s){switch(s.label){case 0:return n=o.sudo,r=h(o,["sudo"]),[4,t.requester.post(t,e,{body:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function R(t,e,o){return void 0===o&&(o={}),m(this,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return o.sudo,n=h(o,["sudo"]),[4,t.requester.put(t,e,{body:n})];case 1:return[2,r.sent().body]}})})}function U(t,e,o){return void 0===o&&(o={}),m(this,void 0,void 0,function(){var n,r;return d(this,function(s){switch(s.label){case 0:return n=o.sudo,r=h(o,["sudo"]),[4,t.requester.delete(t,e,{query:r,sudo:n})];case 1:return[2,s.sent().body]}})})}function C(t){return function(e){var o=this;Object.entries(t||{}).forEach(function(t){var n=l(t,2),r=n[0],s=n[1];o[r]=new s(e)})}}function j(t,e,o){return/^[A-Z0-9_]+$/.test(t)?t:e(t,o)}var g={};function b(t,e,o){var r=o.body,p=o.query,i=o.sudo,u=new Headers(t.headers);return i&&u.append("sudo",""+i),[e,{headers:u,searchParams:s(n(p||{}),{arrayFormat:"bracket"}),prefixUrl:t.url,json:"object"==typeof r?n(r,j):r,rejectUnauthorized:t.rejectUnauthorized}]}["get","post","put","delete"].forEach(function(t){g[t]=function(e,n,s){return m(this,void 0,void 0,function(){var p,i,u,c;return d(this,function(a){switch(a.label){case 0:return[4,o[t].apply(o,f(b(e,n,s)))];case 1:return p=a.sent(),i=p.status,u=p.headers,[4,p.json()];case 2:return"object"==typeof(c=a.sent())&&(c=r(c||{})),[2,{body:c,headers:u=u||{},status:i}]}})})}});var _=function(){return function(t){var e=t.token,o=t.jobToken,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,d=t.requester,l=void 0===d?g:d;this.url=[p,"api",a,u].join("/"),this.headers={},this.rejectUnauthorized=m,this.requester=l,n?this.headers.authorization="Bearer "+n:o?this.headers["job-token"]=o:e&&(this.headers["private-token"]=e),r&&(this.headers.Sudo=""+r)}}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"groups",t)},e.prototype.create=function(t){return v(this,"groups",t)},e.prototype.createLDAPLink=function(t,e,o,n,r){return v(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links",a({cn:e,groupAccess:o,provider:n},r))},e.prototype.edit=function(t,e){return R(this,"groups/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return U(this,"groups/"+encodeURIComponent(t),e)},e.prototype.removeLDAPLink=function(t,e,o){void 0===o&&(o={});var n=o.provider,r=h(o,["provider"]);return U(this,"groups/"+encodeURIComponent(t)+"/ldap_group_links/"+(n?n+"/"+e:""+e),r)},e.prototype.search=function(t,e){return y(this,"groups",a({search:t},e))},e.prototype.show=function(t,e){return y(this,"groups/"+encodeURIComponent(t),e)},e.prototype.subgroups=function(t,e){return y(this,"groups/"+encodeURIComponent(t)+"/subgroups",e)},e.prototype.syncLDAP=function(t,e){return v(this,"groups/"+encodeURIComponent(t)+"/ldap_sync",e)},e}(_),q=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.all=function(t){return y(this,encodeURIComponent(t)+"/access_requests")},e.prototype.request=function(t){return v(this,encodeURIComponent(t)+"/access_requests")},e.prototype.approve=function(t,e,o){var n=o.accessLevel,r=l([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/access_requests/"+r[1]+"/approve",{accessLevel:n})},e.prototype.deny=function(t,e){var o=l([t,e].map(encodeURIComponent),2);return U(this,o[0]+"/access_requests/"+o[1])},e}(_);function k(t,e,o,n,r){var s=l([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 P=function(t){function e(e,o){var n=t.call(this,a({url:"projects"},o))||this;return n.resourceType=e,n}return c(e,t),e.prototype.all=function(t,e,o,n){return y(this,k(t,this.resourceType,e,null,o),n)},e.prototype.award=function(t,e,o,n,r){return v(this,k(t,this.resourceType,e,null,n),a({name:o},r))},e.prototype.remove=function(t,e,o,n,r){return U(this,k(t,this.resourceType,e,o,n),r)},e.prototype.show=function(t,e,o,n,r){return y(this,k(t,this.resourceType,e,o,n),r)},e}(_),T=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.add=function(t,e){return v(this,encodeURIComponent(t)+"/badges",e)},e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/badges",e)},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/badges/"+n[1],o)},e.prototype.preview=function(t,e,o,n){return y(this,encodeURIComponent(t)+"/badges/render",a({linkUrl:e,imageUrl:o},n))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/badges/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/badges/"+n[1],o)},e}(_),S=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/custom_attributes",e)},e.prototype.set=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/custom_attributes/"+r[1],a({value:o},n))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/custom_attributes/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/custom_attributes/"+n[1],o)},e}(_),A=function(t){function e(e,o,n){var r=t.call(this,a({url:e},n))||this;return r.resource2Type=o,r}return c(e,t),e.prototype.addNote=function(t,e,o,n,r,s){if(!r)throw new Error("Missing required content argument");var p=l([t,e,o,n].map(encodeURIComponent),4),i=p[0],u=p[1],c=p[2],h=p[3];return R(this,i+"/"+this.resource2Type+"/"+u+"/discussions/"+c+"/notes/"+h,a({body:r},s))},e.prototype.all=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return y(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=l([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/discussions",a({body:o},n))},e.prototype.editNote=function(t,e,o,n,r){var s=l([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,{body:r})},e.prototype.removeNote=function(t,e,o,n,r){var s=l([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,r)},e.prototype.show=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return y(this,s+"/"+this.resource2Type+"/"+p+"/discussions/"+i,n)},e}(_),E=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/boards",e)},e.prototype.create=function(t,e,o){return v(this,encodeURIComponent(t)+"/boards",a({name:e},o))},e.prototype.createList=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,r[0]+"/boards/"+r[1]+"/lists",a({labelId:o},n))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/boards/"+n[1],o)},e.prototype.editList=function(t,e,o,n,r){var s=l([t,e,o].map(encodeURIComponent),3);return R(this,s[0]+"/boards/"+s[1]+"/lists/"+s[2],a({position:n},r))},e.prototype.lists=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1]+"/lists",o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/boards/"+n[1],o)},e.prototype.removeList=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return U(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/boards/"+n[1],o)},e.prototype.showList=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return y(this,r[0]+"/boards/"+r[1]+"/lists/"+r[2],n)},e}(_),x=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.all=function(t,e,o){void 0===e&&(e=!1);var n=[encodeURIComponent(t),"members"];return e&&n.push("all"),y(this,n.join("/"),{options:o})},e.prototype.add=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/members",a({userId:p,accessLevel:o},n))},e.prototype.edit=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return R(this,r[0]+"/members/"+r[1],a({accessLevel:o},n))},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/members/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/members/"+n[1],o)},e}(_),M=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/milestones",e)},e.prototype.create=function(t,e,o){return v(this,encodeURIComponent(t)+"/milestones",a({title:e},o))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/milestones/"+n[1],o)},e.prototype.issues=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/issues",o)},e.prototype.mergeRequests=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1]+"/merge_requests",o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/milestones/"+n[1],o)},e}(_),G=function(t){function e(e,o,n){var r=t.call(this,a({url:e},n))||this;return r.resource2Type=o,r}return c(e,t),e.prototype.all=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return y(this,r+"/"+this.resource2Type+"/"+s+"/notes",o)},e.prototype.create=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,s+"/"+this.resource2Type+"/"+p+"/notes",a({body:o},n))},e.prototype.edit=function(t,e,o,n,r){var s=l([t,e,o].map(encodeURIComponent),3),p=s[0],i=s[1],u=s[2];return R(this,p+"/"+this.resource2Type+"/"+i+"/notes/"+u,a({body:n},r))},e.prototype.remove=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return U(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e.prototype.show=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3),s=r[0],p=r[1],i=r[2];return y(this,s+"/"+this.resource2Type+"/"+p+"/notes/"+i,n)},e}(_),L=function(t){function e(e,o){return t.call(this,a({url:["templates",e].join("/")},o))||this}return c(e,t),e.prototype.all=function(t){return y(this,"",t)},e.prototype.show=function(t,e){return v(this,""+encodeURIComponent(t),e)},e}(_),O=function(t){function e(e,o){return t.call(this,a({url:e},o))||this}return c(e,t),e.prototype.all=function(t,e){return y(this,encodeURIComponent(t)+"/variables",e)},e.prototype.create=function(t,e){return v(this,encodeURIComponent(t)+"/variables",e)},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,n[0]+"/variables/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,n[0]+"/variables/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,n[0]+"/variables/"+n[1],o)},e}(_),D=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(q),B=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(T),N=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(S),F=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(E),K=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(x),V=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(M),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"groups/"+encodeURIComponent(t)+"/projects",e)},e.prototype.add=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"groups/"+n[0]+"/projects/"+n[1],o)},e}(_),H=function(t){function e(e){return t.call(this,"groups",e)||this}return c(e,t),e}(O),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"groups/"+encodeURIComponent(t)+"/epics",e)},e.prototype.create=function(t,e,o){return v(this,"groups/"+encodeURIComponent(t)+"/epics",a({title:e},o))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"groups/"+n[0]+"/epics/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1],o)},e}(_),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"groups/"+n[0]+"/epics/"+n[1]+"/issues",o)},e.prototype.assign=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return R(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.edit=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return U(this,"groups/"+r[0]+"/epics/"+r[1]+"/issues/"+r[2],n)},e}(_),Y=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return c(e,t),e}(G),Z=function(t){function e(e){return t.call(this,"groups","epics",e)||this}return c(e,t),e}(A),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"users",t)},e.prototype.activities=function(t){return y(this,"users/activities",t)},e.prototype.projects=function(t,e){return y(this,"users/"+encodeURIComponent(t)+"/projects",e)},e.prototype.block=function(t,e){return v(this,"users/"+encodeURIComponent(t)+"/block",e)},e.prototype.create=function(t){return v(this,"users",t)},e.prototype.current=function(t){return y(this,"user",t)},e.prototype.edit=function(t,e){return R(this,"users/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return y(this,"users/"+encodeURIComponent(t)+"/events",e)},e.prototype.session=function(t,e,o){return v(this,"session",a({email:t,password:e},o))},e.prototype.search=function(t,e){return y(this,"users",a({search:t},e))},e.prototype.show=function(t,e){return y(this,"users/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return U(this,"users/"+encodeURIComponent(t),e)},e.prototype.unblock=function(t,e){return v(this,"users/"+encodeURIComponent(t)+"/unblock",e)},e}(_),Q=function(t){function e(e){return t.call(this,"users",e)||this}return c(e,t),e}(S),X=function(t){return t?"users/"+encodeURIComponent(t)+"/emails":"user/emails"},tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=h(t,["userId"]);return y(this,X(e),o)},e.prototype.add=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]);return v(this,X(o),a({email:t},n))},e.prototype.show=function(t,e){return y(this,"user/emails/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]),r=encodeURIComponent(t);return U(this,X(o)+"/"+r,n)},e}(_),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",e)},e.prototype.add=function(t,e,o,n,r){return v(this,"users/"+encodeURIComponent(t)+"/impersonation_tokens",a({name:e,expiresAt:n,scopes:o},r))},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e.prototype.revoke=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"users/"+n[0]+"/impersonation_tokens/"+n[1],o)},e}(_),ot=function(t){return t?"users/"+encodeURIComponent(t)+"/keys":"user/keys"},nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=h(t,["userId"]);return y(this,ot(e),o)},e.prototype.create=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=h(o,["userId"]);return v(this,ot(n),a({title:t,key:e},r))},e.prototype.show=function(t,e){return y(this,"user/keys/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]),r=encodeURIComponent(t);return U(this,ot(o)+"/"+r,n)},e}(_),rt=function(t){return t?"users/"+encodeURIComponent(t)+"/gpg_keys":"users/gpg_keys"},st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.userId,o=h(t,["userId"]);return y(this,rt(e),o)},e.prototype.add=function(t,e,o){void 0===o&&(o={});var n=o.userId,r=h(o,["userId"]);return v(this,rt(n),a({title:t,key:e},r))},e.prototype.show=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]),r=encodeURIComponent(t);return y(this,rt(o)+"/"+r,n)},e.prototype.remove=function(t,e){void 0===e&&(e={});var o=e.userId,n=h(e,["userId"]),r=encodeURIComponent(t);return U(this,rt(o)+"/"+r,n)},e}(_),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/branches",e)},e.prototype.create=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/repository/branches",a({branch:e,ref:o},n))},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_branches",a({name:e},o))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/repository/branches/"+n[1]+"/unprotect",o)},e}(_),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits",e)},e.prototype.cherryPick=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/cherry_pick",a({branch:o},n))},e.prototype.comments=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",o)},e.prototype.create=function(t,e,o,n,r){return void 0===n&&(n=[]),v(this,"projects/"+encodeURIComponent(t)+"/repository/commits",a({branch:e,commitMessage:o,actions:n},r))},e.prototype.createComment=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/comments",a({note:o},n))},e.prototype.diff=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/diff",o)},e.prototype.editStatus=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,o)},e.prototype.references=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/refs",o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e,o)},e.prototype.status=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/statuses",o)},e.prototype.mergeRequests=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/commits/"+e+"/merge_requests")},e}(_),ut=function(t){function e(e){return t.call(this,"projects","commits",e)||this}return c(e,t),e}(A),ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/deployments",e)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deployments/"+n[1],o)},e}(_),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.add=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/deploy_keys",e)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/deploy_keys/"+n[1],o)},e.prototype.enable=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/deploy_keys/"+n[1]+"/enable",o)},e}(_),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/environments",e)},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/environments/"+n[1],o)},e.prototype.stop=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/environments/"+n[1]+"/stop",o)},e}(_),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.addSpentTime=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/add_spent_time",a({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/issues/"+r[1]+"/time_estimate",a({duration:o},n))},e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=h(t,["projectId"]);return y(this,e?"projects/"+encodeURIComponent(e)+"/issues":"issues",o)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/issues",e)},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.link=function(t,e,o,n,r){var s=l([t,e].map(encodeURIComponent),2),p=s[0],i=s[1],u=l([o,n].map(encodeURIComponent),2),c=u[0],h=u[1];return v(this,"projects/"+p+"/issues/"+i+"/links",a({targetProjectId:c,targetIssueId:h},r))},e.prototype.participants=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1]+"/participants",o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1],o)},e.prototype.subscribe=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.timeStats=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/issues/"+n[1]+"/time_stats",o)},e.prototype.unsubscribe=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(_),dt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return c(e,t),e}(G),lt=function(t){function e(e){return t.call(this,"projects","issues",e)||this}return c(e,t),e}(A),ft=function(t){function e(e){return t.call(this,"issues",e)||this}return c(e,t),e}(P),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.cancel=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(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=h(n,["stream"]),i=l([t,e].map(encodeURIComponent),2),u=i[0],c=i[1];return s?I(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p):y(this,"projects/"+u+"/jobs/"+c+"/artifacts/"+o,p)},e.prototype.downloadLatestArtifactFile=function(t,e,o,n){var r=n.stream,s=void 0!==r&&r,p=h(n,["stream"]),i=l([t,e,o].map(encodeURIComponent),3),u=i[0],c=i[1],a=i[2];return s?I(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p):y(this,"projects/"+u+"/jobs/artifacts/"+c+"/download?job="+a,p)},e.prototype.downloadTraceFile=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1]+"/trace",o)},e.prototype.erase=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/erase",o)},e.prototype.eraseArtifacts=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts",o)},e.prototype.keepArtifacts=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/artifacts/keep",o)},e.prototype.play=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/play",o)},e.prototype.retry=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/jobs/"+n[1]+"/retry",o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/jobs/"+n[1],o)},e.prototype.showPipelineJobs=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipelines/"+n[1]+"/jobs",o)},e}(_),It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/labels",e)},e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/labels",a({name:e},o))},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/labels",a({name:e},o))},e.prototype.subscribe=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/issues/"+n[1]+"/subscribe",o)},e.prototype.unsubscribe=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/issues/"+n[1]+"/unsubscribe",o)},e}(_),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.accept=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/merge",o)},e.prototype.addSpentTime=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/add_spent_time",a({duration:o},n))},e.prototype.addTimeEstimate=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/time_estimate",a({duration:o},n))},e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=h(t,["projectId","groupId"]);return y(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=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.approvals=function(t,e){var o=e.mergerequestIId,n=h(e,["mergerequestIId"]),r=l([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return y(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=h(n,["mergerequestIId"]),p=l([t,r].map(encodeURIComponent),2),i=p[0],u=p[1];return R(this,r?"projects/"+i+"/merge_requests/"+u+"/approvers":"projects/"+i+"/approvers",a({approverIds:e,approverGroupIds:o},s))},e.prototype.cancelOnPipelineSucess=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/cancel_merge_when_pipeline_succeeds",o)},e.prototype.changes=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/changes",o)},e.prototype.closesIssues=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/closes_issues",o)},e.prototype.commits=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/commits",o)},e.prototype.create=function(t,e,o,n,r){var s=encodeURIComponent(t);return v(this,"projects/"+s+"/merge_requests",a({id:s,sourceBranch:e,targetBranch:o,title:n},r))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.editApprovals=function(t,e){var o=e.mergerequestIId,n=h(e,["mergerequestIId"]),r=l([t,o].map(encodeURIComponent),2),s=r[0],p=r[1];return v(this,o?"projects/"+s+"/merge_requests/"+p+"/approvals":"projects/"+s+"/approvals",n)},e.prototype.participants=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/participants",o)},e.prototype.pipelines=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/pipelines",o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.resetSpentTime=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_spent_time",o)},e.prototype.resetTimeEstimate=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/reset_time_estimate",o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1],o)},e.prototype.timeStats=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/time_stats",o)},e.prototype.version=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/merge_requests/"+r[1]+"/versions/"+r[2],n)},e.prototype.versions=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/versions",o)},e.prototype.unapprove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/approve",o)},e.prototype.unsubscribe=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/merge_requests/"+n[1]+"/unsubscribe",o)},e}(_),Rt=function(t){function e(e){return t.call(this,"merge_requests",e)||this}return c(e,t),e}(P),Ut=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return c(e,t),e}(A),Ct=function(t){function e(e){return t.call(this,"projects","merge_requests",e)||this}return c(e,t),e}(G),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/pipelines",e)},e.prototype.create=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pipeline",a({ref:e},o))},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e,o)},e.prototype.retry=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/retry",o)},e.prototype.cancel=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/cancel",o)},e.prototype.showJobs=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/pipelines/"+e+"/jobs",o)},e}(_),gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",e)},e.prototype.create=function(t,e,o,n,r){return v(this,"projects/"+encodeURIComponent(t)+"/pipeline_schedules",a({description:e,ref:o,cron:n},r))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1],o)},e.prototype.takeOwnership=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/take_ownership",o)},e}(_),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.create=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+n[0]+"/pipeline_schedules/"+n[1]+"/variables",o)},e.prototype.edit=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return R(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.show=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return y(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e.prototype.remove=function(t,e,o,n){var r=l([t,e,o].map(encodeURIComponent),3);return U(this,"projects/"+r[0]+"/pipeline_schedules/"+r[1]+"/variables/"+r[2],n)},e}(_),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"projects",t)},e.prototype.archive=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/archive",e)},e.prototype.create=function(t){var e=t.userId,o=h(t,["userId"]);return v(this,e?"projects/user/"+encodeURIComponent(e):"projects",o)},e.prototype.edit=function(t,e){return R(this,"projects/"+encodeURIComponent(t),e)},e.prototype.events=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/events",e)},e.prototype.fork=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/fork",e)},e.prototype.forks=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/forks",e)},e.prototype.languages=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/languages",e)},e.prototype.mirrorPull=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/mirror/pull",e)},e.prototype.remove=function(t,e){return U(this,"projects/"+encodeURIComponent(t),e)},e.prototype.removeFork=function(t){return U(this,"projects/"+encodeURIComponent(t)+"/fork")},e.prototype.search=function(t){return y(this,"projects",{search:t})},e.prototype.share=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/share",a({groupId:e,groupAccess:o},n))},e.prototype.show=function(t,e){return y(this,"projects/"+encodeURIComponent(t),e)},e.prototype.star=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/star",e)},e.prototype.statuses=function(t,e,o,n){return v(this,"projects/"+encodeURIComponent(t)+"/statuses/"+e,a({state:o},n))},e.prototype.transfer=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/transfer",{namespace:e})},e.prototype.unarchive=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/unarchive",e)},e.prototype.unshare=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/share/"+n[1],o)},e.prototype.unstar=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/unstar",e)},e.prototype.updatePushRule=function(t,e){return R(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.upload=function(t,e,o,n){void 0===o&&(o={});var r=encodeURIComponent(t),s=new p,u={filename:i.generate(8),contentType:"application/octet-stream"};return s.append("file",e,Object.assign(u,o)),v(this,"projects/"+r+"/uploads",a({},n,{form:s}))},e}(_),wt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(q),qt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(T),kt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(S),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.download=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/export/download",e)},e.prototype.exportStatus=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/export",e)},e.prototype.import=function(t,e,o){var n=new p;return n.append("file",t,{filename:e,contentType:"application/octet-stream"}),v(this,"projects/import",a({},o,{form:n}))},e.prototype.importStatus=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/import",e)},e.prototype.schedule=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/export",e)},e}(_),Tt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(E),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/hooks",e)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e.prototype.add=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/hooks",a({url:e},o))},e.prototype.edit=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+r[0]+"/hooks/"+r[1],a({url:o},n))},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/hooks/"+n[1],o)},e}(_),At=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(x),Et=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(M),xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/snippets",e)},e.prototype.content=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/raw",o)},e.prototype.create=function(t,e,o,n,r,s){return v(this,"projects/"+encodeURIComponent(t)+"/snippets",a({title:e,fileName:o,code:n,visibility:r},s))},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1],o)},e.prototype.userAgentDetails=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/snippets/"+n[1]+"/user_agent_detail",o)},e}(_),Mt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return c(e,t),e}(G),Gt=function(t){function e(e){return t.call(this,"projects","snippets",e)||this}return c(e,t),e}(A),Lt=function(t){function e(e){return t.call(this,"issues",e)||this}return c(e,t),e}(P),Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/protected_branches",e)},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_branches",a({name:e},o))},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_branches/"+n[1],o)},e}(_),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/protected_tags",e)},e.prototype.protect=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/protected_tags",a({name:e},o))},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e.prototype.unprotect=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/protected_tags/"+n[1],o)},e}(_),Bt=function(t){function e(e){return t.call(this,"projects",e)||this}return c(e,t),e}(O),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.compare=function(t,e,o,n){return y(this,"projects/"+encodeURIComponent(t)+"/repository/compare",a({from:e,to:o},n))},e.prototype.contributors=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/contributors",e)},e.prototype.showArchive=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/archive",e)},e.prototype.showBlob=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e,o)},e.prototype.showBlobRaw=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/repository/blobs/"+e+"/raw",o)},e.prototype.tree=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/tree",e)},e}(_),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.create=function(t,e,o,n,r){var s=l([t,e].map(encodeURIComponent),2);return v(this,"projects/"+s[0]+"/repository/files/"+s[1],a({branch:o,content:n},r))},e.prototype.edit=function(t,e,o,n,r){var s=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+s[0]+"/repository/files/"+s[1],a({branch:o,content:n},r))},e.prototype.remove=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+r[0]+"/repository/files/"+r[1],a({branch:o},n))},e.prototype.show=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1],a({ref:o},n))},e.prototype.showRaw=function(t,e,o,n){var r=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+r[0]+"/repository/files/"+r[1]+"/raw",a({ref:o},n))},e}(_),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){var e=t.projectId,o=h(t,["projectId"]);return y(this,e?"projects/"+encodeURIComponent(e)+"/runners":"runners/all",o)},e.prototype.allOwned=function(t){return y(this,"runners",t)},e.prototype.edit=function(t,e){return R(this,"runners/"+encodeURIComponent(t),e)},e.prototype.enable=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2),r=n[0],s=n[1];return v(this,"projects/"+r+"/runners",a({runnerId:s},o))},e.prototype.disable=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/runners/"+n[1],o)},e.prototype.jobs=function(t,e){return y(this,"runners/"+encodeURIComponent(t)+"/jobs",e)},e.prototype.remove=function(t,e){return U(this,"runners/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return y(this,"runners/"+encodeURIComponent(t),e)},e}(_),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/services/"+e,o)},e}(_),zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/repository/tags",e)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/repository/tags/"+n[1],o)},e}(_),Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"todos",t)},e.prototype.create=function(t,e,o){return v(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),U(this,"todos/"+o,h(t,["todoId"]))},e}(_),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.add=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/triggers",e)},e.prototype.edit=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return R(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.remove=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return U(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.show=function(t,e,o){var n=l([t,e].map(encodeURIComponent),2);return y(this,"projects/"+n[0]+"/triggers/"+n[1],o)},e.prototype.pipeline=function(t,e){if(!e.ref)throw new Error("Missing required property: ref");if(!e.token)throw new Error("Missing required property: token");return v(this,"projects/"+encodeURIComponent(t)+"/trigger/pipeline",e)},e}(_),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.edit=function(t,e){e.upsert;var o=h(e,["upsert"]),n=encodeURIComponent(t);try{return R(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 U(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e.prototype.show=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/push_rule",e)},e}(_),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"application/settings",t)},e.prototype.edit=function(t){return R(this,"application/settings",t)},e}(_),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"broadcast_messages",t)},e.prototype.create=function(t){return v(this,"broadcast_messages",t)},e.prototype.edit=function(t,e){return R(this,"broadcast_messages/"+encodeURIComponent(t),e)},e.prototype.remove=function(t){return U(this,"broadcast_messages/"+encodeURIComponent(t))},e.prototype.show=function(t,e){return y(this,"broadcast_messages/"+encodeURIComponent(t),e)},e}(_),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"events",t)},e}(_),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"features",t)},e.prototype.set=function(t,e){return v(this,"features/"+encodeURIComponent(t),e)},e}(_),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"geo_nodes",t)},e.prototype.create=function(t,e){return v(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.edit=function(t,e){return R(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.failures=function(t){return v(this,"geo_nodes/current/failures",t)},e.prototype.repair=function(t,e){return U(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return y(this,"geo_nodes/"+encodeURIComponent(t),e)},e.prototype.status=function(t,e){return y(this,"geo_nodes/"+encodeURIComponent(t)+"/status",e)},e.prototype.statuses=function(t){return y(this,"geo_nodes/statuses",t)},e}(_),te=function(t){function e(e){return t.call(this,"gitignores",e)||this}return c(e,t),e}(L),ee=function(t){function e(e){return t.call(this,"gitlab_ci_ymls",e)||this}return c(e,t),e}(L),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.show=function(t,e){return y(this,"keys/"+encodeURIComponent(t),e)},e}(_),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"licence",t)},e.prototype.create=function(t){return v(this,"licence",t)},e}(_),re=function(t){function e(e){return t.call(this,"licences",e)||this}return c(e,t),e}(L),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.lint=function(t,e){return v(this,"ci/lint",a({content:t},e))},e}(_),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,"namespaces",t)},e.prototype.show=function(t,e){return y(this,"namespaces/"+encodeURIComponent(t),e)},e}(_),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){var e=t.projectId,o=t.groupId,n=h(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),y(this,r+"notification_settings",n)},e.prototype.edit=function(t){var e=t.projectId,o=t.groupId,n=h(t,["projectId","groupId"]),r="";return e?r+="projects/"+encodeURIComponent(e)+"/":o&&(r+="groups/"+encodeURIComponent(o)+"/"),R(this,r+"notification_settings",n)},e}(_),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.render=function(t,e){return v(this,"markdown",a({text:t},e))},e}(_),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){void 0===t&&(t={});var e=t.projectId,o=h(t,["projectId"]);return y(this,(e?"projects/"+encodeURIComponent(e)+"/":"")+"pages/domains",o)},e.prototype.create=function(t,e,o){return v(this,"projects/"+encodeURIComponent(t)+"/pages/domains",a({domain:e},o))},e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/pages/domains/"+e,o)},e}(_),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e,o){var n=o.projectId,r=o.groupId,s=h(o,["projectId","groupId"]),p="";return n?p+="projects/"+encodeURIComponent(n)+"/":r&&(p+="groups/"+encodeURIComponent(r)+"/"),y(this,p+"search",a({scope:t,search:e},s))},e}(_),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.queueMetrics=function(){return y(this,"sidekiq/queue_metrics")},e.prototype.processMetrics=function(){return y(this,"sidekiq/process_metrics")},e.prototype.jobStats=function(){return y(this,"sidekiq/job_stats")},e.prototype.compoundMetrics=function(){return y(this,"sidekiq/compound_metrics")},e}(_),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t){return y(this,t.public?"snippets/public":"snippets",h(t,["public"]))},e.prototype.content=function(t,e){return y(this,"snippets/"+encodeURIComponent(t)+"/raw",e)},e.prototype.create=function(t,e,o,n,r){return v(this,"snippets",a({title:t,fileName:e,content:o,visibility:n},r))},e.prototype.edit=function(t,e){return R(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.remove=function(t,e){return U(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.show=function(t,e){return y(this,"snippets/"+encodeURIComponent(t),e)},e.prototype.userAgentDetails=function(t,e){return y(this,"snippets/"+encodeURIComponent(t)+"/user_agent_detail",e)},e}(_),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.add=function(t,e){return v(this,"hooks",a({url:t},e))},e.prototype.all=function(t){return y(this,"hooks",t)},e.prototype.edit=function(t,e,o){return R(this,"hooks/"+encodeURIComponent(t),a({url:e},o))},e.prototype.remove=function(t,e){return U(this,"hooks/"+encodeURIComponent(t),e)},e}(_),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.show=function(t){return y(this,"version",t)},e}(_),fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.all=function(t,e){return y(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.create=function(t,e){return v(this,"projects/"+encodeURIComponent(t)+"/wikis",e)},e.prototype.edit=function(t,e,o){return R(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.show=function(t,e,o){return y(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e.prototype.remove=function(t,e,o){return U(this,"projects/"+encodeURIComponent(t)+"/wikis/"+e,o)},e}(_),ye=Object.freeze({Groups:w,GroupAccessRequests:D,GroupBadges:B,GroupCustomAttributes:N,GroupIssueBoards:F,GroupMembers:K,GroupMilestones:V,GroupProjects:z,GroupVariables:H,Epics:J,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Z,Users:$,UserCustomAttributes:Q,UserEmails:tt,UserImpersonationTokens:et,UserKeys:nt,UserGPGKeys:st,Branches:pt,Commits:it,CommitDiscussions:ut,Deployments:ct,DeployKeys:at,Environments:ht,Issues:mt,IssueNotes:dt,IssueDiscussions:lt,IssueAwardEmojis:ft,Jobs:yt,Labels:It,MergeRequests:vt,MergeRequestAwardEmojis:Rt,MergeRequestDiscussions:Ut,MergeRequestNotes:Ct,Pipelines:jt,PipelineSchedules:gt,PipelineScheduleVariables:bt,Projects:_t,ProjectAccessRequests:wt,ProjectBadges:qt,ProjectCustomAttributes:kt,ProjectImportExport:Pt,ProjectIssueBoards:Tt,ProjectHooks:St,ProjectMembers:At,ProjectMilestones:Et,ProjectSnippets:xt,ProjectSnippetNotes:Mt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:Lt,ProtectedBranches:Ot,ProtectedTags:Dt,ProjectVariables:Bt,Repositories:Nt,RepositoryFiles:Ft,Runners:Kt,Services:Vt,Tags:zt,Todos:Ht,Triggers:Jt,PushRule:Wt,ApplicationSettings:Yt,BroadcastMessages:Zt,Events:$t,FeatureFlags:Qt,GeoNodes:Xt,GitignoreTemplates:te,GitLabCIYMLTemplates:ee,Keys:oe,Licence:ne,LicenceTemplates:re,Lint:se,Namespaces:pe,NotificationSettings:ie,Markdown:ue,PagesDomains:ce,Search:ae,SidekiqMetrics:he,Snippets:me,SystemHooks:de,Version:le,Wikis:fe});t();var Ie=C({Groups:w,GroupAccessRequests:D,GroupBadges:B,GroupCustomAttributes:N,GroupIssueBoards:F,GroupMembers:K,GroupMilestones:V,GroupProjects:z,GroupVariables:H,Epics:J,EpicIssues:W,EpicNotes:Y,EpicDiscussions:Z}),ve=C({Users:$,UserCustomAttributes:Q,UserEmails:tt,UserImpersonationTokens:et,UserKeys:nt,UserGPGKeys:st}),Re=C({Branches:pt,Commits:it,CommitDiscussions:ut,DeployKeys:at,Deployments:ct,Environments:ht,Issues:mt,IssueAwardEmojis:ft,IssueNotes:dt,IssueDiscussions:lt,Jobs:yt,Labels:It,MergeRequests:vt,MergeRequestAwardEmojis:Rt,MergeRequestDiscussions:Ut,MergeRequestNotes:Ct,Pipelines:jt,PipelineSchedules:gt,PipelineScheduleVariables:bt,Projects:_t,ProjectAccessRequests:wt,ProjectBadges:qt,ProjectCustomAttributes:kt,ProjectImportExport:Pt,ProjectIssueBoards:Tt,ProjectHooks:St,ProjectMembers:At,ProjectMilestones:Et,ProjectSnippets:xt,ProjectSnippetNotes:Mt,ProjectSnippetDiscussions:Gt,ProjectSnippetAwardEmojis:Lt,ProtectedBranches:Ot,ProtectedTags:Dt,ProjectVariables:Bt,Repositories:Nt,RepositoryFiles:Ft,Runners:Kt,Services:Vt,Tags:zt,Triggers:Jt}),Ue=C(ye);export{Yt as ApplicationSettings,pt as Branches,Zt as BroadcastMessages,ut as CommitDiscussions,it as Commits,at as DeployKeys,ct as Deployments,ht as Environments,Z as EpicDiscussions,W as EpicIssues,Y as EpicNotes,J as Epics,$t as Events,Qt as FeatureFlags,Xt as GeoNodes,ee as GitLabCIYMLTemplates,te as GitignoreTemplates,Ue as Gitlab,D as GroupAccessRequests,B as GroupBadges,N as GroupCustomAttributes,F as GroupIssueBoards,K as GroupMembers,V as GroupMilestones,z as GroupProjects,H as GroupVariables,w as Groups,Ie as GroupsBundle,ft as IssueAwardEmojis,lt as IssueDiscussions,dt as IssueNotes,mt as Issues,yt as Jobs,oe as Keys,It as Labels,ne as Licence,re as LicenceTemplates,se as Lint,ue as Markdown,Rt as MergeRequestAwardEmojis,Ut as MergeRequestDiscussions,Ct as MergeRequestNotes,vt as MergeRequests,pe as Namespaces,ie as NotificationSettings,ce as PagesDomains,bt as PipelineScheduleVariables,gt as PipelineSchedules,jt as Pipelines,wt as ProjectAccessRequests,qt as ProjectBadges,kt as ProjectCustomAttributes,St as ProjectHooks,Pt as ProjectImportExport,Tt as ProjectIssueBoards,At as ProjectMembers,Et as ProjectMilestones,Lt as ProjectSnippetAwardEmojis,Gt as ProjectSnippetDiscussions,Mt as ProjectSnippetNotes,xt as ProjectSnippets,Bt as ProjectVariables,_t as Projects,Re as ProjectsBundle,Ot as ProtectedBranches,Dt as ProtectedTags,Wt as PushRule,Nt as Repositories,Ft as RepositoryFiles,Kt as Runners,ae as Search,Vt as Services,he as SidekiqMetrics,me as Snippets,de as SystemHooks,zt as Tags,Ht as Todos,Jt as Triggers,Q as UserCustomAttributes,tt as UserEmails,st as UserGPGKeys,et as UserImpersonationTokens,nt as UserKeys,$ as Users,ve as UsersBundle,le as Version,fe as Wikis}; |
@@ -1,7 +0,7 @@ | ||
import { BaseServiceOptions } from '../../types/types'; | ||
import { BaseServiceOptions, Requester } from '../../types/types'; | ||
export declare class BaseService { | ||
protected readonly url: string; | ||
protected readonly requester: object; | ||
readonly url: string; | ||
readonly requester: Requester; | ||
readonly headers: { | ||
[header: string]: string | number; | ||
[header: string]: string; | ||
}; | ||
@@ -8,0 +8,0 @@ readonly rejectUnauthorized: boolean; |
import * as RequestHelper from './RequestHelper'; | ||
export { BaseService } from './BaseService'; | ||
export { bundler } from './Utils'; | ||
export { KyRequester } from './KyRequester'; | ||
export { RequestHelper }; |
@@ -1,8 +0,7 @@ | ||
import FormData from 'form-data'; | ||
import { PaginatedRequestOptions, BaseRequestOptions, GetResponse, PostResponse, PutResponse, DelResponse } from '../../types/types'; | ||
export declare function get(service: any, endpoint: string, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
export declare function stream(service: any, endpoint: string, options?: BaseRequestOptions): any; | ||
export declare function post(service: any, endpoint: string, options?: BaseRequestOptions): Promise<PostResponse>; | ||
export declare function postData(service: any, endpoint: string, body: FormData): Promise<PostResponse>; | ||
export declare function put(service: any, endpoint: string, options?: BaseRequestOptions): Promise<PutResponse>; | ||
export declare function del(service: any, endpoint: string, options?: BaseRequestOptions): Promise<DelResponse>; | ||
import { BaseService } from './BaseService'; | ||
export declare function get(service: BaseService, endpoint: string, options?: PaginatedRequestOptions): Promise<GetResponse>; | ||
export declare function stream(service: BaseService, endpoint: string, options?: BaseRequestOptions): any; | ||
export declare function post(service: BaseService, endpoint: string, options?: BaseRequestOptions): Promise<PostResponse>; | ||
export declare function put(service: BaseService, endpoint: string, options?: BaseRequestOptions): Promise<PutResponse>; | ||
export declare function del(service: BaseService, endpoint: string, options?: BaseRequestOptions): Promise<DelResponse>; |
@@ -6,4 +6,4 @@ import { BaseService } from '../infrastructure'; | ||
addTimeEstimate(projectId: ProjectId, issueId: IssueId, duration: string, options?: Sudo): Promise<object>; | ||
all({ projectId, ...options }: { | ||
projectId: ProjectId; | ||
all({ projectId, ...options }?: { | ||
projectId?: ProjectId; | ||
} & PaginatedRequestOptions): Promise<import("../../types/types").GetResponse>; | ||
@@ -10,0 +10,0 @@ create(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; |
@@ -14,2 +14,3 @@ import { BaseService } from '../infrastructure'; | ||
erase(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
eraseArtifacts(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
keepArtifacts(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; | ||
@@ -16,0 +17,0 @@ play(projectId: ProjectId, jobId: JobId, options?: Sudo): Promise<object>; |
@@ -6,3 +6,3 @@ import { BaseService } from '../infrastructure'; | ||
exportStatus(projectId: ProjectId, options?: Sudo): Promise<import("../../types/types").GetResponse>; | ||
import(content: string, path: string): Promise<object>; | ||
import(content: string, path: string, options?: Sudo): Promise<object>; | ||
importStatus(projectId: ProjectId, options?: Sudo): Promise<import("../../types/types").GetResponse>; | ||
@@ -9,0 +9,0 @@ schedule(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; |
@@ -27,4 +27,4 @@ import { BaseService } from '../infrastructure'; | ||
updatePushRule(projectId: ProjectId, options?: BaseRequestOptions): Promise<object>; | ||
upload(projectId: any, content: any, metadata?: ProjectUploadMetadata): Promise<object>; | ||
upload(projectId: any, content: any, metadata?: ProjectUploadMetadata, options?: Sudo): Promise<object>; | ||
} | ||
export default Projects; |
@@ -1,6 +0,5 @@ | ||
The MIT License | ||
=============== | ||
# The MIT License | ||
Copyright (c) | ||
**2018 Justin Dalrymple** | ||
Copyright (c) | ||
**2018 Justin Dalrymple** | ||
@@ -7,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -17,9 +17,6 @@ { | ||
}, | ||
"version": "5.0.0-rc.13", | ||
"version": "5.0.0-rc.14", | ||
"main": "dist/index.js", | ||
"module": "dist/index.es.js", | ||
"browser": { | ||
"dist/index.js": "dist/index.browser.js", | ||
"got": "ky" | ||
}, | ||
"browser": "dist/index.browser.js", | ||
"types": "dist/index.d.ts", | ||
@@ -33,10 +30,10 @@ "files": [ | ||
"commit": "npx git-cz", | ||
"lint": "tslint 'src/**/*.ts' 'test/**/*.ts' -t stylish", | ||
"format": "prettier", | ||
"lint": "tslint -p . -t stylish", | ||
"lint:fix": "npm run lint -- --fix", | ||
"lint:doc:fix": "prettier --write './*.json' './*.yml' './*.md'", | ||
"prepublishOnly": "npm run build", | ||
"prepush": "npm run lint", | ||
"release": "semantic-release", | ||
"test": "jest test/unit --debug --runInBand && codecov", | ||
"test:unit": "jest test/unit", | ||
"test:integration": "jest test/integration" | ||
"coverage": "codecov", | ||
"test:unit": "jest test/unit --debug -c=jest.config.json", | ||
"test:integration": "jest test/integration -c=jest.config.json" | ||
}, | ||
@@ -51,7 +48,10 @@ "config": { | ||
"form-data": "^2.3.3", | ||
"got": "^9.6.0", | ||
"humps": "^2.0.1", | ||
"ky": "^0.9.1", | ||
"query-string": "^6.4.2", | ||
"randomstring": "^1.1.5" | ||
"ky": "^0.10.0", | ||
"ky-universal": "^0.2.0", | ||
"li": "^1.3.0", | ||
"lint-staged": "^8.1.6", | ||
"query-string": "^6.5.0", | ||
"randomstring": "^1.1.5", | ||
"universal-url": "^2.0.0" | ||
}, | ||
@@ -63,22 +63,24 @@ "devDependencies": { | ||
"@types/humps": "^1.1.2", | ||
"@types/jest": "^24.0.11", | ||
"@types/jest": "^24.0.12", | ||
"codecov": "^3.3.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"husky": "^1.3.1", | ||
"jest": "^24.7.1", | ||
"husky": "^2.2.0", | ||
"jest": "^24.8.0", | ||
"jest-extended": "^0.11.1", | ||
"jest-tap-reporter": "^1.9.0", | ||
"prettier": "^1.16.4", | ||
"rollup": "^1.9.3", | ||
"prettier": "^1.17.0", | ||
"rollup": "^1.11.3", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^4.2.2", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-globals": "^1.4.0", | ||
"rollup-plugin-node-resolve": "^4.2.3", | ||
"rollup-plugin-terser": "^4.0.4", | ||
"rollup-plugin-typescript2": "^0.20.1", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"semantic-release": "^15.13.12", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.15.0", | ||
"tslint": "^5.16.0", | ||
"tslint-config-airbnb": "^5.11.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.4.3" | ||
"typescript": "^3.4.5" | ||
}, | ||
@@ -90,3 +92,2 @@ "keywords": [ | ||
"gitlab", | ||
"got", | ||
"ky", | ||
@@ -93,0 +94,0 @@ "browser" |
123
README.md
@@ -17,3 +17,3 @@ [](https://www.npmjs.com/package/gitlab) | ||
🤖 [GitLab](https://github.com/gitlabhq/gitlabhq) API NodeJS library with full support of all the [Gitlab API](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api) services. | ||
🤖 [GitLab](https://github.com/gitlabhq/gitlabhq) API NodeJS library with full support of all the [Gitlab API](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api) services. | ||
@@ -24,10 +24,10 @@ ## Table of Contents | ||
- [Usage](#usage) | ||
- [Supported APIs](#supported-apis) | ||
- [Import](#import) | ||
- [Specific Imports](#specific-imports) | ||
- [Bundle Imports](#bundle-imports) | ||
- [Examples](#examples) | ||
- [Pagination](#pagination) | ||
- [Sudo](#sudo) | ||
- [Custom Request Libraries](#custom-request-libraries) | ||
- [Supported APIs](#supported-apis) | ||
- [Import](#import) | ||
- [Specific Imports](#specific-imports) | ||
- [Bundle Imports](#bundle-imports) | ||
- [Examples](#examples) | ||
- [Pagination](#pagination) | ||
- [Sudo](#sudo) | ||
- [Custom Request Libraries](#custom-request-libraries) | ||
- [Migrating from node-gitlab](#migrating-from-node-gitlabnode-gitlab) | ||
@@ -41,3 +41,2 @@ - [Docs](#docs) | ||
## Install | ||
@@ -51,4 +50,7 @@ | ||
## Usage | ||
### Supported APIs | ||
The API's that are currently supported are: | ||
``` | ||
@@ -67,2 +69,3 @@ // General | ||
Lint | ||
Markdown | ||
Namespaces | ||
@@ -143,2 +146,3 @@ NotificationSettings | ||
``` | ||
### Import | ||
@@ -151,14 +155,13 @@ | ||
```javascript | ||
// ES6 (>=node 10.0.0) | ||
// ES6 (>=node 8.9.0) | ||
import { Gitlab } from 'gitlab'; | ||
// ES5, assuming native or polyfilled Promise is available | ||
const Gitlab = require('gitlab') | ||
const { Gitlab } = require('gitlab'); | ||
// Instantiating | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
}) | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456', // Can be created in your profile. | ||
}); | ||
@@ -168,5 +171,5 @@ // Or, use a OAuth token instead! | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
oauthToken: 'abcdefghij123456' | ||
}) | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
oauthToken: 'abcdefghij123456', | ||
}); | ||
@@ -176,6 +179,5 @@ // You can also use a CI job token: | ||
const api = new Gitlab({ | ||
url: 'http://example.com', // Defaults to https://gitlab.com | ||
jobToken: process.env.CI_JOB_TOKEN | ||
}) | ||
url: 'http://example.com', // Defaults to https://gitlab.com | ||
jobToken: process.env.CI_JOB_TOKEN, | ||
}); | ||
``` | ||
@@ -191,6 +193,5 @@ | ||
const service = new Projects({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
}) | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456', // Can be created in your profile. | ||
}); | ||
``` | ||
@@ -202,3 +203,2 @@ | ||
```javascript | ||
@@ -219,3 +219,5 @@ import { ProjectsBundle } from 'gitlab'; | ||
Currently there are three Bundles: | ||
1. ProjectsBundle which includes: | ||
``` | ||
@@ -267,2 +269,3 @@ Branches | ||
2. UsersBundle which includes: | ||
``` | ||
@@ -278,2 +281,3 @@ Users, | ||
3. GroupsBundle which includes: | ||
``` | ||
@@ -318,2 +322,3 @@ Groups | ||
### Examples | ||
Once you have your library instantiated, you can utilize many of the API's functionality: | ||
@@ -327,4 +332,4 @@ | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456', // Can be created in your profile. | ||
}); | ||
@@ -336,9 +341,9 @@ | ||
// Or using Promise-Then notation | ||
api.Projects.all() | ||
.then((projects) => { | ||
console.log(projects) | ||
}) | ||
api.Projects.all().then(projects => { | ||
console.log(projects); | ||
}); | ||
``` | ||
General rule about all the function parameters: | ||
- If its a required parameter, it is a named argument in the functions | ||
@@ -353,9 +358,9 @@ - If its an optional parameter, it is defined in a options object following the named arguments | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456', // Can be created in your profile. | ||
}); | ||
api.Projects.create(projectId, { | ||
//options defined in the Gitlab API documentation | ||
}) | ||
//options defined in the Gitlab API documentation | ||
}); | ||
``` | ||
@@ -371,8 +376,7 @@ | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456', // Can be created in your profile. | ||
}); | ||
let projects = await api.Projects.all({ maxPages:2 }); | ||
let projects = await api.Projects.all({ maxPages: 2 }); | ||
``` | ||
@@ -386,8 +390,7 @@ | ||
const api = new Gitlab({ | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456' // Can be created in your profile. | ||
host: 'http://example.com', // Defaults to https://gitlab.com | ||
token: 'abcdefghij123456', // Can be created in your profile. | ||
}); | ||
let projects = await api.Projects.all({ maxPages:2, perPage:40 }); | ||
let projects = await api.Projects.all({ maxPages: 2, perPage: 40 }); | ||
``` | ||
@@ -425,5 +428,7 @@ | ||
### Sudo | ||
For private gitlab instances, administrators are able to impersonate users through the API. To do so, you have to set the 'Sudo' header on the services you want to impersonate the user for. | ||
For example, if you want to disable notifications for a specific user: | ||
```javascript | ||
@@ -444,9 +449,12 @@ import { NotificationSettings } from 'gitlab'; | ||
### Custom Request Libraries | ||
There is another constructor parameter that allows the user to specify their own custom request library | ||
as long as it has a similar API to got. To specify the library, simply set the `requester` property when | ||
as long as it has a similar API to ky. To specify the library, simply set the `requester` property when | ||
instatiating a service: | ||
An example can be seen in the [KyRequester.ts](./src/infrastructure/KyRequester.ts) file | ||
```javascript | ||
import { Gitlab } from 'gitlab'; | ||
import YourCustomRequester from 'module'; | ||
import YourCustomRequester from 'custom-requester'; | ||
@@ -461,9 +469,5 @@ const api = new Gitlab({ | ||
## Migrating from node-gitlab/node-gitlab | ||
With the success of this library thanks to the community, this has become the main npm package to interact with the Gitlab API. As such, there will be a little bit of growing pains for those upgrading from the original node-gitlab v1.8 to our newest 3.0.0 release, far too many to list here. I hope the library is written clearly enough to ease this transition, but if there is anything that you're having trouble with please feel free to create an issue! If not myself, someone will definitely have the answer to help get you all setup up as quickly as possible. | ||
## Docs | ||
Although there are the [official docs](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api) for the API, there are some extra goodies offered by this package! After the 3.0.0 release, the next large project will be putting together proper documentation for these goodies [#39]! Stay tuned!! | ||
Although there are the [official docs](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api) for the API, there are some extra goodies offered by this package! After the 3.0.0 release, the next large project will be putting together proper documentation for these goodies [#39]! Stay tuned!! | ||
@@ -481,3 +485,3 @@ ## Development | ||
And then inside whatever project you are using `node-gitlab` in you change your references to use that repo. In your package.json of that upstream project change: | ||
And then inside whatever project you are using `node-gitlab` in you change your references to use that repo. In your package.json of that upstream project change: | ||
@@ -500,3 +504,3 @@ ```json | ||
Testing is a work-in-progress right now but here is the start. | ||
Testing is a work-in-progress right now but here is the start. | ||
@@ -510,7 +514,7 @@ 1. First run Gitlab in a docker container: | ||
1. Once GitLab is up on localhost:8080, get the two environment variables from the docker image could | ||
either export them into environment variables locally: | ||
either export them into environment variables locally: | ||
```bash | ||
export PERSONAL_ACCESS_TOKEN=$(docker exec -it gitlab bash -lc 'printf "%q" "${PERSONAL_ACCESS_TOKEN}"') | ||
export GITLAB_URL=$(docker exec -it gitlab bash -lc 'printf "%q" "${GITLAB_URL}"') | ||
export GITLAB_URL=$(docker exec -it gitlab bash -lc 'printf "%q" "${GITLAB_URL}"') | ||
``` | ||
@@ -535,3 +539,2 @@ | ||
## Contributors | ||
@@ -556,3 +559,3 @@ | ||
- [Jordan Wallet](https://github.com/Mr-Wallet) | ||
- [Ev Haus](https://github.com/EvHaus) | ||
- [Ev Haus](https://github.com/EvHaus) | ||
- [zhao0](https://github.com/zhao0) | ||
@@ -601,3 +604,1 @@ - [Joshua Grosso](https://github.com/jgrosso) | ||
[Here](https://github.com/jdalrymple/node-gitlab/blob/master/CHANGELOG.md) | ||
@@ -0,3 +1,13 @@ | ||
import FormData from 'form-data'; | ||
import { URL, URLSearchParams } from 'universal-url' | ||
declare global { | ||
function encodeURIComponent(uriComponent: string | number | boolean): string; | ||
namespace NodeJS { | ||
interface Global extends NodeJS.Global { | ||
URL: typeof URL, | ||
URLSearchParams: typeof URLSearchParams | ||
} | ||
} | ||
} | ||
@@ -57,2 +67,10 @@ | ||
// Base Service | ||
export interface Requester { | ||
get: Function; | ||
post: Function; | ||
put: Function; | ||
delete: Function; | ||
stream?: Function; | ||
} | ||
export interface BaseServiceOptions extends Sudo { | ||
@@ -66,9 +84,3 @@ oauthToken?: string; | ||
rejectUnauthorized?: boolean; | ||
requester?: { | ||
get: Function; | ||
post: Function; | ||
put: Function; | ||
delete: Function; | ||
stream: Function; | ||
}; | ||
requester?: Requester; | ||
} | ||
@@ -95,3 +107,3 @@ | ||
export interface DefaultRequestOptions extends Sudo { | ||
body?: object; | ||
body?: object | FormData; | ||
query?: object; | ||
@@ -98,0 +110,0 @@ } |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
330564
2138
576
0
10
26
+ Addedky-universal@^0.2.0
+ Addedli@^1.3.0
+ Addedlint-staged@^8.1.6
+ Addeduniversal-url@^2.0.0
+ Added@babel/runtime@7.26.9(transitive)
+ Added@samverschueren/stream-to-observable@0.3.1(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedansi-escapes@3.2.0(transitive)
+ Addedansi-regex@2.1.13.0.1(transitive)
+ Addedansi-styles@2.2.13.2.1(transitive)
+ Addedany-observable@0.3.0(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedarr-diff@4.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedarray-unique@0.3.2(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedatob@2.1.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase@0.11.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@2.3.2(transitive)
+ Addedcache-base@1.0.1(transitive)
+ Addedcaller-callsite@2.0.0(transitive)
+ Addedcaller-path@2.0.0(transitive)
+ Addedcallsites@2.0.0(transitive)
+ Addedchalk@1.1.32.4.2(transitive)
+ Addedclass-utils@0.3.6(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-truncate@0.2.1(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcollection-visit@1.0.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcopy-descriptor@0.1.1(transitive)
+ Addedcosmiconfig@5.2.1(transitive)
+ Addedcross-spawn@6.0.6(transitive)
+ Addeddate-fns@1.30.1(transitive)
+ Addeddebug@2.6.93.2.74.4.0(transitive)
+ Addeddedent@0.7.0(transitive)
+ Addeddefine-property@0.2.51.0.02.0.2(transitive)
+ Addeddel@3.0.0(transitive)
+ Addedelegant-spinner@1.0.1(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedexpand-brackets@2.1.4(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedextglob@2.0.4(transitive)
+ Addedfigures@1.7.02.0.0(transitive)
+ Addedfill-range@4.0.0(transitive)
+ Addedfn-name@2.0.1(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfragment-cache@0.2.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedg-status@2.0.2(transitive)
+ Addedget-own-enumerable-property-symbols@3.0.2(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobby@6.1.0(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhas-value@0.3.11.0.0(transitive)
+ Addedhas-values@0.1.41.0.0(transitive)
+ Addedhasurl@1.0.0(transitive)
+ Addedimport-fresh@2.0.0(transitive)
+ Addedindent-string@3.2.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.71.0.3(transitive)
+ Addedis-directory@0.3.1(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-fullwidth-code-point@1.0.02.0.0(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@3.0.0(transitive)
+ Addedis-obj@1.0.1(transitive)
+ Addedis-observable@1.1.0(transitive)
+ Addedis-path-cwd@1.0.0(transitive)
+ Addedis-path-in-cwd@1.0.1(transitive)
+ Addedis-path-inside@1.0.1(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-promise@2.2.2(transitive)
+ Addedis-regexp@1.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisobject@2.1.03.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedjson-parse-better-errors@1.0.2(transitive)
+ Addedkind-of@3.2.24.0.06.0.3(transitive)
+ Addedky@0.10.0(transitive)
+ Addedky-universal@0.2.2(transitive)
+ Addedli@1.3.0(transitive)
+ Addedlint-staged@8.2.1(transitive)
+ Addedlistr@0.14.3(transitive)
+ Addedlistr-silent-renderer@1.1.1(transitive)
+ Addedlistr-update-renderer@0.5.0(transitive)
+ Addedlistr-verbose-renderer@0.5.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash.sortby@4.7.0(transitive)
+ Addedlog-symbols@1.0.22.2.0(transitive)
+ Addedlog-update@2.3.0(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-visit@1.0.0(transitive)
+ Addedmatcher@1.1.1(transitive)
+ Addedmicromatch@3.1.10(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmixin-deep@1.3.2(transitive)
+ Addedms@2.0.02.1.3(transitive)
+ Addednanomatch@1.2.13(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednpm-path@2.0.4(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addednpm-which@3.0.1(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-copy@0.1.0(transitive)
+ Addedobject-visit@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-map@1.2.02.1.0(transitive)
+ Addedparse-json@4.0.0(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-is-inside@1.0.2(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpify@2.3.03.0.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedplease-upgrade-node@3.2.0(transitive)
+ Addedposix-character-classes@0.1.1(transitive)
+ Addedproperty-expr@1.5.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedregex-not@1.0.2(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-from@3.0.0(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedret@0.1.15(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedrxjs@6.6.7(transitive)
+ Addedsafe-regex@1.1.0(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsemver-compare@1.0.0(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedsimple-git@1.132.0(transitive)
+ Addedslice-ansi@0.0.4(transitive)
+ Addedsnapdragon@0.8.2(transitive)
+ Addedsnapdragon-node@2.1.1(transitive)
+ Addedsnapdragon-util@3.0.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedstaged-git-files@1.1.2(transitive)
+ Addedstatic-extend@0.1.2(transitive)
+ Addedstring-argv@0.0.2(transitive)
+ Addedstring-width@1.0.22.1.1(transitive)
+ Addedstringify-object@3.3.0(transitive)
+ Addedstrip-ansi@3.0.14.0.0(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedsupports-color@2.0.05.5.0(transitive)
+ Addedsymbol-observable@1.2.0(transitive)
+ Addedsynchronous-promise@2.0.17(transitive)
+ Addedto-object-path@0.3.0(transitive)
+ Addedto-regex@3.0.2(transitive)
+ Addedto-regex-range@2.1.1(transitive)
+ Addedtoposort@2.0.2(transitive)
+ Addedtr46@0.0.31.0.1(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addeduniversal-url@2.0.0(transitive)
+ Addedunset-value@1.0.0(transitive)
+ Addedurix@0.1.0(transitive)
+ Addeduse@3.1.1(transitive)
+ Addedwebidl-conversions@3.0.14.0.2(transitive)
+ Addedwhatwg-url@5.0.07.1.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwrap-ansi@3.0.1(transitive)
+ Addedyup@0.27.0(transitive)
- Removedgot@^9.6.0
- Removed@sindresorhus/is@0.14.0(transitive)
- Removed@szmarczak/http-timer@1.1.2(transitive)
- Removedcacheable-request@6.1.0(transitive)
- Removedclone-response@1.0.3(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddefer-to-connect@1.1.3(transitive)
- Removedduplexer3@0.1.5(transitive)
- Removedget-stream@5.2.0(transitive)
- Removedgot@9.6.0(transitive)
- Removedhttp-cache-semantics@4.1.1(transitive)
- Removedjson-buffer@3.0.0(transitive)
- Removedkeyv@3.1.0(transitive)
- Removedky@0.9.1(transitive)
- Removedlowercase-keys@1.0.12.0.0(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removednormalize-url@4.5.1(transitive)
- Removedp-cancelable@1.1.0(transitive)
- Removedprepend-http@2.0.0(transitive)
- Removedresponselike@1.0.2(transitive)
- Removedto-readable-stream@1.0.0(transitive)
- Removedurl-parse-lax@3.0.0(transitive)
Updatedky@^0.10.0
Updatedquery-string@^6.5.0