bitbucket-datacenter-mcp 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1573) hide show
  1. package/CHANGELOG.md +307 -0
  2. package/README.md +236 -0
  3. package/bin/run.js +7 -0
  4. package/build/__tests__/bitbucket-service.test.d.ts +2 -0
  5. package/build/__tests__/bitbucket-service.test.d.ts.map +1 -0
  6. package/build/__tests__/bitbucket-service.test.js +2824 -0
  7. package/build/__tests__/bitbucket-service.test.js.map +1 -0
  8. package/build/__tests__/bitbucket-token-optimization.test.d.ts +2 -0
  9. package/build/__tests__/bitbucket-token-optimization.test.d.ts.map +1 -0
  10. package/build/__tests__/bitbucket-token-optimization.test.js +391 -0
  11. package/build/__tests__/bitbucket-token-optimization.test.js.map +1 -0
  12. package/build/__tests__/config.test.d.ts +2 -0
  13. package/build/__tests__/config.test.d.ts.map +1 -0
  14. package/build/__tests__/config.test.js +49 -0
  15. package/build/__tests__/config.test.js.map +1 -0
  16. package/build/__tests__/inbox-pr-mapper.test.d.ts +2 -0
  17. package/build/__tests__/inbox-pr-mapper.test.d.ts.map +1 -0
  18. package/build/__tests__/inbox-pr-mapper.test.js +304 -0
  19. package/build/__tests__/inbox-pr-mapper.test.js.map +1 -0
  20. package/build/__tests__/pr-changes-mapper.test.d.ts +2 -0
  21. package/build/__tests__/pr-changes-mapper.test.d.ts.map +1 -0
  22. package/build/__tests__/pr-changes-mapper.test.js +396 -0
  23. package/build/__tests__/pr-changes-mapper.test.js.map +1 -0
  24. package/build/__tests__/pr-comment-mapper.test.d.ts +2 -0
  25. package/build/__tests__/pr-comment-mapper.test.d.ts.map +1 -0
  26. package/build/__tests__/pr-comment-mapper.test.js +490 -0
  27. package/build/__tests__/pr-comment-mapper.test.js.map +1 -0
  28. package/build/bitbucket-client/core/ApiError.d.ts +11 -0
  29. package/build/bitbucket-client/core/ApiError.d.ts.map +1 -0
  30. package/build/bitbucket-client/core/ApiError.js +17 -0
  31. package/build/bitbucket-client/core/ApiError.js.map +1 -0
  32. package/build/bitbucket-client/core/ApiRequestOptions.d.ts +14 -0
  33. package/build/bitbucket-client/core/ApiRequestOptions.d.ts.map +1 -0
  34. package/build/bitbucket-client/core/ApiRequestOptions.js +2 -0
  35. package/build/bitbucket-client/core/ApiRequestOptions.js.map +1 -0
  36. package/build/bitbucket-client/core/ApiResult.d.ts +8 -0
  37. package/build/bitbucket-client/core/ApiResult.d.ts.map +1 -0
  38. package/build/bitbucket-client/core/ApiResult.js +2 -0
  39. package/build/bitbucket-client/core/ApiResult.js.map +1 -0
  40. package/build/bitbucket-client/core/CancelablePromise.d.ts +21 -0
  41. package/build/bitbucket-client/core/CancelablePromise.d.ts.map +1 -0
  42. package/build/bitbucket-client/core/CancelablePromise.js +100 -0
  43. package/build/bitbucket-client/core/CancelablePromise.js.map +1 -0
  44. package/build/bitbucket-client/core/OpenAPI.d.ts +17 -0
  45. package/build/bitbucket-client/core/OpenAPI.d.ts.map +1 -0
  46. package/build/bitbucket-client/core/OpenAPI.js +12 -0
  47. package/build/bitbucket-client/core/OpenAPI.js.map +1 -0
  48. package/build/bitbucket-client/core/request.d.ts +31 -0
  49. package/build/bitbucket-client/core/request.d.ts.map +1 -0
  50. package/build/bitbucket-client/core/request.js +292 -0
  51. package/build/bitbucket-client/core/request.js.map +1 -0
  52. package/build/bitbucket-client/index.d.ts +297 -0
  53. package/build/bitbucket-client/index.d.ts.map +1 -0
  54. package/build/bitbucket-client/index.js +44 -0
  55. package/build/bitbucket-client/index.js.map +1 -0
  56. package/build/bitbucket-client/models/AdminPasswordUpdate.d.ts +6 -0
  57. package/build/bitbucket-client/models/AdminPasswordUpdate.d.ts.map +1 -0
  58. package/build/bitbucket-client/models/AdminPasswordUpdate.js +2 -0
  59. package/build/bitbucket-client/models/AdminPasswordUpdate.js.map +1 -0
  60. package/build/bitbucket-client/models/ApplicationId.d.ts +2 -0
  61. package/build/bitbucket-client/models/ApplicationId.d.ts.map +1 -0
  62. package/build/bitbucket-client/models/ApplicationId.js +2 -0
  63. package/build/bitbucket-client/models/ApplicationId.js.map +1 -0
  64. package/build/bitbucket-client/models/ApplicationUser.d.ts +2 -0
  65. package/build/bitbucket-client/models/ApplicationUser.d.ts.map +1 -0
  66. package/build/bitbucket-client/models/ApplicationUser.js +2 -0
  67. package/build/bitbucket-client/models/ApplicationUser.js.map +1 -0
  68. package/build/bitbucket-client/models/AuthenticationEntity.d.ts +9 -0
  69. package/build/bitbucket-client/models/AuthenticationEntity.d.ts.map +1 -0
  70. package/build/bitbucket-client/models/AuthenticationEntity.js +2 -0
  71. package/build/bitbucket-client/models/AuthenticationEntity.js.map +1 -0
  72. package/build/bitbucket-client/models/AuthenticationResponse.d.ts +2 -0
  73. package/build/bitbucket-client/models/AuthenticationResponse.d.ts.map +1 -0
  74. package/build/bitbucket-client/models/AuthenticationResponse.js +2 -0
  75. package/build/bitbucket-client/models/AuthenticationResponse.js.map +1 -0
  76. package/build/bitbucket-client/models/BasicAuthConfigEntity.d.ts +2 -0
  77. package/build/bitbucket-client/models/BasicAuthConfigEntity.d.ts.map +1 -0
  78. package/build/bitbucket-client/models/BasicAuthConfigEntity.js +2 -0
  79. package/build/bitbucket-client/models/BasicAuthConfigEntity.js.map +1 -0
  80. package/build/bitbucket-client/models/CaptchaDataEntity.d.ts +2 -0
  81. package/build/bitbucket-client/models/CaptchaDataEntity.d.ts.map +1 -0
  82. package/build/bitbucket-client/models/CaptchaDataEntity.js +2 -0
  83. package/build/bitbucket-client/models/CaptchaDataEntity.js.map +1 -0
  84. package/build/bitbucket-client/models/Comment.d.ts +33 -0
  85. package/build/bitbucket-client/models/Comment.d.ts.map +1 -0
  86. package/build/bitbucket-client/models/Comment.js +15 -0
  87. package/build/bitbucket-client/models/Comment.js.map +1 -0
  88. package/build/bitbucket-client/models/CommentOperations.d.ts +6 -0
  89. package/build/bitbucket-client/models/CommentOperations.d.ts.map +1 -0
  90. package/build/bitbucket-client/models/CommentOperations.js +2 -0
  91. package/build/bitbucket-client/models/CommentOperations.js.map +1 -0
  92. package/build/bitbucket-client/models/CommentThread.d.ts +17 -0
  93. package/build/bitbucket-client/models/CommentThread.d.ts.map +1 -0
  94. package/build/bitbucket-client/models/CommentThread.js +2 -0
  95. package/build/bitbucket-client/models/CommentThread.js.map +1 -0
  96. package/build/bitbucket-client/models/CommentThreadDiffAnchor.d.ts +41 -0
  97. package/build/bitbucket-client/models/CommentThreadDiffAnchor.d.ts.map +1 -0
  98. package/build/bitbucket-client/models/CommentThreadDiffAnchor.js +27 -0
  99. package/build/bitbucket-client/models/CommentThreadDiffAnchor.js.map +1 -0
  100. package/build/bitbucket-client/models/Commentable.d.ts +2 -0
  101. package/build/bitbucket-client/models/Commentable.d.ts.map +1 -0
  102. package/build/bitbucket-client/models/Commentable.js +2 -0
  103. package/build/bitbucket-client/models/Commentable.js.map +1 -0
  104. package/build/bitbucket-client/models/Context.d.ts +4 -0
  105. package/build/bitbucket-client/models/Context.d.ts.map +1 -0
  106. package/build/bitbucket-client/models/Context.js +2 -0
  107. package/build/bitbucket-client/models/Context.js.map +1 -0
  108. package/build/bitbucket-client/models/ConversationDTO.d.ts +4 -0
  109. package/build/bitbucket-client/models/ConversationDTO.d.ts.map +1 -0
  110. package/build/bitbucket-client/models/ConversationDTO.js +2 -0
  111. package/build/bitbucket-client/models/ConversationDTO.js.map +1 -0
  112. package/build/bitbucket-client/models/Credentials.d.ts +5 -0
  113. package/build/bitbucket-client/models/Credentials.d.ts.map +1 -0
  114. package/build/bitbucket-client/models/Credentials.js +2 -0
  115. package/build/bitbucket-client/models/Credentials.js.map +1 -0
  116. package/build/bitbucket-client/models/CredentialsCheckFailedDTO.d.ts +2 -0
  117. package/build/bitbucket-client/models/CredentialsCheckFailedDTO.d.ts.map +1 -0
  118. package/build/bitbucket-client/models/CredentialsCheckFailedDTO.js +2 -0
  119. package/build/bitbucket-client/models/CredentialsCheckFailedDTO.js.map +1 -0
  120. package/build/bitbucket-client/models/DiffContentFilter.d.ts +2 -0
  121. package/build/bitbucket-client/models/DiffContentFilter.d.ts.map +1 -0
  122. package/build/bitbucket-client/models/DiffContentFilter.js +2 -0
  123. package/build/bitbucket-client/models/DiffContentFilter.js.map +1 -0
  124. package/build/bitbucket-client/models/ElevationMethodRestDTO.d.ts +2 -0
  125. package/build/bitbucket-client/models/ElevationMethodRestDTO.d.ts.map +1 -0
  126. package/build/bitbucket-client/models/ElevationMethodRestDTO.js +2 -0
  127. package/build/bitbucket-client/models/ElevationMethodRestDTO.js.map +1 -0
  128. package/build/bitbucket-client/models/EnrichedRepository.d.ts +2 -0
  129. package/build/bitbucket-client/models/EnrichedRepository.d.ts.map +1 -0
  130. package/build/bitbucket-client/models/EnrichedRepository.js +2 -0
  131. package/build/bitbucket-client/models/EnrichedRepository.js.map +1 -0
  132. package/build/bitbucket-client/models/ErrorEntity.d.ts +2 -0
  133. package/build/bitbucket-client/models/ErrorEntity.d.ts.map +1 -0
  134. package/build/bitbucket-client/models/ErrorEntity.js +2 -0
  135. package/build/bitbucket-client/models/ErrorEntity.js.map +1 -0
  136. package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.d.ts +7 -0
  137. package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.d.ts.map +1 -0
  138. package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.js +2 -0
  139. package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.js.map +1 -0
  140. package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.d.ts +7 -0
  141. package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.d.ts.map +1 -0
  142. package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.js +2 -0
  143. package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.js.map +1 -0
  144. package/build/bitbucket-client/models/ExampleFiles.d.ts +2 -0
  145. package/build/bitbucket-client/models/ExampleFiles.d.ts.map +1 -0
  146. package/build/bitbucket-client/models/ExampleFiles.js +2 -0
  147. package/build/bitbucket-client/models/ExampleFiles.js.map +1 -0
  148. package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.d.ts +2 -0
  149. package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.d.ts.map +1 -0
  150. package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.js +2 -0
  151. package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.js.map +1 -0
  152. package/build/bitbucket-client/models/ExampleMultipartFormData.d.ts +23 -0
  153. package/build/bitbucket-client/models/ExampleMultipartFormData.d.ts.map +1 -0
  154. package/build/bitbucket-client/models/ExampleMultipartFormData.js +2 -0
  155. package/build/bitbucket-client/models/ExampleMultipartFormData.js.map +1 -0
  156. package/build/bitbucket-client/models/ExamplePostMultipartFormData.d.ts +19 -0
  157. package/build/bitbucket-client/models/ExamplePostMultipartFormData.d.ts.map +1 -0
  158. package/build/bitbucket-client/models/ExamplePostMultipartFormData.js +2 -0
  159. package/build/bitbucket-client/models/ExamplePostMultipartFormData.js.map +1 -0
  160. package/build/bitbucket-client/models/ExamplePreviewMigration.d.ts +2 -0
  161. package/build/bitbucket-client/models/ExamplePreviewMigration.d.ts.map +1 -0
  162. package/build/bitbucket-client/models/ExamplePreviewMigration.js +2 -0
  163. package/build/bitbucket-client/models/ExamplePreviewMigration.js.map +1 -0
  164. package/build/bitbucket-client/models/ExamplePutMultipartFormData.d.ts +15 -0
  165. package/build/bitbucket-client/models/ExamplePutMultipartFormData.d.ts.map +1 -0
  166. package/build/bitbucket-client/models/ExamplePutMultipartFormData.js +2 -0
  167. package/build/bitbucket-client/models/ExamplePutMultipartFormData.js.map +1 -0
  168. package/build/bitbucket-client/models/ExampleRequirements.d.ts +2 -0
  169. package/build/bitbucket-client/models/ExampleRequirements.d.ts.map +1 -0
  170. package/build/bitbucket-client/models/ExampleRequirements.js +2 -0
  171. package/build/bitbucket-client/models/ExampleRequirements.js.map +1 -0
  172. package/build/bitbucket-client/models/ExampleSettings.d.ts +2 -0
  173. package/build/bitbucket-client/models/ExampleSettings.d.ts.map +1 -0
  174. package/build/bitbucket-client/models/ExampleSettings.js +2 -0
  175. package/build/bitbucket-client/models/ExampleSettings.js.map +1 -0
  176. package/build/bitbucket-client/models/ExampleSettingsMap.d.ts +2 -0
  177. package/build/bitbucket-client/models/ExampleSettingsMap.d.ts.map +1 -0
  178. package/build/bitbucket-client/models/ExampleSettingsMap.js +2 -0
  179. package/build/bitbucket-client/models/ExampleSettingsMap.js.map +1 -0
  180. package/build/bitbucket-client/models/ExampleSocketAddress.d.ts +2 -0
  181. package/build/bitbucket-client/models/ExampleSocketAddress.d.ts.map +1 -0
  182. package/build/bitbucket-client/models/ExampleSocketAddress.js +2 -0
  183. package/build/bitbucket-client/models/ExampleSocketAddress.js.map +1 -0
  184. package/build/bitbucket-client/models/ExampleStatus.d.ts +2 -0
  185. package/build/bitbucket-client/models/ExampleStatus.d.ts.map +1 -0
  186. package/build/bitbucket-client/models/ExampleStatus.js +2 -0
  187. package/build/bitbucket-client/models/ExampleStatus.js.map +1 -0
  188. package/build/bitbucket-client/models/FileListResource.d.ts +2 -0
  189. package/build/bitbucket-client/models/FileListResource.d.ts.map +1 -0
  190. package/build/bitbucket-client/models/FileListResource.js +2 -0
  191. package/build/bitbucket-client/models/FileListResource.js.map +1 -0
  192. package/build/bitbucket-client/models/FilePart.d.ts +9 -0
  193. package/build/bitbucket-client/models/FilePart.d.ts.map +1 -0
  194. package/build/bitbucket-client/models/FilePart.js +2 -0
  195. package/build/bitbucket-client/models/FilePart.js.map +1 -0
  196. package/build/bitbucket-client/models/Group.d.ts +2 -0
  197. package/build/bitbucket-client/models/Group.d.ts.map +1 -0
  198. package/build/bitbucket-client/models/Group.js +2 -0
  199. package/build/bitbucket-client/models/Group.js.map +1 -0
  200. package/build/bitbucket-client/models/GroupAndUsers.d.ts +5 -0
  201. package/build/bitbucket-client/models/GroupAndUsers.d.ts.map +1 -0
  202. package/build/bitbucket-client/models/GroupAndUsers.js +2 -0
  203. package/build/bitbucket-client/models/GroupAndUsers.js.map +1 -0
  204. package/build/bitbucket-client/models/GroupPickerContext.d.ts +5 -0
  205. package/build/bitbucket-client/models/GroupPickerContext.d.ts.map +1 -0
  206. package/build/bitbucket-client/models/GroupPickerContext.js +2 -0
  207. package/build/bitbucket-client/models/GroupPickerContext.js.map +1 -0
  208. package/build/bitbucket-client/models/IdpConfigEntity.d.ts +2 -0
  209. package/build/bitbucket-client/models/IdpConfigEntity.d.ts.map +1 -0
  210. package/build/bitbucket-client/models/IdpConfigEntity.js +2 -0
  211. package/build/bitbucket-client/models/IdpConfigEntity.js.map +1 -0
  212. package/build/bitbucket-client/models/JitConfigEntity.d.ts +2 -0
  213. package/build/bitbucket-client/models/JitConfigEntity.d.ts.map +1 -0
  214. package/build/bitbucket-client/models/JitConfigEntity.js +2 -0
  215. package/build/bitbucket-client/models/JitConfigEntity.js.map +1 -0
  216. package/build/bitbucket-client/models/JitUserEntity.d.ts +2 -0
  217. package/build/bitbucket-client/models/JitUserEntity.d.ts.map +1 -0
  218. package/build/bitbucket-client/models/JitUserEntity.js +2 -0
  219. package/build/bitbucket-client/models/JitUserEntity.js.map +1 -0
  220. package/build/bitbucket-client/models/LineNumberRange.d.ts +6 -0
  221. package/build/bitbucket-client/models/LineNumberRange.d.ts.map +1 -0
  222. package/build/bitbucket-client/models/LineNumberRange.js +2 -0
  223. package/build/bitbucket-client/models/LineNumberRange.js.map +1 -0
  224. package/build/bitbucket-client/models/LoginOptionEntity.d.ts +2 -0
  225. package/build/bitbucket-client/models/LoginOptionEntity.d.ts.map +1 -0
  226. package/build/bitbucket-client/models/LoginOptionEntity.js +2 -0
  227. package/build/bitbucket-client/models/LoginOptionEntity.js.map +1 -0
  228. package/build/bitbucket-client/models/MethodStateDTO.d.ts +2 -0
  229. package/build/bitbucket-client/models/MethodStateDTO.d.ts.map +1 -0
  230. package/build/bitbucket-client/models/MethodStateDTO.js +2 -0
  231. package/build/bitbucket-client/models/MethodStateDTO.js.map +1 -0
  232. package/build/bitbucket-client/models/NextLoginStepDTO.d.ts +2 -0
  233. package/build/bitbucket-client/models/NextLoginStepDTO.d.ts.map +1 -0
  234. package/build/bitbucket-client/models/NextLoginStepDTO.js +2 -0
  235. package/build/bitbucket-client/models/NextLoginStepDTO.js.map +1 -0
  236. package/build/bitbucket-client/models/OptionalBodyBeanParam.d.ts +2 -0
  237. package/build/bitbucket-client/models/OptionalBodyBeanParam.d.ts.map +1 -0
  238. package/build/bitbucket-client/models/OptionalBodyBeanParam.js +2 -0
  239. package/build/bitbucket-client/models/OptionalBodyBeanParam.js.map +1 -0
  240. package/build/bitbucket-client/models/PageRequestImpl.d.ts +5 -0
  241. package/build/bitbucket-client/models/PageRequestImpl.d.ts.map +1 -0
  242. package/build/bitbucket-client/models/PageRequestImpl.js +2 -0
  243. package/build/bitbucket-client/models/PageRequestImpl.js.map +1 -0
  244. package/build/bitbucket-client/models/PasswordElevationRestDTO.d.ts +4 -0
  245. package/build/bitbucket-client/models/PasswordElevationRestDTO.d.ts.map +1 -0
  246. package/build/bitbucket-client/models/PasswordElevationRestDTO.js +2 -0
  247. package/build/bitbucket-client/models/PasswordElevationRestDTO.js.map +1 -0
  248. package/build/bitbucket-client/models/Project.d.ts +15 -0
  249. package/build/bitbucket-client/models/Project.d.ts.map +1 -0
  250. package/build/bitbucket-client/models/Project.js +9 -0
  251. package/build/bitbucket-client/models/Project.js.map +1 -0
  252. package/build/bitbucket-client/models/PropertyMap.d.ts +2 -0
  253. package/build/bitbucket-client/models/PropertyMap.d.ts.map +1 -0
  254. package/build/bitbucket-client/models/PropertyMap.js +2 -0
  255. package/build/bitbucket-client/models/PropertyMap.js.map +1 -0
  256. package/build/bitbucket-client/models/PullRequest.d.ts +31 -0
  257. package/build/bitbucket-client/models/PullRequest.d.ts.map +1 -0
  258. package/build/bitbucket-client/models/PullRequest.js +10 -0
  259. package/build/bitbucket-client/models/PullRequest.js.map +1 -0
  260. package/build/bitbucket-client/models/PullRequestParticipant.d.ts +23 -0
  261. package/build/bitbucket-client/models/PullRequestParticipant.d.ts.map +1 -0
  262. package/build/bitbucket-client/models/PullRequestParticipant.js +16 -0
  263. package/build/bitbucket-client/models/PullRequestParticipant.js.map +1 -0
  264. package/build/bitbucket-client/models/PullRequestRef.d.ts +10 -0
  265. package/build/bitbucket-client/models/PullRequestRef.d.ts.map +1 -0
  266. package/build/bitbucket-client/models/PullRequestRef.js +2 -0
  267. package/build/bitbucket-client/models/PullRequestRef.js.map +1 -0
  268. package/build/bitbucket-client/models/RefType.d.ts +2 -0
  269. package/build/bitbucket-client/models/RefType.d.ts.map +1 -0
  270. package/build/bitbucket-client/models/RefType.js +2 -0
  271. package/build/bitbucket-client/models/RefType.js.map +1 -0
  272. package/build/bitbucket-client/models/Repository.d.ts +31 -0
  273. package/build/bitbucket-client/models/Repository.d.ts.map +1 -0
  274. package/build/bitbucket-client/models/Repository.js +11 -0
  275. package/build/bitbucket-client/models/Repository.js.map +1 -0
  276. package/build/bitbucket-client/models/RepositoryHookDetails.d.ts +2 -0
  277. package/build/bitbucket-client/models/RepositoryHookDetails.d.ts.map +1 -0
  278. package/build/bitbucket-client/models/RepositoryHookDetails.js +2 -0
  279. package/build/bitbucket-client/models/RepositoryHookDetails.js.map +1 -0
  280. package/build/bitbucket-client/models/RestAccessToken.d.ts +2 -0
  281. package/build/bitbucket-client/models/RestAccessToken.d.ts.map +1 -0
  282. package/build/bitbucket-client/models/RestAccessToken.js +2 -0
  283. package/build/bitbucket-client/models/RestAccessToken.js.map +1 -0
  284. package/build/bitbucket-client/models/RestAccessTokenRequest.d.ts +6 -0
  285. package/build/bitbucket-client/models/RestAccessTokenRequest.d.ts.map +1 -0
  286. package/build/bitbucket-client/models/RestAccessTokenRequest.js +2 -0
  287. package/build/bitbucket-client/models/RestAccessTokenRequest.js.map +1 -0
  288. package/build/bitbucket-client/models/RestAggregateRejectCounter.d.ts +2 -0
  289. package/build/bitbucket-client/models/RestAggregateRejectCounter.d.ts.map +1 -0
  290. package/build/bitbucket-client/models/RestAggregateRejectCounter.js +2 -0
  291. package/build/bitbucket-client/models/RestAggregateRejectCounter.js.map +1 -0
  292. package/build/bitbucket-client/models/RestAnalyticsSettings.d.ts +2 -0
  293. package/build/bitbucket-client/models/RestAnalyticsSettings.d.ts.map +1 -0
  294. package/build/bitbucket-client/models/RestAnalyticsSettings.js +2 -0
  295. package/build/bitbucket-client/models/RestAnalyticsSettings.js.map +1 -0
  296. package/build/bitbucket-client/models/RestAnnouncementBanner.d.ts +2 -0
  297. package/build/bitbucket-client/models/RestAnnouncementBanner.d.ts.map +1 -0
  298. package/build/bitbucket-client/models/RestAnnouncementBanner.js +2 -0
  299. package/build/bitbucket-client/models/RestAnnouncementBanner.js.map +1 -0
  300. package/build/bitbucket-client/models/RestApplicationProperties.d.ts +2 -0
  301. package/build/bitbucket-client/models/RestApplicationProperties.d.ts.map +1 -0
  302. package/build/bitbucket-client/models/RestApplicationProperties.js +2 -0
  303. package/build/bitbucket-client/models/RestApplicationProperties.js.map +1 -0
  304. package/build/bitbucket-client/models/RestApplicationUser.d.ts +2 -0
  305. package/build/bitbucket-client/models/RestApplicationUser.d.ts.map +1 -0
  306. package/build/bitbucket-client/models/RestApplicationUser.js +2 -0
  307. package/build/bitbucket-client/models/RestApplicationUser.js.map +1 -0
  308. package/build/bitbucket-client/models/RestApplicationUserWithPermissions.d.ts +2 -0
  309. package/build/bitbucket-client/models/RestApplicationUserWithPermissions.d.ts.map +1 -0
  310. package/build/bitbucket-client/models/RestApplicationUserWithPermissions.js +2 -0
  311. package/build/bitbucket-client/models/RestApplicationUserWithPermissions.js.map +1 -0
  312. package/build/bitbucket-client/models/RestApplySuggestionRequest.d.ts +7 -0
  313. package/build/bitbucket-client/models/RestApplySuggestionRequest.d.ts.map +1 -0
  314. package/build/bitbucket-client/models/RestApplySuggestionRequest.js +2 -0
  315. package/build/bitbucket-client/models/RestApplySuggestionRequest.js.map +1 -0
  316. package/build/bitbucket-client/models/RestAttachmentMetadata.d.ts +2 -0
  317. package/build/bitbucket-client/models/RestAttachmentMetadata.d.ts.map +1 -0
  318. package/build/bitbucket-client/models/RestAttachmentMetadata.js +2 -0
  319. package/build/bitbucket-client/models/RestAttachmentMetadata.js.map +1 -0
  320. package/build/bitbucket-client/models/RestAuthenticationRequest.d.ts +6 -0
  321. package/build/bitbucket-client/models/RestAuthenticationRequest.d.ts.map +1 -0
  322. package/build/bitbucket-client/models/RestAuthenticationRequest.js +2 -0
  323. package/build/bitbucket-client/models/RestAuthenticationRequest.js.map +1 -0
  324. package/build/bitbucket-client/models/RestAutoDeclineSettings.d.ts +2 -0
  325. package/build/bitbucket-client/models/RestAutoDeclineSettings.d.ts.map +1 -0
  326. package/build/bitbucket-client/models/RestAutoDeclineSettings.js +2 -0
  327. package/build/bitbucket-client/models/RestAutoDeclineSettings.js.map +1 -0
  328. package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.d.ts +5 -0
  329. package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.d.ts.map +1 -0
  330. package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.js +2 -0
  331. package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.js.map +1 -0
  332. package/build/bitbucket-client/models/RestAutoMergeProcessingResult.d.ts +2 -0
  333. package/build/bitbucket-client/models/RestAutoMergeProcessingResult.d.ts.map +1 -0
  334. package/build/bitbucket-client/models/RestAutoMergeProcessingResult.js +2 -0
  335. package/build/bitbucket-client/models/RestAutoMergeProcessingResult.js.map +1 -0
  336. package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.d.ts +12 -0
  337. package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.d.ts.map +1 -0
  338. package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.js +10 -0
  339. package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.js.map +1 -0
  340. package/build/bitbucket-client/models/RestAutoMergeRequest.d.ts +2 -0
  341. package/build/bitbucket-client/models/RestAutoMergeRequest.d.ts.map +1 -0
  342. package/build/bitbucket-client/models/RestAutoMergeRequest.js +2 -0
  343. package/build/bitbucket-client/models/RestAutoMergeRequest.js.map +1 -0
  344. package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.d.ts +2 -0
  345. package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.d.ts.map +1 -0
  346. package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.js +2 -0
  347. package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.js.map +1 -0
  348. package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.d.ts +4 -0
  349. package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.d.ts.map +1 -0
  350. package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.js +2 -0
  351. package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.js.map +1 -0
  352. package/build/bitbucket-client/models/RestBearerTokenCredentials.d.ts +4 -0
  353. package/build/bitbucket-client/models/RestBearerTokenCredentials.d.ts.map +1 -0
  354. package/build/bitbucket-client/models/RestBearerTokenCredentials.js +2 -0
  355. package/build/bitbucket-client/models/RestBearerTokenCredentials.js.map +1 -0
  356. package/build/bitbucket-client/models/RestBitbucketLicense.d.ts +2 -0
  357. package/build/bitbucket-client/models/RestBitbucketLicense.d.ts.map +1 -0
  358. package/build/bitbucket-client/models/RestBitbucketLicense.js +2 -0
  359. package/build/bitbucket-client/models/RestBitbucketLicense.js.map +1 -0
  360. package/build/bitbucket-client/models/RestBranch.d.ts +2 -0
  361. package/build/bitbucket-client/models/RestBranch.d.ts.map +1 -0
  362. package/build/bitbucket-client/models/RestBranch.js +2 -0
  363. package/build/bitbucket-client/models/RestBranch.js.map +1 -0
  364. package/build/bitbucket-client/models/RestBranchCreateRequest.d.ts +11 -0
  365. package/build/bitbucket-client/models/RestBranchCreateRequest.d.ts.map +1 -0
  366. package/build/bitbucket-client/models/RestBranchCreateRequest.js +2 -0
  367. package/build/bitbucket-client/models/RestBranchCreateRequest.js.map +1 -0
  368. package/build/bitbucket-client/models/RestBranchDeleteRequest.d.ts +15 -0
  369. package/build/bitbucket-client/models/RestBranchDeleteRequest.d.ts.map +1 -0
  370. package/build/bitbucket-client/models/RestBranchDeleteRequest.js +2 -0
  371. package/build/bitbucket-client/models/RestBranchDeleteRequest.js.map +1 -0
  372. package/build/bitbucket-client/models/RestBuildCapabilities.d.ts +2 -0
  373. package/build/bitbucket-client/models/RestBuildCapabilities.d.ts.map +1 -0
  374. package/build/bitbucket-client/models/RestBuildCapabilities.js +2 -0
  375. package/build/bitbucket-client/models/RestBuildCapabilities.js.map +1 -0
  376. package/build/bitbucket-client/models/RestBuildStats.d.ts +2 -0
  377. package/build/bitbucket-client/models/RestBuildStats.d.ts.map +1 -0
  378. package/build/bitbucket-client/models/RestBuildStats.js +2 -0
  379. package/build/bitbucket-client/models/RestBuildStats.js.map +1 -0
  380. package/build/bitbucket-client/models/RestBuildStatus.d.ts +2 -0
  381. package/build/bitbucket-client/models/RestBuildStatus.d.ts.map +1 -0
  382. package/build/bitbucket-client/models/RestBuildStatus.js +2 -0
  383. package/build/bitbucket-client/models/RestBuildStatus.js.map +1 -0
  384. package/build/bitbucket-client/models/RestBuildStatusSetRequest.d.ts +27 -0
  385. package/build/bitbucket-client/models/RestBuildStatusSetRequest.d.ts.map +1 -0
  386. package/build/bitbucket-client/models/RestBuildStatusSetRequest.js +12 -0
  387. package/build/bitbucket-client/models/RestBuildStatusSetRequest.js.map +1 -0
  388. package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.d.ts +5 -0
  389. package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.d.ts.map +1 -0
  390. package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.js +2 -0
  391. package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.js.map +1 -0
  392. package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.d.ts +9 -0
  393. package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.d.ts.map +1 -0
  394. package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.js +2 -0
  395. package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.js.map +1 -0
  396. package/build/bitbucket-client/models/RestChange.d.ts +2 -0
  397. package/build/bitbucket-client/models/RestChange.d.ts.map +1 -0
  398. package/build/bitbucket-client/models/RestChange.js +2 -0
  399. package/build/bitbucket-client/models/RestChange.js.map +1 -0
  400. package/build/bitbucket-client/models/RestChangeset.d.ts +2 -0
  401. package/build/bitbucket-client/models/RestChangeset.d.ts.map +1 -0
  402. package/build/bitbucket-client/models/RestChangeset.js +2 -0
  403. package/build/bitbucket-client/models/RestChangeset.js.map +1 -0
  404. package/build/bitbucket-client/models/RestClusterInformation.d.ts +2 -0
  405. package/build/bitbucket-client/models/RestClusterInformation.d.ts.map +1 -0
  406. package/build/bitbucket-client/models/RestClusterInformation.js +2 -0
  407. package/build/bitbucket-client/models/RestClusterInformation.js.map +1 -0
  408. package/build/bitbucket-client/models/RestClusterNode.d.ts +2 -0
  409. package/build/bitbucket-client/models/RestClusterNode.d.ts.map +1 -0
  410. package/build/bitbucket-client/models/RestClusterNode.js +2 -0
  411. package/build/bitbucket-client/models/RestClusterNode.js.map +1 -0
  412. package/build/bitbucket-client/models/RestComment.d.ts +2 -0
  413. package/build/bitbucket-client/models/RestComment.d.ts.map +1 -0
  414. package/build/bitbucket-client/models/RestComment.js +2 -0
  415. package/build/bitbucket-client/models/RestComment.js.map +1 -0
  416. package/build/bitbucket-client/models/RestCommentJiraIssue.d.ts +2 -0
  417. package/build/bitbucket-client/models/RestCommentJiraIssue.d.ts.map +1 -0
  418. package/build/bitbucket-client/models/RestCommentJiraIssue.js +2 -0
  419. package/build/bitbucket-client/models/RestCommentJiraIssue.js.map +1 -0
  420. package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.d.ts +2 -0
  421. package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.d.ts.map +1 -0
  422. package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.js +2 -0
  423. package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.js.map +1 -0
  424. package/build/bitbucket-client/models/RestCommit.d.ts +2 -0
  425. package/build/bitbucket-client/models/RestCommit.d.ts.map +1 -0
  426. package/build/bitbucket-client/models/RestCommit.js +2 -0
  427. package/build/bitbucket-client/models/RestCommit.js.map +1 -0
  428. package/build/bitbucket-client/models/RestCommitMessageSuggestion.d.ts +2 -0
  429. package/build/bitbucket-client/models/RestCommitMessageSuggestion.d.ts.map +1 -0
  430. package/build/bitbucket-client/models/RestCommitMessageSuggestion.js +2 -0
  431. package/build/bitbucket-client/models/RestCommitMessageSuggestion.js.map +1 -0
  432. package/build/bitbucket-client/models/RestConflict.d.ts +2 -0
  433. package/build/bitbucket-client/models/RestConflict.d.ts.map +1 -0
  434. package/build/bitbucket-client/models/RestConflict.js +2 -0
  435. package/build/bitbucket-client/models/RestConflict.js.map +1 -0
  436. package/build/bitbucket-client/models/RestConflictChange.d.ts +2 -0
  437. package/build/bitbucket-client/models/RestConflictChange.d.ts.map +1 -0
  438. package/build/bitbucket-client/models/RestConflictChange.js +2 -0
  439. package/build/bitbucket-client/models/RestConflictChange.js.map +1 -0
  440. package/build/bitbucket-client/models/RestConnectivitySummary.d.ts +2 -0
  441. package/build/bitbucket-client/models/RestConnectivitySummary.d.ts.map +1 -0
  442. package/build/bitbucket-client/models/RestConnectivitySummary.js +2 -0
  443. package/build/bitbucket-client/models/RestConnectivitySummary.js.map +1 -0
  444. package/build/bitbucket-client/models/RestCreateBranchRequest.d.ts +6 -0
  445. package/build/bitbucket-client/models/RestCreateBranchRequest.d.ts.map +1 -0
  446. package/build/bitbucket-client/models/RestCreateBranchRequest.js +2 -0
  447. package/build/bitbucket-client/models/RestCreateBranchRequest.js.map +1 -0
  448. package/build/bitbucket-client/models/RestCreateTagRequest.d.ts +6 -0
  449. package/build/bitbucket-client/models/RestCreateTagRequest.d.ts.map +1 -0
  450. package/build/bitbucket-client/models/RestCreateTagRequest.js +2 -0
  451. package/build/bitbucket-client/models/RestCreateTagRequest.js.map +1 -0
  452. package/build/bitbucket-client/models/RestDefaultBranch.d.ts +4 -0
  453. package/build/bitbucket-client/models/RestDefaultBranch.d.ts.map +1 -0
  454. package/build/bitbucket-client/models/RestDefaultBranch.js +2 -0
  455. package/build/bitbucket-client/models/RestDefaultBranch.js.map +1 -0
  456. package/build/bitbucket-client/models/RestDefaultReviewersRequest.d.ts +33 -0
  457. package/build/bitbucket-client/models/RestDefaultReviewersRequest.d.ts.map +1 -0
  458. package/build/bitbucket-client/models/RestDefaultReviewersRequest.js +12 -0
  459. package/build/bitbucket-client/models/RestDefaultReviewersRequest.js.map +1 -0
  460. package/build/bitbucket-client/models/RestDefaultTask.d.ts +2 -0
  461. package/build/bitbucket-client/models/RestDefaultTask.d.ts.map +1 -0
  462. package/build/bitbucket-client/models/RestDefaultTask.js +2 -0
  463. package/build/bitbucket-client/models/RestDefaultTask.js.map +1 -0
  464. package/build/bitbucket-client/models/RestDefaultTaskRequest.d.ts +29 -0
  465. package/build/bitbucket-client/models/RestDefaultTaskRequest.d.ts.map +1 -0
  466. package/build/bitbucket-client/models/RestDefaultTaskRequest.js +12 -0
  467. package/build/bitbucket-client/models/RestDefaultTaskRequest.js.map +1 -0
  468. package/build/bitbucket-client/models/RestDelayedSyncRepository.d.ts +6 -0
  469. package/build/bitbucket-client/models/RestDelayedSyncRepository.d.ts.map +1 -0
  470. package/build/bitbucket-client/models/RestDelayedSyncRepository.js +2 -0
  471. package/build/bitbucket-client/models/RestDelayedSyncRepository.js.map +1 -0
  472. package/build/bitbucket-client/models/RestDeployment.d.ts +2 -0
  473. package/build/bitbucket-client/models/RestDeployment.d.ts.map +1 -0
  474. package/build/bitbucket-client/models/RestDeployment.js +2 -0
  475. package/build/bitbucket-client/models/RestDeployment.js.map +1 -0
  476. package/build/bitbucket-client/models/RestDeploymentEnvironment.d.ts +2 -0
  477. package/build/bitbucket-client/models/RestDeploymentEnvironment.d.ts.map +1 -0
  478. package/build/bitbucket-client/models/RestDeploymentEnvironment.js +2 -0
  479. package/build/bitbucket-client/models/RestDeploymentEnvironment.js.map +1 -0
  480. package/build/bitbucket-client/models/RestDeploymentSetRequest.d.ts +23 -0
  481. package/build/bitbucket-client/models/RestDeploymentSetRequest.d.ts.map +1 -0
  482. package/build/bitbucket-client/models/RestDeploymentSetRequest.js +14 -0
  483. package/build/bitbucket-client/models/RestDeploymentSetRequest.js.map +1 -0
  484. package/build/bitbucket-client/models/RestDetailedGroup.d.ts +2 -0
  485. package/build/bitbucket-client/models/RestDetailedGroup.d.ts.map +1 -0
  486. package/build/bitbucket-client/models/RestDetailedGroup.js +2 -0
  487. package/build/bitbucket-client/models/RestDetailedGroup.js.map +1 -0
  488. package/build/bitbucket-client/models/RestDetailedInvocation.d.ts +2 -0
  489. package/build/bitbucket-client/models/RestDetailedInvocation.d.ts.map +1 -0
  490. package/build/bitbucket-client/models/RestDetailedInvocation.js +2 -0
  491. package/build/bitbucket-client/models/RestDetailedInvocation.js.map +1 -0
  492. package/build/bitbucket-client/models/RestDetailedUser.d.ts +2 -0
  493. package/build/bitbucket-client/models/RestDetailedUser.d.ts.map +1 -0
  494. package/build/bitbucket-client/models/RestDetailedUser.js +2 -0
  495. package/build/bitbucket-client/models/RestDetailedUser.js.map +1 -0
  496. package/build/bitbucket-client/models/RestDiff.d.ts +2 -0
  497. package/build/bitbucket-client/models/RestDiff.d.ts.map +1 -0
  498. package/build/bitbucket-client/models/RestDiff.js +2 -0
  499. package/build/bitbucket-client/models/RestDiff.js.map +1 -0
  500. package/build/bitbucket-client/models/RestDiffHunk.d.ts +2 -0
  501. package/build/bitbucket-client/models/RestDiffHunk.d.ts.map +1 -0
  502. package/build/bitbucket-client/models/RestDiffHunk.js +2 -0
  503. package/build/bitbucket-client/models/RestDiffHunk.js.map +1 -0
  504. package/build/bitbucket-client/models/RestDiffLine.d.ts +2 -0
  505. package/build/bitbucket-client/models/RestDiffLine.d.ts.map +1 -0
  506. package/build/bitbucket-client/models/RestDiffLine.js +2 -0
  507. package/build/bitbucket-client/models/RestDiffLine.js.map +1 -0
  508. package/build/bitbucket-client/models/RestDiffSegment.d.ts +2 -0
  509. package/build/bitbucket-client/models/RestDiffSegment.d.ts.map +1 -0
  510. package/build/bitbucket-client/models/RestDiffSegment.js +2 -0
  511. package/build/bitbucket-client/models/RestDiffSegment.js.map +1 -0
  512. package/build/bitbucket-client/models/RestDiffStatsSummary.d.ts +2 -0
  513. package/build/bitbucket-client/models/RestDiffStatsSummary.d.ts.map +1 -0
  514. package/build/bitbucket-client/models/RestDiffStatsSummary.js +2 -0
  515. package/build/bitbucket-client/models/RestDiffStatsSummary.js.map +1 -0
  516. package/build/bitbucket-client/models/RestEmoticon.d.ts +2 -0
  517. package/build/bitbucket-client/models/RestEmoticon.d.ts.map +1 -0
  518. package/build/bitbucket-client/models/RestEmoticon.js +2 -0
  519. package/build/bitbucket-client/models/RestEmoticon.js.map +1 -0
  520. package/build/bitbucket-client/models/RestEnhancedEntityLink.d.ts +2 -0
  521. package/build/bitbucket-client/models/RestEnhancedEntityLink.d.ts.map +1 -0
  522. package/build/bitbucket-client/models/RestEnhancedEntityLink.js +2 -0
  523. package/build/bitbucket-client/models/RestEnhancedEntityLink.js.map +1 -0
  524. package/build/bitbucket-client/models/RestErasedUser.d.ts +2 -0
  525. package/build/bitbucket-client/models/RestErasedUser.d.ts.map +1 -0
  526. package/build/bitbucket-client/models/RestErasedUser.js +2 -0
  527. package/build/bitbucket-client/models/RestErasedUser.js.map +1 -0
  528. package/build/bitbucket-client/models/RestErrorMessage.d.ts +2 -0
  529. package/build/bitbucket-client/models/RestErrorMessage.d.ts.map +1 -0
  530. package/build/bitbucket-client/models/RestErrorMessage.js +2 -0
  531. package/build/bitbucket-client/models/RestErrorMessage.js.map +1 -0
  532. package/build/bitbucket-client/models/RestErrors.d.ts +2 -0
  533. package/build/bitbucket-client/models/RestErrors.d.ts.map +1 -0
  534. package/build/bitbucket-client/models/RestErrors.js +2 -0
  535. package/build/bitbucket-client/models/RestErrors.js.map +1 -0
  536. package/build/bitbucket-client/models/RestExportRequest.d.ts +8 -0
  537. package/build/bitbucket-client/models/RestExportRequest.d.ts.map +1 -0
  538. package/build/bitbucket-client/models/RestExportRequest.js +2 -0
  539. package/build/bitbucket-client/models/RestExportRequest.js.map +1 -0
  540. package/build/bitbucket-client/models/RestFarmSynchronizationRequest.d.ts +13 -0
  541. package/build/bitbucket-client/models/RestFarmSynchronizationRequest.d.ts.map +1 -0
  542. package/build/bitbucket-client/models/RestFarmSynchronizationRequest.js +9 -0
  543. package/build/bitbucket-client/models/RestFarmSynchronizationRequest.js.map +1 -0
  544. package/build/bitbucket-client/models/RestGitTagCreateRequest.d.ts +14 -0
  545. package/build/bitbucket-client/models/RestGitTagCreateRequest.d.ts.map +1 -0
  546. package/build/bitbucket-client/models/RestGitTagCreateRequest.js +9 -0
  547. package/build/bitbucket-client/models/RestGitTagCreateRequest.js.map +1 -0
  548. package/build/bitbucket-client/models/RestGpgKey.d.ts +2 -0
  549. package/build/bitbucket-client/models/RestGpgKey.d.ts.map +1 -0
  550. package/build/bitbucket-client/models/RestGpgKey.js +2 -0
  551. package/build/bitbucket-client/models/RestGpgKey.js.map +1 -0
  552. package/build/bitbucket-client/models/RestGpgSubKey.d.ts +2 -0
  553. package/build/bitbucket-client/models/RestGpgSubKey.d.ts.map +1 -0
  554. package/build/bitbucket-client/models/RestGpgSubKey.js +2 -0
  555. package/build/bitbucket-client/models/RestGpgSubKey.js.map +1 -0
  556. package/build/bitbucket-client/models/RestHookScript.d.ts +2 -0
  557. package/build/bitbucket-client/models/RestHookScript.d.ts.map +1 -0
  558. package/build/bitbucket-client/models/RestHookScript.js +2 -0
  559. package/build/bitbucket-client/models/RestHookScript.js.map +1 -0
  560. package/build/bitbucket-client/models/RestHookScriptConfig.d.ts +2 -0
  561. package/build/bitbucket-client/models/RestHookScriptConfig.d.ts.map +1 -0
  562. package/build/bitbucket-client/models/RestHookScriptConfig.js +2 -0
  563. package/build/bitbucket-client/models/RestHookScriptConfig.js.map +1 -0
  564. package/build/bitbucket-client/models/RestHookScriptTriggers.d.ts +4 -0
  565. package/build/bitbucket-client/models/RestHookScriptTriggers.d.ts.map +1 -0
  566. package/build/bitbucket-client/models/RestHookScriptTriggers.js +2 -0
  567. package/build/bitbucket-client/models/RestHookScriptTriggers.js.map +1 -0
  568. package/build/bitbucket-client/models/RestImportRequest.d.ts +4 -0
  569. package/build/bitbucket-client/models/RestImportRequest.d.ts.map +1 -0
  570. package/build/bitbucket-client/models/RestImportRequest.js +2 -0
  571. package/build/bitbucket-client/models/RestImportRequest.js.map +1 -0
  572. package/build/bitbucket-client/models/RestInsightAnnotation.d.ts +2 -0
  573. package/build/bitbucket-client/models/RestInsightAnnotation.d.ts.map +1 -0
  574. package/build/bitbucket-client/models/RestInsightAnnotation.js +2 -0
  575. package/build/bitbucket-client/models/RestInsightAnnotation.js.map +1 -0
  576. package/build/bitbucket-client/models/RestInsightAnnotationsResponse.d.ts +2 -0
  577. package/build/bitbucket-client/models/RestInsightAnnotationsResponse.d.ts.map +1 -0
  578. package/build/bitbucket-client/models/RestInsightAnnotationsResponse.js +2 -0
  579. package/build/bitbucket-client/models/RestInsightAnnotationsResponse.js.map +1 -0
  580. package/build/bitbucket-client/models/RestInsightReport.d.ts +2 -0
  581. package/build/bitbucket-client/models/RestInsightReport.d.ts.map +1 -0
  582. package/build/bitbucket-client/models/RestInsightReport.js +2 -0
  583. package/build/bitbucket-client/models/RestInsightReport.js.map +1 -0
  584. package/build/bitbucket-client/models/RestInsightReportData.d.ts +2 -0
  585. package/build/bitbucket-client/models/RestInsightReportData.d.ts.map +1 -0
  586. package/build/bitbucket-client/models/RestInsightReportData.js +2 -0
  587. package/build/bitbucket-client/models/RestInsightReportData.js.map +1 -0
  588. package/build/bitbucket-client/models/RestInvocationHistory.d.ts +2 -0
  589. package/build/bitbucket-client/models/RestInvocationHistory.d.ts.map +1 -0
  590. package/build/bitbucket-client/models/RestInvocationHistory.js +2 -0
  591. package/build/bitbucket-client/models/RestInvocationHistory.js.map +1 -0
  592. package/build/bitbucket-client/models/RestInvocationRequest.d.ts +2 -0
  593. package/build/bitbucket-client/models/RestInvocationRequest.d.ts.map +1 -0
  594. package/build/bitbucket-client/models/RestInvocationRequest.js +2 -0
  595. package/build/bitbucket-client/models/RestInvocationRequest.js.map +1 -0
  596. package/build/bitbucket-client/models/RestInvocationResult.d.ts +2 -0
  597. package/build/bitbucket-client/models/RestInvocationResult.d.ts.map +1 -0
  598. package/build/bitbucket-client/models/RestInvocationResult.js +2 -0
  599. package/build/bitbucket-client/models/RestInvocationResult.js.map +1 -0
  600. package/build/bitbucket-client/models/RestJiraIssue.d.ts +5 -0
  601. package/build/bitbucket-client/models/RestJiraIssue.d.ts.map +1 -0
  602. package/build/bitbucket-client/models/RestJiraIssue.js +2 -0
  603. package/build/bitbucket-client/models/RestJiraIssue.js.map +1 -0
  604. package/build/bitbucket-client/models/RestJob.d.ts +2 -0
  605. package/build/bitbucket-client/models/RestJob.d.ts.map +1 -0
  606. package/build/bitbucket-client/models/RestJob.js +2 -0
  607. package/build/bitbucket-client/models/RestJob.js.map +1 -0
  608. package/build/bitbucket-client/models/RestJobMessage.d.ts +2 -0
  609. package/build/bitbucket-client/models/RestJobMessage.d.ts.map +1 -0
  610. package/build/bitbucket-client/models/RestJobMessage.js +2 -0
  611. package/build/bitbucket-client/models/RestJobMessage.js.map +1 -0
  612. package/build/bitbucket-client/models/RestLabel.d.ts +2 -0
  613. package/build/bitbucket-client/models/RestLabel.d.ts.map +1 -0
  614. package/build/bitbucket-client/models/RestLabel.js +2 -0
  615. package/build/bitbucket-client/models/RestLabel.js.map +1 -0
  616. package/build/bitbucket-client/models/RestLabelable.d.ts +2 -0
  617. package/build/bitbucket-client/models/RestLabelable.d.ts.map +1 -0
  618. package/build/bitbucket-client/models/RestLabelable.js +2 -0
  619. package/build/bitbucket-client/models/RestLabelable.js.map +1 -0
  620. package/build/bitbucket-client/models/RestLogLevel.d.ts +2 -0
  621. package/build/bitbucket-client/models/RestLogLevel.d.ts.map +1 -0
  622. package/build/bitbucket-client/models/RestLogLevel.js +2 -0
  623. package/build/bitbucket-client/models/RestLogLevel.js.map +1 -0
  624. package/build/bitbucket-client/models/RestLoggingSettings.d.ts +2 -0
  625. package/build/bitbucket-client/models/RestLoggingSettings.d.ts.map +1 -0
  626. package/build/bitbucket-client/models/RestLoggingSettings.js +2 -0
  627. package/build/bitbucket-client/models/RestLoggingSettings.js.map +1 -0
  628. package/build/bitbucket-client/models/RestMailConfiguration.d.ts +2 -0
  629. package/build/bitbucket-client/models/RestMailConfiguration.d.ts.map +1 -0
  630. package/build/bitbucket-client/models/RestMailConfiguration.js +2 -0
  631. package/build/bitbucket-client/models/RestMailConfiguration.js.map +1 -0
  632. package/build/bitbucket-client/models/RestMarkup.d.ts +2 -0
  633. package/build/bitbucket-client/models/RestMarkup.d.ts.map +1 -0
  634. package/build/bitbucket-client/models/RestMarkup.js +2 -0
  635. package/build/bitbucket-client/models/RestMarkup.js.map +1 -0
  636. package/build/bitbucket-client/models/RestMeshConnectivityReport.d.ts +2 -0
  637. package/build/bitbucket-client/models/RestMeshConnectivityReport.d.ts.map +1 -0
  638. package/build/bitbucket-client/models/RestMeshConnectivityReport.js +2 -0
  639. package/build/bitbucket-client/models/RestMeshConnectivityReport.js.map +1 -0
  640. package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.d.ts +2 -0
  641. package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.d.ts.map +1 -0
  642. package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.js +2 -0
  643. package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.js.map +1 -0
  644. package/build/bitbucket-client/models/RestMeshMigrationRequest.d.ts +10 -0
  645. package/build/bitbucket-client/models/RestMeshMigrationRequest.d.ts.map +1 -0
  646. package/build/bitbucket-client/models/RestMeshMigrationRequest.js +2 -0
  647. package/build/bitbucket-client/models/RestMeshMigrationRequest.js.map +1 -0
  648. package/build/bitbucket-client/models/RestMeshMigrationSummary.d.ts +2 -0
  649. package/build/bitbucket-client/models/RestMeshMigrationSummary.d.ts.map +1 -0
  650. package/build/bitbucket-client/models/RestMeshMigrationSummary.js +2 -0
  651. package/build/bitbucket-client/models/RestMeshMigrationSummary.js.map +1 -0
  652. package/build/bitbucket-client/models/RestMeshNode.d.ts +2 -0
  653. package/build/bitbucket-client/models/RestMeshNode.d.ts.map +1 -0
  654. package/build/bitbucket-client/models/RestMeshNode.js +2 -0
  655. package/build/bitbucket-client/models/RestMeshNode.js.map +1 -0
  656. package/build/bitbucket-client/models/RestMigrationRepository.d.ts +2 -0
  657. package/build/bitbucket-client/models/RestMigrationRepository.d.ts.map +1 -0
  658. package/build/bitbucket-client/models/RestMigrationRepository.js +2 -0
  659. package/build/bitbucket-client/models/RestMigrationRepository.js.map +1 -0
  660. package/build/bitbucket-client/models/RestMinimalCommit.d.ts +2 -0
  661. package/build/bitbucket-client/models/RestMinimalCommit.d.ts.map +1 -0
  662. package/build/bitbucket-client/models/RestMinimalCommit.js +2 -0
  663. package/build/bitbucket-client/models/RestMinimalCommit.js.map +1 -0
  664. package/build/bitbucket-client/models/RestMinimalRef.d.ts +2 -0
  665. package/build/bitbucket-client/models/RestMinimalRef.d.ts.map +1 -0
  666. package/build/bitbucket-client/models/RestMinimalRef.js +2 -0
  667. package/build/bitbucket-client/models/RestMinimalRef.js.map +1 -0
  668. package/build/bitbucket-client/models/RestMirrorHashes.d.ts +2 -0
  669. package/build/bitbucket-client/models/RestMirrorHashes.d.ts.map +1 -0
  670. package/build/bitbucket-client/models/RestMirrorHashes.js +2 -0
  671. package/build/bitbucket-client/models/RestMirrorHashes.js.map +1 -0
  672. package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.d.ts +2 -0
  673. package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.d.ts.map +1 -0
  674. package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.js +2 -0
  675. package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.js.map +1 -0
  676. package/build/bitbucket-client/models/RestMirrorServer.d.ts +2 -0
  677. package/build/bitbucket-client/models/RestMirrorServer.d.ts.map +1 -0
  678. package/build/bitbucket-client/models/RestMirrorServer.js +2 -0
  679. package/build/bitbucket-client/models/RestMirrorServer.js.map +1 -0
  680. package/build/bitbucket-client/models/RestMirrorUpgradeRequest.d.ts +5 -0
  681. package/build/bitbucket-client/models/RestMirrorUpgradeRequest.d.ts.map +1 -0
  682. package/build/bitbucket-client/models/RestMirrorUpgradeRequest.js +2 -0
  683. package/build/bitbucket-client/models/RestMirrorUpgradeRequest.js.map +1 -0
  684. package/build/bitbucket-client/models/RestMirroredRepository.d.ts +2 -0
  685. package/build/bitbucket-client/models/RestMirroredRepository.d.ts.map +1 -0
  686. package/build/bitbucket-client/models/RestMirroredRepository.js +2 -0
  687. package/build/bitbucket-client/models/RestMirroredRepository.js.map +1 -0
  688. package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.d.ts +2 -0
  689. package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.d.ts.map +1 -0
  690. package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.js +2 -0
  691. package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.js.map +1 -0
  692. package/build/bitbucket-client/models/RestMirroringRequest.d.ts +2 -0
  693. package/build/bitbucket-client/models/RestMirroringRequest.d.ts.map +1 -0
  694. package/build/bitbucket-client/models/RestMirroringRequest.js +2 -0
  695. package/build/bitbucket-client/models/RestMirroringRequest.js.map +1 -0
  696. package/build/bitbucket-client/models/RestMultilineCommentMarker.d.ts +2 -0
  697. package/build/bitbucket-client/models/RestMultilineCommentMarker.d.ts.map +1 -0
  698. package/build/bitbucket-client/models/RestMultilineCommentMarker.js +2 -0
  699. package/build/bitbucket-client/models/RestMultilineCommentMarker.js.map +1 -0
  700. package/build/bitbucket-client/models/RestMultilineCommentSpan.d.ts +2 -0
  701. package/build/bitbucket-client/models/RestMultilineCommentSpan.d.ts.map +1 -0
  702. package/build/bitbucket-client/models/RestMultilineCommentSpan.js +2 -0
  703. package/build/bitbucket-client/models/RestMultilineCommentSpan.js.map +1 -0
  704. package/build/bitbucket-client/models/RestMultipleBuildStats.d.ts +2 -0
  705. package/build/bitbucket-client/models/RestMultipleBuildStats.d.ts.map +1 -0
  706. package/build/bitbucket-client/models/RestMultipleBuildStats.js +2 -0
  707. package/build/bitbucket-client/models/RestMultipleBuildStats.js.map +1 -0
  708. package/build/bitbucket-client/models/RestNamedLink.d.ts +2 -0
  709. package/build/bitbucket-client/models/RestNamedLink.d.ts.map +1 -0
  710. package/build/bitbucket-client/models/RestNamedLink.js +2 -0
  711. package/build/bitbucket-client/models/RestNamedLink.js.map +1 -0
  712. package/build/bitbucket-client/models/RestNode.d.ts +2 -0
  713. package/build/bitbucket-client/models/RestNode.d.ts.map +1 -0
  714. package/build/bitbucket-client/models/RestNode.js +2 -0
  715. package/build/bitbucket-client/models/RestNode.js.map +1 -0
  716. package/build/bitbucket-client/models/RestNodeConnectivityReport.d.ts +2 -0
  717. package/build/bitbucket-client/models/RestNodeConnectivityReport.d.ts.map +1 -0
  718. package/build/bitbucket-client/models/RestNodeConnectivityReport.js +2 -0
  719. package/build/bitbucket-client/models/RestNodeConnectivityReport.js.map +1 -0
  720. package/build/bitbucket-client/models/RestNodeConnectivitySummary.d.ts +2 -0
  721. package/build/bitbucket-client/models/RestNodeConnectivitySummary.d.ts.map +1 -0
  722. package/build/bitbucket-client/models/RestNodeConnectivitySummary.js +2 -0
  723. package/build/bitbucket-client/models/RestNodeConnectivitySummary.js.map +1 -0
  724. package/build/bitbucket-client/models/RestPageIdpConfigEntity.d.ts +9 -0
  725. package/build/bitbucket-client/models/RestPageIdpConfigEntity.d.ts.map +1 -0
  726. package/build/bitbucket-client/models/RestPageIdpConfigEntity.js +2 -0
  727. package/build/bitbucket-client/models/RestPageIdpConfigEntity.js.map +1 -0
  728. package/build/bitbucket-client/models/RestPageLoginOptionEntity.d.ts +9 -0
  729. package/build/bitbucket-client/models/RestPageLoginOptionEntity.d.ts.map +1 -0
  730. package/build/bitbucket-client/models/RestPageLoginOptionEntity.js +2 -0
  731. package/build/bitbucket-client/models/RestPageLoginOptionEntity.js.map +1 -0
  732. package/build/bitbucket-client/models/RestPageRestChange.d.ts +2 -0
  733. package/build/bitbucket-client/models/RestPageRestChange.d.ts.map +1 -0
  734. package/build/bitbucket-client/models/RestPageRestChange.js +2 -0
  735. package/build/bitbucket-client/models/RestPageRestChange.js.map +1 -0
  736. package/build/bitbucket-client/models/RestPath.d.ts +2 -0
  737. package/build/bitbucket-client/models/RestPath.d.ts.map +1 -0
  738. package/build/bitbucket-client/models/RestPath.js +2 -0
  739. package/build/bitbucket-client/models/RestPath.js.map +1 -0
  740. package/build/bitbucket-client/models/RestPermitted.d.ts +2 -0
  741. package/build/bitbucket-client/models/RestPermitted.d.ts.map +1 -0
  742. package/build/bitbucket-client/models/RestPermitted.js +2 -0
  743. package/build/bitbucket-client/models/RestPermitted.js.map +1 -0
  744. package/build/bitbucket-client/models/RestPermittedGroup.d.ts +2 -0
  745. package/build/bitbucket-client/models/RestPermittedGroup.d.ts.map +1 -0
  746. package/build/bitbucket-client/models/RestPermittedGroup.js +2 -0
  747. package/build/bitbucket-client/models/RestPermittedGroup.js.map +1 -0
  748. package/build/bitbucket-client/models/RestPermittedUser.d.ts +2 -0
  749. package/build/bitbucket-client/models/RestPermittedUser.d.ts.map +1 -0
  750. package/build/bitbucket-client/models/RestPermittedUser.js +2 -0
  751. package/build/bitbucket-client/models/RestPermittedUser.js.map +1 -0
  752. package/build/bitbucket-client/models/RestPerson.d.ts +2 -0
  753. package/build/bitbucket-client/models/RestPerson.d.ts.map +1 -0
  754. package/build/bitbucket-client/models/RestPerson.js +2 -0
  755. package/build/bitbucket-client/models/RestPerson.js.map +1 -0
  756. package/build/bitbucket-client/models/RestProgress.d.ts +2 -0
  757. package/build/bitbucket-client/models/RestProgress.d.ts.map +1 -0
  758. package/build/bitbucket-client/models/RestProgress.js +2 -0
  759. package/build/bitbucket-client/models/RestProgress.js.map +1 -0
  760. package/build/bitbucket-client/models/RestProject.d.ts +2 -0
  761. package/build/bitbucket-client/models/RestProject.d.ts.map +1 -0
  762. package/build/bitbucket-client/models/RestProject.js +2 -0
  763. package/build/bitbucket-client/models/RestProject.js.map +1 -0
  764. package/build/bitbucket-client/models/RestProjectSettingsRestriction.d.ts +2 -0
  765. package/build/bitbucket-client/models/RestProjectSettingsRestriction.d.ts.map +1 -0
  766. package/build/bitbucket-client/models/RestProjectSettingsRestriction.js +2 -0
  767. package/build/bitbucket-client/models/RestProjectSettingsRestriction.js.map +1 -0
  768. package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.d.ts +6 -0
  769. package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.d.ts.map +1 -0
  770. package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.js +2 -0
  771. package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.js.map +1 -0
  772. package/build/bitbucket-client/models/RestProperties.d.ts +2 -0
  773. package/build/bitbucket-client/models/RestProperties.d.ts.map +1 -0
  774. package/build/bitbucket-client/models/RestProperties.js +2 -0
  775. package/build/bitbucket-client/models/RestProperties.js.map +1 -0
  776. package/build/bitbucket-client/models/RestPullRequest.d.ts +2 -0
  777. package/build/bitbucket-client/models/RestPullRequest.d.ts.map +1 -0
  778. package/build/bitbucket-client/models/RestPullRequest.js +2 -0
  779. package/build/bitbucket-client/models/RestPullRequest.js.map +1 -0
  780. package/build/bitbucket-client/models/RestPullRequestActivity.d.ts +2 -0
  781. package/build/bitbucket-client/models/RestPullRequestActivity.d.ts.map +1 -0
  782. package/build/bitbucket-client/models/RestPullRequestActivity.js +2 -0
  783. package/build/bitbucket-client/models/RestPullRequestActivity.js.map +1 -0
  784. package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.d.ts +26 -0
  785. package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.d.ts.map +1 -0
  786. package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.js +15 -0
  787. package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.js.map +1 -0
  788. package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.d.ts +12 -0
  789. package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.d.ts.map +1 -0
  790. package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.js +10 -0
  791. package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.js.map +1 -0
  792. package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.d.ts +2 -0
  793. package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.d.ts.map +1 -0
  794. package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.js +2 -0
  795. package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.js.map +1 -0
  796. package/build/bitbucket-client/models/RestPullRequestCondition.d.ts +2 -0
  797. package/build/bitbucket-client/models/RestPullRequestCondition.d.ts.map +1 -0
  798. package/build/bitbucket-client/models/RestPullRequestCondition.js +2 -0
  799. package/build/bitbucket-client/models/RestPullRequestCondition.js.map +1 -0
  800. package/build/bitbucket-client/models/RestPullRequestDeclineRequest.d.ts +5 -0
  801. package/build/bitbucket-client/models/RestPullRequestDeclineRequest.d.ts.map +1 -0
  802. package/build/bitbucket-client/models/RestPullRequestDeclineRequest.js +2 -0
  803. package/build/bitbucket-client/models/RestPullRequestDeclineRequest.js.map +1 -0
  804. package/build/bitbucket-client/models/RestPullRequestDeleteRequest.d.ts +4 -0
  805. package/build/bitbucket-client/models/RestPullRequestDeleteRequest.d.ts.map +1 -0
  806. package/build/bitbucket-client/models/RestPullRequestDeleteRequest.js +2 -0
  807. package/build/bitbucket-client/models/RestPullRequestDeleteRequest.js.map +1 -0
  808. package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.d.ts +6 -0
  809. package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.d.ts.map +1 -0
  810. package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.js +2 -0
  811. package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.js.map +1 -0
  812. package/build/bitbucket-client/models/RestPullRequestMergeConfig.d.ts +2 -0
  813. package/build/bitbucket-client/models/RestPullRequestMergeConfig.d.ts.map +1 -0
  814. package/build/bitbucket-client/models/RestPullRequestMergeConfig.js +2 -0
  815. package/build/bitbucket-client/models/RestPullRequestMergeConfig.js.map +1 -0
  816. package/build/bitbucket-client/models/RestPullRequestMergeRequest.d.ts +8 -0
  817. package/build/bitbucket-client/models/RestPullRequestMergeRequest.d.ts.map +1 -0
  818. package/build/bitbucket-client/models/RestPullRequestMergeRequest.js +2 -0
  819. package/build/bitbucket-client/models/RestPullRequestMergeRequest.js.map +1 -0
  820. package/build/bitbucket-client/models/RestPullRequestMergeStrategy.d.ts +2 -0
  821. package/build/bitbucket-client/models/RestPullRequestMergeStrategy.d.ts.map +1 -0
  822. package/build/bitbucket-client/models/RestPullRequestMergeStrategy.js +2 -0
  823. package/build/bitbucket-client/models/RestPullRequestMergeStrategy.js.map +1 -0
  824. package/build/bitbucket-client/models/RestPullRequestMergeability.d.ts +2 -0
  825. package/build/bitbucket-client/models/RestPullRequestMergeability.d.ts.map +1 -0
  826. package/build/bitbucket-client/models/RestPullRequestMergeability.js +2 -0
  827. package/build/bitbucket-client/models/RestPullRequestMergeability.js.map +1 -0
  828. package/build/bitbucket-client/models/RestPullRequestParticipant.d.ts +2 -0
  829. package/build/bitbucket-client/models/RestPullRequestParticipant.d.ts.map +1 -0
  830. package/build/bitbucket-client/models/RestPullRequestParticipant.js +2 -0
  831. package/build/bitbucket-client/models/RestPullRequestParticipant.js.map +1 -0
  832. package/build/bitbucket-client/models/RestPullRequestRebaseRequest.d.ts +4 -0
  833. package/build/bitbucket-client/models/RestPullRequestRebaseRequest.d.ts.map +1 -0
  834. package/build/bitbucket-client/models/RestPullRequestRebaseRequest.js +2 -0
  835. package/build/bitbucket-client/models/RestPullRequestRebaseRequest.js.map +1 -0
  836. package/build/bitbucket-client/models/RestPullRequestRebaseResult.d.ts +2 -0
  837. package/build/bitbucket-client/models/RestPullRequestRebaseResult.d.ts.map +1 -0
  838. package/build/bitbucket-client/models/RestPullRequestRebaseResult.js +2 -0
  839. package/build/bitbucket-client/models/RestPullRequestRebaseResult.js.map +1 -0
  840. package/build/bitbucket-client/models/RestPullRequestRebaseability.d.ts +2 -0
  841. package/build/bitbucket-client/models/RestPullRequestRebaseability.d.ts.map +1 -0
  842. package/build/bitbucket-client/models/RestPullRequestRebaseability.js +2 -0
  843. package/build/bitbucket-client/models/RestPullRequestRebaseability.js.map +1 -0
  844. package/build/bitbucket-client/models/RestPullRequestRef.d.ts +2 -0
  845. package/build/bitbucket-client/models/RestPullRequestRef.d.ts.map +1 -0
  846. package/build/bitbucket-client/models/RestPullRequestRef.js +2 -0
  847. package/build/bitbucket-client/models/RestPullRequestRef.js.map +1 -0
  848. package/build/bitbucket-client/models/RestPullRequestReopenRequest.d.ts +4 -0
  849. package/build/bitbucket-client/models/RestPullRequestReopenRequest.d.ts.map +1 -0
  850. package/build/bitbucket-client/models/RestPullRequestReopenRequest.js +2 -0
  851. package/build/bitbucket-client/models/RestPullRequestReopenRequest.js.map +1 -0
  852. package/build/bitbucket-client/models/RestPullRequestSettings.d.ts +2 -0
  853. package/build/bitbucket-client/models/RestPullRequestSettings.d.ts.map +1 -0
  854. package/build/bitbucket-client/models/RestPullRequestSettings.js +2 -0
  855. package/build/bitbucket-client/models/RestPullRequestSettings.js.map +1 -0
  856. package/build/bitbucket-client/models/RestPullRequestSuggestion.d.ts +2 -0
  857. package/build/bitbucket-client/models/RestPullRequestSuggestion.d.ts.map +1 -0
  858. package/build/bitbucket-client/models/RestPullRequestSuggestion.js +2 -0
  859. package/build/bitbucket-client/models/RestPullRequestSuggestion.js.map +1 -0
  860. package/build/bitbucket-client/models/RestPushRefChange.d.ts +2 -0
  861. package/build/bitbucket-client/models/RestPushRefChange.d.ts.map +1 -0
  862. package/build/bitbucket-client/models/RestPushRefChange.js +2 -0
  863. package/build/bitbucket-client/models/RestPushRefChange.js.map +1 -0
  864. package/build/bitbucket-client/models/RestRateLimitSettings.d.ts +2 -0
  865. package/build/bitbucket-client/models/RestRateLimitSettings.d.ts.map +1 -0
  866. package/build/bitbucket-client/models/RestRateLimitSettings.js +2 -0
  867. package/build/bitbucket-client/models/RestRateLimitSettings.js.map +1 -0
  868. package/build/bitbucket-client/models/RestRawAccessToken.d.ts +2 -0
  869. package/build/bitbucket-client/models/RestRawAccessToken.d.ts.map +1 -0
  870. package/build/bitbucket-client/models/RestRawAccessToken.js +2 -0
  871. package/build/bitbucket-client/models/RestRawAccessToken.js.map +1 -0
  872. package/build/bitbucket-client/models/RestRefChange.d.ts +2 -0
  873. package/build/bitbucket-client/models/RestRefChange.d.ts.map +1 -0
  874. package/build/bitbucket-client/models/RestRefChange.js +2 -0
  875. package/build/bitbucket-client/models/RestRefChange.js.map +1 -0
  876. package/build/bitbucket-client/models/RestRefMatcher.d.ts +2 -0
  877. package/build/bitbucket-client/models/RestRefMatcher.d.ts.map +1 -0
  878. package/build/bitbucket-client/models/RestRefMatcher.js +2 -0
  879. package/build/bitbucket-client/models/RestRefMatcher.js.map +1 -0
  880. package/build/bitbucket-client/models/RestRefMatcherType.d.ts +2 -0
  881. package/build/bitbucket-client/models/RestRefMatcherType.d.ts.map +1 -0
  882. package/build/bitbucket-client/models/RestRefMatcherType.js +2 -0
  883. package/build/bitbucket-client/models/RestRefMatcherType.js.map +1 -0
  884. package/build/bitbucket-client/models/RestRefRestriction.d.ts +2 -0
  885. package/build/bitbucket-client/models/RestRefRestriction.d.ts.map +1 -0
  886. package/build/bitbucket-client/models/RestRefRestriction.js +2 -0
  887. package/build/bitbucket-client/models/RestRefRestriction.js.map +1 -0
  888. package/build/bitbucket-client/models/RestRefSyncQueue.d.ts +5 -0
  889. package/build/bitbucket-client/models/RestRefSyncQueue.d.ts.map +1 -0
  890. package/build/bitbucket-client/models/RestRefSyncQueue.js +2 -0
  891. package/build/bitbucket-client/models/RestRefSyncQueue.js.map +1 -0
  892. package/build/bitbucket-client/models/RestRefSyncRequest.d.ts +14 -0
  893. package/build/bitbucket-client/models/RestRefSyncRequest.d.ts.map +1 -0
  894. package/build/bitbucket-client/models/RestRefSyncRequest.js +10 -0
  895. package/build/bitbucket-client/models/RestRefSyncRequest.js.map +1 -0
  896. package/build/bitbucket-client/models/RestRefSyncStatus.d.ts +2 -0
  897. package/build/bitbucket-client/models/RestRefSyncStatus.d.ts.map +1 -0
  898. package/build/bitbucket-client/models/RestRefSyncStatus.js +2 -0
  899. package/build/bitbucket-client/models/RestRefSyncStatus.js.map +1 -0
  900. package/build/bitbucket-client/models/RestRejectedRef.d.ts +2 -0
  901. package/build/bitbucket-client/models/RestRejectedRef.d.ts.map +1 -0
  902. package/build/bitbucket-client/models/RestRejectedRef.js +2 -0
  903. package/build/bitbucket-client/models/RestRejectedRef.js.map +1 -0
  904. package/build/bitbucket-client/models/RestRelatedLinks.d.ts +2 -0
  905. package/build/bitbucket-client/models/RestRelatedLinks.d.ts.map +1 -0
  906. package/build/bitbucket-client/models/RestRelatedLinks.js +2 -0
  907. package/build/bitbucket-client/models/RestRelatedLinks.js.map +1 -0
  908. package/build/bitbucket-client/models/RestRepositoriesExportRequest.d.ts +5 -0
  909. package/build/bitbucket-client/models/RestRepositoriesExportRequest.d.ts.map +1 -0
  910. package/build/bitbucket-client/models/RestRepositoriesExportRequest.js +2 -0
  911. package/build/bitbucket-client/models/RestRepositoriesExportRequest.js.map +1 -0
  912. package/build/bitbucket-client/models/RestRepository.d.ts +2 -0
  913. package/build/bitbucket-client/models/RestRepository.d.ts.map +1 -0
  914. package/build/bitbucket-client/models/RestRepository.js +2 -0
  915. package/build/bitbucket-client/models/RestRepository.js.map +1 -0
  916. package/build/bitbucket-client/models/RestRepositoryHook.d.ts +2 -0
  917. package/build/bitbucket-client/models/RestRepositoryHook.d.ts.map +1 -0
  918. package/build/bitbucket-client/models/RestRepositoryHook.js +2 -0
  919. package/build/bitbucket-client/models/RestRepositoryHook.js.map +1 -0
  920. package/build/bitbucket-client/models/RestRepositoryHookVeto.d.ts +2 -0
  921. package/build/bitbucket-client/models/RestRepositoryHookVeto.d.ts.map +1 -0
  922. package/build/bitbucket-client/models/RestRepositoryHookVeto.js +2 -0
  923. package/build/bitbucket-client/models/RestRepositoryHookVeto.js.map +1 -0
  924. package/build/bitbucket-client/models/RestRepositoryLockOwner.d.ts +2 -0
  925. package/build/bitbucket-client/models/RestRepositoryLockOwner.d.ts.map +1 -0
  926. package/build/bitbucket-client/models/RestRepositoryLockOwner.js +2 -0
  927. package/build/bitbucket-client/models/RestRepositoryLockOwner.js.map +1 -0
  928. package/build/bitbucket-client/models/RestRepositoryMirrorEvent.d.ts +12 -0
  929. package/build/bitbucket-client/models/RestRepositoryMirrorEvent.d.ts.map +1 -0
  930. package/build/bitbucket-client/models/RestRepositoryMirrorEvent.js +9 -0
  931. package/build/bitbucket-client/models/RestRepositoryMirrorEvent.js.map +1 -0
  932. package/build/bitbucket-client/models/RestRepositoryPolicy.d.ts +2 -0
  933. package/build/bitbucket-client/models/RestRepositoryPolicy.d.ts.map +1 -0
  934. package/build/bitbucket-client/models/RestRepositoryPolicy.js +2 -0
  935. package/build/bitbucket-client/models/RestRepositoryPolicy.js.map +1 -0
  936. package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.d.ts +2 -0
  937. package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.d.ts.map +1 -0
  938. package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.js +2 -0
  939. package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.js.map +1 -0
  940. package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.d.ts +2 -0
  941. package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.d.ts.map +1 -0
  942. package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.js +2 -0
  943. package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.js.map +1 -0
  944. package/build/bitbucket-client/models/RestRepositorySelector.d.ts +5 -0
  945. package/build/bitbucket-client/models/RestRepositorySelector.d.ts.map +1 -0
  946. package/build/bitbucket-client/models/RestRepositorySelector.js +2 -0
  947. package/build/bitbucket-client/models/RestRepositorySelector.js.map +1 -0
  948. package/build/bitbucket-client/models/RestRequiredBuildCondition.d.ts +2 -0
  949. package/build/bitbucket-client/models/RestRequiredBuildCondition.d.ts.map +1 -0
  950. package/build/bitbucket-client/models/RestRequiredBuildCondition.js +2 -0
  951. package/build/bitbucket-client/models/RestRequiredBuildCondition.js.map +1 -0
  952. package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.d.ts +26 -0
  953. package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.d.ts.map +1 -0
  954. package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.js +12 -0
  955. package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.js.map +1 -0
  956. package/build/bitbucket-client/models/RestRestrictionRequest.d.ts +39 -0
  957. package/build/bitbucket-client/models/RestRestrictionRequest.d.ts.map +1 -0
  958. package/build/bitbucket-client/models/RestRestrictionRequest.js +18 -0
  959. package/build/bitbucket-client/models/RestRestrictionRequest.js.map +1 -0
  960. package/build/bitbucket-client/models/RestReviewerGroup.d.ts +2 -0
  961. package/build/bitbucket-client/models/RestReviewerGroup.d.ts.map +1 -0
  962. package/build/bitbucket-client/models/RestReviewerGroup.js +2 -0
  963. package/build/bitbucket-client/models/RestReviewerGroup.js.map +1 -0
  964. package/build/bitbucket-client/models/RestRollingUpgradeState.d.ts +2 -0
  965. package/build/bitbucket-client/models/RestRollingUpgradeState.d.ts.map +1 -0
  966. package/build/bitbucket-client/models/RestRollingUpgradeState.js +2 -0
  967. package/build/bitbucket-client/models/RestRollingUpgradeState.js.map +1 -0
  968. package/build/bitbucket-client/models/RestScope.d.ts +2 -0
  969. package/build/bitbucket-client/models/RestScope.d.ts.map +1 -0
  970. package/build/bitbucket-client/models/RestScope.js +2 -0
  971. package/build/bitbucket-client/models/RestScope.js.map +1 -0
  972. package/build/bitbucket-client/models/RestScopesExample.d.ts +2 -0
  973. package/build/bitbucket-client/models/RestScopesExample.d.ts.map +1 -0
  974. package/build/bitbucket-client/models/RestScopesExample.js +2 -0
  975. package/build/bitbucket-client/models/RestScopesExample.js.map +1 -0
  976. package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.d.ts +2 -0
  977. package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.d.ts.map +1 -0
  978. package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.js +2 -0
  979. package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.js.map +1 -0
  980. package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.d.ts +15 -0
  981. package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.d.ts.map +1 -0
  982. package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.js +2 -0
  983. package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.js.map +1 -0
  984. package/build/bitbucket-client/models/RestSecretScanningRule.d.ts +2 -0
  985. package/build/bitbucket-client/models/RestSecretScanningRule.d.ts.map +1 -0
  986. package/build/bitbucket-client/models/RestSecretScanningRule.js +2 -0
  987. package/build/bitbucket-client/models/RestSecretScanningRule.js.map +1 -0
  988. package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.d.ts +15 -0
  989. package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.d.ts.map +1 -0
  990. package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.js +2 -0
  991. package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.js.map +1 -0
  992. package/build/bitbucket-client/models/RestSetInsightReportRequest.d.ts +13 -0
  993. package/build/bitbucket-client/models/RestSetInsightReportRequest.d.ts.map +1 -0
  994. package/build/bitbucket-client/models/RestSetInsightReportRequest.js +2 -0
  995. package/build/bitbucket-client/models/RestSetInsightReportRequest.js.map +1 -0
  996. package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.d.ts +10 -0
  997. package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.d.ts.map +1 -0
  998. package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.js +2 -0
  999. package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.js.map +1 -0
  1000. package/build/bitbucket-client/models/RestSshAccessKey.d.ts +2 -0
  1001. package/build/bitbucket-client/models/RestSshAccessKey.d.ts.map +1 -0
  1002. package/build/bitbucket-client/models/RestSshAccessKey.js +2 -0
  1003. package/build/bitbucket-client/models/RestSshAccessKey.js.map +1 -0
  1004. package/build/bitbucket-client/models/RestSshAccessKeyLocations.d.ts +7 -0
  1005. package/build/bitbucket-client/models/RestSshAccessKeyLocations.d.ts.map +1 -0
  1006. package/build/bitbucket-client/models/RestSshAccessKeyLocations.js +2 -0
  1007. package/build/bitbucket-client/models/RestSshAccessKeyLocations.js.map +1 -0
  1008. package/build/bitbucket-client/models/RestSshCredentials.d.ts +12 -0
  1009. package/build/bitbucket-client/models/RestSshCredentials.d.ts.map +1 -0
  1010. package/build/bitbucket-client/models/RestSshCredentials.js +2 -0
  1011. package/build/bitbucket-client/models/RestSshCredentials.js.map +1 -0
  1012. package/build/bitbucket-client/models/RestSshKey.d.ts +2 -0
  1013. package/build/bitbucket-client/models/RestSshKey.d.ts.map +1 -0
  1014. package/build/bitbucket-client/models/RestSshKey.js +2 -0
  1015. package/build/bitbucket-client/models/RestSshKey.js.map +1 -0
  1016. package/build/bitbucket-client/models/RestSshKeySettings.d.ts +2 -0
  1017. package/build/bitbucket-client/models/RestSshKeySettings.d.ts.map +1 -0
  1018. package/build/bitbucket-client/models/RestSshKeySettings.js +2 -0
  1019. package/build/bitbucket-client/models/RestSshKeySettings.js.map +1 -0
  1020. package/build/bitbucket-client/models/RestSshKeyTypeRestriction.d.ts +2 -0
  1021. package/build/bitbucket-client/models/RestSshKeyTypeRestriction.d.ts.map +1 -0
  1022. package/build/bitbucket-client/models/RestSshKeyTypeRestriction.js +2 -0
  1023. package/build/bitbucket-client/models/RestSshKeyTypeRestriction.js.map +1 -0
  1024. package/build/bitbucket-client/models/RestSshSettings.d.ts +2 -0
  1025. package/build/bitbucket-client/models/RestSshSettings.d.ts.map +1 -0
  1026. package/build/bitbucket-client/models/RestSshSettings.js +2 -0
  1027. package/build/bitbucket-client/models/RestSshSettings.js.map +1 -0
  1028. package/build/bitbucket-client/models/RestSyncProgress.d.ts +2 -0
  1029. package/build/bitbucket-client/models/RestSyncProgress.d.ts.map +1 -0
  1030. package/build/bitbucket-client/models/RestSyncProgress.js +2 -0
  1031. package/build/bitbucket-client/models/RestSyncProgress.js.map +1 -0
  1032. package/build/bitbucket-client/models/RestSystemSigningConfiguration.d.ts +2 -0
  1033. package/build/bitbucket-client/models/RestSystemSigningConfiguration.d.ts.map +1 -0
  1034. package/build/bitbucket-client/models/RestSystemSigningConfiguration.js +2 -0
  1035. package/build/bitbucket-client/models/RestSystemSigningConfiguration.js.map +1 -0
  1036. package/build/bitbucket-client/models/RestTag.d.ts +2 -0
  1037. package/build/bitbucket-client/models/RestTag.d.ts.map +1 -0
  1038. package/build/bitbucket-client/models/RestTag.js +2 -0
  1039. package/build/bitbucket-client/models/RestTag.js.map +1 -0
  1040. package/build/bitbucket-client/models/RestTestResults.d.ts +2 -0
  1041. package/build/bitbucket-client/models/RestTestResults.d.ts.map +1 -0
  1042. package/build/bitbucket-client/models/RestTestResults.js +2 -0
  1043. package/build/bitbucket-client/models/RestTestResults.js.map +1 -0
  1044. package/build/bitbucket-client/models/RestTokenBucketSettings.d.ts +2 -0
  1045. package/build/bitbucket-client/models/RestTokenBucketSettings.d.ts.map +1 -0
  1046. package/build/bitbucket-client/models/RestTokenBucketSettings.js +2 -0
  1047. package/build/bitbucket-client/models/RestTokenBucketSettings.js.map +1 -0
  1048. package/build/bitbucket-client/models/RestUpstreamServer.d.ts +2 -0
  1049. package/build/bitbucket-client/models/RestUpstreamServer.d.ts.map +1 -0
  1050. package/build/bitbucket-client/models/RestUpstreamServer.js +2 -0
  1051. package/build/bitbucket-client/models/RestUpstreamServer.js.map +1 -0
  1052. package/build/bitbucket-client/models/RestUpstreamSettings.d.ts +2 -0
  1053. package/build/bitbucket-client/models/RestUpstreamSettings.d.ts.map +1 -0
  1054. package/build/bitbucket-client/models/RestUpstreamSettings.js +2 -0
  1055. package/build/bitbucket-client/models/RestUpstreamSettings.js.map +1 -0
  1056. package/build/bitbucket-client/models/RestUserDirectory.d.ts +2 -0
  1057. package/build/bitbucket-client/models/RestUserDirectory.d.ts.map +1 -0
  1058. package/build/bitbucket-client/models/RestUserDirectory.js +2 -0
  1059. package/build/bitbucket-client/models/RestUserDirectory.js.map +1 -0
  1060. package/build/bitbucket-client/models/RestUserRateLimitSettings.d.ts +2 -0
  1061. package/build/bitbucket-client/models/RestUserRateLimitSettings.d.ts.map +1 -0
  1062. package/build/bitbucket-client/models/RestUserRateLimitSettings.js +2 -0
  1063. package/build/bitbucket-client/models/RestUserRateLimitSettings.js.map +1 -0
  1064. package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.d.ts +8 -0
  1065. package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.d.ts.map +1 -0
  1066. package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.js +2 -0
  1067. package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.js.map +1 -0
  1068. package/build/bitbucket-client/models/RestUserReaction.d.ts +2 -0
  1069. package/build/bitbucket-client/models/RestUserReaction.d.ts.map +1 -0
  1070. package/build/bitbucket-client/models/RestUserReaction.js +2 -0
  1071. package/build/bitbucket-client/models/RestUserReaction.js.map +1 -0
  1072. package/build/bitbucket-client/models/RestUsernamePasswordCredentials.d.ts +5 -0
  1073. package/build/bitbucket-client/models/RestUsernamePasswordCredentials.d.ts.map +1 -0
  1074. package/build/bitbucket-client/models/RestUsernamePasswordCredentials.js +2 -0
  1075. package/build/bitbucket-client/models/RestUsernamePasswordCredentials.js.map +1 -0
  1076. package/build/bitbucket-client/models/RestWebhook.d.ts +2 -0
  1077. package/build/bitbucket-client/models/RestWebhook.d.ts.map +1 -0
  1078. package/build/bitbucket-client/models/RestWebhook.js +2 -0
  1079. package/build/bitbucket-client/models/RestWebhook.js.map +1 -0
  1080. package/build/bitbucket-client/models/RestWebhookCredentials.d.ts +2 -0
  1081. package/build/bitbucket-client/models/RestWebhookCredentials.d.ts.map +1 -0
  1082. package/build/bitbucket-client/models/RestWebhookCredentials.js +2 -0
  1083. package/build/bitbucket-client/models/RestWebhookCredentials.js.map +1 -0
  1084. package/build/bitbucket-client/models/RestWebhookRequestResponse.d.ts +2 -0
  1085. package/build/bitbucket-client/models/RestWebhookRequestResponse.d.ts.map +1 -0
  1086. package/build/bitbucket-client/models/RestWebhookRequestResponse.js +2 -0
  1087. package/build/bitbucket-client/models/RestWebhookRequestResponse.js.map +1 -0
  1088. package/build/bitbucket-client/models/RestWebhookScope.d.ts +2 -0
  1089. package/build/bitbucket-client/models/RestWebhookScope.d.ts.map +1 -0
  1090. package/build/bitbucket-client/models/RestWebhookScope.js +2 -0
  1091. package/build/bitbucket-client/models/RestWebhookScope.js.map +1 -0
  1092. package/build/bitbucket-client/models/RestX509Certificate.d.ts +2 -0
  1093. package/build/bitbucket-client/models/RestX509Certificate.d.ts.map +1 -0
  1094. package/build/bitbucket-client/models/RestX509Certificate.js +2 -0
  1095. package/build/bitbucket-client/models/RestX509Certificate.js.map +1 -0
  1096. package/build/bitbucket-client/models/Scope.d.ts +12 -0
  1097. package/build/bitbucket-client/models/Scope.d.ts.map +1 -0
  1098. package/build/bitbucket-client/models/Scope.js +10 -0
  1099. package/build/bitbucket-client/models/Scope.js.map +1 -0
  1100. package/build/bitbucket-client/models/SimpleSshKeyFingerprint.d.ts +2 -0
  1101. package/build/bitbucket-client/models/SimpleSshKeyFingerprint.d.ts.map +1 -0
  1102. package/build/bitbucket-client/models/SimpleSshKeyFingerprint.js +2 -0
  1103. package/build/bitbucket-client/models/SimpleSshKeyFingerprint.js.map +1 -0
  1104. package/build/bitbucket-client/models/SsoConfigEntity.d.ts +2 -0
  1105. package/build/bitbucket-client/models/SsoConfigEntity.d.ts.map +1 -0
  1106. package/build/bitbucket-client/models/SsoConfigEntity.js +2 -0
  1107. package/build/bitbucket-client/models/SsoConfigEntity.js.map +1 -0
  1108. package/build/bitbucket-client/models/SsoManagementStatusDTO.d.ts +2 -0
  1109. package/build/bitbucket-client/models/SsoManagementStatusDTO.d.ts.map +1 -0
  1110. package/build/bitbucket-client/models/SsoManagementStatusDTO.js +2 -0
  1111. package/build/bitbucket-client/models/SsoManagementStatusDTO.js.map +1 -0
  1112. package/build/bitbucket-client/models/StatusDTO.d.ts +2 -0
  1113. package/build/bitbucket-client/models/StatusDTO.d.ts.map +1 -0
  1114. package/build/bitbucket-client/models/StatusDTO.js +2 -0
  1115. package/build/bitbucket-client/models/StatusDTO.js.map +1 -0
  1116. package/build/bitbucket-client/models/TotpCodeVerificationDTO.d.ts +5 -0
  1117. package/build/bitbucket-client/models/TotpCodeVerificationDTO.d.ts.map +1 -0
  1118. package/build/bitbucket-client/models/TotpCodeVerificationDTO.js +2 -0
  1119. package/build/bitbucket-client/models/TotpCodeVerificationDTO.js.map +1 -0
  1120. package/build/bitbucket-client/models/TotpElevationRestDTO.d.ts +4 -0
  1121. package/build/bitbucket-client/models/TotpElevationRestDTO.d.ts.map +1 -0
  1122. package/build/bitbucket-client/models/TotpElevationRestDTO.js +2 -0
  1123. package/build/bitbucket-client/models/TotpElevationRestDTO.js.map +1 -0
  1124. package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.d.ts +5 -0
  1125. package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.d.ts.map +1 -0
  1126. package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.js +2 -0
  1127. package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.js.map +1 -0
  1128. package/build/bitbucket-client/models/TotpRecoveryCodeDTO.d.ts +2 -0
  1129. package/build/bitbucket-client/models/TotpRecoveryCodeDTO.d.ts.map +1 -0
  1130. package/build/bitbucket-client/models/TotpRecoveryCodeDTO.js +2 -0
  1131. package/build/bitbucket-client/models/TotpRecoveryCodeDTO.js.map +1 -0
  1132. package/build/bitbucket-client/models/TotpUserEnrollmentDTO.d.ts +2 -0
  1133. package/build/bitbucket-client/models/TotpUserEnrollmentDTO.d.ts.map +1 -0
  1134. package/build/bitbucket-client/models/TotpUserEnrollmentDTO.js +2 -0
  1135. package/build/bitbucket-client/models/TotpUserEnrollmentDTO.js.map +1 -0
  1136. package/build/bitbucket-client/models/UserAndGroups.d.ts +5 -0
  1137. package/build/bitbucket-client/models/UserAndGroups.d.ts.map +1 -0
  1138. package/build/bitbucket-client/models/UserAndGroups.js +2 -0
  1139. package/build/bitbucket-client/models/UserAndGroups.js.map +1 -0
  1140. package/build/bitbucket-client/models/UserPasswordUpdate.d.ts +6 -0
  1141. package/build/bitbucket-client/models/UserPasswordUpdate.d.ts.map +1 -0
  1142. package/build/bitbucket-client/models/UserPasswordUpdate.js +2 -0
  1143. package/build/bitbucket-client/models/UserPasswordUpdate.js.map +1 -0
  1144. package/build/bitbucket-client/models/UserPickerContext.d.ts +5 -0
  1145. package/build/bitbucket-client/models/UserPickerContext.d.ts.map +1 -0
  1146. package/build/bitbucket-client/models/UserPickerContext.js +2 -0
  1147. package/build/bitbucket-client/models/UserPickerContext.js.map +1 -0
  1148. package/build/bitbucket-client/models/UserRename.d.ts +5 -0
  1149. package/build/bitbucket-client/models/UserRename.d.ts.map +1 -0
  1150. package/build/bitbucket-client/models/UserRename.js +2 -0
  1151. package/build/bitbucket-client/models/UserRename.js.map +1 -0
  1152. package/build/bitbucket-client/models/UserUpdate.d.ts +6 -0
  1153. package/build/bitbucket-client/models/UserUpdate.d.ts.map +1 -0
  1154. package/build/bitbucket-client/models/UserUpdate.js +2 -0
  1155. package/build/bitbucket-client/models/UserUpdate.js.map +1 -0
  1156. package/build/bitbucket-client/models/UserUpdateWithCredentials.d.ts +10 -0
  1157. package/build/bitbucket-client/models/UserUpdateWithCredentials.d.ts.map +1 -0
  1158. package/build/bitbucket-client/models/UserUpdateWithCredentials.js +2 -0
  1159. package/build/bitbucket-client/models/UserUpdateWithCredentials.js.map +1 -0
  1160. package/build/bitbucket-client/services/AuthenticationService.d.ts +684 -0
  1161. package/build/bitbucket-client/services/AuthenticationService.d.ts.map +1 -0
  1162. package/build/bitbucket-client/services/AuthenticationService.js +1381 -0
  1163. package/build/bitbucket-client/services/AuthenticationService.js.map +1 -0
  1164. package/build/bitbucket-client/services/BuildsAndDeploymentsService.d.ts +364 -0
  1165. package/build/bitbucket-client/services/BuildsAndDeploymentsService.d.ts.map +1 -0
  1166. package/build/bitbucket-client/services/BuildsAndDeploymentsService.js +705 -0
  1167. package/build/bitbucket-client/services/BuildsAndDeploymentsService.js.map +1 -0
  1168. package/build/bitbucket-client/services/CapabilitiesService.d.ts +19 -0
  1169. package/build/bitbucket-client/services/CapabilitiesService.d.ts.map +1 -0
  1170. package/build/bitbucket-client/services/CapabilitiesService.js +32 -0
  1171. package/build/bitbucket-client/services/CapabilitiesService.js.map +1 -0
  1172. package/build/bitbucket-client/services/DashboardService.d.ts +46 -0
  1173. package/build/bitbucket-client/services/DashboardService.d.ts.map +1 -0
  1174. package/build/bitbucket-client/services/DashboardService.js +63 -0
  1175. package/build/bitbucket-client/services/DashboardService.js.map +1 -0
  1176. package/build/bitbucket-client/services/DefaultService.d.ts +21 -0
  1177. package/build/bitbucket-client/services/DefaultService.d.ts.map +1 -0
  1178. package/build/bitbucket-client/services/DefaultService.js +37 -0
  1179. package/build/bitbucket-client/services/DefaultService.js.map +1 -0
  1180. package/build/bitbucket-client/services/DeprecatedService.d.ts +185 -0
  1181. package/build/bitbucket-client/services/DeprecatedService.d.ts.map +1 -0
  1182. package/build/bitbucket-client/services/DeprecatedService.js +338 -0
  1183. package/build/bitbucket-client/services/DeprecatedService.js.map +1 -0
  1184. package/build/bitbucket-client/services/JiraIntegrationService.d.ts +64 -0
  1185. package/build/bitbucket-client/services/JiraIntegrationService.d.ts.map +1 -0
  1186. package/build/bitbucket-client/services/JiraIntegrationService.js +102 -0
  1187. package/build/bitbucket-client/services/JiraIntegrationService.js.map +1 -0
  1188. package/build/bitbucket-client/services/MarkupService.d.ts +19 -0
  1189. package/build/bitbucket-client/services/MarkupService.d.ts.map +1 -0
  1190. package/build/bitbucket-client/services/MarkupService.js +36 -0
  1191. package/build/bitbucket-client/services/MarkupService.js.map +1 -0
  1192. package/build/bitbucket-client/services/MirroringMirrorService.d.ts +182 -0
  1193. package/build/bitbucket-client/services/MirroringMirrorService.d.ts.map +1 -0
  1194. package/build/bitbucket-client/services/MirroringMirrorService.js +375 -0
  1195. package/build/bitbucket-client/services/MirroringMirrorService.js.map +1 -0
  1196. package/build/bitbucket-client/services/MirroringUpstreamService.d.ts +215 -0
  1197. package/build/bitbucket-client/services/MirroringUpstreamService.d.ts.map +1 -0
  1198. package/build/bitbucket-client/services/MirroringUpstreamService.js +405 -0
  1199. package/build/bitbucket-client/services/MirroringUpstreamService.js.map +1 -0
  1200. package/build/bitbucket-client/services/PermissionManagementService.d.ts +713 -0
  1201. package/build/bitbucket-client/services/PermissionManagementService.d.ts.map +1 -0
  1202. package/build/bitbucket-client/services/PermissionManagementService.js +1210 -0
  1203. package/build/bitbucket-client/services/PermissionManagementService.js.map +1 -0
  1204. package/build/bitbucket-client/services/ProjectService.d.ts +1082 -0
  1205. package/build/bitbucket-client/services/ProjectService.d.ts.map +1 -0
  1206. package/build/bitbucket-client/services/ProjectService.js +2096 -0
  1207. package/build/bitbucket-client/services/ProjectService.js.map +1 -0
  1208. package/build/bitbucket-client/services/PullRequestsService.d.ts +1370 -0
  1209. package/build/bitbucket-client/services/PullRequestsService.d.ts.map +1 -0
  1210. package/build/bitbucket-client/services/PullRequestsService.js +2481 -0
  1211. package/build/bitbucket-client/services/PullRequestsService.js.map +1 -0
  1212. package/build/bitbucket-client/services/RepositoryService.d.ts +1734 -0
  1213. package/build/bitbucket-client/services/RepositoryService.d.ts.map +1 -0
  1214. package/build/bitbucket-client/services/RepositoryService.js +3228 -0
  1215. package/build/bitbucket-client/services/RepositoryService.js.map +1 -0
  1216. package/build/bitbucket-client/services/SecurityService.d.ts +542 -0
  1217. package/build/bitbucket-client/services/SecurityService.d.ts.map +1 -0
  1218. package/build/bitbucket-client/services/SecurityService.js +1049 -0
  1219. package/build/bitbucket-client/services/SecurityService.js.map +1 -0
  1220. package/build/bitbucket-client/services/SystemMaintenanceService.d.ts +1174 -0
  1221. package/build/bitbucket-client/services/SystemMaintenanceService.d.ts.map +1 -0
  1222. package/build/bitbucket-client/services/SystemMaintenanceService.js +1996 -0
  1223. package/build/bitbucket-client/services/SystemMaintenanceService.js.map +1 -0
  1224. package/build/bitbucket-response-mapper.d.ts +8 -0
  1225. package/build/bitbucket-response-mapper.d.ts.map +1 -0
  1226. package/build/bitbucket-response-mapper.js +102 -0
  1227. package/build/bitbucket-response-mapper.js.map +1 -0
  1228. package/build/bitbucket-service.d.ts +1655 -0
  1229. package/build/bitbucket-service.d.ts.map +1 -0
  1230. package/build/bitbucket-service.js +2186 -0
  1231. package/build/bitbucket-service.js.map +1 -0
  1232. package/build/config.d.ts +6 -0
  1233. package/build/config.d.ts.map +1 -0
  1234. package/build/config.js +22 -0
  1235. package/build/config.js.map +1 -0
  1236. package/build/inbox-pr-mapper.d.ts +39 -0
  1237. package/build/inbox-pr-mapper.d.ts.map +1 -0
  1238. package/build/inbox-pr-mapper.js +76 -0
  1239. package/build/inbox-pr-mapper.js.map +1 -0
  1240. package/build/index.d.ts +2 -0
  1241. package/build/index.d.ts.map +1 -0
  1242. package/build/index.js +332 -0
  1243. package/build/index.js.map +1 -0
  1244. package/build/pr-changes-mapper.d.ts +32 -0
  1245. package/build/pr-changes-mapper.d.ts.map +1 -0
  1246. package/build/pr-changes-mapper.js +111 -0
  1247. package/build/pr-changes-mapper.js.map +1 -0
  1248. package/build/pr-comment-mapper.d.ts +55 -0
  1249. package/build/pr-comment-mapper.d.ts.map +1 -0
  1250. package/build/pr-comment-mapper.js +182 -0
  1251. package/build/pr-comment-mapper.js.map +1 -0
  1252. package/build/setup.d.ts +2 -0
  1253. package/build/setup.d.ts.map +1 -0
  1254. package/build/setup.js +16 -0
  1255. package/build/setup.js.map +1 -0
  1256. package/jest.config.js +24 -0
  1257. package/package.json +53 -0
  1258. package/server.json +51 -0
  1259. package/src/__tests__/bitbucket-service.test.ts +4626 -0
  1260. package/src/__tests__/bitbucket-token-optimization.test.ts +429 -0
  1261. package/src/__tests__/config.test.ts +64 -0
  1262. package/src/__tests__/inbox-pr-mapper.test.ts +347 -0
  1263. package/src/__tests__/pr-changes-mapper.test.ts +420 -0
  1264. package/src/__tests__/pr-comment-mapper.test.ts +559 -0
  1265. package/src/bitbucket-client/core/ApiError.ts +26 -0
  1266. package/src/bitbucket-client/core/ApiRequestOptions.ts +17 -0
  1267. package/src/bitbucket-client/core/ApiResult.ts +11 -0
  1268. package/src/bitbucket-client/core/CancelablePromise.ts +131 -0
  1269. package/src/bitbucket-client/core/OpenAPI.ts +33 -0
  1270. package/src/bitbucket-client/core/request.ts +337 -0
  1271. package/src/bitbucket-client/index.ts +303 -0
  1272. package/src/bitbucket-client/models/AdminPasswordUpdate.ts +10 -0
  1273. package/src/bitbucket-client/models/ApplicationId.ts +5 -0
  1274. package/src/bitbucket-client/models/ApplicationUser.ts +7 -0
  1275. package/src/bitbucket-client/models/AuthenticationEntity.ts +13 -0
  1276. package/src/bitbucket-client/models/AuthenticationResponse.ts +7 -0
  1277. package/src/bitbucket-client/models/BasicAuthConfigEntity.ts +7 -0
  1278. package/src/bitbucket-client/models/CaptchaDataEntity.ts +7 -0
  1279. package/src/bitbucket-client/models/Comment.ts +38 -0
  1280. package/src/bitbucket-client/models/CommentOperations.ts +10 -0
  1281. package/src/bitbucket-client/models/CommentThread.ts +22 -0
  1282. package/src/bitbucket-client/models/CommentThreadDiffAnchor.ts +46 -0
  1283. package/src/bitbucket-client/models/Commentable.ts +5 -0
  1284. package/src/bitbucket-client/models/Context.ts +8 -0
  1285. package/src/bitbucket-client/models/ConversationDTO.ts +8 -0
  1286. package/src/bitbucket-client/models/Credentials.ts +10 -0
  1287. package/src/bitbucket-client/models/CredentialsCheckFailedDTO.ts +7 -0
  1288. package/src/bitbucket-client/models/DiffContentFilter.ts +5 -0
  1289. package/src/bitbucket-client/models/ElevationMethodRestDTO.ts +7 -0
  1290. package/src/bitbucket-client/models/EnrichedRepository.ts +7 -0
  1291. package/src/bitbucket-client/models/ErrorEntity.ts +7 -0
  1292. package/src/bitbucket-client/models/ExampleAvatarMultipartFormData.ts +11 -0
  1293. package/src/bitbucket-client/models/ExampleCertificateMultipartFormData.ts +11 -0
  1294. package/src/bitbucket-client/models/ExampleFiles.ts +7 -0
  1295. package/src/bitbucket-client/models/ExampleJsonLastModifiedCallback.ts +7 -0
  1296. package/src/bitbucket-client/models/ExampleMultipartFormData.ts +27 -0
  1297. package/src/bitbucket-client/models/ExamplePostMultipartFormData.ts +23 -0
  1298. package/src/bitbucket-client/models/ExamplePreviewMigration.ts +7 -0
  1299. package/src/bitbucket-client/models/ExamplePutMultipartFormData.ts +19 -0
  1300. package/src/bitbucket-client/models/ExampleRequirements.ts +7 -0
  1301. package/src/bitbucket-client/models/ExampleSettings.ts +7 -0
  1302. package/src/bitbucket-client/models/ExampleSettingsMap.ts +7 -0
  1303. package/src/bitbucket-client/models/ExampleSocketAddress.ts +7 -0
  1304. package/src/bitbucket-client/models/ExampleStatus.ts +7 -0
  1305. package/src/bitbucket-client/models/FileListResource.ts +7 -0
  1306. package/src/bitbucket-client/models/FilePart.ts +13 -0
  1307. package/src/bitbucket-client/models/Group.ts +7 -0
  1308. package/src/bitbucket-client/models/GroupAndUsers.ts +9 -0
  1309. package/src/bitbucket-client/models/GroupPickerContext.ts +9 -0
  1310. package/src/bitbucket-client/models/IdpConfigEntity.ts +7 -0
  1311. package/src/bitbucket-client/models/JitConfigEntity.ts +7 -0
  1312. package/src/bitbucket-client/models/JitUserEntity.ts +7 -0
  1313. package/src/bitbucket-client/models/LineNumberRange.ts +10 -0
  1314. package/src/bitbucket-client/models/LoginOptionEntity.ts +7 -0
  1315. package/src/bitbucket-client/models/MethodStateDTO.ts +7 -0
  1316. package/src/bitbucket-client/models/NextLoginStepDTO.ts +7 -0
  1317. package/src/bitbucket-client/models/OptionalBodyBeanParam.ts +5 -0
  1318. package/src/bitbucket-client/models/PageRequestImpl.ts +9 -0
  1319. package/src/bitbucket-client/models/PasswordElevationRestDTO.ts +8 -0
  1320. package/src/bitbucket-client/models/Project.ts +19 -0
  1321. package/src/bitbucket-client/models/PropertyMap.ts +7 -0
  1322. package/src/bitbucket-client/models/PullRequest.ts +36 -0
  1323. package/src/bitbucket-client/models/PullRequestParticipant.ts +28 -0
  1324. package/src/bitbucket-client/models/PullRequestRef.ts +15 -0
  1325. package/src/bitbucket-client/models/RefType.ts +7 -0
  1326. package/src/bitbucket-client/models/Repository.ts +36 -0
  1327. package/src/bitbucket-client/models/RepositoryHookDetails.ts +7 -0
  1328. package/src/bitbucket-client/models/RestAccessToken.ts +7 -0
  1329. package/src/bitbucket-client/models/RestAccessTokenRequest.ts +10 -0
  1330. package/src/bitbucket-client/models/RestAggregateRejectCounter.ts +7 -0
  1331. package/src/bitbucket-client/models/RestAnalyticsSettings.ts +7 -0
  1332. package/src/bitbucket-client/models/RestAnnouncementBanner.ts +7 -0
  1333. package/src/bitbucket-client/models/RestApplicationProperties.ts +7 -0
  1334. package/src/bitbucket-client/models/RestApplicationUser.ts +7 -0
  1335. package/src/bitbucket-client/models/RestApplicationUserWithPermissions.ts +7 -0
  1336. package/src/bitbucket-client/models/RestApplySuggestionRequest.ts +11 -0
  1337. package/src/bitbucket-client/models/RestAttachmentMetadata.ts +7 -0
  1338. package/src/bitbucket-client/models/RestAuthenticationRequest.ts +11 -0
  1339. package/src/bitbucket-client/models/RestAutoDeclineSettings.ts +7 -0
  1340. package/src/bitbucket-client/models/RestAutoDeclineSettingsRequest.ts +9 -0
  1341. package/src/bitbucket-client/models/RestAutoMergeProcessingResult.ts +7 -0
  1342. package/src/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.ts +16 -0
  1343. package/src/bitbucket-client/models/RestAutoMergeRequest.ts +7 -0
  1344. package/src/bitbucket-client/models/RestAutoMergeRestrictedSettings.ts +7 -0
  1345. package/src/bitbucket-client/models/RestAutoMergeSettingsRequest.ts +8 -0
  1346. package/src/bitbucket-client/models/RestBearerTokenCredentials.ts +8 -0
  1347. package/src/bitbucket-client/models/RestBitbucketLicense.ts +7 -0
  1348. package/src/bitbucket-client/models/RestBranch.ts +7 -0
  1349. package/src/bitbucket-client/models/RestBranchCreateRequest.ts +15 -0
  1350. package/src/bitbucket-client/models/RestBranchDeleteRequest.ts +19 -0
  1351. package/src/bitbucket-client/models/RestBuildCapabilities.ts +7 -0
  1352. package/src/bitbucket-client/models/RestBuildStats.ts +7 -0
  1353. package/src/bitbucket-client/models/RestBuildStatus.ts +7 -0
  1354. package/src/bitbucket-client/models/RestBuildStatusSetRequest.ts +31 -0
  1355. package/src/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.ts +10 -0
  1356. package/src/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.ts +13 -0
  1357. package/src/bitbucket-client/models/RestChange.ts +7 -0
  1358. package/src/bitbucket-client/models/RestChangeset.ts +7 -0
  1359. package/src/bitbucket-client/models/RestClusterInformation.ts +7 -0
  1360. package/src/bitbucket-client/models/RestClusterNode.ts +7 -0
  1361. package/src/bitbucket-client/models/RestComment.ts +7 -0
  1362. package/src/bitbucket-client/models/RestCommentJiraIssue.ts +7 -0
  1363. package/src/bitbucket-client/models/RestCommentThreadDiffAnchor.ts +7 -0
  1364. package/src/bitbucket-client/models/RestCommit.ts +7 -0
  1365. package/src/bitbucket-client/models/RestCommitMessageSuggestion.ts +7 -0
  1366. package/src/bitbucket-client/models/RestConflict.ts +7 -0
  1367. package/src/bitbucket-client/models/RestConflictChange.ts +7 -0
  1368. package/src/bitbucket-client/models/RestConnectivitySummary.ts +7 -0
  1369. package/src/bitbucket-client/models/RestCreateBranchRequest.ts +10 -0
  1370. package/src/bitbucket-client/models/RestCreateTagRequest.ts +10 -0
  1371. package/src/bitbucket-client/models/RestDefaultBranch.ts +8 -0
  1372. package/src/bitbucket-client/models/RestDefaultReviewersRequest.ts +38 -0
  1373. package/src/bitbucket-client/models/RestDefaultTask.ts +7 -0
  1374. package/src/bitbucket-client/models/RestDefaultTaskRequest.ts +33 -0
  1375. package/src/bitbucket-client/models/RestDelayedSyncRepository.ts +10 -0
  1376. package/src/bitbucket-client/models/RestDeployment.ts +7 -0
  1377. package/src/bitbucket-client/models/RestDeploymentEnvironment.ts +7 -0
  1378. package/src/bitbucket-client/models/RestDeploymentSetRequest.ts +28 -0
  1379. package/src/bitbucket-client/models/RestDetailedGroup.ts +7 -0
  1380. package/src/bitbucket-client/models/RestDetailedInvocation.ts +7 -0
  1381. package/src/bitbucket-client/models/RestDetailedUser.ts +7 -0
  1382. package/src/bitbucket-client/models/RestDiff.ts +7 -0
  1383. package/src/bitbucket-client/models/RestDiffHunk.ts +7 -0
  1384. package/src/bitbucket-client/models/RestDiffLine.ts +7 -0
  1385. package/src/bitbucket-client/models/RestDiffSegment.ts +7 -0
  1386. package/src/bitbucket-client/models/RestDiffStatsSummary.ts +7 -0
  1387. package/src/bitbucket-client/models/RestEmoticon.ts +7 -0
  1388. package/src/bitbucket-client/models/RestEnhancedEntityLink.ts +7 -0
  1389. package/src/bitbucket-client/models/RestErasedUser.ts +7 -0
  1390. package/src/bitbucket-client/models/RestErrorMessage.ts +7 -0
  1391. package/src/bitbucket-client/models/RestErrors.ts +7 -0
  1392. package/src/bitbucket-client/models/RestExportRequest.ts +13 -0
  1393. package/src/bitbucket-client/models/RestFarmSynchronizationRequest.ts +17 -0
  1394. package/src/bitbucket-client/models/RestGitTagCreateRequest.ts +18 -0
  1395. package/src/bitbucket-client/models/RestGpgKey.ts +7 -0
  1396. package/src/bitbucket-client/models/RestGpgSubKey.ts +7 -0
  1397. package/src/bitbucket-client/models/RestHookScript.ts +7 -0
  1398. package/src/bitbucket-client/models/RestHookScriptConfig.ts +7 -0
  1399. package/src/bitbucket-client/models/RestHookScriptTriggers.ts +8 -0
  1400. package/src/bitbucket-client/models/RestImportRequest.ts +8 -0
  1401. package/src/bitbucket-client/models/RestInsightAnnotation.ts +7 -0
  1402. package/src/bitbucket-client/models/RestInsightAnnotationsResponse.ts +7 -0
  1403. package/src/bitbucket-client/models/RestInsightReport.ts +7 -0
  1404. package/src/bitbucket-client/models/RestInsightReportData.ts +7 -0
  1405. package/src/bitbucket-client/models/RestInvocationHistory.ts +7 -0
  1406. package/src/bitbucket-client/models/RestInvocationRequest.ts +7 -0
  1407. package/src/bitbucket-client/models/RestInvocationResult.ts +7 -0
  1408. package/src/bitbucket-client/models/RestJiraIssue.ts +9 -0
  1409. package/src/bitbucket-client/models/RestJob.ts +7 -0
  1410. package/src/bitbucket-client/models/RestJobMessage.ts +7 -0
  1411. package/src/bitbucket-client/models/RestLabel.ts +7 -0
  1412. package/src/bitbucket-client/models/RestLabelable.ts +7 -0
  1413. package/src/bitbucket-client/models/RestLogLevel.ts +7 -0
  1414. package/src/bitbucket-client/models/RestLoggingSettings.ts +7 -0
  1415. package/src/bitbucket-client/models/RestMailConfiguration.ts +7 -0
  1416. package/src/bitbucket-client/models/RestMarkup.ts +7 -0
  1417. package/src/bitbucket-client/models/RestMeshConnectivityReport.ts +7 -0
  1418. package/src/bitbucket-client/models/RestMeshMigrationQueueStateCounts.ts +7 -0
  1419. package/src/bitbucket-client/models/RestMeshMigrationRequest.ts +14 -0
  1420. package/src/bitbucket-client/models/RestMeshMigrationSummary.ts +7 -0
  1421. package/src/bitbucket-client/models/RestMeshNode.ts +7 -0
  1422. package/src/bitbucket-client/models/RestMigrationRepository.ts +7 -0
  1423. package/src/bitbucket-client/models/RestMinimalCommit.ts +7 -0
  1424. package/src/bitbucket-client/models/RestMinimalRef.ts +7 -0
  1425. package/src/bitbucket-client/models/RestMirrorHashes.ts +7 -0
  1426. package/src/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.ts +7 -0
  1427. package/src/bitbucket-client/models/RestMirrorServer.ts +7 -0
  1428. package/src/bitbucket-client/models/RestMirrorUpgradeRequest.ts +9 -0
  1429. package/src/bitbucket-client/models/RestMirroredRepository.ts +7 -0
  1430. package/src/bitbucket-client/models/RestMirroredRepositoryDescriptor.ts +7 -0
  1431. package/src/bitbucket-client/models/RestMirroringRequest.ts +7 -0
  1432. package/src/bitbucket-client/models/RestMultilineCommentMarker.ts +7 -0
  1433. package/src/bitbucket-client/models/RestMultilineCommentSpan.ts +7 -0
  1434. package/src/bitbucket-client/models/RestMultipleBuildStats.ts +7 -0
  1435. package/src/bitbucket-client/models/RestNamedLink.ts +7 -0
  1436. package/src/bitbucket-client/models/RestNode.ts +7 -0
  1437. package/src/bitbucket-client/models/RestNodeConnectivityReport.ts +7 -0
  1438. package/src/bitbucket-client/models/RestNodeConnectivitySummary.ts +7 -0
  1439. package/src/bitbucket-client/models/RestPageIdpConfigEntity.ts +14 -0
  1440. package/src/bitbucket-client/models/RestPageLoginOptionEntity.ts +14 -0
  1441. package/src/bitbucket-client/models/RestPageRestChange.ts +7 -0
  1442. package/src/bitbucket-client/models/RestPath.ts +7 -0
  1443. package/src/bitbucket-client/models/RestPermitted.ts +7 -0
  1444. package/src/bitbucket-client/models/RestPermittedGroup.ts +7 -0
  1445. package/src/bitbucket-client/models/RestPermittedUser.ts +7 -0
  1446. package/src/bitbucket-client/models/RestPerson.ts +7 -0
  1447. package/src/bitbucket-client/models/RestProgress.ts +7 -0
  1448. package/src/bitbucket-client/models/RestProject.ts +7 -0
  1449. package/src/bitbucket-client/models/RestProjectSettingsRestriction.ts +7 -0
  1450. package/src/bitbucket-client/models/RestProjectSettingsRestrictionRequest.ts +10 -0
  1451. package/src/bitbucket-client/models/RestProperties.ts +7 -0
  1452. package/src/bitbucket-client/models/RestPullRequest.ts +7 -0
  1453. package/src/bitbucket-client/models/RestPullRequestActivity.ts +7 -0
  1454. package/src/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.ts +30 -0
  1455. package/src/bitbucket-client/models/RestPullRequestAssignStatusRequest.ts +16 -0
  1456. package/src/bitbucket-client/models/RestPullRequestCommitMessageTemplate.ts +7 -0
  1457. package/src/bitbucket-client/models/RestPullRequestCondition.ts +7 -0
  1458. package/src/bitbucket-client/models/RestPullRequestDeclineRequest.ts +9 -0
  1459. package/src/bitbucket-client/models/RestPullRequestDeleteRequest.ts +8 -0
  1460. package/src/bitbucket-client/models/RestPullRequestFinishReviewRequest.ts +10 -0
  1461. package/src/bitbucket-client/models/RestPullRequestMergeConfig.ts +7 -0
  1462. package/src/bitbucket-client/models/RestPullRequestMergeRequest.ts +12 -0
  1463. package/src/bitbucket-client/models/RestPullRequestMergeStrategy.ts +7 -0
  1464. package/src/bitbucket-client/models/RestPullRequestMergeability.ts +7 -0
  1465. package/src/bitbucket-client/models/RestPullRequestParticipant.ts +7 -0
  1466. package/src/bitbucket-client/models/RestPullRequestRebaseRequest.ts +8 -0
  1467. package/src/bitbucket-client/models/RestPullRequestRebaseResult.ts +7 -0
  1468. package/src/bitbucket-client/models/RestPullRequestRebaseability.ts +7 -0
  1469. package/src/bitbucket-client/models/RestPullRequestRef.ts +7 -0
  1470. package/src/bitbucket-client/models/RestPullRequestReopenRequest.ts +8 -0
  1471. package/src/bitbucket-client/models/RestPullRequestSettings.ts +7 -0
  1472. package/src/bitbucket-client/models/RestPullRequestSuggestion.ts +7 -0
  1473. package/src/bitbucket-client/models/RestPushRefChange.ts +7 -0
  1474. package/src/bitbucket-client/models/RestRateLimitSettings.ts +7 -0
  1475. package/src/bitbucket-client/models/RestRawAccessToken.ts +7 -0
  1476. package/src/bitbucket-client/models/RestRefChange.ts +7 -0
  1477. package/src/bitbucket-client/models/RestRefMatcher.ts +7 -0
  1478. package/src/bitbucket-client/models/RestRefMatcherType.ts +7 -0
  1479. package/src/bitbucket-client/models/RestRefRestriction.ts +7 -0
  1480. package/src/bitbucket-client/models/RestRefSyncQueue.ts +10 -0
  1481. package/src/bitbucket-client/models/RestRefSyncRequest.ts +19 -0
  1482. package/src/bitbucket-client/models/RestRefSyncStatus.ts +7 -0
  1483. package/src/bitbucket-client/models/RestRejectedRef.ts +7 -0
  1484. package/src/bitbucket-client/models/RestRelatedLinks.ts +7 -0
  1485. package/src/bitbucket-client/models/RestRepositoriesExportRequest.ts +10 -0
  1486. package/src/bitbucket-client/models/RestRepository.ts +7 -0
  1487. package/src/bitbucket-client/models/RestRepositoryHook.ts +7 -0
  1488. package/src/bitbucket-client/models/RestRepositoryHookVeto.ts +7 -0
  1489. package/src/bitbucket-client/models/RestRepositoryLockOwner.ts +7 -0
  1490. package/src/bitbucket-client/models/RestRepositoryMirrorEvent.ts +16 -0
  1491. package/src/bitbucket-client/models/RestRepositoryPolicy.ts +7 -0
  1492. package/src/bitbucket-client/models/RestRepositoryPullRequestSettings.ts +7 -0
  1493. package/src/bitbucket-client/models/RestRepositoryRefChangeActivity.ts +7 -0
  1494. package/src/bitbucket-client/models/RestRepositorySelector.ts +9 -0
  1495. package/src/bitbucket-client/models/RestRequiredBuildCondition.ts +7 -0
  1496. package/src/bitbucket-client/models/RestRequiredBuildConditionSetRequest.ts +31 -0
  1497. package/src/bitbucket-client/models/RestRestrictionRequest.ts +44 -0
  1498. package/src/bitbucket-client/models/RestReviewerGroup.ts +7 -0
  1499. package/src/bitbucket-client/models/RestRollingUpgradeState.ts +7 -0
  1500. package/src/bitbucket-client/models/RestScope.ts +7 -0
  1501. package/src/bitbucket-client/models/RestScopesExample.ts +7 -0
  1502. package/src/bitbucket-client/models/RestSecretScanningAllowlistRule.ts +7 -0
  1503. package/src/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.ts +19 -0
  1504. package/src/bitbucket-client/models/RestSecretScanningRule.ts +7 -0
  1505. package/src/bitbucket-client/models/RestSecretScanningRuleSetRequest.ts +19 -0
  1506. package/src/bitbucket-client/models/RestSetInsightReportRequest.ts +18 -0
  1507. package/src/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.ts +14 -0
  1508. package/src/bitbucket-client/models/RestSshAccessKey.ts +7 -0
  1509. package/src/bitbucket-client/models/RestSshAccessKeyLocations.ts +12 -0
  1510. package/src/bitbucket-client/models/RestSshCredentials.ts +16 -0
  1511. package/src/bitbucket-client/models/RestSshKey.ts +7 -0
  1512. package/src/bitbucket-client/models/RestSshKeySettings.ts +7 -0
  1513. package/src/bitbucket-client/models/RestSshKeyTypeRestriction.ts +7 -0
  1514. package/src/bitbucket-client/models/RestSshSettings.ts +7 -0
  1515. package/src/bitbucket-client/models/RestSyncProgress.ts +7 -0
  1516. package/src/bitbucket-client/models/RestSystemSigningConfiguration.ts +7 -0
  1517. package/src/bitbucket-client/models/RestTag.ts +7 -0
  1518. package/src/bitbucket-client/models/RestTestResults.ts +7 -0
  1519. package/src/bitbucket-client/models/RestTokenBucketSettings.ts +7 -0
  1520. package/src/bitbucket-client/models/RestUpstreamServer.ts +7 -0
  1521. package/src/bitbucket-client/models/RestUpstreamSettings.ts +7 -0
  1522. package/src/bitbucket-client/models/RestUserDirectory.ts +7 -0
  1523. package/src/bitbucket-client/models/RestUserRateLimitSettings.ts +7 -0
  1524. package/src/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.ts +12 -0
  1525. package/src/bitbucket-client/models/RestUserReaction.ts +7 -0
  1526. package/src/bitbucket-client/models/RestUsernamePasswordCredentials.ts +9 -0
  1527. package/src/bitbucket-client/models/RestWebhook.ts +7 -0
  1528. package/src/bitbucket-client/models/RestWebhookCredentials.ts +7 -0
  1529. package/src/bitbucket-client/models/RestWebhookRequestResponse.ts +7 -0
  1530. package/src/bitbucket-client/models/RestWebhookScope.ts +7 -0
  1531. package/src/bitbucket-client/models/RestX509Certificate.ts +7 -0
  1532. package/src/bitbucket-client/models/Scope.ts +16 -0
  1533. package/src/bitbucket-client/models/SimpleSshKeyFingerprint.ts +7 -0
  1534. package/src/bitbucket-client/models/SsoConfigEntity.ts +7 -0
  1535. package/src/bitbucket-client/models/SsoManagementStatusDTO.ts +7 -0
  1536. package/src/bitbucket-client/models/StatusDTO.ts +7 -0
  1537. package/src/bitbucket-client/models/TotpCodeVerificationDTO.ts +9 -0
  1538. package/src/bitbucket-client/models/TotpElevationRestDTO.ts +8 -0
  1539. package/src/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.ts +9 -0
  1540. package/src/bitbucket-client/models/TotpRecoveryCodeDTO.ts +7 -0
  1541. package/src/bitbucket-client/models/TotpUserEnrollmentDTO.ts +7 -0
  1542. package/src/bitbucket-client/models/UserAndGroups.ts +9 -0
  1543. package/src/bitbucket-client/models/UserPasswordUpdate.ts +10 -0
  1544. package/src/bitbucket-client/models/UserPickerContext.ts +9 -0
  1545. package/src/bitbucket-client/models/UserRename.ts +9 -0
  1546. package/src/bitbucket-client/models/UserUpdate.ts +10 -0
  1547. package/src/bitbucket-client/models/UserUpdateWithCredentials.ts +14 -0
  1548. package/src/bitbucket-client/services/AuthenticationService.ts +1652 -0
  1549. package/src/bitbucket-client/services/BuildsAndDeploymentsService.ts +849 -0
  1550. package/src/bitbucket-client/services/CapabilitiesService.ts +38 -0
  1551. package/src/bitbucket-client/services/DashboardService.ts +96 -0
  1552. package/src/bitbucket-client/services/DefaultService.ts +46 -0
  1553. package/src/bitbucket-client/services/DeprecatedService.ts +396 -0
  1554. package/src/bitbucket-client/services/JiraIntegrationService.ts +133 -0
  1555. package/src/bitbucket-client/services/MarkupService.ts +48 -0
  1556. package/src/bitbucket-client/services/MirroringMirrorService.ts +421 -0
  1557. package/src/bitbucket-client/services/MirroringUpstreamService.ts +487 -0
  1558. package/src/bitbucket-client/services/PermissionManagementService.ts +1484 -0
  1559. package/src/bitbucket-client/services/ProjectService.ts +2502 -0
  1560. package/src/bitbucket-client/services/PullRequestsService.ts +2997 -0
  1561. package/src/bitbucket-client/services/RepositoryService.ts +3944 -0
  1562. package/src/bitbucket-client/services/SecurityService.ts +1253 -0
  1563. package/src/bitbucket-client/services/SystemMaintenanceService.ts +2279 -0
  1564. package/src/bitbucket-response-mapper.ts +127 -0
  1565. package/src/bitbucket-service.ts +3069 -0
  1566. package/src/config.ts +29 -0
  1567. package/src/inbox-pr-mapper.ts +183 -0
  1568. package/src/index.ts +811 -0
  1569. package/src/pr-changes-mapper.ts +216 -0
  1570. package/src/pr-comment-mapper.ts +399 -0
  1571. package/src/setup.ts +15 -0
  1572. package/tsconfig.json +12 -0
  1573. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,3228 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class RepositoryService {
4
+ /**
5
+ * Delete branch
6
+ * Deletes a branch in the specified repository.
7
+ *
8
+ *
9
+ * If the branch does not exist, this operation will not raise an error. In other words after calling this resource
10
+ * and receiving a 204 response the branch provided in the request is guaranteed to not exist in the specified
11
+ * repository any more, regardless of its existence beforehand.
12
+ *
13
+ *
14
+ * The optional 'endPoint' parameter of the request may contain a commit ID that the provided ref name is
15
+ * expected to point to. Should the ref point to a different commit ID, a 400 response will be returned with
16
+ * appropriate error details.
17
+ *
18
+ *
19
+ * The authenticated user must have an effective <strong>REPO_WRITE</strong> permission to call this resource. If
20
+ * branch permissions are set up in the repository, the authenticated user must also have access to the branch name
21
+ * that is to be deleted.
22
+ * @param projectKey The project key.
23
+ * @param repositorySlug The repository slug.
24
+ * @param requestBody Branch delete request
25
+ * @returns void
26
+ * @throws ApiError
27
+ */
28
+ static deleteBranch(projectKey, repositorySlug, requestBody) {
29
+ return __request(OpenAPI, {
30
+ method: 'DELETE',
31
+ url: '/branch-utils/latest/projects/{projectKey}/repos/{repositorySlug}/branches',
32
+ path: {
33
+ 'projectKey': projectKey,
34
+ 'repositorySlug': repositorySlug,
35
+ },
36
+ body: requestBody,
37
+ mediaType: 'application/json',
38
+ errors: {
39
+ 400: `The branch was not deleted because the request was invalid, e.g. no ref name
40
+ to delete was provided, or the provided ref name points to the default branch
41
+ in the repository that cannot be deleted`,
42
+ 401: `The currently authenticated user has insufficient permissions to delete a
43
+ branch. This could be due to insufficient repository permissions, or lack of
44
+ branch permission for the provided ref name.`,
45
+ },
46
+ });
47
+ }
48
+ /**
49
+ * Create branch
50
+ * Creates a branch in the specified repository.
51
+ *
52
+ *
53
+ * The authenticated user must have an effective <strong>REPO_WRITE</strong> permission to call this resource. If
54
+ * branch permissions are set up in the repository, the authenticated user must also have access to the branch name
55
+ * that is to be created.
56
+ * @param projectKey The project key.
57
+ * @param repositorySlug The repository slug.
58
+ * @param requestBody
59
+ * @returns RestBranch JSON representation of the newly created branch
60
+ * @throws ApiError
61
+ */
62
+ static createBranch(projectKey, repositorySlug, requestBody) {
63
+ return __request(OpenAPI, {
64
+ method: 'POST',
65
+ url: '/branch-utils/latest/projects/{projectKey}/repos/{repositorySlug}/branches',
66
+ path: {
67
+ 'projectKey': projectKey,
68
+ 'repositorySlug': repositorySlug,
69
+ },
70
+ body: requestBody,
71
+ mediaType: 'application/json',
72
+ errors: {
73
+ 400: `The branch was not created because the request was invalid, e.g. the provided
74
+ ref name already existed in the repository, or was not a valid ref name in the
75
+ repository`,
76
+ 401: `The currently authenticated user has insufficient permissions to create a branch. This could be due to insufficient repository permissions, or lack of branch permission for the provided ref name`,
77
+ 409: `The branch name overlapped with an existing branch`,
78
+ },
79
+ });
80
+ }
81
+ /**
82
+ * Get branch
83
+ * Gets the branch information associated with a single commit from a given repository.
84
+ * @param projectKey The project key.
85
+ * @param commitId
86
+ * @param repositorySlug The repository slug.
87
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
88
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
89
+ * @returns any A page of branch refs associated with the commit
90
+ * @throws ApiError
91
+ */
92
+ static findByCommit(projectKey, commitId, repositorySlug, start, limit) {
93
+ return __request(OpenAPI, {
94
+ method: 'GET',
95
+ url: '/branch-utils/latest/projects/{projectKey}/repos/{repositorySlug}/branches/info/{commitId}',
96
+ path: {
97
+ 'projectKey': projectKey,
98
+ 'commitId': commitId,
99
+ 'repositorySlug': repositorySlug,
100
+ },
101
+ query: {
102
+ 'start': start,
103
+ 'limit': limit,
104
+ },
105
+ errors: {
106
+ 500: `The request has timed out processing the branch request`,
107
+ },
108
+ });
109
+ }
110
+ /**
111
+ * Deletes all default tasks for the repository
112
+ * Delete all the default tasks for the supplied repository
113
+ *
114
+ * The authenticated user must have **REPO_ADMIN** permission for this repository to call the resource.
115
+ * @param projectKey The project key.
116
+ * @param repositorySlug The repository slug.
117
+ * @returns void
118
+ * @throws ApiError
119
+ */
120
+ static deleteAllDefaultTasks1(projectKey, repositorySlug) {
121
+ return __request(OpenAPI, {
122
+ method: 'DELETE',
123
+ url: '/default-tasks/latest/projects/{projectKey}/repos/{repositorySlug}/tasks',
124
+ path: {
125
+ 'projectKey': projectKey,
126
+ 'repositorySlug': repositorySlug,
127
+ },
128
+ errors: {
129
+ 401: `The currently authenticated user has insufficient permissions to delete default tasks`,
130
+ 404: `The specified repository does not exist`,
131
+ },
132
+ });
133
+ }
134
+ /**
135
+ * Get a page of default tasks
136
+ * Retrieves the default tasks for the supplied repository.
137
+ *
138
+ * The authenticated user must have **REPO_VIEW** permission for this repository to call the resource.
139
+ * @param projectKey The project key.
140
+ * @param repositorySlug The repository slug.
141
+ * @param markup If present or `"true"`, includes a markup-rendered description
142
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
143
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
144
+ * @returns any A page of default tasks
145
+ * @throws ApiError
146
+ */
147
+ static getDefaultTasks1(projectKey, repositorySlug, markup, start, limit) {
148
+ return __request(OpenAPI, {
149
+ method: 'GET',
150
+ url: '/default-tasks/latest/projects/{projectKey}/repos/{repositorySlug}/tasks',
151
+ path: {
152
+ 'projectKey': projectKey,
153
+ 'repositorySlug': repositorySlug,
154
+ },
155
+ query: {
156
+ 'markup': markup,
157
+ 'start': start,
158
+ 'limit': limit,
159
+ },
160
+ errors: {
161
+ 401: `The currently authenticated user has insufficient permissions to delete default tasks`,
162
+ 404: `The specified repository does not exist`,
163
+ },
164
+ });
165
+ }
166
+ /**
167
+ * Add a default task
168
+ * Creates a default task for the supplied repository.
169
+ *
170
+ * The authenticated user must have **REPO_ADMIN** permission for this repository to call the resource.
171
+ * @param projectKey The project key.
172
+ * @param repositorySlug The repository slug.
173
+ * @param requestBody The task to be added
174
+ * @returns RestDefaultTask The default task
175
+ * @throws ApiError
176
+ */
177
+ static addDefaultTask1(projectKey, repositorySlug, requestBody) {
178
+ return __request(OpenAPI, {
179
+ method: 'POST',
180
+ url: '/default-tasks/latest/projects/{projectKey}/repos/{repositorySlug}/tasks',
181
+ path: {
182
+ 'projectKey': projectKey,
183
+ 'repositorySlug': repositorySlug,
184
+ },
185
+ body: requestBody,
186
+ mediaType: 'application/json',
187
+ errors: {
188
+ 400: `One or more of the following error cases occurred (check the error message for more details):
189
+ - the description is empty- the sourceMatcher or targetMatcher is invalid`,
190
+ 401: `The currently authenticated user has insufficient permissions to add a default task`,
191
+ 404: `The specified repository does not exist`,
192
+ },
193
+ });
194
+ }
195
+ /**
196
+ * Delete a specific default task
197
+ * Delete a specific default task for a repository.
198
+ *
199
+ * The authenticated user must have **REPO_ADMIN** permission for this repository to call the resource.
200
+ * @param projectKey The project key.
201
+ * @param repositorySlug The repository slug.
202
+ * @param taskId The ID of the default task
203
+ * @returns void
204
+ * @throws ApiError
205
+ */
206
+ static deleteDefaultTask1(projectKey, repositorySlug, taskId) {
207
+ return __request(OpenAPI, {
208
+ method: 'DELETE',
209
+ url: '/default-tasks/latest/projects/{projectKey}/repos/{repositorySlug}/tasks/{taskId}',
210
+ path: {
211
+ 'projectKey': projectKey,
212
+ 'repositorySlug': repositorySlug,
213
+ 'taskId': taskId,
214
+ },
215
+ errors: {
216
+ 401: `The currently authenticated user has insufficient permissions to delete default tasks`,
217
+ 404: `The specified repository or task does not exist`,
218
+ },
219
+ });
220
+ }
221
+ /**
222
+ * Update a default task
223
+ * Updates a default task for the supplied repository.
224
+ *
225
+ * The authenticated user must have **REPO_ADMIN** permission for this repository to call the resource.
226
+ * @param projectKey The project key.
227
+ * @param repositorySlug The repository slug.
228
+ * @param taskId The ID of the default task
229
+ * @param requestBody The task to be updated
230
+ * @returns RestDefaultTask The default task
231
+ * @throws ApiError
232
+ */
233
+ static updateDefaultTask1(projectKey, repositorySlug, taskId, requestBody) {
234
+ return __request(OpenAPI, {
235
+ method: 'PUT',
236
+ url: '/default-tasks/latest/projects/{projectKey}/repos/{repositorySlug}/tasks/{taskId}',
237
+ path: {
238
+ 'projectKey': projectKey,
239
+ 'repositorySlug': repositorySlug,
240
+ 'taskId': taskId,
241
+ },
242
+ body: requestBody,
243
+ mediaType: 'application/json',
244
+ errors: {
245
+ 400: `One or more of the following error cases occurred (check the error message for more details):
246
+ - the provided taskId does not exist- the description is empty- the sourceMatcher or targetMatcher is invalid`,
247
+ 401: `The currently authenticated user has insufficient permissions to add a default task`,
248
+ 404: `The specified repository does not exist`,
249
+ },
250
+ });
251
+ }
252
+ /**
253
+ * Create tag
254
+ * Creates a tag in the specified repository.
255
+ *
256
+ * The authenticated user must have an effective <strong>REPO_WRITE</strong> permission to call this resource.
257
+ *
258
+ * 'LIGHTWEIGHT' and 'ANNOTATED' are the two type of tags that can be created. The 'startPoint' can either be a ref or a 'commit'.
259
+ * @param projectKey The project key.
260
+ * @param repositorySlug The repository slug.
261
+ * @param requestBody The create git tag request.
262
+ * @returns RestTag A JSON representation of the newly created tag.
263
+ * @throws ApiError
264
+ */
265
+ static createTag(projectKey, repositorySlug, requestBody) {
266
+ return __request(OpenAPI, {
267
+ method: 'POST',
268
+ url: '/git/latest/projects/{projectKey}/repos/{repositorySlug}/tags',
269
+ path: {
270
+ 'projectKey': projectKey,
271
+ 'repositorySlug': repositorySlug,
272
+ },
273
+ body: requestBody,
274
+ mediaType: 'application/json',
275
+ errors: {
276
+ 400: `The tag was not created because the request was invalid, e.g. the provided ref name already existed in the repository, or was not a valid ref name in the repository, or the start point is invalid.`,
277
+ 401: `The currently authenticated user has insufficient permissions to create a tag. This could be due to insufficient repository permissions.`,
278
+ },
279
+ });
280
+ }
281
+ /**
282
+ * Delete tag
283
+ * Deletes a tag in the specified repository.
284
+ *
285
+ * The authenticated user must have an effective <strong>REPO_WRITE</strong> permission to call this resource.
286
+ * @param projectKey The project key.
287
+ * @param name The name of the tag to be deleted.
288
+ * @param repositorySlug The repository slug.
289
+ * @returns void
290
+ * @throws ApiError
291
+ */
292
+ static deleteTag(projectKey, name, repositorySlug) {
293
+ return __request(OpenAPI, {
294
+ method: 'DELETE',
295
+ url: '/git/latest/projects/{projectKey}/repos/{repositorySlug}/tags/{name}',
296
+ path: {
297
+ 'projectKey': projectKey,
298
+ 'name': name,
299
+ 'repositorySlug': repositorySlug,
300
+ },
301
+ errors: {
302
+ 400: `The tag was not deleted because repository is either empty, or is not a git repository.`,
303
+ 401: `The currently authenticated user has insufficient permissions to delete a tag. This could be due to insufficient repository permissions.`,
304
+ 404: `If the tag doesn't exist in the repository.`,
305
+ },
306
+ });
307
+ }
308
+ /**
309
+ * Remove a reaction from comment
310
+ * Remove an emoticon reaction from a comment
311
+ * @param projectKey The project key.
312
+ * @param commentId The comment id
313
+ * @param commitId The commit id
314
+ * @param emoticon The emoticon to remove
315
+ * @param repositorySlug The repository slug.
316
+ * @returns void
317
+ * @throws ApiError
318
+ */
319
+ static unReact(projectKey, commentId, commitId, emoticon, repositorySlug) {
320
+ return __request(OpenAPI, {
321
+ method: 'DELETE',
322
+ url: '/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/reactions/{emoticon}',
323
+ path: {
324
+ 'projectKey': projectKey,
325
+ 'commentId': commentId,
326
+ 'commitId': commitId,
327
+ 'emoticon': emoticon,
328
+ 'repositorySlug': repositorySlug,
329
+ },
330
+ });
331
+ }
332
+ /**
333
+ * React to a comment
334
+ * Add an emoticon reaction to a comment
335
+ * @param projectKey The project key.
336
+ * @param commentId The comment id
337
+ * @param commitId The commit id
338
+ * @param emoticon The emoticon to add
339
+ * @param repositorySlug The repository slug.
340
+ * @returns RestUserReaction The added reaction
341
+ * @throws ApiError
342
+ */
343
+ static react(projectKey, commentId, commitId, emoticon, repositorySlug) {
344
+ return __request(OpenAPI, {
345
+ method: 'PUT',
346
+ url: '/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/reactions/{emoticon}',
347
+ path: {
348
+ 'projectKey': projectKey,
349
+ 'commentId': commentId,
350
+ 'commitId': commitId,
351
+ 'emoticon': emoticon,
352
+ 'repositorySlug': repositorySlug,
353
+ },
354
+ });
355
+ }
356
+ /**
357
+ * Search for ref restrictions
358
+ * Search for restrictions using the supplied parameters.
359
+ *
360
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission or higher to call this resource. Only authenticated users may call this resource.
361
+ * @param projectKey The project key.
362
+ * @param repositorySlug The repository slug.
363
+ * @param matcherType Matcher type to filter on
364
+ * @param matcherId Matcher id to filter on. Requires the matcherType parameter to be specified also.
365
+ * @param type Types of restrictions to filter on.
366
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
367
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
368
+ * @returns any A response containing a page of restrictions.
369
+ * @throws ApiError
370
+ */
371
+ static getRestrictions1(projectKey, repositorySlug, matcherType, matcherId, type, start, limit) {
372
+ return __request(OpenAPI, {
373
+ method: 'GET',
374
+ url: '/branch-permissions/latest/projects/{projectKey}/repos/{repositorySlug}/restrictions',
375
+ path: {
376
+ 'projectKey': projectKey,
377
+ 'repositorySlug': repositorySlug,
378
+ },
379
+ query: {
380
+ 'matcherType': matcherType,
381
+ 'matcherId': matcherId,
382
+ 'type': type,
383
+ 'start': start,
384
+ 'limit': limit,
385
+ },
386
+ errors: {
387
+ 400: `The request has failed validation.`,
388
+ 401: `The currently authenticated user is not permitted to get restrictions on the provided project`,
389
+ 404: `No restriction exists for the provided ID.`,
390
+ },
391
+ });
392
+ }
393
+ /**
394
+ * Create multiple ref restrictions
395
+ * Allows creating multiple restrictions at once.
396
+ * @param projectKey The project key.
397
+ * @param repositorySlug The repository slug.
398
+ * @param requestBody The request containing a list of the details of the restrictions to create.
399
+ * @returns RestRefRestriction Response contains the ref restriction that was just created.
400
+ * @throws ApiError
401
+ */
402
+ static createRestrictions1(projectKey, repositorySlug, requestBody) {
403
+ return __request(OpenAPI, {
404
+ method: 'POST',
405
+ url: '/branch-permissions/latest/projects/{projectKey}/repos/{repositorySlug}/restrictions',
406
+ path: {
407
+ 'projectKey': projectKey,
408
+ 'repositorySlug': repositorySlug,
409
+ },
410
+ body: requestBody,
411
+ mediaType: 'application/vnd.atl.bitbucket.bulk+json',
412
+ errors: {
413
+ 400: `The request has failed validation.`,
414
+ 401: `The currently authenticated user has insufficient permissions to perform this operation.`,
415
+ },
416
+ });
417
+ }
418
+ /**
419
+ * Delete a ref restriction
420
+ * Deletes a restriction as specified by a restriction id.
421
+ *
422
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission or higher to call this resource. Only authenticated users may call this resource.
423
+ * @param projectKey The project key.
424
+ * @param id The restriction id.
425
+ * @param repositorySlug The repository slug.
426
+ * @returns void
427
+ * @throws ApiError
428
+ */
429
+ static deleteRestriction1(projectKey, id, repositorySlug) {
430
+ return __request(OpenAPI, {
431
+ method: 'DELETE',
432
+ url: '/branch-permissions/latest/projects/{projectKey}/repos/{repositorySlug}/restrictions/{id}',
433
+ path: {
434
+ 'projectKey': projectKey,
435
+ 'id': id,
436
+ 'repositorySlug': repositorySlug,
437
+ },
438
+ errors: {
439
+ 400: `The request has failed validation.`,
440
+ 401: `The currently authenticated user is not permitted to delete restrictions on the provided project`,
441
+ },
442
+ });
443
+ }
444
+ /**
445
+ * Get a ref restriction
446
+ * Returns a restriction as specified by a restriction id.
447
+ *
448
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission or higher to call this resource. Only authenticated users may call this resource.
449
+ * @param projectKey The project key.
450
+ * @param id The restriction id.
451
+ * @param repositorySlug The repository slug.
452
+ * @returns RestRefRestriction A response containing the restriction.
453
+ * @throws ApiError
454
+ */
455
+ static getRestriction1(projectKey, id, repositorySlug) {
456
+ return __request(OpenAPI, {
457
+ method: 'GET',
458
+ url: '/branch-permissions/latest/projects/{projectKey}/repos/{repositorySlug}/restrictions/{id}',
459
+ path: {
460
+ 'projectKey': projectKey,
461
+ 'id': id,
462
+ 'repositorySlug': repositorySlug,
463
+ },
464
+ errors: {
465
+ 400: `The request has failed validation.`,
466
+ 401: `The currently authenticated user is not permitted to get restrictions on the provided project`,
467
+ 404: `No restriction exists for the provided ID.`,
468
+ },
469
+ });
470
+ }
471
+ /**
472
+ * Get synchronization status
473
+ * Retrieves the synchronization status for the specified repository. In addition to listing refs which cannot be synchronized, if any, the status also provides the timestamp for the most recent synchronization and indicates whether synchronization is available and enabled. If "?at" is specified in the URL, the synchronization status for the specified ref is returned, rather than the complete repository status.
474
+ *
475
+ * The authenticated user must have <b>REPO_READ</b> permission for the repository, or it must be public if the request is anonymous. Additionally, after synchronization is enabled for a repository, meaning synchronization was available at that time, permission changes and other actions can cause it to become unavailable. Even when synchronization is enabled, if it is no longer available for the repository it will not be performed.
476
+ * @param projectKey The project key.
477
+ * @param repositorySlug The repository slug.
478
+ * @param at Retrieves the synchronization status for the specified ref within the repository, rather than for the entire repository
479
+ * @returns RestRefSyncStatus Synchronization status for the specified repository, or specific ref within that repository.
480
+ * @throws ApiError
481
+ */
482
+ static getStatus(projectKey, repositorySlug, at) {
483
+ return __request(OpenAPI, {
484
+ method: 'GET',
485
+ url: '/sync/latest/projects/{projectKey}/repos/{repositorySlug}',
486
+ path: {
487
+ 'projectKey': projectKey,
488
+ 'repositorySlug': repositorySlug,
489
+ },
490
+ query: {
491
+ 'at': at,
492
+ },
493
+ errors: {
494
+ 401: `The currently authenticated user has insufficient permissions to view the repository, or the repository is not public if the request is anonymous.`,
495
+ 404: `The specified repository does not exist.`,
496
+ },
497
+ });
498
+ }
499
+ /**
500
+ * Disable synchronization
501
+ * Enables or disables synchronization for the specified repository. When synchronization is enabled, branches within the repository are immediately synchronized and the status is updated with the outcome. That initial synchronization is performed before the REST request returns, allowing it to return the updated status.
502
+ *
503
+ * The authenticated user must have <b>REPO_ADMIN</b> permission for the specified repository. Anonymous users cannot manage synchronization, even on public repositories. Additionally, synchronization must be available for the specified repository. Synchronization is only available if:
504
+ *
505
+ * - The repository is a fork, since its origin is used as upstream
506
+ * - The owning user still has access to the fork's origin, if the repository is a <i>personalfork</i>
507
+ * @param projectKey The project key.
508
+ * @param repositorySlug The repository slug.
509
+ * @param requestBody
510
+ * @returns RestRefSyncStatus The updated synchronization status for the repository, after enabling synchronization. 204 NO CONTENT is returned instead after disabling synchronization.
511
+ * @throws ApiError
512
+ */
513
+ static setEnabled(projectKey, repositorySlug, requestBody) {
514
+ return __request(OpenAPI, {
515
+ method: 'POST',
516
+ url: '/sync/latest/projects/{projectKey}/repos/{repositorySlug}',
517
+ path: {
518
+ 'projectKey': projectKey,
519
+ 'repositorySlug': repositorySlug,
520
+ },
521
+ body: requestBody,
522
+ mediaType: 'application/json',
523
+ errors: {
524
+ 400: `The JSON payload for the request did not define the "enabled" property.`,
525
+ 401: `The currently authenticated user has insufficient permissions to manage synchronization in the specified repository.`,
526
+ 404: `The specified repository does not exist.`,
527
+ },
528
+ });
529
+ }
530
+ /**
531
+ * Manual synchronization
532
+ * Allows developers to apply a manual operation to bring a ref back in sync with upstream when it becomes out of sync due to conflicting changes. The following actions are supported:
533
+ *
534
+ * - <tt>MERGE</tt>: Merges in commits from the upstream ref. After applying this action, the synchronized ref will be <tt>AHEAD</tt> (as it still includes commits that do not exist upstream.
535
+ * - This action is only supported for <tt>DIVERGED</tt> refs
536
+ * - If a "commitMessage" is provided in the context, it will be used on the merge commit. Otherwise a default message is used.
537
+ * - <tt>DISCARD</tt>: <i>Throws away</i> local changes in favour of those made upstream. This is a <i>destructive</i> operation where commits in the local repository are lost.
538
+ * - No context entries are supported for this action
539
+ * - If the upstream ref has been deleted, the local ref is deleted as well
540
+ * - Otherwise, the local ref is updated to reference the same commit as upstream, even if the update is not fast-forward (similar to a forced push)
541
+ *
542
+ *
543
+ * The authenticated user must have <b>REPO_WRITE</b> permission for the specified repository. Anonymous users cannot synchronize refs, even on public repositories. Additionally, synchronization must be <i>enabled</i> and <i>available</i> for the specified repository.
544
+ * @param projectKey The project key.
545
+ * @param repositorySlug The repository slug.
546
+ * @param requestBody
547
+ * @returns RestRejectedRef The requested action was successfully performed, and has updated the ref's state, but the ref if is still not in sync with upstream. For example, after applying the <tt>MERGE</tt> action, the ref will still be <tt>AHEAD</tt> of upstream. If the action brings the ref in sync with upstream, 204 NO CONTENT is returned instead.
548
+ * @throws ApiError
549
+ */
550
+ static synchronize(projectKey, repositorySlug, requestBody) {
551
+ return __request(OpenAPI, {
552
+ method: 'POST',
553
+ url: '/sync/latest/projects/{projectKey}/repos/{repositorySlug}/synchronize',
554
+ path: {
555
+ 'projectKey': projectKey,
556
+ 'repositorySlug': repositorySlug,
557
+ },
558
+ body: requestBody,
559
+ mediaType: 'application/json',
560
+ errors: {
561
+ 400: `The requested synchronization action was not understood.`,
562
+ 401: `The currently authenticated user has insufficient permissions to update refs within the specified repository.`,
563
+ 404: `The specified repository does not exist.`,
564
+ 409: `Synchronization is not available or enabled for the specified repository, or the ref is already in sync with upstream.`,
565
+ 501: `The requested synchronization action was understood by the server, but the mechanism to apply it has not been implemented.`,
566
+ },
567
+ });
568
+ }
569
+ /**
570
+ * Get recently accessed repositories
571
+ * Retrieve a page of recently accessed repositories for the currently authenticated user.
572
+ *
573
+ * Repositories are ordered from most recently to least recently accessed. <p>Only authenticated users may call this resource.
574
+ * @param permission (optional) If specified, it must be a valid repository permission level name and will limit the resulting repository list to ones that the requesting user has the specified permission level to. If not specified, the default <code>REPO_READ</code> permission level will be assumed.
575
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
576
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
577
+ * @returns any A page of recently accessed repositories.
578
+ * @throws ApiError
579
+ */
580
+ static getRepositoriesRecentlyAccessed(permission = 'REPO_READ', start, limit) {
581
+ return __request(OpenAPI, {
582
+ method: 'GET',
583
+ url: '/api/latest/profile/recent/repos',
584
+ query: {
585
+ 'permission': permission,
586
+ 'start': start,
587
+ 'limit': limit,
588
+ },
589
+ errors: {
590
+ 400: `The permission level is unknown or not related to repository.`,
591
+ 401: `The request is unauthenticated.`,
592
+ },
593
+ });
594
+ }
595
+ /**
596
+ * Stream archive of repository
597
+ * Streams an archive of the repository's contents at the requested commit. If no `at=` commit is requested, an archive of the default branch is streamed.
598
+ *
599
+ * The <code>filename=</code> query parameter may be used to specify the exact filename to include in the "Content-Disposition" header. If an explicit filename is not provided, one will be automatically generated based on what is being archived. Its format depends on the at= value:
600
+ *
601
+ * - No <code>at=</code> commit: &lt;slug&gt;-&lt;default-branch-name&gt;@&lt;commit&gt;.&lt;format&gt;; e.g. example-master@43c2f8a0fe8.zip
602
+ * - <code>at=</code>sha: &lt;slug&gt;-&lt;at&gt;.&lt;format&gt;; e.g. example-09bcbb00100cfbb5310fb6834a1d5ce6cac253e9.tar.gz
603
+ * - <code>at=</code>branchOrTag: &lt;slug&gt;-&lt;branchOrTag&gt;@&lt;commit&gt;.&lt;format&gt;; e.g. example-feature@bbb225f16e1.tar
604
+ *
605
+ * - If the branch or tag is qualified (e.g. refs/heads/master, the short name (master) will be included in the filename
606
+ * - If the branch or tag's <i>short name</i> includes slashes (e.g. release/4.6), they will be converted to hyphens in the filename (release-4.5)
607
+ *
608
+ *
609
+ *
610
+ *
611
+ * Archives may be requested in the following formats by adding the <code>format=</code> query parameter:
612
+ *
613
+ * - zip: A zip file using standard compression (Default)
614
+ * - tar: An uncompressed tarball
615
+ * - tar.gz or tgz: A GZip-compressed tarball
616
+ *
617
+ *
618
+ * The contents of the archive may be filtered by using the <code>path=</code> query parameter to specify paths to include. <code>path=</code> may be specified multiple times to include multiple paths.
619
+ *
620
+ * The <code>prefix=</code> query parameter may be used to define a directory (or multiple directories) where the archive's contents should be placed. If the prefix does not end with /, one will be added automatically. The prefix is <i>always</i> treated as a directory; it is not possible to use it to prepend characters to the entries in the archive.
621
+ *
622
+ * Archives of public repositories may be streamed by any authenticated or anonymous user. Streaming archives for non-public repositories requires an <i>authenticated user</i> with at least <b>REPO_READ</b> permission.
623
+ * @param projectKey The project key.
624
+ * @param repositorySlug The repository slug.
625
+ * @param path Paths to include in the streamed archive; may be repeated to include multiple paths
626
+ * @param filename A filename to include the "Content-Disposition" header
627
+ * @param at The commit to stream an archive of; if not supplied, an archive of the default branch is streamed
628
+ * @param prefix A prefix to apply to all entries in the streamed archive; if the supplied prefix does not end with a trailing /, one will be added automatically
629
+ * @param format The format to stream the archive in; must be one of: zip, tar, tar.gz or tgz
630
+ * @returns any An archive or the requested commit, in zip, tar or gzipped-tar format.
631
+ * @throws ApiError
632
+ */
633
+ static getArchive(projectKey, repositorySlug, path, filename, at, prefix, format) {
634
+ return __request(OpenAPI, {
635
+ method: 'GET',
636
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/archive',
637
+ path: {
638
+ 'projectKey': projectKey,
639
+ 'repositorySlug': repositorySlug,
640
+ },
641
+ query: {
642
+ 'path': path,
643
+ 'filename': filename,
644
+ 'at': at,
645
+ 'prefix': prefix,
646
+ 'format': format,
647
+ },
648
+ errors: {
649
+ 400: `The requested format is not supported.`,
650
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
651
+ 404: `The repository does not exist or does not contain the at commit.`,
652
+ },
653
+ });
654
+ }
655
+ /**
656
+ * Delete an attachment
657
+ * Delete an attachment.
658
+ *
659
+ * The user must be authenticated and have <strong>REPO_ADMIN</strong> permission for the specified repository.
660
+ * @param projectKey The project key
661
+ * @param attachmentId the attachment ID
662
+ * @param repositorySlug The repository slug
663
+ * @returns void
664
+ * @throws ApiError
665
+ */
666
+ static deleteAttachment(projectKey, attachmentId, repositorySlug) {
667
+ return __request(OpenAPI, {
668
+ method: 'DELETE',
669
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/attachments/{attachmentId}',
670
+ path: {
671
+ 'projectKey': projectKey,
672
+ 'attachmentId': attachmentId,
673
+ 'repositorySlug': repositorySlug,
674
+ },
675
+ errors: {
676
+ 401: `The currently authenticated user has insufficient permissions to delete the attachment`,
677
+ 404: `The attachment does not exist`,
678
+ },
679
+ });
680
+ }
681
+ /**
682
+ * Get an attachment
683
+ * Retrieve the attachment.
684
+ *
685
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository that is associated to the attachment.
686
+ *
687
+ * Range requests (see IETF RFC7233) are supported. However only a single range issupported. If multiple ranges are passed the ranges will be ignored and the entire content will be returned in the response.
688
+ * @param projectKey The project key
689
+ * @param attachmentId the attachment ID
690
+ * @param repositorySlug The repository slug
691
+ * @param userAgent
692
+ * @param range
693
+ * @returns any the attachment
694
+ * @throws ApiError
695
+ */
696
+ static getAttachment(projectKey, attachmentId, repositorySlug, userAgent, range) {
697
+ return __request(OpenAPI, {
698
+ method: 'GET',
699
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/attachments/{attachmentId}',
700
+ path: {
701
+ 'projectKey': projectKey,
702
+ 'attachmentId': attachmentId,
703
+ 'repositorySlug': repositorySlug,
704
+ },
705
+ headers: {
706
+ 'User-Agent': userAgent,
707
+ 'Range': range,
708
+ },
709
+ errors: {
710
+ 401: `the user is currently not authenticated`,
711
+ 404: `The attachment does not exist`,
712
+ },
713
+ });
714
+ }
715
+ /**
716
+ * Delete attachment metadata
717
+ * Delete attachment metadata.
718
+ *
719
+ * The user must be authenticated and have <strong>REPO_ADMIN</strong> permission for the specified repository.
720
+ * @param projectKey The project key
721
+ * @param attachmentId the attachment ID
722
+ * @param repositorySlug The repository slug
723
+ * @returns void
724
+ * @throws ApiError
725
+ */
726
+ static deleteAttachmentMetadata(projectKey, attachmentId, repositorySlug) {
727
+ return __request(OpenAPI, {
728
+ method: 'DELETE',
729
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/attachments/{attachmentId}/metadata',
730
+ path: {
731
+ 'projectKey': projectKey,
732
+ 'attachmentId': attachmentId,
733
+ 'repositorySlug': repositorySlug,
734
+ },
735
+ errors: {
736
+ 401: `The currently authenticated user has insufficient permissions to delete theattachment metadata`,
737
+ 404: `The attachment or the attachment metadata does not exist`,
738
+ },
739
+ });
740
+ }
741
+ /**
742
+ * Get attachment metadata
743
+ * Retrieve the attachment metadata.
744
+ *
745
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository that is associated to the attachment that has the attachment metadata.
746
+ * @param projectKey The project key
747
+ * @param attachmentId the attachment ID
748
+ * @param repositorySlug The repository slug
749
+ * @returns RestAttachmentMetadata The attachment metadata
750
+ * @throws ApiError
751
+ */
752
+ static getAttachmentMetadata(projectKey, attachmentId, repositorySlug) {
753
+ return __request(OpenAPI, {
754
+ method: 'GET',
755
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/attachments/{attachmentId}/metadata',
756
+ path: {
757
+ 'projectKey': projectKey,
758
+ 'attachmentId': attachmentId,
759
+ 'repositorySlug': repositorySlug,
760
+ },
761
+ errors: {
762
+ 401: `The currently authenticated user has insufficient permissions to retrieve the attachment metadata`,
763
+ 404: `The attachment or the attachment metadata does not exist`,
764
+ },
765
+ });
766
+ }
767
+ /**
768
+ * Save attachment metadata
769
+ * Save attachment metadata.
770
+ *
771
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository that is associated to the attachment that has the attachment metadata.
772
+ * @param projectKey The project key
773
+ * @param attachmentId the attachment ID
774
+ * @param repositorySlug The repository slug
775
+ * @param requestBody The attachment metadata can be any valid JSON content
776
+ * @returns any The attachment metadata
777
+ * @throws ApiError
778
+ */
779
+ static saveAttachmentMetadata(projectKey, attachmentId, repositorySlug, requestBody) {
780
+ return __request(OpenAPI, {
781
+ method: 'PUT',
782
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/attachments/{attachmentId}/metadata',
783
+ path: {
784
+ 'projectKey': projectKey,
785
+ 'attachmentId': attachmentId,
786
+ 'repositorySlug': repositorySlug,
787
+ },
788
+ body: requestBody,
789
+ mediaType: 'application/json',
790
+ errors: {
791
+ 400: `The supplied content is not valid JSON`,
792
+ 401: `The currently authenticated user has insufficient permissions to save theattachment metadata`,
793
+ 404: `The repository or the attachment does not exist`,
794
+ },
795
+ });
796
+ }
797
+ /**
798
+ * Find branches
799
+ * Retrieve the branches matching the supplied <strong>filterText</strong> param.
800
+ *
801
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
802
+ * @param projectKey The project key.
803
+ * @param repositorySlug The repository slug.
804
+ * @param boostMatches Controls whether exact and prefix matches will be boosted to the top
805
+ * @param context
806
+ * @param orderBy Ordering of refs either ALPHABETICAL (by name) or MODIFICATION (last updated)
807
+ * @param details Whether to retrieve plugin-provided metadata about each branch
808
+ * @param filterText The text to match on
809
+ * @param base Base branch or tag to compare each branch to (for the metadata providers that uses that information
810
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
811
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
812
+ * @returns any The branches matching the supplied <strong>filterText</strong>.
813
+ * @throws ApiError
814
+ */
815
+ static getBranches(projectKey, repositorySlug, boostMatches, context, orderBy, details, filterText, base, start, limit) {
816
+ return __request(OpenAPI, {
817
+ method: 'GET',
818
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/branches',
819
+ path: {
820
+ 'projectKey': projectKey,
821
+ 'repositorySlug': repositorySlug,
822
+ },
823
+ query: {
824
+ 'boostMatches': boostMatches,
825
+ 'context': context,
826
+ 'orderBy': orderBy,
827
+ 'details': details,
828
+ 'filterText': filterText,
829
+ 'base': base,
830
+ 'start': start,
831
+ 'limit': limit,
832
+ },
833
+ errors: {
834
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
835
+ 404: `The specified repository does not exist.`,
836
+ },
837
+ });
838
+ }
839
+ /**
840
+ * Create branch
841
+ * Creates a branch using the information provided in the RestCreateBranchRequest request
842
+ *
843
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the context repository to call this resource.
844
+ * @param projectKey The project key.
845
+ * @param repositorySlug The repository slug.
846
+ * @param requestBody The request to create a branch containing a <strong>name</strong>, <strong>startPoint</strong>, and optionally a <strong>message</strong>
847
+ * @returns RestBranch The created branch.
848
+ * @throws ApiError
849
+ */
850
+ static createBranchForRepository(projectKey, repositorySlug, requestBody) {
851
+ return __request(OpenAPI, {
852
+ method: 'POST',
853
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/branches',
854
+ path: {
855
+ 'projectKey': projectKey,
856
+ 'repositorySlug': repositorySlug,
857
+ },
858
+ body: requestBody,
859
+ mediaType: 'application/json',
860
+ errors: {
861
+ 401: `The currently authenticated user has insufficient permissions to write to the repository.`,
862
+ 404: `The specified repository does not exist.`,
863
+ },
864
+ });
865
+ }
866
+ /**
867
+ * @deprecated
868
+ * Get default branch
869
+ * Retrieves the repository's default branch, if it has been created. If the repository is empty, 204 No Content will be returned. For non-empty repositories, if the configured default branch has not yet been created a 404 Not Found will be returned.
870
+ *
871
+ * This URL is deprecated. Callers should use <code>GET /projects/{key}/repos/{slug}/default-branch</code> instead, which allows retrieving the <i>configured</i> default branch even if the ref has not been created yet.
872
+ *
873
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
874
+ * @param projectKey The project key.
875
+ * @param repositorySlug The repository slug.
876
+ * @returns RestBranch The configured default branch for the repository.
877
+ * @throws ApiError
878
+ */
879
+ static getDefaultBranch1(projectKey, repositorySlug) {
880
+ return __request(OpenAPI, {
881
+ method: 'GET',
882
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/branches/default',
883
+ path: {
884
+ 'projectKey': projectKey,
885
+ 'repositorySlug': repositorySlug,
886
+ },
887
+ errors: {
888
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
889
+ 404: `The specified repository does not exist, or its configured default branch does not exist.`,
890
+ },
891
+ });
892
+ }
893
+ /**
894
+ * @deprecated
895
+ * Update default branch
896
+ * Update the default branch of a repository.
897
+ *
898
+ * This URL is deprecated. Callers should use <code>PUT /projects/{key}/repos/{slug}/default-branch</code> instead.
899
+ *
900
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
901
+ * @param projectKey The project key.
902
+ * @param repositorySlug The repository slug.
903
+ * @param requestBody The branch to set as default
904
+ * @returns void
905
+ * @throws ApiError
906
+ */
907
+ static setDefaultBranch1(projectKey, repositorySlug, requestBody) {
908
+ return __request(OpenAPI, {
909
+ method: 'PUT',
910
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/branches/default',
911
+ path: {
912
+ 'projectKey': projectKey,
913
+ 'repositorySlug': repositorySlug,
914
+ },
915
+ body: requestBody,
916
+ mediaType: 'application/json',
917
+ errors: {
918
+ 401: `The currently authenticated user has insufficient permissions to update the repository.`,
919
+ 404: `The specified repository does not exist.`,
920
+ },
921
+ });
922
+ }
923
+ /**
924
+ * Get file content at revision
925
+ * Retrieve a page of content for a file path at a specified revision.
926
+ *
927
+ * Responses from this endpoint vary widely depending on the query parameters. The example JSON is for a request that does not use size, type, blame or noContent.
928
+ *
929
+ * 1. size will return a response like {"size":10000}
930
+ * 2. type will return a response like {"type":"FILE"}, where possible values are "DIRECTORY", "FILE" and "SUBMODULE"
931
+ * 3. blame <i>without</i> noContent will include blame for the lines of content returned on the page
932
+ * 4. blame <i>with</i> noContent will omit file contents and only return blame for the requested lines
933
+ * 5. noContent without blame is ignored and does nothing
934
+ *
935
+ *
936
+ * The various parameters are "processed" in the above order. That means ?size=true&amp;type=truewill return a size response, not a type one; the type parameter will be ignored.
937
+ *
938
+ * The blame and noContent query parameters are handled differently from size and type. For blame and noContent, the <i>presence</i> of the parameter implies "true" if no value is specified; size and and type both require an explicit=true or they're treated as "false".
939
+ *
940
+ * - ?blame is the same as ?blame=true
941
+ * - ?blame&amp;noContent is the same as ?blame=true&amp;noContent=true
942
+ * - ?size is the same as ?size=false
943
+ * - ?type is the same as ?type=false
944
+ *
945
+ *
946
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
947
+ * @param projectKey The project key.
948
+ * @param repositorySlug The repository slug.
949
+ * @param noContent If blame&amp;noContent only the blame is retrieved instead of the contents
950
+ * @param at The commit ID or ref to retrieve the content for
951
+ * @param size If true only the size will be returned for the file path instead of the contents
952
+ * @param blame If present and not equal to 'false', the blame will be returned for the file as well
953
+ * @param type If true only the type will be returned for the file path instead of the contents
954
+ * @returns any A page of contents from a file.
955
+ * @throws ApiError
956
+ */
957
+ static getContent(projectKey, repositorySlug, noContent, at, size, blame, type) {
958
+ return __request(OpenAPI, {
959
+ method: 'GET',
960
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/browse',
961
+ path: {
962
+ 'projectKey': projectKey,
963
+ 'repositorySlug': repositorySlug,
964
+ },
965
+ query: {
966
+ 'noContent': noContent,
967
+ 'at': at,
968
+ 'size': size,
969
+ 'blame': blame,
970
+ 'type': type,
971
+ },
972
+ errors: {
973
+ 400: `The path parameter was not supplied.`,
974
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
975
+ 404: `The repository does not exist.`,
976
+ },
977
+ });
978
+ }
979
+ /**
980
+ * Get file content
981
+ * Retrieve a page of content for a file path at a specified revision.
982
+ *
983
+ * Responses from this endpoint vary widely depending on the query parameters. The example JSON is for a request that does not use size, type, blame or noContent.
984
+ *
985
+ * 1. size will return a response like {"size":10000}
986
+ * 2. type will return a response like {"type":"FILE"}, where possible values are "DIRECTORY", "FILE" and "SUBMODULE"
987
+ * 3. blame <i>without</i> noContent will include blame for the lines of content returned on the page
988
+ * 4. blame <i>with</i> noContent will omit file contents and only return blame for the requested lines
989
+ * 5. noContent without blame is ignored and does nothing
990
+ *
991
+ *
992
+ * The various parameters are "processed" in the above order. That means ?size=true&amp;type=truewill return a size response, not a type one; the type parameter will be ignored.
993
+ *
994
+ * The blame and noContent query parameters are handled differently from size and type. For blame and noContent, the <i>presence</i> of the parameter implies "true" if no value is specified; size and and type both require an explicit=true or they're treated as "false".
995
+ *
996
+ * - ?blame is the same as ?blame=true
997
+ * - ?blame&amp;noContent is the same as ?blame=true&amp;noContent=true
998
+ * - ?size is the same as ?size=false
999
+ * - ?type is the same as ?type=false
1000
+ *
1001
+ *
1002
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1003
+ * @param path The file path to retrieve content from
1004
+ * @param projectKey The project key.
1005
+ * @param repositorySlug The repository slug.
1006
+ * @param noContent If blame&amp;noContent only the blame is retrieved instead of the contents
1007
+ * @param at The commit ID or ref to retrieve the content for
1008
+ * @param size If true only the size will be returned for the file path instead of the contents
1009
+ * @param blame If present and not equal to 'false', the blame will be returned for the file as well
1010
+ * @param type If true only the type will be returned for the file path instead of the contents
1011
+ * @returns any A page of contents from a file.
1012
+ * @throws ApiError
1013
+ */
1014
+ static getContent1(path, projectKey, repositorySlug, noContent, at, size, blame, type) {
1015
+ return __request(OpenAPI, {
1016
+ method: 'GET',
1017
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/browse/{path}',
1018
+ path: {
1019
+ 'path': path,
1020
+ 'projectKey': projectKey,
1021
+ 'repositorySlug': repositorySlug,
1022
+ },
1023
+ query: {
1024
+ 'noContent': noContent,
1025
+ 'at': at,
1026
+ 'size': size,
1027
+ 'blame': blame,
1028
+ 'type': type,
1029
+ },
1030
+ errors: {
1031
+ 400: `The path or until parameters were not supplied.`,
1032
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1033
+ 404: `The repository does not exist.`,
1034
+ },
1035
+ });
1036
+ }
1037
+ /**
1038
+ * Edit file
1039
+ * Update the content of path, on the given repository and branch.
1040
+ *
1041
+ * This resource accepts PUT multipart form data, containing the file in a form-field named content.
1042
+ *
1043
+ * An example <a href="http://curl.haxx.se/">curl</a> request to update 'README.md' would be:
1044
+ *
1045
+ * ```curl -X PUT -u username:password -F content=@README.md -F 'message=Updated using file-edit REST API' -F branch=master -F sourceCommitId=5636641a50b http://example.com/rest/api/latest/projects/PROJECT_1/repos/repo_1/browse/README.md ```
1046
+ *
1047
+ * - branch: the branch on which the path should be modified or created
1048
+ * - content: the full content of the file at path
1049
+ * - message: the message associated with this change, to be used as the commit message. Or null if the default message should be used.
1050
+ * - sourceCommitId: the commit ID of the file before it was edited, used to identify if content has changed. Or null if this is a new file
1051
+ *
1052
+ *
1053
+ * The file can be updated or created on a new branch. In this case, the sourceBranch parameter should be provided to identify the starting point for the new branch and the branch parameter identifies the branch to create the new commit on.
1054
+ * @param path The path of the file that is to be modified or created
1055
+ * @param projectKey The project key.
1056
+ * @param repositorySlug The repository slug.
1057
+ * @param formData The multipart form data containing the file
1058
+ * @returns RestCommit The newly created commit.
1059
+ * @throws ApiError
1060
+ */
1061
+ static editFile(path, projectKey, repositorySlug, formData) {
1062
+ return __request(OpenAPI, {
1063
+ method: 'PUT',
1064
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/browse/{path}',
1065
+ path: {
1066
+ 'path': path,
1067
+ 'projectKey': projectKey,
1068
+ 'repositorySlug': repositorySlug,
1069
+ },
1070
+ formData: formData,
1071
+ mediaType: 'multipart/form-data',
1072
+ errors: {
1073
+ 400: `There are validation errors, e.g. The branch or content parameters were not supplied.`,
1074
+ 401: `The currently authenticated user does not have write permission for the given repository.`,
1075
+ 403: `The request was authenticated using a project or repository access token, which does not have a valid user associated with it`,
1076
+ 404: `The repository does not exist.`,
1077
+ 409: `The file already exists when trying to create a file, or the given content does not modify the file, or the file has changed since the given sourceCommitId, or the repository is archived.`,
1078
+ },
1079
+ });
1080
+ }
1081
+ /**
1082
+ * Get changes made in commit
1083
+ * Retrieve a page of changes made in a specified commit.
1084
+ *
1085
+ * <strong>Note:</strong> The implementation will apply a hard cap ({@code page.max.changes}) and it is not possible to request subsequent content when that cap is exceeded.
1086
+ *
1087
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1088
+ * @param projectKey The project key.
1089
+ * @param repositorySlug The repository slug.
1090
+ * @param until The commit to retrieve changes for
1091
+ * @param since The commit to which <code>until</code> should be compared to produce a page of changes. If not specified the commit's first parent is assumed (if one exists)
1092
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1093
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1094
+ * @returns any A page of changes
1095
+ * @throws ApiError
1096
+ */
1097
+ static getChanges1(projectKey, repositorySlug, until, since, start, limit) {
1098
+ return __request(OpenAPI, {
1099
+ method: 'GET',
1100
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/changes',
1101
+ path: {
1102
+ 'projectKey': projectKey,
1103
+ 'repositorySlug': repositorySlug,
1104
+ },
1105
+ query: {
1106
+ 'until': until,
1107
+ 'since': since,
1108
+ 'start': start,
1109
+ 'limit': limit,
1110
+ },
1111
+ errors: {
1112
+ 400: `The until parameter was not supplied.`,
1113
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1114
+ 404: `The repository or the since or until parameters supplied does not exist.`,
1115
+ },
1116
+ });
1117
+ }
1118
+ /**
1119
+ * Get commits
1120
+ * Retrieve a page of commits from a given starting commit or "between" two commits. If no explicit commit is specified, the tip of the repository's default branch is assumed. commits may be identified by branch or tag name or by ID. A path may be supplied to restrict the returned commits to only those which affect that path.
1121
+ *
1122
+ * The authenticated user must have <b>REPO_READ</b> permission for the specified repository to call this resource.
1123
+ * @param projectKey The project key
1124
+ * @param repositorySlug The repository slug
1125
+ * @param avatarScheme The desired scheme for the avatar URL. If the parameter is not present URLs will use the same scheme as this request
1126
+ * @param path An optional path to filter commits by
1127
+ * @param withCounts Optionally include the total number of commits and total number of unique authors
1128
+ * @param followRenames If <code>true</code>, the commit history of the specified file will be followed past renames. Only valid for a path to a single file.
1129
+ * @param until The commit ID (SHA1) or ref (inclusively) to retrieve commits before
1130
+ * @param avatarSize If present the service adds avatar URLs for commit authors. Should be an integer specifying the desired size in pixels. If the parameter is not present, avatar URLs will not be set
1131
+ * @param since The commit ID or ref (exclusively) to retrieve commits after
1132
+ * @param merges If present, controls how merge commits should be filtered. Can be either <code>exclude</code>, to exclude merge commits, <code>include</code>, to include both merge commits and non-merge commits or <code>only</code>, to only return merge commits.
1133
+ * @param ignoreMissing <code>true</code> to ignore missing commits, <code>false</code> otherwise
1134
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1135
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1136
+ * @returns any A page of commits
1137
+ * @throws ApiError
1138
+ */
1139
+ static getCommits(projectKey, repositorySlug, avatarScheme, path, withCounts, followRenames, until, avatarSize, since, merges, ignoreMissing, start, limit) {
1140
+ return __request(OpenAPI, {
1141
+ method: 'GET',
1142
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits',
1143
+ path: {
1144
+ 'projectKey': projectKey,
1145
+ 'repositorySlug': repositorySlug,
1146
+ },
1147
+ query: {
1148
+ 'avatarScheme': avatarScheme,
1149
+ 'path': path,
1150
+ 'withCounts': withCounts,
1151
+ 'followRenames': followRenames,
1152
+ 'until': until,
1153
+ 'avatarSize': avatarSize,
1154
+ 'since': since,
1155
+ 'merges': merges,
1156
+ 'ignoreMissing': ignoreMissing,
1157
+ 'start': start,
1158
+ 'limit': limit,
1159
+ },
1160
+ errors: {
1161
+ 400: `One of the supplied commit IDs or refs was invalid.`,
1162
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1163
+ 404: `The repository does not exist.`,
1164
+ },
1165
+ });
1166
+ }
1167
+ /**
1168
+ * Get commit by ID
1169
+ * Retrieve a single commit <i>identified by its ID</i>. In general, that ID is a SHA1. <u>From 2.11, ref names like "refs/heads/master" are no longer accepted by this resource.</u>
1170
+ *
1171
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1172
+ * @param projectKey The project key
1173
+ * @param commitId The commit ID to retrieve
1174
+ * @param repositorySlug The repository slug
1175
+ * @param path An optional path to filter the commit by. If supplied the details returned <i>may not</i> be for the specified commit. Instead, starting from the specified commit, they will be the details for the first commit affecting the specified path.
1176
+ * @returns RestCommit A commit
1177
+ * @throws ApiError
1178
+ */
1179
+ static getCommit(projectKey, commitId, repositorySlug, path) {
1180
+ return __request(OpenAPI, {
1181
+ method: 'GET',
1182
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}',
1183
+ path: {
1184
+ 'projectKey': projectKey,
1185
+ 'commitId': commitId,
1186
+ 'repositorySlug': repositorySlug,
1187
+ },
1188
+ query: {
1189
+ 'path': path,
1190
+ },
1191
+ errors: {
1192
+ 400: `The supplied commit ID was invalid`,
1193
+ 404: `The repository does not exist.`,
1194
+ },
1195
+ });
1196
+ }
1197
+ /**
1198
+ * Get changes in commit
1199
+ * Retrieve a page of changes made in a specified commit.
1200
+ *
1201
+ * <strong>Note:</strong> The implementation will apply a hard cap (<code>page.max.changes</code>) and it is not possible to request subsequent content when that cap is exceeded.
1202
+ *
1203
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1204
+ * @param projectKey The project key
1205
+ * @param commitId The commit to retrieve changes for
1206
+ * @param repositorySlug The repository slug
1207
+ * @param withComments <code>true</code> to apply comment counts in the changes (the default); otherwise, <code>false</code> to stream changes without comment counts
1208
+ * @param since The commit to which <code>until</code> should be compared to produce a page of changes. If not specified the commit's first parent is assumed (if one exists)
1209
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1210
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1211
+ * @returns any A page of changes
1212
+ * @throws ApiError
1213
+ */
1214
+ static getChanges(projectKey, commitId, repositorySlug, withComments, since, start, limit) {
1215
+ return __request(OpenAPI, {
1216
+ method: 'GET',
1217
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/changes',
1218
+ path: {
1219
+ 'projectKey': projectKey,
1220
+ 'commitId': commitId,
1221
+ 'repositorySlug': repositorySlug,
1222
+ },
1223
+ query: {
1224
+ 'withComments': withComments,
1225
+ 'since': since,
1226
+ 'start': start,
1227
+ 'limit': limit,
1228
+ },
1229
+ errors: {
1230
+ 400: `The until parameter was not supplied`,
1231
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1232
+ 404: `The repository or the since or until parameters supplied does not exist.`,
1233
+ },
1234
+ });
1235
+ }
1236
+ /**
1237
+ * Search for commit comments
1238
+ * Retrieves the commit discussion comments that match the specified search criteria.
1239
+ *
1240
+ * It is possible to retrieve commit discussion comments that are anchored to a range of commits by providing the sinceId that the comments anchored from.
1241
+ *
1242
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that the commit is in to call this resource.
1243
+ * @param projectKey The project key
1244
+ * @param commitId The <i>full ID</i> of the commit within the repository
1245
+ * @param repositorySlug The repository slug
1246
+ * @param path The path to the file on which comments were made
1247
+ * @param since For a merge commit, a parent can be provided to specify which diff the comments are on. For a commit range, a sinceId can be provided to specify where the comments are anchored from.
1248
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1249
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1250
+ * @returns any A page of comments that match the search criteria
1251
+ * @throws ApiError
1252
+ */
1253
+ static getComments(projectKey, commitId, repositorySlug, path, since, start, limit) {
1254
+ return __request(OpenAPI, {
1255
+ method: 'GET',
1256
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments',
1257
+ path: {
1258
+ 'projectKey': projectKey,
1259
+ 'commitId': commitId,
1260
+ 'repositorySlug': repositorySlug,
1261
+ },
1262
+ query: {
1263
+ 'path': path,
1264
+ 'since': since,
1265
+ 'start': start,
1266
+ 'limit': limit,
1267
+ },
1268
+ errors: {
1269
+ 400: `The request was malformed.`,
1270
+ 401: `The currently authenticated user has insufficient permissions to view the comment`,
1271
+ 404: `Unable to find the supplied project, repository, or commit. The missing entity will be specified in the error details.`,
1272
+ },
1273
+ });
1274
+ }
1275
+ /**
1276
+ * Add a new commit comment
1277
+ * Add a new comment.
1278
+ *
1279
+ * Comments can be added in a few places by setting different attributes:
1280
+ *
1281
+ * General commit comment:
1282
+ *
1283
+ * ```{
1284
+ * "text": "An insightful general comment on a commit."
1285
+ * }
1286
+ *
1287
+ * </pre>
1288
+ * Reply to a comment:
1289
+ * <pre>{
1290
+ * "text": "A measured reply.",
1291
+ * "parent": {
1292
+ * "id": 1
1293
+ * }
1294
+ * }
1295
+ * </pre>
1296
+ * General file comment:
1297
+ * <pre>{
1298
+ * "text": "An insightful general comment on a file.",
1299
+ * "anchor": {
1300
+ * "diffType": "COMMIT",
1301
+ * "fromHash": "6df3858eeb9a53a911cd17e66a9174d44ffb02cd",
1302
+ * "path": "path/to/file",
1303
+ * "srcPath": "path/to/file",
1304
+ * "toHash": "04c7c5c931b9418ca7b66f51fe934d0bd9b2ba4b"
1305
+ * }
1306
+ * }
1307
+ * </pre>
1308
+ * File line comment:
1309
+ * <pre>{
1310
+ * "text": "A pithy comment on a particular line within a file.",
1311
+ * "anchor": {
1312
+ * "diffType": "COMMIT",
1313
+ * "line": 1,
1314
+ * "lineType": "CONTEXT",
1315
+ * "fileType": "FROM",
1316
+ * "fromHash": "6df3858eeb9a53a911cd17e66a9174d44ffb02cd",
1317
+ * "path": "path/to/file",
1318
+ * "srcPath": "path/to/file",
1319
+ * "toHash": "04c7c5c931b9418ca7b66f51fe934d0bd9b2ba4b"
1320
+ * }
1321
+ * }
1322
+ * ```
1323
+ *
1324
+ * Note: general file comments are an experimental feature and may change in the near future!
1325
+ *
1326
+ * For file and line comments, 'path' refers to the path of the file to which the comment should be applied and 'srcPath' refers to the path the that file used to have (only required for copies and moves). Also, fromHash and toHash refer to the sinceId / untilId (respectively) used to produce the diff on which the comment was added. fromHash will be resolved automatically as first parent if not specified. Note that this behaviour differs from `/pull-requests/comments`
1327
+ *
1328
+ * Finally diffType refers to the type of diff the comment was added on.
1329
+ *
1330
+ * For line comments, 'line' refers to the line in the diff that the comment should apply to. 'lineType' refers to the type of diff hunk, which can be:- 'ADDED' - for an added line;</li>- 'REMOVED' - for a removed line; or</li>- 'CONTEXT' - for a line that was unmodified but is in the vicinity of the diff.</li>'fileType' refers to the file of the diff to which the anchor should be attached - which is of relevance when displaying the diff in a side-by-side way. Currently the supported values are:- 'FROM' - the source file of the diff</li>- 'TO' - the destination file of the diff</li>If the current user is not a participant the user is added as one and updated to watch the commit.
1331
+ *
1332
+ * The authenticated user must have REPO_READ permission for the repository that the commit is in to call this resource.
1333
+ * @param projectKey The project key
1334
+ * @param commitId The <i>full ID</i> of the commit within the repository
1335
+ * @param repositorySlug The repository slug
1336
+ * @param since For a merge commit, a parent can be provided to specify which diff the comments should be on. For a commit range, a sinceId can be provided to specify where the comments should be anchored from.
1337
+ * @param requestBody the comment
1338
+ * @returns RestComment The newly created comment.
1339
+ * @throws ApiError
1340
+ */
1341
+ static createComment(projectKey, commitId, repositorySlug, since, requestBody) {
1342
+ return __request(OpenAPI, {
1343
+ method: 'POST',
1344
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments',
1345
+ path: {
1346
+ 'projectKey': projectKey,
1347
+ 'commitId': commitId,
1348
+ 'repositorySlug': repositorySlug,
1349
+ },
1350
+ query: {
1351
+ 'since': since,
1352
+ },
1353
+ body: requestBody,
1354
+ mediaType: 'application/json',
1355
+ errors: {
1356
+ 400: `The comment was not created due to a validation error.`,
1357
+ 401: `The currently authenticated user has insufficient permissions to view the commit, create a comment or watch the commit.`,
1358
+ 404: `Unable to find the supplied project, repository, commit or parent comment. The missing entity will be specified in the error details.`,
1359
+ 409: `Adding, deleting, or editing comments isn't supported on archived repositories.`,
1360
+ },
1361
+ });
1362
+ }
1363
+ /**
1364
+ * Delete a commit comment
1365
+ * Delete a commit comment. Anyone can delete their own comment. Only users with <strong>REPO_ADMIN</strong> and above may delete comments created by other users. Comments which have replies <i>may not be deleted</i>, regardless of the user's granted permissions.
1366
+ *
1367
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that the commit is in to call this resource.
1368
+ * @param projectKey The project key
1369
+ * @param commentId the comment
1370
+ * @param commitId The <i>full ID</i> of the commit within the repository
1371
+ * @param repositorySlug The repository slug
1372
+ * @param version The expected version of the comment. This must match the server's version of the comment or the delete will fail. To determine the current version of the comment, the comment should be fetched from the server prior to the delete. Look for the 'version' attribute in the returned JSON structure.
1373
+ * @returns void
1374
+ * @throws ApiError
1375
+ */
1376
+ static deleteComment(projectKey, commentId, commitId, repositorySlug, version) {
1377
+ return __request(OpenAPI, {
1378
+ method: 'DELETE',
1379
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}',
1380
+ path: {
1381
+ 'projectKey': projectKey,
1382
+ 'commentId': commentId,
1383
+ 'commitId': commitId,
1384
+ 'repositorySlug': repositorySlug,
1385
+ },
1386
+ query: {
1387
+ 'version': version,
1388
+ },
1389
+ errors: {
1390
+ 401: `The currently authenticated user has insufficient permissions to delete the comment.`,
1391
+ 404: `Unable to find the supplied project, repository or commit. The missing entity will be specified in the error details.`,
1392
+ 409: `The comment has replies, the version supplied does not match the comment's current version or the repository is archived.`,
1393
+ },
1394
+ });
1395
+ }
1396
+ /**
1397
+ * Get a commit comment
1398
+ * Retrieves a commit discussion comment.
1399
+ *
1400
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that the commit is in to call this resource.
1401
+ * @param projectKey The project key
1402
+ * @param commentId The ID of the comment to retrieve
1403
+ * @param commitId The <i>full ID</i> of the commit within the repository
1404
+ * @param repositorySlug The repository slug
1405
+ * @returns RestComment The requested comment.
1406
+ * @throws ApiError
1407
+ */
1408
+ static getComment(projectKey, commentId, commitId, repositorySlug) {
1409
+ return __request(OpenAPI, {
1410
+ method: 'GET',
1411
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}',
1412
+ path: {
1413
+ 'projectKey': projectKey,
1414
+ 'commentId': commentId,
1415
+ 'commitId': commitId,
1416
+ 'repositorySlug': repositorySlug,
1417
+ },
1418
+ errors: {
1419
+ 401: `The currently authenticated user has insufficient permissions to view the comment`,
1420
+ 404: `Unable to find the supplied project, repository, commit or comment. The missing entity will be specified in the error details.`,
1421
+ },
1422
+ });
1423
+ }
1424
+ /**
1425
+ * Update a commit comment
1426
+ * Update a comment, with the following restrictions:
1427
+ *
1428
+ * - only the author of the comment may update the <i>text</i> of the comment
1429
+ * - only the author of the comment or repository admins and above may update the other fields of a comment
1430
+ *
1431
+ *
1432
+ * <strong>Note:</strong> the supplied supplied JSON object must contain a <code>version</code> that must match the server's version of the comment or the update will fail. To determine the current version of the comment, the comment should be fetched from the server prior to the update. Look for the 'version' attribute in the returned JSON structure.
1433
+ *
1434
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that the commit is in to call this resource.
1435
+ * @param projectKey The project key
1436
+ * @param commentId The ID of the comment to retrieve
1437
+ * @param commitId The <i>full ID</i> of the commit within the repository
1438
+ * @param repositorySlug The repository slug
1439
+ * @param requestBody The comment to update
1440
+ * @returns RestComment The newly updated comment.
1441
+ * @throws ApiError
1442
+ */
1443
+ static updateComment(projectKey, commentId, commitId, repositorySlug, requestBody) {
1444
+ return __request(OpenAPI, {
1445
+ method: 'PUT',
1446
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}',
1447
+ path: {
1448
+ 'projectKey': projectKey,
1449
+ 'commentId': commentId,
1450
+ 'commitId': commitId,
1451
+ 'repositorySlug': repositorySlug,
1452
+ },
1453
+ body: requestBody,
1454
+ mediaType: 'application/json',
1455
+ errors: {
1456
+ 400: `The comment was not updated due to a validation error.`,
1457
+ 401: `The currently authenticated user has insufficient permissions to view the commit, update the comment or watch the commit.`,
1458
+ 404: `Unable to find the supplied project, repository, commit or comment. The missing entity will be specified in the error details.`,
1459
+ 409: `The comment version supplied does not match the current version or the repository is archived.`,
1460
+ },
1461
+ });
1462
+ }
1463
+ /**
1464
+ * Get diff stats summary between revisions
1465
+ * Retrieve the diff stats summary for a commit.
1466
+ *
1467
+ * The stats summary include the total number of modified files, added lines, and deleted lines.
1468
+ *
1469
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1470
+ * @param path The path to the file which should be diffed (optional)
1471
+ * @param projectKey The project key
1472
+ * @param commitId The commit ID to diff to.
1473
+ * @param repositorySlug The repository slug
1474
+ * @param srcPath The source path for the file, if it was copied, moved or renamed
1475
+ * @param autoSrcPath <code>true</code> to automatically try to find the source path when it's not provided, <code>false</code> otherwise. Requires the path to be provided.
1476
+ * @param whitespace Optional whitespace flag which can be set to ignore-all
1477
+ * @param since The base revision to diff from. If omitted the parent revision of the commit ID is used
1478
+ * @returns RestDiffStatsSummary The diff stats summary for a commit.
1479
+ * @throws ApiError
1480
+ */
1481
+ static getDiffStatsSummary(path, projectKey, commitId, repositorySlug, srcPath, autoSrcPath, whitespace, since) {
1482
+ return __request(OpenAPI, {
1483
+ method: 'GET',
1484
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/diff-stats-summary/{path}',
1485
+ path: {
1486
+ 'path': path,
1487
+ 'projectKey': projectKey,
1488
+ 'commitId': commitId,
1489
+ 'repositorySlug': repositorySlug,
1490
+ },
1491
+ query: {
1492
+ 'srcPath': srcPath,
1493
+ 'autoSrcPath': autoSrcPath,
1494
+ 'whitespace': whitespace,
1495
+ 'since': since,
1496
+ },
1497
+ errors: {
1498
+ 400: `The until parameter was not supplied.`,
1499
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1500
+ 404: `The repository does not exist.`,
1501
+ },
1502
+ });
1503
+ }
1504
+ /**
1505
+ * Get diff between revisions
1506
+ * Retrieve the diff between two provided revisions.
1507
+ *
1508
+ * To stream a raw text representation of the diff, this endpoint can be called with the request header 'Accept: text/plain'.
1509
+ *
1510
+ * Note:</strong> This resource is currently <i>not paged</i>. The server will internally apply a hard cap to the streamed lines, and it is not possible to request subsequent pages if that cap is exceeded. In the event that the cap is reached, the diff will be cut short and one or more {@code truncated} flags will be set to true on the "segments", "hunks" and "diffs" properties, as well as the top-level object, in the returned JSON response.
1511
+ *
1512
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1513
+ * @param commitId The <i>full ID</i> of the commit within the repository
1514
+ * @param repositorySlug The repository slug
1515
+ * @param path The path to the file which should be diffed (optional)
1516
+ * @param projectKey The project key
1517
+ * @param srcPath The source path for the file, if it was copied, moved or renamed
1518
+ * @param avatarSize If present the service adds avatar URLs for comment authors where the provided value specifies the desired avatar size in pixels. Not applicable if streaming raw diff
1519
+ * @param filter Text used to filter files and lines (optional). Not applicable if streaming raw diff
1520
+ * @param avatarScheme The security scheme for avatar URLs. If the scheme is not present then it is inherited from the request. It can be set to "https" to force the use of secure URLs. Not applicable if streaming raw diff
1521
+ * @param contextLines The number of context lines to include around added/removed lines in the diff.Not applicable if streaming raw diff
1522
+ * @param autoSrcPath <code>true</code> to automatically try to find the source path when it's not provided, <code>false</code> otherwise. Requires the path to be provided.
1523
+ * @param whitespace Optional whitespace flag which can be set to ignore-all
1524
+ * @param withComments <code>true</code> to embed comments in the diff (the default); otherwise <code>false</code> to stream the diff without comments. Not applicable if streaming raw diff
1525
+ * @param since The base revision to diff from. If omitted the parent revision of the until revision is used
1526
+ * @returns RestDiff A diff between two revisions.
1527
+ * @throws ApiError
1528
+ */
1529
+ static streamDiff(commitId, repositorySlug, path, projectKey, srcPath, avatarSize, filter, avatarScheme, contextLines, autoSrcPath, whitespace, withComments, since) {
1530
+ return __request(OpenAPI, {
1531
+ method: 'GET',
1532
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/diff/{path}',
1533
+ path: {
1534
+ 'commitId': commitId,
1535
+ 'repositorySlug': repositorySlug,
1536
+ 'path': path,
1537
+ 'projectKey': projectKey,
1538
+ },
1539
+ query: {
1540
+ 'srcPath': srcPath,
1541
+ 'avatarSize': avatarSize,
1542
+ 'filter': filter,
1543
+ 'avatarScheme': avatarScheme,
1544
+ 'contextLines': contextLines,
1545
+ 'autoSrcPath': autoSrcPath,
1546
+ 'whitespace': whitespace,
1547
+ 'withComments': withComments,
1548
+ 'since': since,
1549
+ },
1550
+ errors: {
1551
+ 400: `The until parameter was not supplied.`,
1552
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1553
+ 404: `The repository does not exist.`,
1554
+ },
1555
+ });
1556
+ }
1557
+ /**
1558
+ * Get the common ancestor between two commits
1559
+ * Returns the best common ancestor between two commits.
1560
+ *
1561
+ * If more than one best common ancestor exists, only one will be returned. It is unspecified which will be returned.
1562
+ * @param projectKey The project key
1563
+ * @param commitId The <i>full ID</i> of the commit within the repository
1564
+ * @param repositorySlug The repository slug
1565
+ * @param otherCommitId The other commit id to calculate the merge-base on
1566
+ * @returns RestCommit The common ancestor of the two given commits
1567
+ * @throws ApiError
1568
+ */
1569
+ static getMergeBase(projectKey, commitId, repositorySlug, otherCommitId) {
1570
+ return __request(OpenAPI, {
1571
+ method: 'GET',
1572
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/merge-base',
1573
+ path: {
1574
+ 'projectKey': projectKey,
1575
+ 'commitId': commitId,
1576
+ 'repositorySlug': repositorySlug,
1577
+ },
1578
+ query: {
1579
+ 'otherCommitId': otherCommitId,
1580
+ },
1581
+ errors: {
1582
+ 400: `The supplied commit ID(s) was/were invalid`,
1583
+ 404: `The project, repository, or commit(s) does not exist`,
1584
+ },
1585
+ });
1586
+ }
1587
+ /**
1588
+ * Stop watching commit
1589
+ * Remove the authenticated user as a watcher for the specified commit.
1590
+ *
1591
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository containing the commit to call this resource.
1592
+ * @param projectKey The project key
1593
+ * @param commitId The <i>full ID</i> of the commit within the repository
1594
+ * @param repositorySlug The repository slug
1595
+ * @returns void
1596
+ * @throws ApiError
1597
+ */
1598
+ static unwatch(projectKey, commitId, repositorySlug) {
1599
+ return __request(OpenAPI, {
1600
+ method: 'DELETE',
1601
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/watch',
1602
+ path: {
1603
+ 'projectKey': projectKey,
1604
+ 'commitId': commitId,
1605
+ 'repositorySlug': repositorySlug,
1606
+ },
1607
+ errors: {
1608
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
1609
+ 404: `The specified project, repository or commit does not exist.`,
1610
+ },
1611
+ });
1612
+ }
1613
+ /**
1614
+ * Watch commit
1615
+ * Add the authenticated user as a watcher for the specified commit.
1616
+ *
1617
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository containing the commit to call this resource.
1618
+ * @param projectKey The project key
1619
+ * @param commitId The <i>full ID</i> of the commit within the repository
1620
+ * @param repositorySlug The repository slug
1621
+ * @returns void
1622
+ * @throws ApiError
1623
+ */
1624
+ static watch(projectKey, commitId, repositorySlug) {
1625
+ return __request(OpenAPI, {
1626
+ method: 'POST',
1627
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/watch',
1628
+ path: {
1629
+ 'projectKey': projectKey,
1630
+ 'commitId': commitId,
1631
+ 'repositorySlug': repositorySlug,
1632
+ },
1633
+ errors: {
1634
+ 401: `The currently authenticated user has insufficient permissions to view the pull request`,
1635
+ 404: `The specified project, repository or commit does not exist.`,
1636
+ },
1637
+ });
1638
+ }
1639
+ /**
1640
+ * Compare commits
1641
+ * Gets the file changes available in the <code> from</code> commit but not in the <code> to</code> commit.
1642
+ *
1643
+ *
1644
+ * If either the <code> from</code> or <code> to</code> commit are not specified, they will be replaced by the default branch of their containing repository.
1645
+ * @param projectKey The project key.
1646
+ * @param repositorySlug The repository slug.
1647
+ * @param fromRepo an optional parameter specifying the source repository containing the source commit if that commit is not present in the current repository; the repository can be specified by either its ID <em>fromRepo=42</em> or by its project key plus its repo slug separated by a slash: <em>fromRepo=projectKey/repoSlug</em>
1648
+ * @param from the source commit (can be a partial/full commit ID or qualified/unqualified ref name)
1649
+ * @param to the target commit (can be a partial/full commit ID or qualified/unqualified ref name)
1650
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1651
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1652
+ * @returns any A page of changes.
1653
+ * @throws ApiError
1654
+ */
1655
+ static streamChanges(projectKey, repositorySlug, fromRepo, from, to, start, limit) {
1656
+ return __request(OpenAPI, {
1657
+ method: 'GET',
1658
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/compare/changes',
1659
+ path: {
1660
+ 'projectKey': projectKey,
1661
+ 'repositorySlug': repositorySlug,
1662
+ },
1663
+ query: {
1664
+ 'fromRepo': fromRepo,
1665
+ 'from': from,
1666
+ 'to': to,
1667
+ 'start': start,
1668
+ 'limit': limit,
1669
+ },
1670
+ errors: {
1671
+ 404: `The source repository,target repository, or commit does not exist.`,
1672
+ },
1673
+ });
1674
+ }
1675
+ /**
1676
+ * Get accessible commits
1677
+ * Gets the commits accessible from the <code>from</code> commit but not in the <code>to</code> commit.
1678
+ *
1679
+ * If either the <code>from</code> or <code>to</code> commit are not specified, they will be replaced by the default branch of their containing repository.
1680
+ * @param projectKey The project key.
1681
+ * @param repositorySlug The repository slug.
1682
+ * @param fromRepo an optional parameter specifying the source repository containing the source commit if that commit is not present in the current repository; the repository can be specified by either its ID <em>fromRepo=42</em> or by its project key plus its repo slug separated by a slash: <em>fromRepo=projectKey/repoSlug</em>
1683
+ * @param from the source commit (can be a partial/full commit ID or qualified/unqualified ref name)
1684
+ * @param to the target commit (can be a partial/full commit ID or qualified/unqualified ref name)
1685
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1686
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1687
+ * @returns any A page of commits.
1688
+ * @throws ApiError
1689
+ */
1690
+ static streamCommits(projectKey, repositorySlug, fromRepo, from, to, start, limit) {
1691
+ return __request(OpenAPI, {
1692
+ method: 'GET',
1693
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/compare/commits',
1694
+ path: {
1695
+ 'projectKey': projectKey,
1696
+ 'repositorySlug': repositorySlug,
1697
+ },
1698
+ query: {
1699
+ 'fromRepo': fromRepo,
1700
+ 'from': from,
1701
+ 'to': to,
1702
+ 'start': start,
1703
+ 'limit': limit,
1704
+ },
1705
+ errors: {
1706
+ 404: `The source repository,target repository, or commit does not exist.`,
1707
+ },
1708
+ });
1709
+ }
1710
+ /**
1711
+ * Retrieve the diff stats summary between commits
1712
+ * Retrieve the diff stats summary of the changes available in the <code>from</code> commit but not in the <code> to</code> commit.
1713
+ *
1714
+ * If either the <code> from</code> or <code> to</code> commit are not specified, they will be replaced by the default branch of their containing repository.
1715
+ * @param path the path to the file to diff (optional)
1716
+ * @param projectKey The project key.
1717
+ * @param repositorySlug The repository slug.
1718
+ * @param fromRepo an optional parameter specifying the source repository containing the source commit if that commit is not present in the current repository; the repository can be specified by either its ID <em>fromRepo=42</em> or by its project key plus its repo slug separated by a slash: <em>fromRepo=projectKey/repoSlug</em>
1719
+ * @param srcPath source path
1720
+ * @param from the source commit (can be a partial/full commit ID or qualified/unqualified ref name)
1721
+ * @param to the target commit (can be a partial/full commit ID or qualified/unqualified ref name)
1722
+ * @param whitespace an optional whitespace flag which can be set to <code>ignore-all</code>
1723
+ * @returns RestDiff The diff stats summary for the changes.
1724
+ * @throws ApiError
1725
+ */
1726
+ static getDiffStatsSummary1(path, projectKey, repositorySlug, fromRepo, srcPath, from, to, whitespace) {
1727
+ return __request(OpenAPI, {
1728
+ method: 'GET',
1729
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/compare/diff-stats-summary{path}',
1730
+ path: {
1731
+ 'path': path,
1732
+ 'projectKey': projectKey,
1733
+ 'repositorySlug': repositorySlug,
1734
+ },
1735
+ query: {
1736
+ 'fromRepo': fromRepo,
1737
+ 'srcPath': srcPath,
1738
+ 'from': from,
1739
+ 'to': to,
1740
+ 'whitespace': whitespace,
1741
+ },
1742
+ errors: {
1743
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1744
+ 404: `The source repository,target repository, or commit does not exist.`,
1745
+ },
1746
+ });
1747
+ }
1748
+ /**
1749
+ * Get diff between commits
1750
+ * Gets a diff of the changes available in the <code>from</code> commit but not in the <code> to</code> commit.
1751
+ *
1752
+ * If either the <code> from</code> or <code> to</code> commit are not specified, they will be replaced by the default branch of their containing repository.
1753
+ * @param path the path to the file to diff (optional)
1754
+ * @param projectKey The project key.
1755
+ * @param repositorySlug The repository slug.
1756
+ * @param contextLines an optional number of context lines to include around each added or removed lines in the diff
1757
+ * @param fromRepo an optional parameter specifying the source repository containing the source commit if that commit is not present in the current repository; the repository can be specified by either its ID <em>fromRepo=42</em> or by its project key plus its repo slug separated by a slash: <em>fromRepo=projectKey/repoSlug</em>
1758
+ * @param srcPath source path
1759
+ * @param from the source commit (can be a partial/full commit ID or qualified/unqualified ref name)
1760
+ * @param to the target commit (can be a partial/full commit ID or qualified/unqualified ref name)
1761
+ * @param whitespace an optional whitespace flag which can be set to <code>ignore-all</code>
1762
+ * @returns RestDiff The diff of the changes.
1763
+ * @throws ApiError
1764
+ */
1765
+ static streamDiff1(path, projectKey, repositorySlug, contextLines, fromRepo, srcPath, from, to, whitespace) {
1766
+ return __request(OpenAPI, {
1767
+ method: 'GET',
1768
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/compare/diff{path}',
1769
+ path: {
1770
+ 'path': path,
1771
+ 'projectKey': projectKey,
1772
+ 'repositorySlug': repositorySlug,
1773
+ },
1774
+ query: {
1775
+ 'contextLines': contextLines,
1776
+ 'fromRepo': fromRepo,
1777
+ 'srcPath': srcPath,
1778
+ 'from': from,
1779
+ 'to': to,
1780
+ 'whitespace': whitespace,
1781
+ },
1782
+ errors: {
1783
+ 404: `The source repository,target repository, or commit does not exist.`,
1784
+ },
1785
+ });
1786
+ }
1787
+ /**
1788
+ * Get raw diff for path
1789
+ * Stream the raw diff between two provided revisions.
1790
+ *
1791
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1792
+ * @param projectKey The project key.
1793
+ * @param repositorySlug The repository slug.
1794
+ * @param contextLines The number of context lines to include around added/removed lines in the diff
1795
+ * @param srcPath The source path for the file, if it was copied, moved or renamed
1796
+ * @param until The target revision to diff to (required)
1797
+ * @param whitespace Optional whitespace flag which can be set to <code>ignore-all</code>
1798
+ * @param since The base revision to diff from. If omitted the parent revision of the until revision is used
1799
+ * @returns any A raw diff between two revisions.
1800
+ * @throws ApiError
1801
+ */
1802
+ static streamRawDiff(projectKey, repositorySlug, contextLines, srcPath, until, whitespace, since) {
1803
+ return __request(OpenAPI, {
1804
+ method: 'GET',
1805
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/diff',
1806
+ path: {
1807
+ 'projectKey': projectKey,
1808
+ 'repositorySlug': repositorySlug,
1809
+ },
1810
+ query: {
1811
+ 'contextLines': contextLines,
1812
+ 'srcPath': srcPath,
1813
+ 'until': until,
1814
+ 'whitespace': whitespace,
1815
+ 'since': since,
1816
+ },
1817
+ errors: {
1818
+ 400: `The path parameter was not supplied.`,
1819
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1820
+ 404: `The repository does not exist.`,
1821
+ },
1822
+ });
1823
+ }
1824
+ /**
1825
+ * Get raw diff for path
1826
+ * Stream the raw diff between two provided revisions.
1827
+ *
1828
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1829
+ * @param path The path to the file which should be diffed (required)
1830
+ * @param projectKey The project key.
1831
+ * @param repositorySlug The repository slug.
1832
+ * @param contextLines The number of context lines to include around added/removed lines in the diff
1833
+ * @param srcPath The source path for the file, if it was copied, moved or renamed
1834
+ * @param until The target revision to diff to (required)
1835
+ * @param whitespace Optional whitespace flag which can be set to <code>ignore-all</code>
1836
+ * @param since The base revision to diff from. If omitted the parent revision of the until revision is used
1837
+ * @returns any A raw diff between two revisions.
1838
+ * @throws ApiError
1839
+ */
1840
+ static streamRawDiff1(path, projectKey, repositorySlug, contextLines, srcPath, until, whitespace, since) {
1841
+ return __request(OpenAPI, {
1842
+ method: 'GET',
1843
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/diff/{path}',
1844
+ path: {
1845
+ 'path': path,
1846
+ 'projectKey': projectKey,
1847
+ 'repositorySlug': repositorySlug,
1848
+ },
1849
+ query: {
1850
+ 'contextLines': contextLines,
1851
+ 'srcPath': srcPath,
1852
+ 'until': until,
1853
+ 'whitespace': whitespace,
1854
+ 'since': since,
1855
+ },
1856
+ errors: {
1857
+ 400: `The until parameter was not supplied.`,
1858
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1859
+ 404: `The repository does not exist.`,
1860
+ },
1861
+ });
1862
+ }
1863
+ /**
1864
+ * Get files in directory
1865
+ * Retrieve a page of files from particular directory of a repository. The search is done recursively, so all files from any sub-directory of the specified directory will be returned.
1866
+ *
1867
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1868
+ * @param projectKey The project key.
1869
+ * @param repositorySlug The repository slug.
1870
+ * @param at The commit ID or ref (e.g. a branch or tag) to list the files at. If not specified the default branch will be used instead.
1871
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1872
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1873
+ * @returns any A page of files.
1874
+ * @throws ApiError
1875
+ */
1876
+ static streamFiles(projectKey, repositorySlug, at, start, limit) {
1877
+ return __request(OpenAPI, {
1878
+ method: 'GET',
1879
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/files',
1880
+ path: {
1881
+ 'projectKey': projectKey,
1882
+ 'repositorySlug': repositorySlug,
1883
+ },
1884
+ query: {
1885
+ 'at': at,
1886
+ 'start': start,
1887
+ 'limit': limit,
1888
+ },
1889
+ errors: {
1890
+ 400: `The path parameter was not supplied.`,
1891
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1892
+ 404: `The path requested does not exist at the supplied commit.`,
1893
+ },
1894
+ });
1895
+ }
1896
+ /**
1897
+ * Get files in directory
1898
+ * Retrieve a page of files from particular directory of a repository. The search is done recursively, so all files from any sub-directory of the specified directory will be returned.
1899
+ *
1900
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1901
+ * @param path The directory to list files for.
1902
+ * @param projectKey The project key.
1903
+ * @param repositorySlug The repository slug.
1904
+ * @param at The commit ID or ref (e.g. a branch or tag) to list the files at. If not specified the default branch will be used instead.
1905
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1906
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1907
+ * @returns any A page of files.
1908
+ * @throws ApiError
1909
+ */
1910
+ static streamFiles1(path, projectKey, repositorySlug, at, start, limit) {
1911
+ return __request(OpenAPI, {
1912
+ method: 'GET',
1913
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/files/{path}',
1914
+ path: {
1915
+ 'path': path,
1916
+ 'projectKey': projectKey,
1917
+ 'repositorySlug': repositorySlug,
1918
+ },
1919
+ query: {
1920
+ 'at': at,
1921
+ 'start': start,
1922
+ 'limit': limit,
1923
+ },
1924
+ errors: {
1925
+ 400: `The path requested is not a directory at the supplied commit.`,
1926
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
1927
+ 404: `The path requested does not exist at the supplied commit.`,
1928
+ },
1929
+ });
1930
+ }
1931
+ /**
1932
+ * Get hook scripts
1933
+ * Return a page of hook scripts configured for the specified repository.
1934
+ *
1935
+ * This endpoint requires **REPO_ADMIN** permission.
1936
+ * @param projectKey The project key.
1937
+ * @param repositorySlug The repository slug.
1938
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1939
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1940
+ * @returns any A page of hook scripts.
1941
+ * @throws ApiError
1942
+ */
1943
+ static getConfigurations1(projectKey, repositorySlug, start, limit) {
1944
+ return __request(OpenAPI, {
1945
+ method: 'GET',
1946
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/hook-scripts',
1947
+ path: {
1948
+ 'projectKey': projectKey,
1949
+ 'repositorySlug': repositorySlug,
1950
+ },
1951
+ query: {
1952
+ 'start': start,
1953
+ 'limit': limit,
1954
+ },
1955
+ errors: {
1956
+ 401: `The currently authenticated user has insufficient permissions to view the specified repository.`,
1957
+ 404: `The specified repository does not exist.`,
1958
+ },
1959
+ });
1960
+ }
1961
+ /**
1962
+ * Remove a hook script
1963
+ * Removes the hook script from the set of hook scripts configured to run in the repository.
1964
+ *
1965
+ * This endpoint requires **REPO_ADMIN** permission.
1966
+ * @param projectKey The project key.
1967
+ * @param scriptId The ID of the hook script
1968
+ * @param repositorySlug The repository slug.
1969
+ * @returns void
1970
+ * @throws ApiError
1971
+ */
1972
+ static removeConfiguration1(projectKey, scriptId, repositorySlug) {
1973
+ return __request(OpenAPI, {
1974
+ method: 'DELETE',
1975
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/hook-scripts/{scriptId}',
1976
+ path: {
1977
+ 'projectKey': projectKey,
1978
+ 'scriptId': scriptId,
1979
+ 'repositorySlug': repositorySlug,
1980
+ },
1981
+ errors: {
1982
+ 401: `The currently authenticated user has insufficient permissions to view the specified repository.`,
1983
+ 404: `The repository slug or hook script ID supplied does not exist.`,
1984
+ },
1985
+ });
1986
+ }
1987
+ /**
1988
+ * Create/update a hook script
1989
+ * Creates/updates the hook script configuration for the provided hook script and repository.
1990
+ *
1991
+ * This endpoint requires **REPO_ADMIN** permission.
1992
+ * @param projectKey The project key.
1993
+ * @param scriptId The ID of the hook script
1994
+ * @param repositorySlug The repository slug.
1995
+ * @param requestBody The hook triggers for which the hook script should be run
1996
+ * @returns RestHookScriptConfig The updated hook script.
1997
+ * @throws ApiError
1998
+ */
1999
+ static setConfiguration1(projectKey, scriptId, repositorySlug, requestBody) {
2000
+ return __request(OpenAPI, {
2001
+ method: 'PUT',
2002
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/hook-scripts/{scriptId}',
2003
+ path: {
2004
+ 'projectKey': projectKey,
2005
+ 'scriptId': scriptId,
2006
+ 'repositorySlug': repositorySlug,
2007
+ },
2008
+ body: requestBody,
2009
+ mediaType: 'application/json',
2010
+ errors: {
2011
+ 400: `The hook script was not created/updated due to a validation error.`,
2012
+ 401: `The currently authenticated user has insufficient permissions to view the specified repository.`,
2013
+ 404: `The repository slug supplied does not exist.`,
2014
+ },
2015
+ });
2016
+ }
2017
+ /**
2018
+ * Get repository labels
2019
+ * Get all labels applied to the given repository.
2020
+ *
2021
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository.
2022
+ * @param projectKey The project key.
2023
+ * @param repositorySlug The repository slug.
2024
+ * @returns RestLabel The applied label.
2025
+ * @throws ApiError
2026
+ */
2027
+ static getAllLabelsForRepository(projectKey, repositorySlug) {
2028
+ return __request(OpenAPI, {
2029
+ method: 'GET',
2030
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/labels',
2031
+ path: {
2032
+ 'projectKey': projectKey,
2033
+ 'repositorySlug': repositorySlug,
2034
+ },
2035
+ errors: {
2036
+ 401: `The currently authenticated user has insufficient permissions to view the labels.`,
2037
+ 404: `The specified repository does not exist.`,
2038
+ },
2039
+ });
2040
+ }
2041
+ /**
2042
+ * Add repository label
2043
+ * Applies a label to the repository.
2044
+ *
2045
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository.
2046
+ * @param projectKey The project key.
2047
+ * @param repositorySlug The repository slug.
2048
+ * @param requestBody The label to apply
2049
+ * @returns RestLabel The applied label.
2050
+ * @throws ApiError
2051
+ */
2052
+ static addLabel(projectKey, repositorySlug, requestBody) {
2053
+ return __request(OpenAPI, {
2054
+ method: 'POST',
2055
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/labels',
2056
+ path: {
2057
+ 'projectKey': projectKey,
2058
+ 'repositorySlug': repositorySlug,
2059
+ },
2060
+ body: requestBody,
2061
+ mediaType: 'application/json',
2062
+ errors: {
2063
+ 400: `A validation error prevented the label from being created or applied. Possible validation errors include: The name of the label contains uppercase characters, the name is smaller than 3 characters or longer than 50 characters, the label contains other characters than a-z 0-9 and - or the label is already applied to the given repository.`,
2064
+ 401: `The currently authenticated user has insufficient permissions to apply a label.`,
2065
+ 404: `The specified repository does not exist.`,
2066
+ },
2067
+ });
2068
+ }
2069
+ /**
2070
+ * Remove repository label
2071
+ * Remove label that is applied to the given repository.
2072
+ *
2073
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository.
2074
+ * @param projectKey The project key.
2075
+ * @param labelName The label to remove
2076
+ * @param repositorySlug The repository slug.
2077
+ * @returns void
2078
+ * @throws ApiError
2079
+ */
2080
+ static removeLabel(projectKey, labelName, repositorySlug) {
2081
+ return __request(OpenAPI, {
2082
+ method: 'DELETE',
2083
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/labels/{labelName}',
2084
+ path: {
2085
+ 'projectKey': projectKey,
2086
+ 'labelName': labelName,
2087
+ 'repositorySlug': repositorySlug,
2088
+ },
2089
+ errors: {
2090
+ 401: `The currently authenticated user has insufficient permissions to remove the label.`,
2091
+ 404: `The specified repository does not exist.`,
2092
+ },
2093
+ });
2094
+ }
2095
+ /**
2096
+ * Stream files
2097
+ * Streams files from the repository's root with the last commit to modify each file. Commit modifications are traversed starting from the <code>at</code> commit or, if not specified, from the tip of the default branch.
2098
+ *
2099
+ * Unless the repository is public, the authenticated user must have <b>REPO_READ</b> access to call this resource.
2100
+ * @param projectKey The project key
2101
+ * @param repositorySlug The repository slug
2102
+ * @param at The commit to use as the starting point when listing files and calculating modifications
2103
+ * @returns ExampleFiles A map of files to the last commit that modified them, and the latest commit to the repository (by nature, any commit to a repository modifies its root).
2104
+ * @throws ApiError
2105
+ */
2106
+ static stream(projectKey, repositorySlug, at) {
2107
+ return __request(OpenAPI, {
2108
+ method: 'GET',
2109
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/last-modified',
2110
+ path: {
2111
+ 'projectKey': projectKey,
2112
+ 'repositorySlug': repositorySlug,
2113
+ },
2114
+ query: {
2115
+ 'at': at,
2116
+ },
2117
+ errors: {
2118
+ 400: `No <code>at</code> commit was specified. When streaming modifications, an explicit starting commit must be supplied.`,
2119
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2120
+ 404: `The repository does not exist or does not contain the <code>at</code> commit.`,
2121
+ },
2122
+ });
2123
+ }
2124
+ /**
2125
+ * Stream files with last modified commit in path
2126
+ * Streams files in the requested <code>path</code> with the last commit to modify each file. Commit modifications are traversed starting from the <code>at</code> commit or, if not specified, from the tip of the default branch.
2127
+ *
2128
+ * Unless the repository is public, the authenticated user must have <b>REPO_READ</b> access to call this resource.
2129
+ * @param path The path within the repository whose files should be streamed
2130
+ * @param projectKey The project key
2131
+ * @param repositorySlug The repository slug
2132
+ * @param at The commit to use as the starting point when listing files and calculating modifications
2133
+ * @returns ExampleFiles A map of files to the last commit that modified them, and the latest commit to update the requested path.
2134
+ * @throws ApiError
2135
+ */
2136
+ static stream1(path, projectKey, repositorySlug, at) {
2137
+ return __request(OpenAPI, {
2138
+ method: 'GET',
2139
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/last-modified/{path}',
2140
+ path: {
2141
+ 'path': path,
2142
+ 'projectKey': projectKey,
2143
+ 'repositorySlug': repositorySlug,
2144
+ },
2145
+ query: {
2146
+ 'at': at,
2147
+ },
2148
+ errors: {
2149
+ 400: `No <code>at</code> commit was specified. When streaming modifications, an explicit starting commit must be supplied.`,
2150
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2151
+ 404: `The repository does not exist or does not contain the <code>at</code> commit, or the <code>at</code> commit does not contain the requested path.`,
2152
+ },
2153
+ });
2154
+ }
2155
+ /**
2156
+ * Get patch content at revision
2157
+ * Retrieve the patch content for a repository at a specified revision.
2158
+ *
2159
+ * Cache headers are added to the response (only if full commit hashes are used, not in the case of short hashes).
2160
+ *
2161
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
2162
+ * @param projectKey The project key.
2163
+ * @param repositorySlug The repository slug.
2164
+ * @param until The target revision from which to generate the patch (required)
2165
+ * @param allAncestors indicates whether or not to generate a patch which includes all the ancestors of the 'until' revision. If true, the value provided by 'since' is ignored.
2166
+ * @param since The base revision from which to generate the patch. This is only applicable when 'allAncestors' is false. If omitted the patch will represent one single commit, the 'until'.
2167
+ * @returns any The patch contents from a repository.
2168
+ * @throws ApiError
2169
+ */
2170
+ static streamPatch(projectKey, repositorySlug, until, allAncestors, since) {
2171
+ return __request(OpenAPI, {
2172
+ method: 'GET',
2173
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/patch',
2174
+ path: {
2175
+ 'projectKey': projectKey,
2176
+ 'repositorySlug': repositorySlug,
2177
+ },
2178
+ query: {
2179
+ 'until': until,
2180
+ 'allAncestors': allAncestors,
2181
+ 'since': since,
2182
+ },
2183
+ errors: {
2184
+ 400: `The until parameter was not supplied.`,
2185
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2186
+ 404: `The repository does not exist.`,
2187
+ },
2188
+ });
2189
+ }
2190
+ /**
2191
+ * Get raw content of a file at revision
2192
+ * Retrieve the raw content for a file path at a specified revision.
2193
+ *
2194
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
2195
+ * @param path The file path to retrieve content from
2196
+ * @param projectKey The project key.
2197
+ * @param repositorySlug The repository slug.
2198
+ * @param at A specific commit or ref to retrieve the raw content at, or the default branch if not specified
2199
+ * @param markup If present or "true", triggers the raw content to be markup-rendered and returned as HTML; otherwise, if not specified, or any value other than "true", the content is streamed without markup
2200
+ * @param htmlEscape (Optional) true if HTML should be escaped in the input markup, false otherwise. If not specified, the value of the markup.render.html.escape property, which is true by default, will be used
2201
+ * @param includeHeadingId (Optional) true if headings should contain an ID based on the heading content. If not specified, the value of the markup.render.headerids property, which is false by default, will be used
2202
+ * @param hardwrap (Optional) Whether the markup implementation should convert newlines to breaks. If not specified, the value of the markup.render.hardwrap property, which is true by default, will be used
2203
+ * @returns any The raw contents from a file.
2204
+ * @throws ApiError
2205
+ */
2206
+ static streamRaw(path, projectKey, repositorySlug, at, markup, htmlEscape, includeHeadingId, hardwrap) {
2207
+ return __request(OpenAPI, {
2208
+ method: 'GET',
2209
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/raw/{path}',
2210
+ path: {
2211
+ 'path': path,
2212
+ 'projectKey': projectKey,
2213
+ 'repositorySlug': repositorySlug,
2214
+ },
2215
+ query: {
2216
+ 'at': at,
2217
+ 'markup': markup,
2218
+ 'htmlEscape': htmlEscape,
2219
+ 'includeHeadingId': includeHeadingId,
2220
+ 'hardwrap': hardwrap,
2221
+ },
2222
+ errors: {
2223
+ 400: `The path parameter was not supplied.`,
2224
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2225
+ 404: `The repository does not exist.`,
2226
+ },
2227
+ });
2228
+ }
2229
+ /**
2230
+ * Get ref change activity
2231
+ * Retrieve a page of repository ref change activity.
2232
+ *
2233
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission to call this resource.
2234
+ * @param projectKey The project key.
2235
+ * @param repositorySlug The repository slug.
2236
+ * @param ref (optional) exact match for a ref ID to filter ref change activity for
2237
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2238
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2239
+ * @returns any A page of ref change activity.
2240
+ * @throws ApiError
2241
+ */
2242
+ static getRefChangeActivity(projectKey, repositorySlug, ref, start, limit) {
2243
+ return __request(OpenAPI, {
2244
+ method: 'GET',
2245
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/ref-change-activities',
2246
+ path: {
2247
+ 'projectKey': projectKey,
2248
+ 'repositorySlug': repositorySlug,
2249
+ },
2250
+ query: {
2251
+ 'ref': ref,
2252
+ 'start': start,
2253
+ 'limit': limit,
2254
+ },
2255
+ errors: {
2256
+ 401: `The user is currently not authenticated or the user does not have REPO_ADMIN permission.`,
2257
+ 404: `The specified repository does not exist.`,
2258
+ },
2259
+ });
2260
+ }
2261
+ /**
2262
+ * Get branches with ref change activities for repository
2263
+ * Retrieve a page of branches with ref change activities for a specific repository.
2264
+ *
2265
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission to call this resource.
2266
+ * @param projectKey The project key.
2267
+ * @param repositorySlug The repository slug.
2268
+ * @param filterText (optional) Partial match for a ref ID to filter minimal refs for
2269
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2270
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2271
+ * @returns any A page of branches with ref change activities.
2272
+ * @throws ApiError
2273
+ */
2274
+ static findBranches(projectKey, repositorySlug, filterText, start, limit) {
2275
+ return __request(OpenAPI, {
2276
+ method: 'GET',
2277
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/ref-change-activities/branches',
2278
+ path: {
2279
+ 'projectKey': projectKey,
2280
+ 'repositorySlug': repositorySlug,
2281
+ },
2282
+ query: {
2283
+ 'filterText': filterText,
2284
+ 'start': start,
2285
+ 'limit': limit,
2286
+ },
2287
+ errors: {
2288
+ 401: `The user is currently not authenticated or the user does not have REPO_ADMIN permission.`,
2289
+ 404: `The specified repository does not exist.`,
2290
+ },
2291
+ });
2292
+ }
2293
+ /**
2294
+ * Delete auto decline settings
2295
+ * Delete auto decline settings for the supplied repository.
2296
+ *
2297
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for this repository to call the resource.
2298
+ * @param projectKey The project key
2299
+ * @param repositorySlug The repository slug
2300
+ * @returns void
2301
+ * @throws ApiError
2302
+ */
2303
+ static deleteAutoDeclineSettings1(projectKey, repositorySlug) {
2304
+ return __request(OpenAPI, {
2305
+ method: 'DELETE',
2306
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/auto-decline',
2307
+ path: {
2308
+ 'projectKey': projectKey,
2309
+ 'repositorySlug': repositorySlug,
2310
+ },
2311
+ errors: {
2312
+ 401: `The currently authenticated user has insufficient permissions to delete the auto decline settings.`,
2313
+ 404: `The specified repository does not exist.`,
2314
+ },
2315
+ });
2316
+ }
2317
+ /**
2318
+ * Get auto decline settings
2319
+ * Retrieves the auto decline settings for the supplied repository. Project settings will be returned if no explicit settings have been set for the repository. In the case that there are no project settings, the default settings will be returned.
2320
+ *
2321
+ * The authenticated user must have <strong>REPO_READ</strong> permission for this repository to call the resource.
2322
+ * @param projectKey The project key
2323
+ * @param repositorySlug The repository slug
2324
+ * @returns RestAutoDeclineSettings The auto decline settings
2325
+ * @throws ApiError
2326
+ */
2327
+ static getAutoDeclineSettings1(projectKey, repositorySlug) {
2328
+ return __request(OpenAPI, {
2329
+ method: 'GET',
2330
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/auto-decline',
2331
+ path: {
2332
+ 'projectKey': projectKey,
2333
+ 'repositorySlug': repositorySlug,
2334
+ },
2335
+ errors: {
2336
+ 401: `The currently authenticated user has insufficient permissions to retrieve the auto decline settings.`,
2337
+ 404: `The specified repository does not exist.`,
2338
+ },
2339
+ });
2340
+ }
2341
+ /**
2342
+ * Create auto decline settings
2343
+ * Creates or updates the auto decline settings for the supplied repository.
2344
+ *
2345
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for this repository to call the resource
2346
+ * @param projectKey The project key
2347
+ * @param repositorySlug The repository slug
2348
+ * @param requestBody The settings to create or update
2349
+ * @returns RestAutoDeclineSettings The auto decline settings
2350
+ * @throws ApiError
2351
+ */
2352
+ static setAutoDeclineSettings1(projectKey, repositorySlug, requestBody) {
2353
+ return __request(OpenAPI, {
2354
+ method: 'PUT',
2355
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/auto-decline',
2356
+ path: {
2357
+ 'projectKey': projectKey,
2358
+ 'repositorySlug': repositorySlug,
2359
+ },
2360
+ body: requestBody,
2361
+ mediaType: 'application/json',
2362
+ errors: {
2363
+ 400: `inactivityWeeks was not one of 1, 2, 4, 8, or, 12, or the enabled parameter was not included in the request.`,
2364
+ 401: `The currently authenticated user has insufficient permissions to create or update the auto decline settings.`,
2365
+ 404: `The specified repository does not exist.`,
2366
+ },
2367
+ });
2368
+ }
2369
+ /**
2370
+ * Delete pull request auto-merge settings
2371
+ * Deletes pull request auto-merge settings for the supplied repository.
2372
+ *
2373
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for this repository to call the resource.
2374
+ * @param projectKey The project key
2375
+ * @param repositorySlug The repository slug
2376
+ * @returns void
2377
+ * @throws ApiError
2378
+ */
2379
+ static delete5(projectKey, repositorySlug) {
2380
+ return __request(OpenAPI, {
2381
+ method: 'DELETE',
2382
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/auto-merge',
2383
+ path: {
2384
+ 'projectKey': projectKey,
2385
+ 'repositorySlug': repositorySlug,
2386
+ },
2387
+ errors: {
2388
+ 401: `The currently authenticated user has insufficient permissions to delete the pull request auto-merge settings.`,
2389
+ 403: `The pull request auto-merge settings cannot be modified due to a restriction enforced by the supplied repository's project.`,
2390
+ 404: `The specified repository does not exist.`,
2391
+ },
2392
+ });
2393
+ }
2394
+ /**
2395
+ * Get pull request auto-merge settings
2396
+ * Retrieves the pull request auto-merge settings for the supplied repository. Project settings will be returned if no explicit settings have been set for the repository. In the case that there are no project settings, the default settings will be returned. If the repository's project has restricted its auto-merge settings, then the settings of the project will be returned.
2397
+ *
2398
+ * The authenticated user must have <strong>REPO_READ</strong> permission for this repository to call the resource.
2399
+ * @param projectKey The project key
2400
+ * @param repositorySlug The repository slug
2401
+ * @returns RestAutoMergeRestrictedSettings The pull request auto-merge settings
2402
+ * @throws ApiError
2403
+ */
2404
+ static get5(projectKey, repositorySlug) {
2405
+ return __request(OpenAPI, {
2406
+ method: 'GET',
2407
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/auto-merge',
2408
+ path: {
2409
+ 'projectKey': projectKey,
2410
+ 'repositorySlug': repositorySlug,
2411
+ },
2412
+ errors: {
2413
+ 401: `The currently authenticated user has insufficient permissions to retrieve the pull request auto-merge settings.`,
2414
+ 404: `The specified repository does not exist.`,
2415
+ },
2416
+ });
2417
+ }
2418
+ /**
2419
+ * Create or update the pull request auto-merge settings
2420
+ * Creates or updates the pull request auto-merge settings for the supplied repository.
2421
+ *
2422
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for this repository to call the resource.
2423
+ * @param projectKey The project key
2424
+ * @param repositorySlug The repository slug
2425
+ * @param requestBody The settings to create or update
2426
+ * @returns RestAutoMergeRestrictedSettings The pull request auto-merge settings
2427
+ * @throws ApiError
2428
+ */
2429
+ static set1(projectKey, repositorySlug, requestBody) {
2430
+ return __request(OpenAPI, {
2431
+ method: 'PUT',
2432
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/auto-merge',
2433
+ path: {
2434
+ 'projectKey': projectKey,
2435
+ 'repositorySlug': repositorySlug,
2436
+ },
2437
+ body: requestBody,
2438
+ mediaType: 'application/json',
2439
+ errors: {
2440
+ 400: `The 'enabled' field was not provided correctly.`,
2441
+ 401: `The currently authenticated user has insufficient permissions to create or update the pull request auto-merge settings.`,
2442
+ 403: `The pull request auto-merge settings cannot be modified due to a restriction enforced by the supplied repository's project.`,
2443
+ 404: `The specified repository does not exist.`,
2444
+ },
2445
+ });
2446
+ }
2447
+ /**
2448
+ * Get repository hooks
2449
+ * Retrieve a page of repository hooks for this repository.
2450
+ *
2451
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2452
+ * @param projectKey The project key.
2453
+ * @param repositorySlug The repository slug.
2454
+ * @param type The optional type to filter by.
2455
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2456
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2457
+ * @returns any A page of repository hooks with their associated enabled state.
2458
+ * @throws ApiError
2459
+ */
2460
+ static getRepositoryHooks1(projectKey, repositorySlug, type, start, limit) {
2461
+ return __request(OpenAPI, {
2462
+ method: 'GET',
2463
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks',
2464
+ path: {
2465
+ 'projectKey': projectKey,
2466
+ 'repositorySlug': repositorySlug,
2467
+ },
2468
+ query: {
2469
+ 'type': type,
2470
+ 'start': start,
2471
+ 'limit': limit,
2472
+ },
2473
+ errors: {
2474
+ 401: `The currently authenticated user has insufficient permissions to retrieve the hooks.`,
2475
+ 404: `The specified repository does not exist.`,
2476
+ },
2477
+ });
2478
+ }
2479
+ /**
2480
+ * Delete repository hook
2481
+ * Delete repository hook configuration for the supplied <strong>hookKey</strong> and <strong>repositorySlug</strong>
2482
+ *
2483
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2484
+ * @param projectKey The project key.
2485
+ * @param hookKey The hook key.
2486
+ * @param repositorySlug The repository slug.
2487
+ * @returns void
2488
+ * @throws ApiError
2489
+ */
2490
+ static deleteRepositoryHook(projectKey, hookKey, repositorySlug) {
2491
+ return __request(OpenAPI, {
2492
+ method: 'DELETE',
2493
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}',
2494
+ path: {
2495
+ 'projectKey': projectKey,
2496
+ 'hookKey': hookKey,
2497
+ 'repositorySlug': repositorySlug,
2498
+ },
2499
+ errors: {
2500
+ 400: `The settings specified are invalid.`,
2501
+ 401: `The currently authenticated user has insufficient permissions to delete the hook.`,
2502
+ 404: `The specified repository or hook does not exist.`,
2503
+ },
2504
+ });
2505
+ }
2506
+ /**
2507
+ * Get repository hook
2508
+ * Retrieve a repository hook for this repository.
2509
+ *
2510
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2511
+ * @param projectKey The project key.
2512
+ * @param hookKey The hook key.
2513
+ * @param repositorySlug The repository slug.
2514
+ * @returns RestRepositoryHook The repository hooks with their associated enabled state for the supplied hookKey.
2515
+ * @throws ApiError
2516
+ */
2517
+ static getRepositoryHook1(projectKey, hookKey, repositorySlug) {
2518
+ return __request(OpenAPI, {
2519
+ method: 'GET',
2520
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}',
2521
+ path: {
2522
+ 'projectKey': projectKey,
2523
+ 'hookKey': hookKey,
2524
+ 'repositorySlug': repositorySlug,
2525
+ },
2526
+ errors: {
2527
+ 401: `The currently authenticated user has insufficient permissions to retrieve the hook.`,
2528
+ 404: `The specified repository hook does not exist for the given repository, or the repository does not exist.`,
2529
+ },
2530
+ });
2531
+ }
2532
+ /**
2533
+ * Disable repository hook
2534
+ * Disable a repository hook for this repository.
2535
+ *
2536
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2537
+ * @param projectKey The project key.
2538
+ * @param hookKey The hook key.
2539
+ * @param repositorySlug The repository slug.
2540
+ * @returns RestRepositoryHook The repository hooks with their associated enabled state for the supplied hookKey.
2541
+ * @throws ApiError
2542
+ */
2543
+ static disableHook1(projectKey, hookKey, repositorySlug) {
2544
+ return __request(OpenAPI, {
2545
+ method: 'DELETE',
2546
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/enabled',
2547
+ path: {
2548
+ 'projectKey': projectKey,
2549
+ 'hookKey': hookKey,
2550
+ 'repositorySlug': repositorySlug,
2551
+ },
2552
+ errors: {
2553
+ 401: `The currently authenticated user has insufficient permissions to disable the hook.`,
2554
+ 404: `The specified repository or hook does not exist.`,
2555
+ },
2556
+ });
2557
+ }
2558
+ /**
2559
+ * Enable repository hook
2560
+ * Enable a repository hook for this repository and optionally apply new configuration.
2561
+ *
2562
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2563
+ *
2564
+ * A JSON document may be provided to use as the settings for the hook. These structure and validity of the document is decided by the plugin providing the hook.
2565
+ * @param projectKey The project key.
2566
+ * @param hookKey The hook key.
2567
+ * @param repositorySlug The repository slug.
2568
+ * @param contentLength The content length.
2569
+ * @returns RestRepositoryHook The repository hooks with their associated enabled state for the supplied hookKey.
2570
+ * @throws ApiError
2571
+ */
2572
+ static enableHook1(projectKey, hookKey, repositorySlug, contentLength) {
2573
+ return __request(OpenAPI, {
2574
+ method: 'PUT',
2575
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/enabled',
2576
+ path: {
2577
+ 'projectKey': projectKey,
2578
+ 'hookKey': hookKey,
2579
+ 'repositorySlug': repositorySlug,
2580
+ },
2581
+ headers: {
2582
+ 'Content-Length': contentLength,
2583
+ },
2584
+ errors: {
2585
+ 401: `The currently authenticated user has insufficient permissions to enable the hook.`,
2586
+ 404: `The specified repository or hook does not exist.`,
2587
+ },
2588
+ });
2589
+ }
2590
+ /**
2591
+ * Get repository hook settings
2592
+ * Retrieve the settings for a repository hook for this repository.
2593
+ *
2594
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2595
+ * @param projectKey The project key.
2596
+ * @param hookKey The hook key.
2597
+ * @param repositorySlug The repository slug.
2598
+ * @returns ExampleSettings The settings for the hook.
2599
+ * @throws ApiError
2600
+ */
2601
+ static getSettings1(projectKey, hookKey, repositorySlug) {
2602
+ return __request(OpenAPI, {
2603
+ method: 'GET',
2604
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings',
2605
+ path: {
2606
+ 'projectKey': projectKey,
2607
+ 'hookKey': hookKey,
2608
+ 'repositorySlug': repositorySlug,
2609
+ },
2610
+ errors: {
2611
+ 401: `The currently authenticated user has insufficient permissions to retrieve the hook settings.`,
2612
+ 404: `The specified repository or hook does not exist.`,
2613
+ },
2614
+ });
2615
+ }
2616
+ /**
2617
+ * Update repository hook settings
2618
+ * Modify the settings for a repository hook for this repository.
2619
+ *
2620
+ * The service will reject any settings which are too large, the current limit is 32KB once serialized.
2621
+ *
2622
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2623
+ *
2624
+ * A JSON document can be provided to use as the settings for the hook. These structure and validity of the document is decided by the plugin providing the hook.
2625
+ * @param projectKey The project key.
2626
+ * @param hookKey The hook key.
2627
+ * @param repositorySlug The repository slug.
2628
+ * @param requestBody The raw settings.
2629
+ * @returns ExampleSettings The settings for the hook.
2630
+ * @throws ApiError
2631
+ */
2632
+ static setSettings1(projectKey, hookKey, repositorySlug, requestBody) {
2633
+ return __request(OpenAPI, {
2634
+ method: 'PUT',
2635
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/hooks/{hookKey}/settings',
2636
+ path: {
2637
+ 'projectKey': projectKey,
2638
+ 'hookKey': hookKey,
2639
+ 'repositorySlug': repositorySlug,
2640
+ },
2641
+ body: requestBody,
2642
+ mediaType: 'application/json',
2643
+ errors: {
2644
+ 400: `The settings specified are invalid.`,
2645
+ 401: `The currently authenticated user has insufficient permissions to modify the hook settings.`,
2646
+ 404: `The specified repository or hook does not exist.`,
2647
+ },
2648
+ });
2649
+ }
2650
+ /**
2651
+ * Get pull request settings
2652
+ * Retrieve the pull request settings for the context repository.
2653
+ *
2654
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the context repository to call this resource.
2655
+ *
2656
+ * This resource will call all RestFragments that are registered with the key <strong>bitbucket.repository.settings.pullRequests</strong>. If any fragment fails validations by returning a non-empty Map of errors, then no fragments will execute.
2657
+ *
2658
+ * The property keys for the settings that are bundled with the application are
2659
+ *
2660
+ * - mergeConfig - the merge strategy configuration for pull requests
2661
+ * - requiredApprovers - (Deprecated, please use com.atlassian.bitbucket.server.bundled-hooks.requiredApproversMergeHook instead) the number of approvals required on a pull request for it to be mergeable, or 0 if the merge check is disabled
2662
+ * - com.atlassian.bitbucket.server.bundled-hooks.requiredApproversMergeHook - the merge check configuration for required approvers
2663
+ * - requiredAllApprovers - whether or not all approvers must approve a pull request for it to be mergeable
2664
+ * - requiredAllTasksComplete - whether or not all tasks on a pull request need to be completed for it to be mergeable
2665
+ * - requiredSuccessfulBuilds - (Deprecated, please use com.atlassian.bitbucket.server.bitbucket-build.requiredBuildsMergeCheck instead) the number of successful builds on a pull request for it to be mergeable, or 0 if the merge check is disabled
2666
+ * - com.atlassian.bitbucket.server.bitbucket-build.requiredBuildsMergeCheck - the merge check configuration for required builds
2667
+ *
2668
+ *
2669
+ *
2670
+ * @param projectKey The project key.
2671
+ * @param repositorySlug The repository slug.
2672
+ * @returns RestRepositoryPullRequestSettings The repository pull request settings for the context repository.
2673
+ * @throws ApiError
2674
+ */
2675
+ static getPullRequestSettings1(projectKey, repositorySlug) {
2676
+ return __request(OpenAPI, {
2677
+ method: 'GET',
2678
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests',
2679
+ path: {
2680
+ 'projectKey': projectKey,
2681
+ 'repositorySlug': repositorySlug,
2682
+ },
2683
+ errors: {
2684
+ 401: `The currently authenticated user has insufficient permissions to see the specified repository.`,
2685
+ 404: `The specified repository does not exist.`,
2686
+ },
2687
+ });
2688
+ }
2689
+ /**
2690
+ * Update pull request settings
2691
+ * Update the pull request settings for the context repository.
2692
+ *
2693
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the context repository to call this resource.
2694
+ *
2695
+ * This resource will call all RestFragments that are registered with the key <strong>bitbucket.repository.settings.pullRequests</strong>. If any fragment fails validations by returning a non-empty Map of errors, then no fragments will execute.
2696
+ *
2697
+ * Only the settings that should be updated need to be included in the request.
2698
+ *
2699
+ * The property keys for the settings that are bundled with the application are
2700
+ *
2701
+ * - mergeConfig - the merge strategy configuration for pull requests
2702
+ * - requiredApprovers - (Deprecated, please use com.atlassian.bitbucket.server.bundled-hooks.requiredApproversMergeHook instead) the number of approvals required on a pull request for it to be mergeable, or 0 to disable the merge check
2703
+ * - com.atlassian.bitbucket.server.bundled-hooks.requiredApproversMergeHook - a json map containing the keys 'enabled' (a boolean to enable or disable this merge check) and 'count' (an integer to set the number of required approvals)
2704
+ * - requiredAllApprovers - whether or not all approvers must approve a pull request for it to be mergeable
2705
+ * - requiredAllTasksComplete - whether or not all tasks on a pull request need to be completed for it to be mergeable
2706
+ * - requiredSuccessfulBuilds - (Deprecated, please use com.atlassian.bitbucket.server.bitbucket-build.requiredBuildsMergeCheck instead) the number of successful builds on a pull request for it to be mergeable, or 0 to disable the merge check
2707
+ * - com.atlassian.bitbucket.server.bitbucket-build.requiredBuildsMergeCheck - a json map containing the keys 'enabled' (a boolean to enable or disable this merge check) and 'count' (an integer to set the number of required builds)
2708
+ *
2709
+ *
2710
+ * <strong>Merge strategy configuration deletion:</strong>
2711
+ *
2712
+ * An explicitly set pull request merge strategy configuration can be deleted by POSTing a document with an empty "mergeConfig" attribute. i.e:
2713
+ *
2714
+ *
2715
+ * ```{
2716
+ * "mergeConfig": {
2717
+ * }
2718
+ * }
2719
+ * ```
2720
+ *
2721
+ * Upon completion of this request, the effective configuration will be:
2722
+ *
2723
+ * - The configuration set for this repository's SCM type as set at the project level, if present, otherwise
2724
+ * - the configuration set for this repository's SCM type as set at the instance level, if present, otherwise
2725
+ * - the default configuration for this repository's SCM type
2726
+ *
2727
+ *
2728
+ *
2729
+ * @param projectKey The project key.
2730
+ * @param repositorySlug The repository slug.
2731
+ * @param requestBody The updated settings.
2732
+ * @returns RestRepositoryPullRequestSettings The repository pull request settings for the context repository.
2733
+ * @throws ApiError
2734
+ */
2735
+ static updatePullRequestSettings1(projectKey, repositorySlug, requestBody) {
2736
+ return __request(OpenAPI, {
2737
+ method: 'POST',
2738
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests',
2739
+ path: {
2740
+ 'projectKey': projectKey,
2741
+ 'repositorySlug': repositorySlug,
2742
+ },
2743
+ body: requestBody,
2744
+ mediaType: 'application/json',
2745
+ errors: {
2746
+ 400: `The repository pull request settings were not updated due to a validation error.`,
2747
+ 401: `The currently authenticated user has insufficient permissions to see the specified repository.`,
2748
+ 404: `The specified repository does not exist.`,
2749
+ },
2750
+ });
2751
+ }
2752
+ /**
2753
+ * Find tag
2754
+ * Retrieve the tags matching the supplied <strong>filterText</strong> param.
2755
+ *
2756
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the context repository to call this resource.
2757
+ * @param projectKey The project key.
2758
+ * @param repositorySlug The repository slug.
2759
+ * @param orderBy Ordering of refs either ALPHABETICAL (by name) or MODIFICATION (last updated)
2760
+ * @param filterText The text to match on.
2761
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2762
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2763
+ * @returns any The tags matching the supplied <strong>filterText</strong>.
2764
+ * @throws ApiError
2765
+ */
2766
+ static getTags(projectKey, repositorySlug, orderBy, filterText, start, limit) {
2767
+ return __request(OpenAPI, {
2768
+ method: 'GET',
2769
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/tags',
2770
+ path: {
2771
+ 'projectKey': projectKey,
2772
+ 'repositorySlug': repositorySlug,
2773
+ },
2774
+ query: {
2775
+ 'orderBy': orderBy,
2776
+ 'filterText': filterText,
2777
+ 'start': start,
2778
+ 'limit': limit,
2779
+ },
2780
+ errors: {
2781
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
2782
+ 404: `The specified repository does not exist.`,
2783
+ },
2784
+ });
2785
+ }
2786
+ /**
2787
+ * Create tag
2788
+ * Creates a tag using the information provided in the RestCreateTagRequest request
2789
+ *
2790
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the context repository to call this resource.
2791
+ * @param projectKey The project key.
2792
+ * @param repositorySlug The repository slug.
2793
+ * @param requestBody The request to create a tag containing a <strong>name</strong>, <strong>startPoint</strong>, and optionally a <strong>message</strong>
2794
+ * @returns RestTag The created tag.
2795
+ * @throws ApiError
2796
+ */
2797
+ static createTagForRepository(projectKey, repositorySlug, requestBody) {
2798
+ return __request(OpenAPI, {
2799
+ method: 'POST',
2800
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/tags',
2801
+ path: {
2802
+ 'projectKey': projectKey,
2803
+ 'repositorySlug': repositorySlug,
2804
+ },
2805
+ body: requestBody,
2806
+ mediaType: 'application/json',
2807
+ errors: {
2808
+ 401: `The currently authenticated user has insufficient permissions to write to the repository.`,
2809
+ 404: `The specified repository does not exist.`,
2810
+ },
2811
+ });
2812
+ }
2813
+ /**
2814
+ * Get tag
2815
+ * Retrieve a tag in the specified repository.
2816
+ *
2817
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the context repository to call this resource.
2818
+ * @param projectKey The project key.
2819
+ * @param name The name of the tag to be retrieved.
2820
+ * @param repositorySlug The repository slug.
2821
+ * @returns RestTag The tag which matches the supplied <strong>name</strong>.
2822
+ * @throws ApiError
2823
+ */
2824
+ static getTag(projectKey, name, repositorySlug) {
2825
+ return __request(OpenAPI, {
2826
+ method: 'GET',
2827
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/tags/{name}',
2828
+ path: {
2829
+ 'projectKey': projectKey,
2830
+ 'name': name,
2831
+ 'repositorySlug': repositorySlug,
2832
+ },
2833
+ errors: {
2834
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
2835
+ 404: `The specified tag does not exist.`,
2836
+ },
2837
+ });
2838
+ }
2839
+ /**
2840
+ * Stop watching repository
2841
+ * Remove the authenticated user as a watcher for the specified repository.
2842
+ *
2843
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository to call this resource.
2844
+ * @param projectKey The project key.
2845
+ * @param repositorySlug The repository slug.
2846
+ * @returns void
2847
+ * @throws ApiError
2848
+ */
2849
+ static unwatch2(projectKey, repositorySlug) {
2850
+ return __request(OpenAPI, {
2851
+ method: 'DELETE',
2852
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/watch',
2853
+ path: {
2854
+ 'projectKey': projectKey,
2855
+ 'repositorySlug': repositorySlug,
2856
+ },
2857
+ errors: {
2858
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2859
+ 404: `The specified repository does not exist.`,
2860
+ },
2861
+ });
2862
+ }
2863
+ /**
2864
+ * Watch repository
2865
+ * Add the authenticated user as a watcher for the specified repository.
2866
+ *
2867
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository to call this resource.
2868
+ * @param projectKey The project key.
2869
+ * @param repositorySlug The repository slug.
2870
+ * @param requestBody The repository to watch.
2871
+ * @returns void
2872
+ * @throws ApiError
2873
+ */
2874
+ static watch2(projectKey, repositorySlug, requestBody) {
2875
+ return __request(OpenAPI, {
2876
+ method: 'POST',
2877
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/watch',
2878
+ path: {
2879
+ 'projectKey': projectKey,
2880
+ 'repositorySlug': repositorySlug,
2881
+ },
2882
+ body: requestBody,
2883
+ mediaType: 'application/json',
2884
+ errors: {
2885
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2886
+ 404: `The specified repository does not exist.`,
2887
+ },
2888
+ });
2889
+ }
2890
+ /**
2891
+ * Find webhooks
2892
+ * Find webhooks in this repository.
2893
+ *
2894
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2895
+ * @param projectKey The project key.
2896
+ * @param repositorySlug The repository slug.
2897
+ * @param event List of <code>com.atlassian.webhooks.WebhookEvent</code> IDs to filter for
2898
+ * @param statistics <code>true</code> if statistics should be provided for all found webhooks
2899
+ * @returns any A page of webhooks.
2900
+ * @throws ApiError
2901
+ */
2902
+ static findWebhooks1(projectKey, repositorySlug, event, statistics) {
2903
+ return __request(OpenAPI, {
2904
+ method: 'GET',
2905
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks',
2906
+ path: {
2907
+ 'projectKey': projectKey,
2908
+ 'repositorySlug': repositorySlug,
2909
+ },
2910
+ query: {
2911
+ 'event': event,
2912
+ 'statistics': statistics,
2913
+ },
2914
+ errors: {
2915
+ 401: `The currently authenticated user has insufficient permissions to find webhooks in the repository.`,
2916
+ 404: `The specified repository does not exist.`,
2917
+ },
2918
+ });
2919
+ }
2920
+ /**
2921
+ * Create webhook
2922
+ * Create a webhook for the repository specified via the URL.
2923
+ *
2924
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2925
+ * @param projectKey The project key.
2926
+ * @param repositorySlug The repository slug.
2927
+ * @param requestBody The webhook to be created for this repository.
2928
+ * @returns RestWebhook A created webhook.
2929
+ * @throws ApiError
2930
+ */
2931
+ static createWebhook1(projectKey, repositorySlug, requestBody) {
2932
+ return __request(OpenAPI, {
2933
+ method: 'POST',
2934
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks',
2935
+ path: {
2936
+ 'projectKey': projectKey,
2937
+ 'repositorySlug': repositorySlug,
2938
+ },
2939
+ body: requestBody,
2940
+ mediaType: 'application/json',
2941
+ errors: {
2942
+ 400: `The webhook parameters were invalid or not supplied.`,
2943
+ 401: `The currently authenticated user has insufficient permissions to create webhooks in the repository.`,
2944
+ 404: `The repository does not exist.`,
2945
+ },
2946
+ });
2947
+ }
2948
+ /**
2949
+ * Search webhooks
2950
+ * Search webhooks in this repository and parent project. This endpoint returns a superset of the results returned by the /webhooks endpoint because it allows filtering by project scope too, not just repository webhooks.
2951
+ *
2952
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2953
+ * @param projectKey The project key.
2954
+ * @param repositorySlug The repository slug.
2955
+ * @param scopeType Scopes to filter by. This parameter can be specified once e.g. "scopeType=repository", or twice e.g. "scopeType=repository&scopeType=project", to filter by more than one scope level.
2956
+ * @param event List of <code>com.atlassian.webhooks.WebhookEvent</code> ids to filter for
2957
+ * @param statistics <code>true</code> if statistics should be provided for all found webhooks
2958
+ * @returns any A page of webhooks.
2959
+ * @throws ApiError
2960
+ */
2961
+ static searchWebhooks(projectKey, repositorySlug, scopeType, event, statistics) {
2962
+ return __request(OpenAPI, {
2963
+ method: 'GET',
2964
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/search',
2965
+ path: {
2966
+ 'projectKey': projectKey,
2967
+ 'repositorySlug': repositorySlug,
2968
+ },
2969
+ query: {
2970
+ 'scopeType': scopeType,
2971
+ 'event': event,
2972
+ 'statistics': statistics,
2973
+ },
2974
+ errors: {
2975
+ 401: `The currently authenticated user has insufficient permissions to find webhooks in the repository.`,
2976
+ 404: `The specified repository does not exist.`,
2977
+ },
2978
+ });
2979
+ }
2980
+ /**
2981
+ * Test webhook
2982
+ * Test connectivity to a specific endpoint.
2983
+ *
2984
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
2985
+ * @param projectKey The project key.
2986
+ * @param repositorySlug The repository slug.
2987
+ * @param webhookId
2988
+ * @param sslVerificationRequired Whether SSL verification is required for the specified webhook URL. Default value is <code>true</code>.
2989
+ * @param url The url in which to connect to
2990
+ * @param requestBody Basic authentication credentials, if required.
2991
+ * @returns RestWebhookRequestResponse A webhook.
2992
+ * @throws ApiError
2993
+ */
2994
+ static testWebhook1(projectKey, repositorySlug, webhookId, sslVerificationRequired, url, requestBody) {
2995
+ return __request(OpenAPI, {
2996
+ method: 'POST',
2997
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/test',
2998
+ path: {
2999
+ 'projectKey': projectKey,
3000
+ 'repositorySlug': repositorySlug,
3001
+ },
3002
+ query: {
3003
+ 'webhookId': webhookId,
3004
+ 'sslVerificationRequired': sslVerificationRequired,
3005
+ 'url': url,
3006
+ },
3007
+ body: requestBody,
3008
+ mediaType: 'application/json',
3009
+ errors: {
3010
+ 401: `The currently authenticated user has insufficient permissions to test a connection.`,
3011
+ 404: `The specified repository does not exist.`,
3012
+ },
3013
+ });
3014
+ }
3015
+ /**
3016
+ * Delete webhook
3017
+ * Delete a webhook for the repository specified via the URL.
3018
+ *
3019
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
3020
+ * @param projectKey The project key.
3021
+ * @param webhookId The ID of the webhook to be deleted.
3022
+ * @param repositorySlug The repository slug.
3023
+ * @returns void
3024
+ * @throws ApiError
3025
+ */
3026
+ static deleteWebhook1(projectKey, webhookId, repositorySlug) {
3027
+ return __request(OpenAPI, {
3028
+ method: 'DELETE',
3029
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}',
3030
+ path: {
3031
+ 'projectKey': projectKey,
3032
+ 'webhookId': webhookId,
3033
+ 'repositorySlug': repositorySlug,
3034
+ },
3035
+ errors: {
3036
+ 401: `The currently authenticated user has insufficient permissions to delete webhooks in the repository.`,
3037
+ 404: `The specified repository does not exist, or webhook does not exist in this repository.`,
3038
+ },
3039
+ });
3040
+ }
3041
+ /**
3042
+ * Get webhook
3043
+ * Get a webhook by ID.
3044
+ *
3045
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
3046
+ * @param projectKey The project key.
3047
+ * @param webhookId ID of the webhook
3048
+ * @param repositorySlug The repository slug.
3049
+ * @param statistics <code>true</code> if statistics should be provided for the webhook
3050
+ * @returns RestWebhook A webhook.
3051
+ * @throws ApiError
3052
+ */
3053
+ static getWebhook1(projectKey, webhookId, repositorySlug, statistics) {
3054
+ return __request(OpenAPI, {
3055
+ method: 'GET',
3056
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}',
3057
+ path: {
3058
+ 'projectKey': projectKey,
3059
+ 'webhookId': webhookId,
3060
+ 'repositorySlug': repositorySlug,
3061
+ },
3062
+ query: {
3063
+ 'statistics': statistics,
3064
+ },
3065
+ errors: {
3066
+ 401: `The currently authenticated user has insufficient permissions to get a webhook in the repository.`,
3067
+ 404: `The repository does not exist, or the webhook does not exist in the repository.`,
3068
+ },
3069
+ });
3070
+ }
3071
+ /**
3072
+ * Update webhook
3073
+ * Update an existing webhook.
3074
+ *
3075
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
3076
+ * @param projectKey The project key.
3077
+ * @param webhookId Id of the existing webhook
3078
+ * @param repositorySlug The repository slug.
3079
+ * @param requestBody The representation of the updated values for the webhook
3080
+ * @returns RestWebhook A webhook.
3081
+ * @throws ApiError
3082
+ */
3083
+ static updateWebhook1(projectKey, webhookId, repositorySlug, requestBody) {
3084
+ return __request(OpenAPI, {
3085
+ method: 'PUT',
3086
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}',
3087
+ path: {
3088
+ 'projectKey': projectKey,
3089
+ 'webhookId': webhookId,
3090
+ 'repositorySlug': repositorySlug,
3091
+ },
3092
+ body: requestBody,
3093
+ mediaType: 'application/json',
3094
+ errors: {
3095
+ 401: `The currently authenticated user has insufficient permissions to update a webhook in this repository.`,
3096
+ 404: `The repository does not exist, or the webhook does not exist in the repository.`,
3097
+ },
3098
+ });
3099
+ }
3100
+ /**
3101
+ * Get last webhook invocation details
3102
+ * Get the latest invocations for a specific webhook.
3103
+ *
3104
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
3105
+ * @param projectKey The project key.
3106
+ * @param webhookId ID of the webhook
3107
+ * @param repositorySlug The repository slug.
3108
+ * @param event The string ID of a specific event to retrieve the last invocation for.
3109
+ * @param outcome The outcome to filter for. Can be SUCCESS, FAILURE, ERROR. None specified means that the all will be considered
3110
+ * @returns RestDetailedInvocation A webhook invocation dataset.
3111
+ * @throws ApiError
3112
+ */
3113
+ static getLatestInvocation1(projectKey, webhookId, repositorySlug, event, outcome) {
3114
+ return __request(OpenAPI, {
3115
+ method: 'GET',
3116
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}/latest',
3117
+ path: {
3118
+ 'projectKey': projectKey,
3119
+ 'webhookId': webhookId,
3120
+ 'repositorySlug': repositorySlug,
3121
+ },
3122
+ query: {
3123
+ 'event': event,
3124
+ 'outcome': outcome,
3125
+ },
3126
+ errors: {
3127
+ 401: `The currently authenticated user has insufficient permissions to get webhook invocations in the repository.`,
3128
+ 404: `The specified repository does not exist, or the webhook does not exist in the repository.`,
3129
+ },
3130
+ });
3131
+ }
3132
+ /**
3133
+ * Get webhook statistics
3134
+ * Get the statistics for a specific webhook.
3135
+ *
3136
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
3137
+ * @param projectKey The project key.
3138
+ * @param webhookId ID of the webhook
3139
+ * @param repositorySlug The repository slug.
3140
+ * @param event The string ID of a specific event to retrieve the last invocation for. May be empty, in which case all events are considered
3141
+ * @returns RestInvocationHistory A webhook invocation dataset.
3142
+ * @throws ApiError
3143
+ */
3144
+ static getStatistics1(projectKey, webhookId, repositorySlug, event) {
3145
+ return __request(OpenAPI, {
3146
+ method: 'GET',
3147
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}/statistics',
3148
+ path: {
3149
+ 'projectKey': projectKey,
3150
+ 'webhookId': webhookId,
3151
+ 'repositorySlug': repositorySlug,
3152
+ },
3153
+ query: {
3154
+ 'event': event,
3155
+ },
3156
+ errors: {
3157
+ 401: `The currently authenticated user has insufficient permissions to get webhook statistics in the repository.`,
3158
+ 404: `The specified repository does not exist, or the webhook does not exist in the repository.`,
3159
+ },
3160
+ });
3161
+ }
3162
+ /**
3163
+ * Get webhook statistics summary
3164
+ * Get the statistics summary for a specific webhook.
3165
+ *
3166
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
3167
+ * @param projectKey The project key.
3168
+ * @param webhookId ID of the webhook
3169
+ * @param repositorySlug The repository slug.
3170
+ * @returns RestInvocationHistory A webhook invocation dataset.
3171
+ * @throws ApiError
3172
+ */
3173
+ static getStatisticsSummary1(projectKey, webhookId, repositorySlug) {
3174
+ return __request(OpenAPI, {
3175
+ method: 'GET',
3176
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/webhooks/{webhookId}/statistics/summary',
3177
+ path: {
3178
+ 'projectKey': projectKey,
3179
+ 'webhookId': webhookId,
3180
+ 'repositorySlug': repositorySlug,
3181
+ },
3182
+ errors: {
3183
+ 401: `The currently authenticated user has insufficient permissions to get webhook statistics summary in the repository.`,
3184
+ 404: `The repository does not exist, or the webhook does not exist in the repository.`,
3185
+ },
3186
+ });
3187
+ }
3188
+ /**
3189
+ * Search for repositories
3190
+ * Retrieve a page of repositories based on query parameters that control the search. See the documentation of the parameters for more details.
3191
+ *
3192
+ * This resource is anonymously accessible, if anonymous access is enabled.
3193
+ *
3194
+ * <b>Note on permissions.</b> In absence of the <code>permission</code> query parameter the implicit 'read' permission is assumed. Please note that this permission is lower than the <tt>REPO_READ</tt> permission rather than being equal to it. The implicit 'read' permission for a given repository is assigned to any user that has any of the higher permissions, such as <tt>REPO_READ</tt>, as well as to anonymous users if the repository is marked as public. The important implication of the above is that an anonymous request to this resource with a permission level <tt>REPO_READ</tt> is guaranteed to receive an empty list of repositories as a result. For anonymous requests it is therefore recommended to not specify the <tt>permission</tt> parameter at all.
3195
+ * @param archived (optional) if specified, this will limit the resulting repository list to ones whose are <tt>ACTIVE</tt>, <tt>ARCHIVED</tt> or <tt>ALL</tt> for both. The match performed is case-insensitive. This filter defaults to <tt>ACTIVE</tt> when not set. <em>Available since 8.0</em>
3196
+ * @param projectname (optional) if specified, this will limit the resulting repository list to ones whose project's name matches this parameter's value. The match performed is case-insensitive and any leading and/or trailing whitespace characters on the <code>projectname</code> parameter will be stripped.
3197
+ * @param projectkey (optional) if specified, this will limit the resulting repository list to ones whose project's key matches this parameter's value. The match performed is case-insensitive and any leading and/or trailing whitespace characters on the <code>projectKey</code> parameter will be stripped. <em>Available since 8.0</em>
3198
+ * @param visibility (optional) if specified, this will limit the resulting repository list based on the repositories visibility. Valid values are <em>public</em> or <em>private</em>.
3199
+ * @param name (optional) if specified, this will limit the resulting repository list to ones whose name matches this parameter's value. The match performed is case-insensitive and any leading and/or trailing whitespace characters on the <code>name</code> parameter will be stripped.
3200
+ * @param permission (optional) if specified, it must be a valid repository permission level name and will limit the resulting repository list to ones that the requesting user has the specified permission level to. If not specified, the default implicit 'read' permission level will be assumed. The currently supported explicit permission values are <tt>REPO_READ</tt>, <tt>REPO_WRITE</tt> and <tt>REPO_ADMIN</tt>.
3201
+ * @param state (optional) if specified, it must be a valid repository state name and will limit the resulting repository list to ones that are in the specified state. The currently supported explicit state values are <tt>AVAILABLE</tt>, <tt>INITIALISING</tt> and <tt>INITIALISATION_FAILED</tt>. Filtering by <tt>OFFLINE</tt> repositories is not supported.<br><em>Available since 5.13</em>
3202
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
3203
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
3204
+ * @returns any A page of repositories.
3205
+ * @throws ApiError
3206
+ */
3207
+ static getRepositories1(archived, projectname, projectkey, visibility, name, permission, state, start, limit) {
3208
+ return __request(OpenAPI, {
3209
+ method: 'GET',
3210
+ url: '/api/latest/repos',
3211
+ query: {
3212
+ 'archived': archived,
3213
+ 'projectname': projectname,
3214
+ 'projectkey': projectkey,
3215
+ 'visibility': visibility,
3216
+ 'name': name,
3217
+ 'permission': permission,
3218
+ 'state': state,
3219
+ 'start': start,
3220
+ 'limit': limit,
3221
+ },
3222
+ errors: {
3223
+ 400: `The <code>visibility</code> parameter contains an invalid value.`,
3224
+ },
3225
+ });
3226
+ }
3227
+ }
3228
+ //# sourceMappingURL=RepositoryService.js.map