@gitbeaker/core 34.4.0 → 34.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/dist/index.es.js +3365 -0
  2. package/dist/index.es.js.map +1 -0
  3. package/dist/index.js +3473 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/map.json +1 -0
  6. package/dist/types/index.d.ts +4 -0
  7. package/dist/types/infrastructure/RequestHelper.d.ts +55 -0
  8. package/dist/types/infrastructure/Utils.d.ts +7 -0
  9. package/dist/types/infrastructure/index.d.ts +2 -0
  10. package/dist/types/resources/ApplicationSettings.d.ts +69 -0
  11. package/dist/types/resources/Branches.d.ts +20 -0
  12. package/dist/types/resources/BroadcastMessages.d.ts +21 -0
  13. package/dist/types/resources/CommitDiscussions.d.ts +17 -0
  14. package/dist/types/resources/Commits.d.ts +132 -0
  15. package/dist/types/resources/ContainerRegistry.d.ts +37 -0
  16. package/dist/types/resources/DeployKeys.d.ts +19 -0
  17. package/dist/types/resources/Deployments.d.ts +44 -0
  18. package/dist/types/resources/DockerfileTemplates.d.ts +5 -0
  19. package/dist/types/resources/Environments.d.ts +22 -0
  20. package/dist/types/resources/EpicDiscussions.d.ts +17 -0
  21. package/dist/types/resources/EpicIssues.d.ts +12 -0
  22. package/dist/types/resources/EpicNotes.d.ts +18 -0
  23. package/dist/types/resources/Epics.d.ts +47 -0
  24. package/dist/types/resources/Events.d.ts +29 -0
  25. package/dist/types/resources/FeatureFlags.d.ts +33 -0
  26. package/dist/types/resources/FreezePeriods.d.ts +17 -0
  27. package/dist/types/resources/GeoNodes.d.ts +143 -0
  28. package/dist/types/resources/GitLabCIYMLTemplates.d.ts +5 -0
  29. package/dist/types/resources/GitignoreTemplates.d.ts +5 -0
  30. package/dist/types/resources/Gitlab.d.ts +202 -0
  31. package/dist/types/resources/GroupAccessRequests.d.ts +15 -0
  32. package/dist/types/resources/GroupBadges.d.ts +18 -0
  33. package/dist/types/resources/GroupCustomAttributes.d.ts +13 -0
  34. package/dist/types/resources/GroupDeployTokens.d.ts +14 -0
  35. package/dist/types/resources/GroupIssueBoards.d.ts +23 -0
  36. package/dist/types/resources/GroupLabels.d.ts +15 -0
  37. package/dist/types/resources/GroupMembers.d.ts +14 -0
  38. package/dist/types/resources/GroupMilestones.d.ts +17 -0
  39. package/dist/types/resources/GroupRunners.d.ts +6 -0
  40. package/dist/types/resources/GroupVariables.d.ts +14 -0
  41. package/dist/types/resources/Groups.d.ts +67 -0
  42. package/dist/types/resources/IssueAwardEmojis.d.ts +13 -0
  43. package/dist/types/resources/IssueDiscussions.d.ts +17 -0
  44. package/dist/types/resources/IssueNoteAwardEmojis.d.ts +13 -0
  45. package/dist/types/resources/IssueNotes.d.ts +22 -0
  46. package/dist/types/resources/Issues.d.ts +109 -0
  47. package/dist/types/resources/IssuesStatistics.d.ts +17 -0
  48. package/dist/types/resources/Jobs.d.ts +84 -0
  49. package/dist/types/resources/Keys.d.ts +14 -0
  50. package/dist/types/resources/Labels.d.ts +15 -0
  51. package/dist/types/resources/License.d.ts +28 -0
  52. package/dist/types/resources/LicenseTemplates.d.ts +23 -0
  53. package/dist/types/resources/Lint.d.ts +10 -0
  54. package/dist/types/resources/Markdown.d.ts +11 -0
  55. package/dist/types/resources/MergeRequestApprovals.d.ts +98 -0
  56. package/dist/types/resources/MergeRequestAwardEmojis.d.ts +13 -0
  57. package/dist/types/resources/MergeRequestDiscussions.d.ts +19 -0
  58. package/dist/types/resources/MergeRequestNotes.d.ts +22 -0
  59. package/dist/types/resources/MergeRequests.d.ts +191 -0
  60. package/dist/types/resources/Namespaces.d.ts +22 -0
  61. package/dist/types/resources/NotificationSettings.d.ts +21 -0
  62. package/dist/types/resources/PackageRegistry.d.ts +14 -0
  63. package/dist/types/resources/Packages.d.ts +30 -0
  64. package/dist/types/resources/PagesDomains.d.ts +21 -0
  65. package/dist/types/resources/PipelineScheduleVariables.d.ts +10 -0
  66. package/dist/types/resources/PipelineSchedules.d.ts +29 -0
  67. package/dist/types/resources/Pipelines.d.ts +40 -0
  68. package/dist/types/resources/ProjectAccessRequests.d.ts +15 -0
  69. package/dist/types/resources/ProjectBadges.d.ts +18 -0
  70. package/dist/types/resources/ProjectCustomAttributes.d.ts +13 -0
  71. package/dist/types/resources/ProjectDeployTokens.d.ts +14 -0
  72. package/dist/types/resources/ProjectHooks.d.ts +29 -0
  73. package/dist/types/resources/ProjectImportExport.d.ts +54 -0
  74. package/dist/types/resources/ProjectIssueBoards.d.ts +23 -0
  75. package/dist/types/resources/ProjectMembers.d.ts +14 -0
  76. package/dist/types/resources/ProjectMilestones.d.ts +17 -0
  77. package/dist/types/resources/ProjectSnippetAwardEmojis.d.ts +13 -0
  78. package/dist/types/resources/ProjectSnippetDiscussions.d.ts +17 -0
  79. package/dist/types/resources/ProjectSnippetNotes.d.ts +18 -0
  80. package/dist/types/resources/ProjectSnippets.d.ts +29 -0
  81. package/dist/types/resources/ProjectVariables.d.ts +14 -0
  82. package/dist/types/resources/Projects.d.ts +161 -0
  83. package/dist/types/resources/ProtectedBranches.d.ts +24 -0
  84. package/dist/types/resources/ProtectedTags.d.ts +16 -0
  85. package/dist/types/resources/PushRules.d.ts +24 -0
  86. package/dist/types/resources/ReleaseLinks.d.ts +24 -0
  87. package/dist/types/resources/Releases.d.ts +48 -0
  88. package/dist/types/resources/Repositories.d.ts +37 -0
  89. package/dist/types/resources/RepositoryFiles.d.ts +31 -0
  90. package/dist/types/resources/RepositorySubmodules.d.ts +20 -0
  91. package/dist/types/resources/Runners.d.ts +38 -0
  92. package/dist/types/resources/Search.d.ts +26 -0
  93. package/dist/types/resources/Services.d.ts +29 -0
  94. package/dist/types/resources/SidekiqMetrics.d.ts +37 -0
  95. package/dist/types/resources/Snippets.d.ts +42 -0
  96. package/dist/types/resources/SystemHooks.d.ts +18 -0
  97. package/dist/types/resources/Tags.d.ts +18 -0
  98. package/dist/types/resources/Todos.d.ts +48 -0
  99. package/dist/types/resources/Triggers.d.ts +22 -0
  100. package/dist/types/resources/UserCustomAttributes.d.ts +13 -0
  101. package/dist/types/resources/UserEmails.d.ts +19 -0
  102. package/dist/types/resources/UserGPGKeys.d.ts +21 -0
  103. package/dist/types/resources/UserImpersonationTokens.d.ts +23 -0
  104. package/dist/types/resources/UserSSHKeys.d.ts +22 -0
  105. package/dist/types/resources/Users.d.ts +57 -0
  106. package/dist/types/resources/Version.d.ts +9 -0
  107. package/dist/types/resources/VulnerabilityFindings.d.ts +69 -0
  108. package/dist/types/resources/Wikis.d.ts +15 -0
  109. package/dist/types/resources/index.d.ts +98 -0
  110. package/dist/types/resources/types.d.ts +68 -0
  111. package/dist/types/templates/ResourceAccessRequests.d.ts +20 -0
  112. package/dist/types/templates/ResourceAwardEmojis.d.ts +21 -0
  113. package/dist/types/templates/ResourceBadges.d.ts +20 -0
  114. package/dist/types/templates/ResourceCustomAttributes.d.ts +13 -0
  115. package/dist/types/templates/ResourceDeployTokens.d.ts +20 -0
  116. package/dist/types/templates/ResourceDiscussions.d.ts +45 -0
  117. package/dist/types/templates/ResourceIssueBoards.d.ts +31 -0
  118. package/dist/types/templates/ResourceLabels.d.ts +25 -0
  119. package/dist/types/templates/ResourceMembers.d.ts +30 -0
  120. package/dist/types/templates/ResourceMilestones.d.ts +27 -0
  121. package/dist/types/templates/ResourceNoteAwardEmojis.d.ts +11 -0
  122. package/dist/types/templates/ResourceNotes.d.ts +20 -0
  123. package/dist/types/templates/ResourceTemplates.d.ts +11 -0
  124. package/dist/types/templates/ResourceVariables.d.ts +18 -0
  125. package/dist/types/templates/index.d.ts +14 -0
  126. package/dist/types/templates/types.d.ts +13 -0
  127. package/dist/types/types.d.ts +3 -0
  128. package/package.json +3 -3
package/dist/map.json ADDED
@@ -0,0 +1 @@
1
+ {"ApplicationSettings":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"edit","args":[]}],"Branches":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId","branchName","ref"]},{"name":"remove","args":["projectId","branchName"]},{"name":"show","args":["projectId","branchName"]}],"BroadcastMessages":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"create","args":[]},{"name":"edit","args":["broadcastMessageId"]},{"name":"remove","args":["broadcastMessageId"]},{"name":"show","args":["broadcastMessageId"]}],"CommitDiscussions":[{"name":"constructor","args":["0","1"]},{"name":"addNote","args":["resourceId","resource2Id","discussionId","noteId","body"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"editNote","args":["resourceId","resource2Id","discussionId","noteId",{}]},{"name":"removeNote","args":["resourceId","resource2Id","discussionId","noteId"]},{"name":"show","args":["resourceId","resource2Id","discussionId"]}],"Commits":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"cherryPick","args":["projectId","sha","branch"]},{"name":"comments","args":["projectId","sha"]},{"name":"create","args":["projectId"]},{"name":"createComment","args":["projectId","sha","note"]},{"name":"diff","args":["projectId","sha"]},{"name":"editStatus","args":["projectId","sha"]},{"name":"references","args":["projectId","sha"]},{"name":"revert","args":["projectId","sha"]},{"name":"show","args":["projectId","sha"]},{"name":"statuses","args":["projectId","sha"]},{"name":"mergeRequests","args":["projectId","sha"]},{"name":"signature","args":["projectId","sha"]}],"ContainerRegistry":[{"name":"constructor","args":["0","1"]},{"name":"projectRepositories","args":["projectId"]},{"name":"groupRepositories","args":["projectId"]},{"name":"showRepository","args":["projectId","repositoryId"]},{"name":"tags","args":["projectId","repositoryId"]},{"name":"removeRepository","args":["projectId","repositoryId"]},{"name":"removeTag","args":["projectId","repositoryId","tagName"]},{"name":"removeTags","args":["projectId","repositoryId","nameRegexDelete"]},{"name":"showTag","args":["projectId","repositoryId","tagName"]}],"DeployKeys":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["projectId"]},{"name":"all","args":[{}]},{"name":"edit","args":["projectId","keyId"]},{"name":"enable","args":["projectId","keyId"]},{"name":"remove","args":["projectId","keyId"]},{"name":"show","args":["projectId","keyId"]}],"Deployments":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId","environment","sha","ref","tag","status"]},{"name":"edit","args":["projectId","deploymentId","status"]},{"name":"show","args":["projectId","deploymentId"]},{"name":"mergeRequests","args":["projectId","deploymentId"]}],"Environments":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"show","args":["projectId","environmentId"]},{"name":"create","args":["projectId"]},{"name":"edit","args":["projectId","environmentId"]},{"name":"remove","args":["projectId","environmentId"]},{"name":"stop","args":["projectId","environmentId"]}],"EpicDiscussions":[{"name":"constructor","args":["0","1"]},{"name":"addNote","args":["resourceId","resource2Id","discussionId","noteId","body"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"editNote","args":["resourceId","resource2Id","discussionId","noteId",{}]},{"name":"removeNote","args":["resourceId","resource2Id","discussionId","noteId"]},{"name":"show","args":["resourceId","resource2Id","discussionId"]}],"EpicIssues":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["groupId","epicIId"]},{"name":"assign","args":["groupId","epicIId","epicIssueId"]},{"name":"edit","args":["groupId","epicIId","epicIssueId"]},{"name":"remove","args":["groupId","epicIId","epicIssueId"]}],"EpicNotes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"edit","args":["resourceId","resource2Id","noteId","body"]},{"name":"remove","args":["resourceId","resource2Id","noteId"]},{"name":"show","args":["resourceId","resource2Id","noteId"]}],"Epics":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["groupId"]},{"name":"create","args":["groupId","title"]},{"name":"edit","args":["groupId","epicId"]},{"name":"remove","args":["groupId","epicId"]},{"name":"show","args":["groupId","epicId"]}],"Events":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]}],"FeatureFlags":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId","flagName","version"]},{"name":"edit","args":["projectId","flagName"]},{"name":"remove","args":["projectId","flagName"]},{"name":"show","args":["projectId","flagName"]}],"FreezePeriods":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"show","args":["projectId","freezePeriodId"]},{"name":"create","args":["projectId","freezeStart","freezeEnd"]},{"name":"edit","args":["projectId","freezePeriodId"]},{"name":"delete","args":["projectId","freezePeriodId"]}],"GeoNodes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"create","args":["geonodeId"]},{"name":"edit","args":["geonodeId"]},{"name":"failures","args":[]},{"name":"repair","args":["geonodeId"]},{"name":"remove","args":["geonodeId"]},{"name":"show","args":["geonodeId"]},{"name":"status","args":["geonodeId"]},{"name":"statuses","args":[]}],"GitLabCIYMLTemplates":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"show","args":["key"]}],"GitignoreTemplates":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"show","args":["key"]}],"Gitlab":[{"name":"constructor","args":["0","1"]}],"GroupAccessRequests":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"request","args":["resourceId"]},{"name":"approve","args":["resourceId","userId"]},{"name":"deny","args":["resourceId","userId"]}],"GroupBadges":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["resourceId"]},{"name":"all","args":["resourceId"]},{"name":"edit","args":["resourceId","badgeId"]},{"name":"preview","args":["resourceId","linkUrl","imageUrl"]},{"name":"remove","args":["resourceId","badgeId"]},{"name":"show","args":["resourceId","badgeId"]}],"GroupCustomAttributes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"set","args":["resourceId","customAttributeId","value"]},{"name":"remove","args":["resourceId","customAttributeId"]},{"name":"show","args":["resourceId","customAttributeId"]}],"GroupDeployTokens":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["resourceId","tokenName","tokenScopes"]},{"name":"all","args":[{}]},{"name":"remove","args":["resourceId","tokenId"]}],"GroupIssueBoards":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId","name"]},{"name":"createList","args":["resourceId","boardId","labelId"]},{"name":"edit","args":["resourceId","boardId"]},{"name":"editList","args":["resourceId","boardId","listId","position"]},{"name":"lists","args":["resourceId","boardId"]},{"name":"remove","args":["resourceId","boardId"]},{"name":"removeList","args":["resourceId","boardId","listId"]},{"name":"show","args":["resourceId","boardId"]},{"name":"showList","args":["resourceId","boardId","listId"]}],"GroupLabels":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId","labelName","color"]},{"name":"edit","args":["resourceId","labelId"]},{"name":"remove","args":["resourceId","labelId"]},{"name":"subscribe","args":["resourceId","labelId"]},{"name":"unsubscribe","args":["resourceId","labelId"]}],"GroupMembers":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["resourceId","userId","accessLevel"]},{"name":"all","args":["resourceId",{}]},{"name":"edit","args":["resourceId","userId","accessLevel"]},{"name":"show","args":["resourceId","userId",{}]},{"name":"remove","args":["resourceId","userId"]}],"GroupMilestones":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId","title"]},{"name":"edit","args":["resourceId","milestoneId"]},{"name":"issues","args":["resourceId","milestoneId"]},{"name":"mergeRequests","args":["resourceId","milestoneId"]},{"name":"show","args":["resourceId","milestoneId"]}],"GroupRunners":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["groupId"]}],"GroupVariables":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId"]},{"name":"edit","args":["resourceId","keyId"]},{"name":"show","args":["resourceId","keyId"]},{"name":"remove","args":["resourceId","keyId"]}],"Groups":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"create","args":["name","path"]},{"name":"createLDAPLink","args":["groupId","cn","groupAccess","provider"]},{"name":"edit","args":["groupId"]},{"name":"projects","args":["groupId"]},{"name":"remove","args":["groupId"]},{"name":"removeLDAPLink","args":["groupId","cn",{}]},{"name":"search","args":["nameOrPath"]},{"name":"show","args":["groupId"]},{"name":"subgroups","args":["groupId"]},{"name":"syncLDAP","args":["groupId"]},{"name":"transferProject","args":["groupId","projectId"]}],"IssueAwardEmojis":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId","resourceIId"]},{"name":"award","args":["projectId","resourceIId","name"]},{"name":"remove","args":["projectId","resourceIId","awardId"]},{"name":"show","args":["projectId","resourceIId","awardId"]}],"IssueDiscussions":[{"name":"constructor","args":["0","1"]},{"name":"addNote","args":["resourceId","resource2Id","discussionId","noteId","body"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"editNote","args":["resourceId","resource2Id","discussionId","noteId",{}]},{"name":"removeNote","args":["resourceId","resource2Id","discussionId","noteId"]},{"name":"show","args":["resourceId","resource2Id","discussionId"]}],"IssueNoteAwardEmojis":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId","resourceIId","noteId"]},{"name":"award","args":["projectId","resourceIId","noteId","name"]},{"name":"remove","args":["projectId","resourceIId","noteId","awardId"]},{"name":"show","args":["projectId","resourceIId","noteId","awardId"]}],"IssueNotes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"edit","args":["resourceId","resource2Id","noteId","body"]},{"name":"remove","args":["resourceId","resource2Id","noteId"]},{"name":"show","args":["resourceId","resource2Id","noteId"]}],"Issues":[{"name":"constructor","args":["0","1"]},{"name":"addSpentTime","args":["projectId","issueIid","duration"]},{"name":"addTimeEstimate","args":["projectId","issueIid","duration"]},{"name":"all","args":[{}]},{"name":"create","args":["projectId"]},{"name":"closedBy","args":["projectId","issueIid"]},{"name":"edit","args":["projectId","issueIid"]},{"name":"link","args":["projectId","issueIId","targetProjectId","targetIssueIId"]},{"name":"links","args":["projectId","issueIid"]},{"name":"participants","args":["projectId","issueIid"]},{"name":"relatedMergeRequests","args":["projectId","issueIid"]},{"name":"removeLink","args":["projectId","issueIid","issueLinkId"]},{"name":"remove","args":["projectId","issueIid"]},{"name":"resetSpentTime","args":["projectId","issueIid"]},{"name":"resetTimeEstimate","args":["projectId","issueIid"]},{"name":"show","args":["projectId","issueIid"]},{"name":"subscribe","args":["projectId","issueIid"]},{"name":"timeStats","args":["projectId","issueIid"]},{"name":"unsubscribe","args":["projectId","issueIid"]}],"IssuesStatistics":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]}],"Jobs":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"cancel","args":["projectId","jobId"]},{"name":"downloadSingleArtifactFile","args":["projectId","jobId","artifactPath",{"stream":false}]},{"name":"downloadSingleArtifactFileFromRef","args":["projectId","ref","artifactPath","jobName",{"stream":false}]},{"name":"downloadLatestArtifactFile","args":["projectId","ref","jobName",{"stream":false}]},{"name":"downloadTraceFile","args":["projectId","jobId"]},{"name":"erase","args":["projectId","jobId"]},{"name":"eraseArtifacts","args":["projectId","jobId"]},{"name":"keepArtifacts","args":["projectId","jobId"]},{"name":"play","args":["projectId","jobId"]},{"name":"retry","args":["projectId","jobId"]},{"name":"show","args":["projectId","jobId"]},{"name":"showPipelineJobs","args":["projectId","pipelineId"]},{"name":"showPipelineBridges","args":["projectId","pipelineId"]}],"Keys":[{"name":"constructor","args":["0","1"]},{"name":"show","args":["keyId"]}],"Labels":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId","labelName","color"]},{"name":"edit","args":["resourceId","labelId"]},{"name":"remove","args":["resourceId","labelId"]},{"name":"subscribe","args":["resourceId","labelId"]},{"name":"unsubscribe","args":["resourceId","labelId"]}],"License":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["license"]},{"name":"all","args":[]},{"name":"show","args":[]},{"name":"remove","args":["licenceId"]}],"LicenseTemplates":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"show","args":["key"]}],"Lint":[{"name":"constructor","args":["0","1"]},{"name":"lint","args":["content"]}],"Markdown":[{"name":"constructor","args":["0","1"]},{"name":"render","args":["text"]}],"MergeRequestApprovals":[{"name":"constructor","args":["0","1"]},{"name":"configuration","args":["projectId",{}]},{"name":"editConfiguration","args":["projectId",{}]},{"name":"approvalRule","args":["projectId","approvalRuleId"]},{"name":"approvalRules","args":["projectId",{}]},{"name":"addApprovalRule","args":["projectId","name","approvalsRequired",{}]},{"name":"approvalState","args":["projectId","mergerequestIid"]},{"name":"editApprovalRule","args":["projectId","approvalRuleId","name","approvalsRequired",{}]},{"name":"removeApprovalRule","args":["projectId","approvalRuleId",{}]},{"name":"approve","args":["projectId","mergerequestIid"]},{"name":"unapprove","args":["projectId","mergerequestIid"]}],"MergeRequestAwardEmojis":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId","resourceIId"]},{"name":"award","args":["projectId","resourceIId","name"]},{"name":"remove","args":["projectId","resourceIId","awardId"]},{"name":"show","args":["projectId","resourceIId","awardId"]}],"MergeRequestDiscussions":[{"name":"constructor","args":["0","1"]},{"name":"addNote","args":["resourceId","resource2Id","discussionId","noteId","body"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"editNote","args":["resourceId","resource2Id","discussionId","noteId",{}]},{"name":"removeNote","args":["resourceId","resource2Id","discussionId","noteId"]},{"name":"show","args":["resourceId","resource2Id","discussionId"]}],"MergeRequestNotes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"edit","args":["resourceId","resource2Id","noteId","body"]},{"name":"remove","args":["resourceId","resource2Id","noteId"]},{"name":"show","args":["resourceId","resource2Id","noteId"]}],"MergeRequests":[{"name":"constructor","args":["0","1"]},{"name":"accept","args":["projectId","mergerequestIid"]},{"name":"addSpentTime","args":["projectId","mergerequestIid","duration"]},{"name":"addTimeEstimate","args":["projectId","mergerequestIid","duration"]},{"name":"all","args":[{}]},{"name":"cancelOnPipelineSucess","args":["projectId","mergerequestIid"]},{"name":"changes","args":["projectId","mergerequestIid"]},{"name":"closesIssues","args":["projectId","mergerequestIid"]},{"name":"commits","args":["projectId","mergerequestIid"]},{"name":"create","args":["projectId","sourceBranch","targetBranch","title"]},{"name":"edit","args":["projectId","mergerequestIid"]},{"name":"participants","args":["projectId","mergerequestIid"]},{"name":"pipelines","args":["projectId","mergerequestIid"]},{"name":"rebase","args":["projectId","mergerequestIid"]},{"name":"remove","args":["projectId","mergerequestIid"]},{"name":"resetSpentTime","args":["projectId","mergerequestIid"]},{"name":"resetTimeEstimate","args":["projectId","mergerequestIid"]},{"name":"show","args":["projectId","mergerequestIid"]},{"name":"subscribe","args":["projectId","mergerequestIid"]},{"name":"timeStats","args":["projectId","mergerequestIid"]},{"name":"version","args":["projectId","mergerequestIid","versionId"]},{"name":"versions","args":["projectId","mergerequestIid"]},{"name":"unsubscribe","args":["projectId","mergerequestIid"]}],"Namespaces":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"show","args":["namespaceId"]}],"NotificationSettings":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"edit","args":[{}]}],"PackageRegistry":[{"name":"constructor","args":["0","1"]},{"name":"publish","args":["projectId","packageName","packageVersion","filename","content",{}]},{"name":"download","args":["projectId","packageName","packageVersion","filename"]}],"Packages":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"remove","args":["projectId","packageId"]},{"name":"removeFile","args":["projectId","packageId","projectFileId"]},{"name":"show","args":["projectId","packageId"]},{"name":"showFiles","args":["projectId","packageId"]}],"PagesDomains":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"create","args":["projectId","domain"]},{"name":"edit","args":["projectId","domain"]},{"name":"show","args":["projectId","domain"]},{"name":"remove","args":["projectId","domain"]}],"PipelineScheduleVariables":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId","pipelineScheduleId"]},{"name":"create","args":["projectId","pipelineScheduleId"]},{"name":"edit","args":["projectId","pipelineScheduleId","keyId"]},{"name":"show","args":["projectId","pipelineScheduleId","keyId"]},{"name":"remove","args":["projectId","pipelineScheduleId","keyId"]}],"PipelineSchedules":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId","description","ref","cron"]},{"name":"edit","args":["projectId","scheduleId"]},{"name":"remove","args":["projectId","scheduleId"]},{"name":"show","args":["projectId","scheduleId"]},{"name":"takeOwnership","args":["projectId","scheduleId"]}],"Pipelines":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId","ref"]},{"name":"delete","args":["projectId","pipelineId"]},{"name":"show","args":["projectId","pipelineId"]},{"name":"retry","args":["projectId","pipelineId"]},{"name":"cancel","args":["projectId","pipelineId"]},{"name":"allVariables","args":["projectId","pipelineId"]}],"ProjectAccessRequests":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"request","args":["resourceId"]},{"name":"approve","args":["resourceId","userId"]},{"name":"deny","args":["resourceId","userId"]}],"ProjectBadges":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["resourceId"]},{"name":"all","args":["resourceId"]},{"name":"edit","args":["resourceId","badgeId"]},{"name":"preview","args":["resourceId","linkUrl","imageUrl"]},{"name":"remove","args":["resourceId","badgeId"]},{"name":"show","args":["resourceId","badgeId"]}],"ProjectCustomAttributes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"set","args":["resourceId","customAttributeId","value"]},{"name":"remove","args":["resourceId","customAttributeId"]},{"name":"show","args":["resourceId","customAttributeId"]}],"ProjectDeployTokens":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["resourceId","tokenName","tokenScopes"]},{"name":"all","args":[{}]},{"name":"remove","args":["resourceId","tokenId"]}],"ProjectHooks":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"show","args":["projectId","hookId"]},{"name":"add","args":["projectId","url"]},{"name":"edit","args":["projectId","hookId","url"]},{"name":"remove","args":["projectId","hookId"]}],"ProjectImportExport":[{"name":"constructor","args":["0","1"]},{"name":"download","args":["projectId"]},{"name":"exportStatus","args":["projectId"]},{"name":"import","args":["content","path",{}]},{"name":"importStatus","args":["projectId"]},{"name":"schedule","args":["projectId"]}],"ProjectIssueBoards":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId","name"]},{"name":"createList","args":["resourceId","boardId","labelId"]},{"name":"edit","args":["resourceId","boardId"]},{"name":"editList","args":["resourceId","boardId","listId","position"]},{"name":"lists","args":["resourceId","boardId"]},{"name":"remove","args":["resourceId","boardId"]},{"name":"removeList","args":["resourceId","boardId","listId"]},{"name":"show","args":["resourceId","boardId"]},{"name":"showList","args":["resourceId","boardId","listId"]}],"ProjectMembers":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["resourceId","userId","accessLevel"]},{"name":"all","args":["resourceId",{}]},{"name":"edit","args":["resourceId","userId","accessLevel"]},{"name":"show","args":["resourceId","userId",{}]},{"name":"remove","args":["resourceId","userId"]}],"ProjectMilestones":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId","title"]},{"name":"edit","args":["resourceId","milestoneId"]},{"name":"issues","args":["resourceId","milestoneId"]},{"name":"mergeRequests","args":["resourceId","milestoneId"]},{"name":"show","args":["resourceId","milestoneId"]}],"ProjectSnippetAwardEmojis":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId","resourceIId"]},{"name":"award","args":["projectId","resourceIId","name"]},{"name":"remove","args":["projectId","resourceIId","awardId"]},{"name":"show","args":["projectId","resourceIId","awardId"]}],"ProjectSnippetDiscussions":[{"name":"constructor","args":["0","1"]},{"name":"addNote","args":["resourceId","resource2Id","discussionId","noteId","body"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"editNote","args":["resourceId","resource2Id","discussionId","noteId",{}]},{"name":"removeNote","args":["resourceId","resource2Id","discussionId","noteId"]},{"name":"show","args":["resourceId","resource2Id","discussionId"]}],"ProjectSnippetNotes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId","resource2Id"]},{"name":"create","args":["resourceId","resource2Id","body"]},{"name":"edit","args":["resourceId","resource2Id","noteId","body"]},{"name":"remove","args":["resourceId","resource2Id","noteId"]},{"name":"show","args":["resourceId","resource2Id","noteId"]}],"ProjectSnippets":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"content","args":["projectId","snippetId"]},{"name":"create","args":["projectId","title","fileName","code","visibility"]},{"name":"edit","args":["projectId","snippetId"]},{"name":"remove","args":["projectId","snippetId"]},{"name":"show","args":["projectId","snippetId"]},{"name":"userAgentDetails","args":["projectId","snippetId"]}],"ProjectVariables":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"create","args":["resourceId"]},{"name":"edit","args":["resourceId","keyId"]},{"name":"show","args":["resourceId","keyId"]},{"name":"remove","args":["resourceId","keyId"]}],"Projects":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"archive","args":["projectId"]},{"name":"create","args":[{}]},{"name":"edit","args":["projectId"]},{"name":"fork","args":["projectId",{}]},{"name":"forks","args":["projectId"]},{"name":"languages","args":["projectId"]},{"name":"mirrorPull","args":["projectId"]},{"name":"remove","args":["projectId"]},{"name":"removeFork","args":["projectId"]},{"name":"search","args":["projectName"]},{"name":"share","args":["projectId","groupId","groupAccess"]},{"name":"show","args":["projectId"]},{"name":"star","args":["projectId"]},{"name":"transfer","args":["projectId","namespaceId"]},{"name":"unarchive","args":["projectId"]},{"name":"unshare","args":["projectId","groupId"]},{"name":"unstar","args":["projectId"]},{"name":"upload","args":["projectId","content",{}]}],"ProtectedBranches":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"protect","args":["projectId","branchName"]},{"name":"show","args":["projectId","branchName"]},{"name":"unprotect","args":["projectId","branchName"]}],"ProtectedTags":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"protect","args":["projectId","tagName"]},{"name":"show","args":["projectId","tagName"]},{"name":"unprotect","args":["projectId","tagName"]}],"PushRules":[{"name":"constructor","args":["0","1"]},{"name":"create","args":["projectId"]},{"name":"edit","args":["projectId"]},{"name":"remove","args":["projectId"]},{"name":"show","args":["projectId"]}],"ReleaseLinks":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId","tagName"]},{"name":"create","args":["projectId","tagName","name","url"]},{"name":"edit","args":["projectId","tagName","linkId"]},{"name":"remove","args":["projectId","tagName","linkId"]},{"name":"show","args":["projectId","tagName","linkId"]}],"Releases":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId"]},{"name":"edit","args":["projectId","tagName"]},{"name":"remove","args":["projectId","tagName"]},{"name":"show","args":["projectId","tagName"]}],"Repositories":[{"name":"constructor","args":["0","1"]},{"name":"compare","args":["projectId","from","to"]},{"name":"contributors","args":["projectId"]},{"name":"mergeBase","args":["projectId","refs"]},{"name":"showArchive","args":["projectId",{"fileType":"tar.gz"}]},{"name":"showBlob","args":["projectId","sha"]},{"name":"showBlobRaw","args":["projectId","sha"]},{"name":"tree","args":["projectId"]}],"RepositoryFiles":[{"name":"constructor","args":["0","1"]},{"name":"create","args":["projectId","filePath","branch","content","commitMessage"]},{"name":"edit","args":["projectId","filePath","branch","content","commitMessage"]},{"name":"remove","args":["projectId","filePath","branch","commitMessage"]},{"name":"show","args":["projectId","filePath","ref"]},{"name":"showBlame","args":["projectId","filePath"]},{"name":"showRaw","args":["projectId","filePath"]}],"RepositorySubmodules":[{"name":"constructor","args":["0","1"]},{"name":"edit","args":["projectId","submodule","branch","commit_sha"]}],"Runners":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"allOwned","args":[]},{"name":"edit","args":["runnerId"]},{"name":"enable","args":["projectId","runnerId"]},{"name":"disable","args":["projectId","runnerId"]},{"name":"jobs","args":["runnerId"]},{"name":"remove","args":["runnerId"]},{"name":"show","args":["runnerId"]}],"Search":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["scope","search",{}]}],"Services":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"edit","args":["projectId","serviceName"]},{"name":"remove","args":["projectId","serviceName"]},{"name":"show","args":["projectId","serviceName"]}],"SidekiqMetrics":[{"name":"constructor","args":["0","1"]},{"name":"queueMetrics","args":[]},{"name":"processMetrics","args":[]},{"name":"jobStats","args":[]},{"name":"compoundMetrics","args":[]}],"Snippets":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{"public":"p"}]},{"name":"content","args":["snippetId"]},{"name":"create","args":["title","fileName","content","visibility"]},{"name":"edit","args":["snippetId"]},{"name":"remove","args":["snippetId"]},{"name":"show","args":["snippetId"]},{"name":"userAgentDetails","args":["snippetId"]}],"SystemHooks":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["url"]},{"name":"all","args":[]},{"name":"edit","args":["hookId","url"]},{"name":"remove","args":["hookId"]}],"Tags":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId"]},{"name":"remove","args":["projectId","tagName"]},{"name":"show","args":["projectId","tagName"]}],"Todos":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"create","args":["projectId","resourceId","resourceName"]},{"name":"done","args":[{}]}],"Triggers":[{"name":"constructor","args":["0","1"]},{"name":"add","args":["projectId"]},{"name":"all","args":["projectId"]},{"name":"edit","args":["projectId","triggerId"]},{"name":"pipeline","args":["projectId","ref","token",{}]},{"name":"remove","args":["projectId","triggerId"]},{"name":"show","args":["projectId","triggerId"]}],"UserCustomAttributes":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["resourceId"]},{"name":"set","args":["resourceId","customAttributeId","value"]},{"name":"remove","args":["resourceId","customAttributeId"]},{"name":"show","args":["resourceId","customAttributeId"]}],"UserEmails":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"add","args":["email",{}]},{"name":"show","args":["emailId"]},{"name":"remove","args":["emailId",{}]}],"UserGPGKeys":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"add","args":["key",{}]},{"name":"show","args":["keyId",{}]},{"name":"remove","args":["keyId",{}]}],"UserImpersonationTokens":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["userId"]},{"name":"add","args":["userId","name","scopes","expiresAt"]},{"name":"show","args":["userId","tokenId"]},{"name":"revoke","args":["userId","tokenId"]}],"UserSSHKeys":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[{}]},{"name":"create","args":["title","key",{}]},{"name":"show","args":["keyId",{}]},{"name":"remove","args":["keyId",{}]}],"Users":[{"name":"constructor","args":["0","1"]},{"name":"all","args":[]},{"name":"activities","args":[]},{"name":"projects","args":["userId"]},{"name":"block","args":["userId"]},{"name":"create","args":[]},{"name":"current","args":[]},{"name":"edit","args":["userId"]},{"name":"events","args":["userId"]},{"name":"search","args":["emailOrUsername"]},{"name":"show","args":["userId"]},{"name":"remove","args":["userId"]},{"name":"unblock","args":["userId"]},{"name":"username","args":["username"]}],"Version":[{"name":"constructor","args":["0","1"]},{"name":"show","args":[]}],"VulnerabilityFindings":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]}],"Wikis":[{"name":"constructor","args":["0","1"]},{"name":"all","args":["projectId"]},{"name":"create","args":["projectId"]},{"name":"edit","args":["projectId","slug"]},{"name":"show","args":["projectId","slug"]},{"name":"remove","args":["projectId","slug"]}]}
@@ -0,0 +1,4 @@
1
+ export { getAPIMap } from './infrastructure';
2
+ export * from './resources';
3
+ export * as Resources from './resources';
4
+ export * as Types from './types';
@@ -0,0 +1,55 @@
1
+ /// <reference types="node" />
2
+ import { BaseResource } from '@gitbeaker/requester-utils';
3
+ import { Camelize } from './Utils';
4
+ export declare type IsForm = {
5
+ isForm?: boolean;
6
+ };
7
+ export declare type Sudo = {
8
+ sudo?: string | number;
9
+ };
10
+ export declare type ShowExpanded<T extends boolean = boolean> = {
11
+ showExpanded?: T;
12
+ };
13
+ export declare type BaseRequestOptions = Sudo & Record<string, unknown>;
14
+ export declare type BasePaginationRequestOptions<P extends 'keyset' | 'offset' = 'keyset' | 'offset'> = BaseRequestOptions & {
15
+ pagination?: P;
16
+ perPage?: number;
17
+ };
18
+ export declare type OffsetPaginationRequestOptions = {
19
+ page?: number;
20
+ maxPages?: number;
21
+ };
22
+ export declare type PaginatedRequestOptions<P extends 'keyset' | 'offset' = 'keyset' | 'offset'> = P extends 'keyset' ? BasePaginationRequestOptions<P> : BasePaginationRequestOptions<P> & OffsetPaginationRequestOptions;
23
+ export interface ExpandedResponse<T = Record<string, unknown>> {
24
+ data: T;
25
+ headers: Record<string, unknown>;
26
+ status: number;
27
+ }
28
+ export interface PaginationResponse<T = Record<string, unknown>[]> {
29
+ data: T;
30
+ paginationInfo: {
31
+ total: number;
32
+ next: number | null;
33
+ current: number;
34
+ previous: number | null;
35
+ perPage: number;
36
+ totalPages: number;
37
+ };
38
+ }
39
+ export declare type CamelizedRecord<C, T> = C extends true ? Camelize<T> : T;
40
+ export declare type ExtendedRecordReturn<C extends boolean, E extends boolean, T extends Record<string, unknown> | void> = T extends void ? void : E extends false ? CamelizedRecord<C, T> : ExpandedResponse<CamelizedRecord<C, T>>;
41
+ export declare type ExtendedArrayReturn<C extends boolean, E extends boolean, T, P extends 'keyset' | 'offset'> = E extends false ? CamelizedRecord<C, T>[] : P extends 'keyset' ? CamelizedRecord<C, T>[] : PaginationResponse<CamelizedRecord<C, T>[]>;
42
+ export declare type ExtendedReturn<C extends boolean, E extends boolean, P extends 'keyset' | 'offset', T extends Record<string, unknown> | Record<string, unknown>[]> = T extends Record<string, unknown> ? ExtendedRecordReturn<C, E, T> : T extends (infer R)[] ? ExtendedArrayReturn<C, E, R, P> : never;
43
+ export declare function get<T extends Record<string, unknown> | Record<string, unknown>[] = Record<string, unknown>>(): <C extends boolean, P extends "keyset" | "offset" = "offset", E extends boolean = false>(service: BaseResource<C>, endpoint: string, options?: (PaginatedRequestOptions<P> & ShowExpanded<E> & Record<string, any>) | undefined) => Promise<ExtendedReturn<C, E, P, T>>;
44
+ export declare function post<T extends Record<string, unknown> | void = Record<string, unknown>>(): <C extends boolean, E extends boolean = false>(service: BaseResource<C>, endpoint: string, { query, isForm, sudo, showExpanded, ...options }?: IsForm & Sudo & Record<string, unknown> & ShowExpanded<E>) => Promise<ExtendedRecordReturn<C, E, T>>;
45
+ export declare function put<T extends Record<string, unknown> = Record<string, unknown>>(): <C extends boolean, E extends boolean = false>(service: BaseResource<C>, endpoint: string, { query, isForm, sudo, showExpanded, ...options }?: IsForm & Sudo & Record<string, unknown> & ShowExpanded<E>) => Promise<ExtendedRecordReturn<C, E, T>>;
46
+ export declare function del<T extends Record<string, unknown> | void = void>(): <C extends boolean, E extends boolean = false>(service: BaseResource<C>, endpoint: string, { sudo, showExpanded, ...query }?: Sudo & Record<string, unknown> & ShowExpanded<E>) => Promise<ExtendedRecordReturn<C, E, T>>;
47
+ declare function stream<C extends boolean>(service: BaseResource<C>, endpoint: string, options?: BaseRequestOptions): NodeJS.ReadableStream;
48
+ export declare const RequestHelper: {
49
+ post: typeof post;
50
+ put: typeof put;
51
+ get: typeof get;
52
+ del: typeof del;
53
+ stream: typeof stream;
54
+ };
55
+ export {};
@@ -0,0 +1,7 @@
1
+ import FormData from 'form-data';
2
+ export declare type CamelizeString<T extends PropertyKey> = T extends string ? string extends T ? string : T extends `${infer F}_${infer R}` ? `${F}${Capitalize<CamelizeString<R>>}` : T : T;
3
+ export declare type Camelize<T> = {
4
+ [K in keyof T as CamelizeString<K>]: T[K];
5
+ };
6
+ export declare function appendFormFromObject(object: Record<string, unknown>): FormData;
7
+ export declare function getAPIMap(): Record<string, unknown>;
@@ -0,0 +1,2 @@
1
+ export * from './Utils';
2
+ export * from './RequestHelper';
@@ -0,0 +1,69 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { Sudo, BaseRequestOptions } from '../infrastructure';
3
+ export interface ApplicationSettingsSchema extends Record<string, unknown> {
4
+ default_projects_limit: number;
5
+ signup_enabled: boolean;
6
+ id: number;
7
+ default_branch_protection: number;
8
+ restricted_visibility_levels?: string[];
9
+ password_authentication_enabled_for_web: boolean;
10
+ after_sign_out_path?: string;
11
+ max_attachment_size: number;
12
+ max_import_size: number;
13
+ user_oauth_applications: boolean;
14
+ updated_at: string;
15
+ session_expire_delay: number;
16
+ home_page_url?: string;
17
+ default_snippet_visibility: string;
18
+ outbound_local_requests_whitelist?: string[];
19
+ domain_allowlist?: string[];
20
+ domain_denylist_enabled: boolean;
21
+ domain_denylist?: string[];
22
+ created_at: string;
23
+ default_ci_config_path?: string;
24
+ default_project_visibility: string;
25
+ default_group_visibility: string;
26
+ gravatar_enabled: boolean;
27
+ sign_in_text?: string;
28
+ container_expiration_policies_enable_historic_entries: boolean;
29
+ container_registry_token_expire_delay: number;
30
+ repository_storages_weighted: {
31
+ [name: string]: number;
32
+ };
33
+ plantuml_enabled: boolean;
34
+ plantuml_url?: string;
35
+ kroki_enabled: boolean;
36
+ kroki_url?: string;
37
+ terminal_max_session_time: number;
38
+ polling_interval_multiplier: number;
39
+ rsa_key_restriction: number;
40
+ dsa_key_restriction: number;
41
+ ecdsa_key_restriction: number;
42
+ ed25519_key_restriction: number;
43
+ first_day_of_week: number;
44
+ enforce_terms: boolean;
45
+ terms: string;
46
+ performance_bar_allowed_group_id: number;
47
+ user_show_add_ssh_key_message: boolean;
48
+ local_markdown_version: number;
49
+ allow_local_requests_from_hooks_and_services: boolean;
50
+ allow_local_requests_from_web_hooks_and_services: boolean;
51
+ allow_local_requests_from_system_hooks: boolean;
52
+ asset_proxy_enabled: boolean;
53
+ asset_proxy_url: string;
54
+ asset_proxy_whitelist?: string[];
55
+ asset_proxy_allowlist?: string[];
56
+ npm_package_requests_forwarding: boolean;
57
+ snippet_size_limit: number;
58
+ issues_create_limit: number;
59
+ raw_blob_request_limit: number;
60
+ wiki_page_max_content_bytes: number;
61
+ require_admin_approval_after_user_signup: boolean;
62
+ personal_access_token_prefix: string;
63
+ rate_limiting_response_text?: string;
64
+ keep_latest_artifact: boolean;
65
+ }
66
+ export declare class ApplicationSettings<C extends boolean = false> extends BaseResource<C> {
67
+ all(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ApplicationSettingsSchema>>;
68
+ edit(options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ApplicationSettingsSchema>>;
69
+ }
@@ -0,0 +1,20 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { CommitSchema } from './Commits';
3
+ import { PaginatedRequestOptions, Sudo } from '../infrastructure';
4
+ export interface BranchSchema extends Record<string, unknown> {
5
+ name: string;
6
+ merged: boolean;
7
+ protected: boolean;
8
+ default: boolean;
9
+ developers_can_push: boolean;
10
+ developers_can_merge: boolean;
11
+ can_push: boolean;
12
+ web_url: string;
13
+ commit: Omit<CommitSchema, 'web_url' | 'created_at'>;
14
+ }
15
+ export declare class Branches<C extends boolean = false> extends BaseResource<C> {
16
+ all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BranchSchema>[]>;
17
+ create(projectId: string | number, branchName: string, ref: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BranchSchema>>;
18
+ remove(projectId: string | number, branchName: string, options?: Sudo): Promise<void>;
19
+ show(projectId: string | number, branchName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BranchSchema>>;
20
+ }
@@ -0,0 +1,21 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { BaseRequestOptions, PaginatedRequestOptions, Sudo, Camelize } from '../infrastructure';
3
+ export interface BroadcastMessageSchema extends Record<string, unknown> {
4
+ message: string;
5
+ starts_at: string;
6
+ ends_at: string;
7
+ color: string;
8
+ font: string;
9
+ id: number;
10
+ active: boolean;
11
+ target_path: string;
12
+ broadcast_type: string;
13
+ dismissable: boolean;
14
+ }
15
+ export declare class BroadcastMessages<C extends boolean = false> extends BaseResource<C> {
16
+ all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>[]>;
17
+ create(options?: Camelize<Omit<BroadcastMessageSchema, 'id'>> & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>>;
18
+ edit(broadcastMessageId: number, options?: Camelize<Omit<BroadcastMessageSchema, 'id'>> & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>>;
19
+ remove(broadcastMessageId: number, options?: Sudo): Promise<void>;
20
+ show(broadcastMessageId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>>;
21
+ }
@@ -0,0 +1,17 @@
1
+ import { BaseResourceOptions } from '@gitbeaker/requester-utils';
2
+ import { ResourceDiscussions } from '../templates';
3
+ import { DiscussionSchema } from '../templates/types';
4
+ import { BaseRequestOptions, PaginatedRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
5
+ export interface CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
6
+ addNote(projectId: string | number, commitId: number, discussionId: number, noteId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>>;
7
+ all(projectId: string | number, commitId: number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>[]>;
8
+ create(projectId: string | number, commitId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>>;
9
+ editNote(projectId: string | number, commitId: number, discussionId: number, noteId: number, options: BaseRequestOptions & {
10
+ body: string;
11
+ }): Promise<CamelizedRecord<C, DiscussionSchema>>;
12
+ removeNote(projectId: string | number, commitId: number, discussionId: number, noteId: number, options?: Sudo): Promise<void>;
13
+ show(projectId: string | number, commitId: number, discussionId: number, options?: Sudo): Promise<CamelizedRecord<C, DiscussionSchema>>;
14
+ }
15
+ export declare class CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
16
+ constructor(options: BaseResourceOptions<C>);
17
+ }
@@ -0,0 +1,132 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { UserSchema } from './Users';
3
+ import { MergeRequestSchema } from './MergeRequests';
4
+ import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
5
+ export interface CommitAction {
6
+ /** The action to perform */
7
+ action: 'create' | 'delete' | 'move' | 'update' | 'chmod';
8
+ /** Full path to the file. Ex. lib/class.rb */
9
+ filePath: string;
10
+ /** Original full path to the file being moved.Ex.lib / class1.rb */
11
+ previousPath?: string;
12
+ /** File content, required for all except delete. Optional for move */
13
+ content?: string;
14
+ /** text or base64. text is default. */
15
+ encoding?: string;
16
+ /** Last known file commit id. Will be only considered in update, move and delete actions. */
17
+ lastCommitId?: string;
18
+ /** When true/false enables/disables the execute flag on the file. Only considered for chmod action. */
19
+ execute_filemode?: boolean;
20
+ }
21
+ export interface CommitSchema extends Record<string, unknown> {
22
+ id: string;
23
+ short_id: string;
24
+ created_at: Date;
25
+ parent_ids?: string[];
26
+ title: string;
27
+ message: string;
28
+ author_name: string;
29
+ author_email: string;
30
+ authored_date?: Date;
31
+ committer_name?: string;
32
+ committer_email?: string;
33
+ committed_date?: Date;
34
+ web_url: string;
35
+ }
36
+ export interface CommitExtendedSchema extends CommitSchema {
37
+ last_pipeline: {
38
+ id: number;
39
+ ref: string;
40
+ sha: string;
41
+ status: string;
42
+ };
43
+ stats: {
44
+ additions: number;
45
+ deletions: number;
46
+ total: number;
47
+ };
48
+ status: string;
49
+ }
50
+ export interface GPGSignatureSchema extends Record<string, unknown> {
51
+ signature_type: 'PGP';
52
+ verification_status: 'verified' | 'unverified';
53
+ gpg_key_id: number;
54
+ gpg_key_primary_keyid: string;
55
+ gpg_key_user_name: string;
56
+ gpg_key_user_email: string;
57
+ gpg_key_subkey_id?: number;
58
+ commit_source: string;
59
+ }
60
+ export interface X509SignatureSchema extends Record<string, unknown> {
61
+ signature_type: 'X509';
62
+ verification_status: 'verified' | 'unverified';
63
+ x509_certificate: {
64
+ id: number;
65
+ subject: string;
66
+ subject_key_identifier: string;
67
+ email: string;
68
+ serial_number: string;
69
+ certificate_status: string;
70
+ x509_issuer: {
71
+ id: number;
72
+ subject: string;
73
+ subject_key_identifier: string;
74
+ crl_url: string;
75
+ };
76
+ };
77
+ commit_source: string;
78
+ }
79
+ export interface MissingSignatureSchema extends Record<string, unknown> {
80
+ message: string;
81
+ }
82
+ export declare type CommitSignatureSchema = GPGSignatureSchema | X509SignatureSchema | MissingSignatureSchema;
83
+ export interface CommentSchema extends Record<string, unknown> {
84
+ note: string;
85
+ line_type: 'new' | 'old';
86
+ path: string;
87
+ line: number;
88
+ author: Omit<UserSchema, 'created_at'>;
89
+ }
90
+ export interface CommitDiffSchema extends Record<string, unknown> {
91
+ diff: string;
92
+ new_path: string;
93
+ old_path: string;
94
+ a_mode?: string;
95
+ b_mode: string;
96
+ new_file: boolean;
97
+ renamed_file: boolean;
98
+ deleted_file: boolean;
99
+ }
100
+ export interface CommitStatusSchema extends Record<string, unknown> {
101
+ status: string;
102
+ created_at: string;
103
+ started_at?: string;
104
+ name: string;
105
+ allow_failure: boolean;
106
+ author: Omit<UserSchema, 'created_at'>;
107
+ description?: string;
108
+ sha: string;
109
+ target_url: string;
110
+ finished_at?: string;
111
+ id: number;
112
+ ref: string;
113
+ }
114
+ export interface CommitReferenceSchema extends Record<string, unknown> {
115
+ type: 'branch' | 'tag' | 'all';
116
+ name: string;
117
+ }
118
+ export declare class Commits<C extends boolean = false> extends BaseResource<C> {
119
+ all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>[]>;
120
+ cherryPick(projectId: string | number, sha: string, branch: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>>;
121
+ comments(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommentSchema>[]>;
122
+ create(projectId: string | number, branch: string, message: string, actions?: CommitAction[], options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitExtendedSchema>>;
123
+ createComment(projectId: string | number, sha: string, note: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommentSchema>>;
124
+ diff(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitDiffSchema>[]>;
125
+ editStatus(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitStatusSchema>>;
126
+ references(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitReferenceSchema>[]>;
127
+ revert(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>>;
128
+ show(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitExtendedSchema>>;
129
+ statuses(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitStatusSchema>[]>;
130
+ mergeRequests(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MergeRequestSchema>>;
131
+ signature(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GPGSignatureSchema> | import("../infrastructure").CamelizedRecord<C, X509SignatureSchema> | import("../infrastructure").CamelizedRecord<C, MissingSignatureSchema>>;
132
+ }
@@ -0,0 +1,37 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { PaginatedRequestOptions, Sudo } from '../infrastructure';
3
+ export interface RegistryRepositoryTagSchema extends Record<string, unknown> {
4
+ name: string;
5
+ path: string;
6
+ location: string;
7
+ revision: string;
8
+ short_revision: string;
9
+ digest: string;
10
+ created_at: string;
11
+ total_size: number;
12
+ }
13
+ export interface RegistryRepositorySchema extends Record<string, unknown> {
14
+ id: number;
15
+ name: string;
16
+ path: string;
17
+ project_id: number;
18
+ location: string;
19
+ created_at: string;
20
+ cleanup_policy_started_at: string;
21
+ tags_count?: number;
22
+ tags?: Pick<RegistryRepositoryTagSchema, 'name' | 'path' | 'location'>[];
23
+ }
24
+ export declare class ContainerRegistry<C extends boolean = false> extends BaseResource<C> {
25
+ projectRepositories(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<RegistryRepositorySchema, "tags_count" | "tags">>[]>;
26
+ groupRepositories(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<RegistryRepositorySchema, "tags_count" | "tags">>[]>;
27
+ showRepository(projectId: string | number, repositoryId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RegistryRepositorySchema>>;
28
+ tags(projectId: string | number, repositoryId: number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Pick<RegistryRepositoryTagSchema, "name" | "path" | "location">>[]>;
29
+ removeRepository(projectId: string | number, repositoryId: number, options?: Sudo): Promise<void>;
30
+ removeTag(projectId: string | number, repositoryId: number, tagName: string, options?: Sudo): Promise<void>;
31
+ removeTags(projectId: string | number, repositoryId: number, nameRegexDelete: string, options?: Sudo & {
32
+ nameRegexKeep: string;
33
+ keepN: string;
34
+ olderThan: string;
35
+ }): Promise<void>;
36
+ showTag(projectId: string | number, repositoryId: number, tagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RegistryRepositoryTagSchema>>;
37
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { Sudo, BaseRequestOptions, PaginatedRequestOptions } from '../infrastructure';
3
+ export interface DeployKeySchema extends Record<string, unknown> {
4
+ id: number;
5
+ title: string;
6
+ key: string;
7
+ can_push?: boolean;
8
+ created_at: string;
9
+ }
10
+ export declare class DeployKeys<C extends boolean = false> extends BaseResource<C> {
11
+ add(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeployKeySchema>>;
12
+ all({ projectId, ...options }?: {
13
+ projectId?: string | number;
14
+ } & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<DeployKeySchema, "can_push">>[]>;
15
+ edit(projectId: string | number, keyId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DeployKeySchema>>;
16
+ enable(projectId: string | number, keyId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Omit<DeployKeySchema, "can_push">>>;
17
+ remove(projectId: string | number, keyId: number, options?: Sudo): Promise<void>;
18
+ show(projectId: string | number, keyId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeployKeySchema>>;
19
+ }
@@ -0,0 +1,44 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { PaginatedRequestOptions, Sudo } from '../infrastructure';
3
+ import { CommitSchema } from './Commits';
4
+ import { PipelineSchema } from './Pipelines';
5
+ import { UserSchema } from './Users';
6
+ import { RunnerSchema } from './Runners';
7
+ import { EnvironmentSchema } from './Environments';
8
+ import { MergeRequestSchema } from './MergeRequests';
9
+ export declare type DeploymentStatus = 'created' | 'running' | 'success' | 'failed' | 'canceled';
10
+ export interface DeployableSchema {
11
+ id: number;
12
+ ref: string;
13
+ name: string;
14
+ runner?: RunnerSchema;
15
+ stage?: string;
16
+ started_at?: Date;
17
+ status?: DeploymentStatus;
18
+ tag: boolean;
19
+ commit?: CommitSchema;
20
+ coverage?: string;
21
+ created_at?: Date;
22
+ finished_at?: Date;
23
+ user?: UserSchema;
24
+ pipeline?: PipelineSchema;
25
+ }
26
+ export declare type DeploymentSchema = {
27
+ id: number;
28
+ iid: number;
29
+ ref: string;
30
+ sha: string;
31
+ user: UserSchema;
32
+ created_at: string;
33
+ updated_at: string;
34
+ status: DeploymentStatus;
35
+ deployable: DeployableSchema;
36
+ environment: EnvironmentSchema;
37
+ };
38
+ export declare class Deployments<C extends boolean = false> extends BaseResource<C> {
39
+ all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>[]>;
40
+ create(projectId: string | number, environment: string, sha: string, ref: string, tag: string, status: DeploymentStatus, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>>;
41
+ edit(projectId: string | number, deploymentId: number, status: DeploymentStatus, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>>;
42
+ show(projectId: string | number, deploymentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>>;
43
+ mergeRequests(projectId: string | number, deploymentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, MergeRequestSchema>[]>;
44
+ }
@@ -0,0 +1,5 @@
1
+ import { BaseResourceOptions } from '@gitbeaker/requester-utils';
2
+ import { ResourceTemplates } from '../templates';
3
+ export declare class DockerfileTemplates<C extends boolean = false> extends ResourceTemplates<C> {
4
+ constructor(options: BaseResourceOptions<C>);
5
+ }
@@ -0,0 +1,22 @@
1
+ import { BaseResource } from '@gitbeaker/requester-utils';
2
+ import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
3
+ import { DeploymentSchema, DeployableSchema } from './Deployments';
4
+ import { ProjectSchema } from './Projects';
5
+ export interface EnvironmentSchema extends Record<string, unknown> {
6
+ id: number;
7
+ name: string;
8
+ slug?: string;
9
+ external_url?: string;
10
+ project?: ProjectSchema;
11
+ state?: string;
12
+ last_deployment?: DeploymentSchema;
13
+ deployable?: DeployableSchema;
14
+ }
15
+ export declare class Environments<C extends boolean = false> extends BaseResource<C> {
16
+ all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>[]>;
17
+ show(projectId: string | number, environmentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, EnvironmentSchema>>;
18
+ create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>>;
19
+ edit(projectId: string | number, environmentId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>>;
20
+ remove(projectId: string | number, environmentId: number, options?: Sudo): Promise<void>;
21
+ stop(projectId: string | number, environmentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>>;
22
+ }