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,2481 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class PullRequestsService {
4
+ /**
5
+ * Create default reviewer condition
6
+ * Create a default reviewer pull request condition for the given project.
7
+ * @param projectKey The project key.
8
+ * @param requestBody The details needed to create a default reviewer pull request condition.
9
+ * @returns RestPullRequestCondition The default reviewer pull request condition that was created.
10
+ * @throws ApiError
11
+ */
12
+ static createPullRequestCondition(projectKey, requestBody) {
13
+ return __request(OpenAPI, {
14
+ method: 'POST',
15
+ url: '/default-reviewers/latest/projects/{projectKey}/condition',
16
+ path: {
17
+ 'projectKey': projectKey,
18
+ },
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ errors: {
22
+ 400: `The request was malformed.`,
23
+ },
24
+ });
25
+ }
26
+ /**
27
+ * Delete default reviewer condition
28
+ * Delete the default reviewer pull request condition associated with the given ID.
29
+ * @param projectKey The project key.
30
+ * @param id The ID of the pull request condition.
31
+ * @returns void
32
+ * @throws ApiError
33
+ */
34
+ static deletePullRequestCondition(projectKey, id) {
35
+ return __request(OpenAPI, {
36
+ method: 'DELETE',
37
+ url: '/default-reviewers/latest/projects/{projectKey}/condition/{id}',
38
+ path: {
39
+ 'projectKey': projectKey,
40
+ 'id': id,
41
+ },
42
+ errors: {
43
+ 404: `An empty response indicating a pull request condition with the given ID could not be found.`,
44
+ },
45
+ });
46
+ }
47
+ /**
48
+ * Update default reviewer condition
49
+ * Update the default reviewer pull request condition for the given ID.
50
+ * @param projectKey The project key.
51
+ * @param id The ID of the pull request condition.
52
+ * @param requestBody The new details for the default reviewer pull request condition.
53
+ * @returns RestPullRequestCondition The updated default reviewer pull request condition.
54
+ * @throws ApiError
55
+ */
56
+ static updatePullRequestCondition(projectKey, id, requestBody) {
57
+ return __request(OpenAPI, {
58
+ method: 'PUT',
59
+ url: '/default-reviewers/latest/projects/{projectKey}/condition/{id}',
60
+ path: {
61
+ 'projectKey': projectKey,
62
+ 'id': id,
63
+ },
64
+ body: requestBody,
65
+ mediaType: 'application/json',
66
+ errors: {
67
+ 400: `The request was malformed`,
68
+ },
69
+ });
70
+ }
71
+ /**
72
+ * Get default reviewer conditions
73
+ * Return a page of default reviewer pull request conditions that have been configured for this project.
74
+ * @param projectKey The project key.
75
+ * @returns RestPullRequestCondition The default reviewer pull request conditions associated with the given project.
76
+ * @throws ApiError
77
+ */
78
+ static getPullRequestConditions(projectKey) {
79
+ return __request(OpenAPI, {
80
+ method: 'GET',
81
+ url: '/default-reviewers/latest/projects/{projectKey}/conditions',
82
+ path: {
83
+ 'projectKey': projectKey,
84
+ },
85
+ });
86
+ }
87
+ /**
88
+ * Create default reviewer condition
89
+ * Create a default reviewer pull request condition for the given repository.
90
+ * @param projectKey The project key.
91
+ * @param repositorySlug The repository slug.
92
+ * @param requestBody The details needed to create a default reviewer pull request condition.
93
+ * @returns RestPullRequestCondition The default reviewer pull request condition that was created.
94
+ * @throws ApiError
95
+ */
96
+ static createPullRequestCondition1(projectKey, repositorySlug, requestBody) {
97
+ return __request(OpenAPI, {
98
+ method: 'POST',
99
+ url: '/default-reviewers/latest/projects/{projectKey}/repos/{repositorySlug}/condition',
100
+ path: {
101
+ 'projectKey': projectKey,
102
+ 'repositorySlug': repositorySlug,
103
+ },
104
+ body: requestBody,
105
+ mediaType: 'application/json',
106
+ errors: {
107
+ 400: `The request was malformed.`,
108
+ },
109
+ });
110
+ }
111
+ /**
112
+ * Delete default reviewer condition
113
+ * Delete the default reviewer pull request condition associated with the given ID.
114
+ * @param projectKey The project key.
115
+ * @param id
116
+ * @param repositorySlug The repository slug.
117
+ * @returns void
118
+ * @throws ApiError
119
+ */
120
+ static deletePullRequestCondition1(projectKey, id, repositorySlug) {
121
+ return __request(OpenAPI, {
122
+ method: 'DELETE',
123
+ url: '/default-reviewers/latest/projects/{projectKey}/repos/{repositorySlug}/condition/{id}',
124
+ path: {
125
+ 'projectKey': projectKey,
126
+ 'id': id,
127
+ 'repositorySlug': repositorySlug,
128
+ },
129
+ errors: {
130
+ 404: `An empty response indicating a pull request condition with the given ID could not be found.`,
131
+ },
132
+ });
133
+ }
134
+ /**
135
+ * Update default reviewer condition
136
+ * Update the default reviewer pull request condition for the given ID.
137
+ * @param projectKey The project key.
138
+ * @param id The ID of the pull request condition
139
+ * @param repositorySlug The repository slug.
140
+ * @param requestBody
141
+ * @returns RestPullRequestCondition The updated default reviewer pull request condition.
142
+ * @throws ApiError
143
+ */
144
+ static updatePullRequestCondition1(projectKey, id, repositorySlug, requestBody) {
145
+ return __request(OpenAPI, {
146
+ method: 'PUT',
147
+ url: '/default-reviewers/latest/projects/{projectKey}/repos/{repositorySlug}/condition/{id}',
148
+ path: {
149
+ 'projectKey': projectKey,
150
+ 'id': id,
151
+ 'repositorySlug': repositorySlug,
152
+ },
153
+ body: requestBody,
154
+ mediaType: 'application/json',
155
+ errors: {
156
+ 400: `The request was malformed.`,
157
+ },
158
+ });
159
+ }
160
+ /**
161
+ * Get default reviewer conditions
162
+ * Return a page of default reviewer pull request conditions that have been configured for this repository.
163
+ * @param projectKey The project key.
164
+ * @param repositorySlug The repository slug.
165
+ * @returns RestPullRequestCondition The default reviewer pull request conditions associated with the given repository.
166
+ * @throws ApiError
167
+ */
168
+ static getPullRequestConditions1(projectKey, repositorySlug) {
169
+ return __request(OpenAPI, {
170
+ method: 'GET',
171
+ url: '/default-reviewers/latest/projects/{projectKey}/repos/{repositorySlug}/conditions',
172
+ path: {
173
+ 'projectKey': projectKey,
174
+ 'repositorySlug': repositorySlug,
175
+ },
176
+ });
177
+ }
178
+ /**
179
+ * Get required reviewers for PR creation
180
+ * Return a set of users who are required reviewers for pull requests created from the given source repository and ref to the given target ref in this repository.
181
+ * @param projectKey The project key.
182
+ * @param repositorySlug The repository slug.
183
+ * @param targetRepoId The ID of the repository in which the target ref exists
184
+ * @param sourceRepoId The ID of the repository in which the source ref exists
185
+ * @param sourceRefId The ID of the source ref
186
+ * @param targetRefId The ID of the target ref
187
+ * @returns RestPullRequestCondition The default reviewer pull request conditions associated with the given repository.
188
+ * @throws ApiError
189
+ */
190
+ static getReviewers(projectKey, repositorySlug, targetRepoId, sourceRepoId, sourceRefId, targetRefId) {
191
+ return __request(OpenAPI, {
192
+ method: 'GET',
193
+ url: '/default-reviewers/latest/projects/{projectKey}/repos/{repositorySlug}/reviewers',
194
+ path: {
195
+ 'projectKey': projectKey,
196
+ 'repositorySlug': repositorySlug,
197
+ },
198
+ query: {
199
+ 'targetRepoId': targetRepoId,
200
+ 'sourceRepoId': sourceRepoId,
201
+ 'sourceRefId': sourceRefId,
202
+ 'targetRefId': targetRefId,
203
+ },
204
+ errors: {
205
+ 400: `The request was malformed.`,
206
+ },
207
+ });
208
+ }
209
+ /**
210
+ * Check PR rebase precondition
211
+ * Checks preconditions to determine whether the pull request can be rebased.
212
+ *
213
+ * Some of the preconditions are:
214
+ *
215
+ * - The pull request is between Git repositories
216
+ * - The pull request is currently open
217
+ * - The pull request's {@link PullRequest#getFromRef "from" ref} is a <i>branch</i>
218
+ * - In other words, the qualified ID for the "from" ref must start with <code>refs/heads/</code>
219
+ * - Tags, and other non-standard refs, cannot be rebased
220
+ * - The current user has an e-mail address
221
+ * - Pull requests cannot be rebased anonymously
222
+ * - `git rebase` records the current user as the committer for the rebased commits, which requires a name and e-mail address
223
+ * - The current user has <i>write</i> access to the {@link PullRequest#getFromRef "from" ref}'s repository
224
+ * - Note that in order to <i>view</i> a pull request a user is only required to have <i>read</i> access to the {@link PullRequest#getToRef toRef}'s repository, so just because a user can <i>see</i> a pull request does not mean they can request a rebase
225
+ *
226
+ *
227
+ * This list is not exhaustive, and the exact set of preconditions applied can be extended by third-party add-ons.
228
+ *
229
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
230
+ * @param projectKey The project key.
231
+ * @param pullRequestId The ID of the pull request within the repository.
232
+ * @param repositorySlug The repository slug.
233
+ * @returns RestPullRequestRebaseability The rebaseability status of the pull request.
234
+ * @throws ApiError
235
+ */
236
+ static canRebase(projectKey, pullRequestId, repositorySlug) {
237
+ return __request(OpenAPI, {
238
+ method: 'GET',
239
+ url: '/git/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/rebase',
240
+ path: {
241
+ 'projectKey': projectKey,
242
+ 'pullRequestId': pullRequestId,
243
+ 'repositorySlug': repositorySlug,
244
+ },
245
+ errors: {
246
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
247
+ 404: `The specified repository or pull request does not exist.`,
248
+ },
249
+ });
250
+ }
251
+ /**
252
+ * Rebase pull request
253
+ * Rebases the specified pull request, rewriting the incoming commits to start from the tip commit of the pull request's target branch. <i>This operation alters the pull request's source branch and cannot be undone.</i>
254
+ *
255
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets <i>and</i> <strong>REPO_WRITE</strong> permission for the pull request's source repository to call this resource.
256
+ * @param projectKey The project key.
257
+ * @param pullRequestId The ID of the pull request within the repository.
258
+ * @param repositorySlug The repository slug.
259
+ * @param requestBody The pull request rebase request.
260
+ * @returns RestPullRequestRebaseResult The merged pull request.
261
+ * @throws ApiError
262
+ */
263
+ static rebase(projectKey, pullRequestId, repositorySlug, requestBody) {
264
+ return __request(OpenAPI, {
265
+ method: 'POST',
266
+ url: '/git/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/rebase',
267
+ path: {
268
+ 'projectKey': projectKey,
269
+ 'pullRequestId': pullRequestId,
270
+ 'repositorySlug': repositorySlug,
271
+ },
272
+ body: requestBody,
273
+ mediaType: 'application/json',
274
+ errors: {
275
+ 401: `The currently authenticated user has insufficient permissions to view the pull request and/or to update its source branch.`,
276
+ 404: `The specified repository or pull request does not exist.`,
277
+ 409: `Any of the following error cases occurred (check the error message for more details):
278
+ - The rebase encountered conflicts.
279
+ - The rebase discarded all of the incoming commits and would have left the pull request empty
280
+ - A <tt>PreRepositoryHook</tt> vetoed the rebase.
281
+ - The specified version is out of date.
282
+ - The specified pull request is not open.
283
+ - The target repository is archived.`,
284
+ },
285
+ });
286
+ }
287
+ /**
288
+ * Remove a reaction from a PR comment
289
+ * Remove an emoticon reaction from a pull request comment
290
+ * @param projectKey The project key.
291
+ * @param commentId The comment id.
292
+ * @param pullRequestId The pull request id.
293
+ * @param emoticon The emoticon to remove
294
+ * @param repositorySlug The repository slug.
295
+ * @returns void
296
+ * @throws ApiError
297
+ */
298
+ static unReact1(projectKey, commentId, pullRequestId, emoticon, repositorySlug) {
299
+ return __request(OpenAPI, {
300
+ method: 'DELETE',
301
+ url: '/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}',
302
+ path: {
303
+ 'projectKey': projectKey,
304
+ 'commentId': commentId,
305
+ 'pullRequestId': pullRequestId,
306
+ 'emoticon': emoticon,
307
+ 'repositorySlug': repositorySlug,
308
+ },
309
+ });
310
+ }
311
+ /**
312
+ * React to a PR comment
313
+ * Add an emoticon reaction to a pull request comment
314
+ * @param projectKey The project key.
315
+ * @param commentId The comment id.
316
+ * @param pullRequestId The pull request id.
317
+ * @param emoticon The emoticon to add
318
+ * @param repositorySlug The repository slug.
319
+ * @returns RestUserReaction The added reaction
320
+ * @throws ApiError
321
+ */
322
+ static react1(projectKey, commentId, pullRequestId, emoticon, repositorySlug) {
323
+ return __request(OpenAPI, {
324
+ method: 'PUT',
325
+ url: '/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}',
326
+ path: {
327
+ 'projectKey': projectKey,
328
+ 'commentId': commentId,
329
+ 'pullRequestId': pullRequestId,
330
+ 'emoticon': emoticon,
331
+ 'repositorySlug': repositorySlug,
332
+ },
333
+ });
334
+ }
335
+ /**
336
+ * Get merge strategies
337
+ * Retrieve the merge strategies available for this instance.
338
+ *
339
+ * The user must be authenticated to call this resource.
340
+ * @param scmId the id of the scm to get strategies for
341
+ * @returns RestPullRequestMergeConfig The merge configuration of this instance.
342
+ * @throws ApiError
343
+ */
344
+ static getMergeConfig(scmId) {
345
+ return __request(OpenAPI, {
346
+ method: 'GET',
347
+ url: '/api/latest/admin/pull-requests/{scmId}',
348
+ path: {
349
+ 'scmId': scmId,
350
+ },
351
+ errors: {
352
+ 401: `The currently authenticated user has insufficient permissions to see the request repository.`,
353
+ 404: `The request repository does not exist`,
354
+ },
355
+ });
356
+ }
357
+ /**
358
+ * Update merge strategies
359
+ * Update the pull request merge strategies for the context repository.
360
+ *
361
+ * The authenticated user must have <strong>ADMIN</strong> permission to call this resource.
362
+ *
363
+ * Only the strategies provided will be enabled, only one may be set to default
364
+ *
365
+ * The commit message template will not be updated if not provided, and will be deleted if the `commitMessageTemplate` attribute is empty, i.e: `commitMessageTemplate: {}`.
366
+ *
367
+ * An explicitly set pull request merge strategy configuration can be deleted by POSTing a document with an empty `mergeConfig` attribute. i.e:
368
+ * ```
369
+ * {
370
+ * "mergeConfig": {}
371
+ * }
372
+ * ```
373
+ *
374
+ * Upon completion of this request, the effective configuration will be the default configuration.
375
+ * @param scmId the id of the scm to get strategies for
376
+ * @param requestBody the settings
377
+ * @returns RestPullRequestMergeConfig The repository pull request merge strategies for the context repository.
378
+ * @throws ApiError
379
+ */
380
+ static setMergeConfig(scmId, requestBody) {
381
+ return __request(OpenAPI, {
382
+ method: 'POST',
383
+ url: '/api/latest/admin/pull-requests/{scmId}',
384
+ path: {
385
+ 'scmId': scmId,
386
+ },
387
+ body: requestBody,
388
+ mediaType: 'application/json',
389
+ errors: {
390
+ 400: `The repository pull request merge strategies were not updated due to a validation error.`,
391
+ 401: `The currently authenticated user has insufficient permissions to administrate thespecified repository.`,
392
+ 404: `The specified repository does not exist.`,
393
+ 409: `Setting or deleting merge configurations isn't supported on archived repositories.`,
394
+ },
395
+ });
396
+ }
397
+ /**
398
+ * Get repository pull requests containing commit
399
+ * Retrieve a page of pull requests in the current repository that contain the given commit.
400
+ *
401
+ * The user must be authenticated and have access to the specified repository to call this resource.
402
+ * @param projectKey The project key
403
+ * @param commitId the commit ID
404
+ * @param repositorySlug The repository slug
405
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
406
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
407
+ * @returns any Return a page of pull requests in the current repository containing the given commit.
408
+ * @throws ApiError
409
+ */
410
+ static getPullRequests(projectKey, commitId, repositorySlug, start, limit) {
411
+ return __request(OpenAPI, {
412
+ method: 'GET',
413
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/pull-requests',
414
+ path: {
415
+ 'projectKey': projectKey,
416
+ 'commitId': commitId,
417
+ 'repositorySlug': repositorySlug,
418
+ },
419
+ query: {
420
+ 'start': start,
421
+ 'limit': limit,
422
+ },
423
+ errors: {
424
+ 401: `The currently authenticated user has insufficient permissions to see the request repository.`,
425
+ 404: `The request repository does not exist`,
426
+ },
427
+ });
428
+ }
429
+ /**
430
+ * Search pull request participants
431
+ * Retrieve a page of participant users for all the pull requests to or from the specified repository.
432
+ *
433
+ * Optionally clients can specify following filters.
434
+ * @param projectKey The project key.
435
+ * @param repositorySlug The repository slug.
436
+ * @param filter (optional) Return only users, whose username, name or email address <i>contain</i> the filter value
437
+ * @param role (optional) The role associated with the pull request participant. This must be one of AUTHOR, REVIEWER, or PARTICIPANT
438
+ * @param direction (optional), Defaults to <strong>INCOMING</strong>) the direction relative to the specified repository. Either <strong>INCOMING</strong> or <strong>OUTGOING</strong>.
439
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
440
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
441
+ * @returns any A page of users that match the search criteria.
442
+ * @throws ApiError
443
+ */
444
+ static search(projectKey, repositorySlug, filter, role, direction, start, limit) {
445
+ return __request(OpenAPI, {
446
+ method: 'GET',
447
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/participants',
448
+ path: {
449
+ 'projectKey': projectKey,
450
+ 'repositorySlug': repositorySlug,
451
+ },
452
+ query: {
453
+ 'filter': filter,
454
+ 'role': role,
455
+ 'direction': direction,
456
+ 'start': start,
457
+ 'limit': limit,
458
+ },
459
+ errors: {
460
+ 400: `The request was malformed.`,
461
+ 401: `The currently authenticated user has insufficient permissions to view the specified repository.`,
462
+ 404: `The specified repository does not exist.`,
463
+ },
464
+ });
465
+ }
466
+ /**
467
+ * Get pull requests for repository
468
+ * Retrieve a page of pull requests to or from the specified repository.
469
+ *
470
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource. Optionally clients can specify PR participant filters. Each filter has a mandatory username.N parameter, and the optional role.N and approved.N parameters.
471
+ *
472
+ * - username.N - the "root" of a single participant filter, where "N" is a natural number starting from 1. This allows clients to specify multiple participant filters, by providing consecutive filters as username.1, username.2 etc. Note that the filters numbering has to start with 1 and be continuous for all filters to be processed. The total allowed number of participant filters is 10 and all filters exceeding that limit will be dropped.
473
+ * - role.N(optional) the role associated with username.N. This must be one of AUTHOR, REVIEWER, or PARTICIPANT
474
+ * - approved.N (optional) the approved status associated with username.N. That is whether username.N has approved the PR. Either true, or false
475
+ *
476
+ * @param projectKey The project key.
477
+ * @param repositorySlug The repository slug.
478
+ * @param withAttributes (optional) defaults to true, whether to return additional pull request attributes
479
+ * @param at (optional) a <i>fully-qualified</i> branch ID to find pull requests to or from, such as refs/heads/master
480
+ * @param withProperties (optional) defaults to true, whether to return additional pull request properties
481
+ * @param draft (optional) If specified, only pull requests matching the supplied draft status will be returned.
482
+ * @param filterText (optional) If specified, only pull requests where the title or description contains the supplied string will be returned.
483
+ * @param state (optional, defaults to <strong>OPEN</strong>). Supply <strong>ALL</strong> to return pull request in any state. If a state is supplied only pull requests in the specified state will be returned. Either <strong>OPEN</strong>, <strong>DECLINED</strong> or <strong>MERGED</strong>.
484
+ * @param order (optional, defaults to <strong>NEWEST</strong>) the order to return pull requests in, either <strong>OLDEST</strong> (as in: "oldest first") or <strong>NEWEST</strong>.
485
+ * @param direction (optional, defaults to <strong>INCOMING</strong>) the direction relative to the specified repository. Either <strong>INCOMING</strong> or <strong>OUTGOING</strong>.
486
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
487
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
488
+ * @returns any A page of pull requests that match the search criteria.
489
+ * @throws ApiError
490
+ */
491
+ static getPage(projectKey, repositorySlug, withAttributes, at, withProperties, draft, filterText, state, order, direction, start, limit) {
492
+ return __request(OpenAPI, {
493
+ method: 'GET',
494
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests',
495
+ path: {
496
+ 'projectKey': projectKey,
497
+ 'repositorySlug': repositorySlug,
498
+ },
499
+ query: {
500
+ 'withAttributes': withAttributes,
501
+ 'at': at,
502
+ 'withProperties': withProperties,
503
+ 'draft': draft,
504
+ 'filterText': filterText,
505
+ 'state': state,
506
+ 'order': order,
507
+ 'direction': direction,
508
+ 'start': start,
509
+ 'limit': limit,
510
+ },
511
+ errors: {
512
+ 400: `The request was malformed.`,
513
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
514
+ 404: `The specified repository or pull request does not exist.`,
515
+ },
516
+ });
517
+ }
518
+ /**
519
+ * Create pull request
520
+ * Create a new pull request from a source branch or tag to a target branch. The source and target may be in the same repository, or different ones. (Note that different repositories must belong to the same <code>Repository#getHierarchyId()</code> hierarchy.)
521
+ *
522
+ * The <code>fromRef</code> may be a branch or a tag. The <code>toRef</code> is required to be a branch. Tags are not allowed as targets because tags are intended to be immutable and should not be changed after they are created.
523
+ *
524
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the <code>fromRef</code> and <code>toRef</code> repositories to call this resource.
525
+ * @param projectKey The project key.
526
+ * @param repositorySlug The repository slug.
527
+ * @param requestBody The pull request data
528
+ * @returns RestPullRequest The newly created pull request.
529
+ * @throws ApiError
530
+ */
531
+ static create(projectKey, repositorySlug, requestBody) {
532
+ return __request(OpenAPI, {
533
+ method: 'POST',
534
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests',
535
+ path: {
536
+ 'projectKey': projectKey,
537
+ 'repositorySlug': repositorySlug,
538
+ },
539
+ body: requestBody,
540
+ mediaType: 'application/json',
541
+ errors: {
542
+ 400: `The pull request entity supplied in the request was malformed.`,
543
+ 401: `The currently authenticated user has insufficient permissions to create a pull request between the two specified repositories.`,
544
+ 404: `One of the specified repositories or branches does not exist.`,
545
+ 409: `One of the following error cases occurred (check the error message for more details):
546
+ - There was a problem resolving one or more reviewers.
547
+ - The specified branches were the same.
548
+ - The <em>to</em> branch is already up-to-date with all the commits on the <em>from</em> branch.
549
+ - A pull request between the two branches already exists.
550
+ - The <em>to</em> repository is archived.
551
+ `,
552
+ },
553
+ });
554
+ }
555
+ /**
556
+ * Delete pull request
557
+ * Deletes a pull request.
558
+ *
559
+ * To call this resource, users must be authenticated and have permission to view the pull request. Additionally, they must:
560
+ *
561
+ * - be the pull request author, if the system is configured to allow authors to delete their own pull requests (this is the default) OR
562
+ * - have repository administrator permission for the repository the pull request is targeting
563
+ *
564
+ *
565
+ * A body containing the version of the pull request must be provided with this request.
566
+ *
567
+ * `{ "version": 1 }`
568
+ * @param projectKey The project key.
569
+ * @param pullRequestId The ID of the pull request within the repository
570
+ * @param repositorySlug The repository slug.
571
+ * @param requestBody A body containing the version of the pull request
572
+ * @returns void
573
+ * @throws ApiError
574
+ */
575
+ static delete3(projectKey, pullRequestId, repositorySlug, requestBody) {
576
+ return __request(OpenAPI, {
577
+ method: 'DELETE',
578
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}',
579
+ path: {
580
+ 'projectKey': projectKey,
581
+ 'pullRequestId': pullRequestId,
582
+ 'repositorySlug': repositorySlug,
583
+ },
584
+ body: requestBody,
585
+ mediaType: 'application/json',
586
+ errors: {
587
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
588
+ 404: `The specified repository or pull request does not exist.`,
589
+ 409: `Deleting pull requests isn't supported on archived repositories.`,
590
+ },
591
+ });
592
+ }
593
+ /**
594
+ * Get pull request
595
+ * Retrieve a pull request.
596
+ *
597
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
598
+ * @param projectKey The project key.
599
+ * @param pullRequestId The ID of the pull request within the repository
600
+ * @param repositorySlug The repository slug.
601
+ * @returns RestPullRequest The specified pull request.
602
+ * @throws ApiError
603
+ */
604
+ static get3(projectKey, pullRequestId, repositorySlug) {
605
+ return __request(OpenAPI, {
606
+ method: 'GET',
607
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}',
608
+ path: {
609
+ 'projectKey': projectKey,
610
+ 'pullRequestId': pullRequestId,
611
+ 'repositorySlug': repositorySlug,
612
+ },
613
+ errors: {
614
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
615
+ 404: `The specified repository or pull request does not exist.`,
616
+ },
617
+ });
618
+ }
619
+ /**
620
+ * Update pull request metadata
621
+ * Update the title, description, reviewers, destination branch or draft status of an existing pull request.
622
+ *
623
+ * **Note:** the <em>reviewers</em> list may be updated using this resource. However the <em>author</em> and <em>participants</em> list may not.
624
+ *
625
+ * The authenticated user must either:
626
+ *
627
+ * - be the author of the pull request and have the <strong>REPO_READ</strong> permission for the repository that this pull request targets; or
628
+ * - have the <strong>REPO_WRITE</strong> permission for the repository that this pull request targets
629
+ *
630
+ *
631
+ * to call this resource.
632
+ * @param projectKey The project key.
633
+ * @param pullRequestId The ID of the pull request within the repository
634
+ * @param repositorySlug The repository slug.
635
+ * @param requestBody The updated pull request
636
+ * @returns RestPullRequest The updated pull request.
637
+ * @throws ApiError
638
+ */
639
+ static update(projectKey, pullRequestId, repositorySlug, requestBody) {
640
+ return __request(OpenAPI, {
641
+ method: 'PUT',
642
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}',
643
+ path: {
644
+ 'projectKey': projectKey,
645
+ 'pullRequestId': pullRequestId,
646
+ 'repositorySlug': repositorySlug,
647
+ },
648
+ body: requestBody,
649
+ mediaType: 'application/json',
650
+ errors: {
651
+ 400: `One of the following error cases occurred (check the error message for more details):
652
+ - The request tried to modify the <em>author</em> or <em>participants</em>.
653
+ - The pull request's version attribute was not specified.
654
+ - A reviewer's username was not specified.
655
+ - The toRef ID value was incorrectly left blank
656
+ `,
657
+ 401: `The currently authenticated user has insufficient permissions to update the specified pull request.`,
658
+ 404: `One of the specified repositories or branches does not exist.`,
659
+ 409: `One of the following error cases occurred (check the error message for more details):
660
+ - The specified version is out of date.
661
+ - One of the reviewers could not be added to the pull request.
662
+ - If updating the destination branch: - There is already an open pull request with an identical to branch
663
+ - The from and new to branch <i>are</i> the same
664
+ - The new destination branch up-to-date is up-to-date with all of changes from the from branch, resulting in a pull request with nothing to merge
665
+ - The <em>to</em> repository is archived.
666
+ `,
667
+ },
668
+ });
669
+ }
670
+ /**
671
+ * Stream raw pull request diff
672
+ * Streams the raw diff for a pull request.
673
+ *
674
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
675
+ * @param projectKey The project key.
676
+ * @param pullRequestId The ID of the pull request within the repository
677
+ * @param repositorySlug The repository slug.
678
+ * @param contextLines The number of context lines to include around added/removed lines in the diff
679
+ * @param whitespace optional whitespace flag which can be set to <code>ignore-all</code>
680
+ * @returns any A raw diff for the specified pull request.
681
+ * @throws ApiError
682
+ */
683
+ static streamRawDiff2(projectKey, pullRequestId, repositorySlug, contextLines, whitespace) {
684
+ return __request(OpenAPI, {
685
+ method: 'GET',
686
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}.diff',
687
+ path: {
688
+ 'projectKey': projectKey,
689
+ 'pullRequestId': pullRequestId,
690
+ 'repositorySlug': repositorySlug,
691
+ },
692
+ query: {
693
+ 'contextLines': contextLines,
694
+ 'whitespace': whitespace,
695
+ },
696
+ errors: {
697
+ 400: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
698
+ 404: `The pull request does not exist.`,
699
+ },
700
+ });
701
+ }
702
+ /**
703
+ * Stream pull request as patch
704
+ * Streams a patch representing a pull request.
705
+ *
706
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
707
+ * @param projectKey The project key.
708
+ * @param pullRequestId The ID of the pull request within the repository
709
+ * @param repositorySlug The repository slug.
710
+ * @returns any A patch representing the specified pull request.
711
+ * @throws ApiError
712
+ */
713
+ static streamPatch1(projectKey, pullRequestId, repositorySlug) {
714
+ return __request(OpenAPI, {
715
+ method: 'GET',
716
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}.patch',
717
+ path: {
718
+ 'projectKey': projectKey,
719
+ 'pullRequestId': pullRequestId,
720
+ 'repositorySlug': repositorySlug,
721
+ },
722
+ errors: {
723
+ 401: `The currently authenticated user has insufficient permissions to access the pull request.`,
724
+ 404: `The pull request does not exist.`,
725
+ },
726
+ });
727
+ }
728
+ /**
729
+ * Get pull request activity
730
+ * Retrieve a page of activity associated with a pull request.
731
+ *
732
+ * Activity items include comments, approvals, rescopes (i.e. adding and removing of commits), merges and more.
733
+ *
734
+ * Different types of activity items may be introduced in newer versions of Stash or by user installed plugins, so clients should be flexible enough to handle unexpected entity shapes in the returned page.
735
+ *
736
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
737
+ * @param projectKey The project key.
738
+ * @param pullRequestId The ID of the pull request within the repository
739
+ * @param repositorySlug The repository slug.
740
+ * @param fromType (required if <strong>fromId</strong> is present) the type of the activity item specified by <strong>fromId</strong> (either <strong>COMMENT</strong> or <strong>ACTIVITY</strong>)
741
+ * @param fromId (optional) the ID of the activity item to use as the first item in the returned page
742
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
743
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
744
+ * @returns any A page of activity relating to the specified pull request.
745
+ * @throws ApiError
746
+ */
747
+ static getActivities(projectKey, pullRequestId, repositorySlug, fromType, fromId, start, limit) {
748
+ return __request(OpenAPI, {
749
+ method: 'GET',
750
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/activities',
751
+ path: {
752
+ 'projectKey': projectKey,
753
+ 'pullRequestId': pullRequestId,
754
+ 'repositorySlug': repositorySlug,
755
+ },
756
+ query: {
757
+ 'fromType': fromType,
758
+ 'fromId': fromId,
759
+ 'start': start,
760
+ 'limit': limit,
761
+ },
762
+ errors: {
763
+ 400: `The request was malformed.`,
764
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
765
+ 404: `The specified repository or pull request does not exist.`,
766
+ },
767
+ });
768
+ }
769
+ /**
770
+ * @deprecated
771
+ * Unapprove pull request
772
+ * Remove approval from a pull request as the current user. This does not remove the user as a participant.
773
+ *
774
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
775
+ *
776
+ * <strong>Deprecated since 4.2</strong>. Use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug} instead
777
+ * @param projectKey The project key.
778
+ * @param pullRequestId The ID of the pull request within the repository
779
+ * @param repositorySlug The repository slug.
780
+ * @returns RestPullRequestParticipant Details of the updated participant.
781
+ * @throws ApiError
782
+ */
783
+ static withdrawApproval(projectKey, pullRequestId, repositorySlug) {
784
+ return __request(OpenAPI, {
785
+ method: 'DELETE',
786
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/approve',
787
+ path: {
788
+ 'projectKey': projectKey,
789
+ 'pullRequestId': pullRequestId,
790
+ 'repositorySlug': repositorySlug,
791
+ },
792
+ errors: {
793
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
794
+ 404: `The specified repository or pull request does not exist or the current user is not a participant on the pull request.`,
795
+ 409: `The pull request is not open.`,
796
+ },
797
+ });
798
+ }
799
+ /**
800
+ * @deprecated
801
+ * Approve pull request
802
+ * Approve a pull request as the current user. Implicitly adds the user as a participant if they are not already.
803
+ *
804
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
805
+ *
806
+ * <strong>Deprecated since 4.2</strong>. Use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug} instead
807
+ * @param projectKey The project key.
808
+ * @param pullRequestId The ID of the pull request within the repository
809
+ * @param repositorySlug The repository slug.
810
+ * @returns RestPullRequestParticipant Details of the new participant.
811
+ * @throws ApiError
812
+ */
813
+ static approve(projectKey, pullRequestId, repositorySlug) {
814
+ return __request(OpenAPI, {
815
+ method: 'POST',
816
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/approve',
817
+ path: {
818
+ 'projectKey': projectKey,
819
+ 'pullRequestId': pullRequestId,
820
+ 'repositorySlug': repositorySlug,
821
+ },
822
+ errors: {
823
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
824
+ 404: `The specified repository or pull request does not exist.`,
825
+ 409: `The pull request is not open.`,
826
+ },
827
+ });
828
+ }
829
+ /**
830
+ * Cancel auto-merge for pull request
831
+ * Cancels a request to auto-merge the pull request, if the pull request was not merged yet.
832
+ *
833
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the repository that this pull request targets to call this resource.
834
+ * @param projectKey The project key.
835
+ * @param pullRequestId The ID of the pull request within the repository
836
+ * @param repositorySlug The repository slug.
837
+ * @returns void
838
+ * @throws ApiError
839
+ */
840
+ static cancelAutoMerge(projectKey, pullRequestId, repositorySlug) {
841
+ return __request(OpenAPI, {
842
+ method: 'DELETE',
843
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/auto-merge',
844
+ path: {
845
+ 'projectKey': projectKey,
846
+ 'pullRequestId': pullRequestId,
847
+ 'repositorySlug': repositorySlug,
848
+ },
849
+ errors: {
850
+ 401: `The currently authenticated user has insufficient permissions to modify the pull request.`,
851
+ 404: `The specified repository or pull request does not exist.`,
852
+ 409: `The specified pull request is not open.`,
853
+ },
854
+ });
855
+ }
856
+ /**
857
+ * Get auto-merge request for pull request
858
+ * Returns an auto-merge request for the pull request, if requested.
859
+ *
860
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
861
+ * @param projectKey The project key.
862
+ * @param pullRequestId The ID of the pull request within the repository
863
+ * @param repositorySlug The repository slug.
864
+ * @returns RestAutoMergeRequest The auto-merge request.
865
+ * @throws ApiError
866
+ */
867
+ static getAutoMergeRequest(projectKey, pullRequestId, repositorySlug) {
868
+ return __request(OpenAPI, {
869
+ method: 'GET',
870
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/auto-merge',
871
+ path: {
872
+ 'projectKey': projectKey,
873
+ 'pullRequestId': pullRequestId,
874
+ 'repositorySlug': repositorySlug,
875
+ },
876
+ errors: {
877
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
878
+ 404: `The specified repository or pull request does not exist.`,
879
+ },
880
+ });
881
+ }
882
+ /**
883
+ * Auto-merge pull request
884
+ * Requests the system to try merging the pull request if auto-merge was requested on it.
885
+ *
886
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the repository that this pull request targets to call this resource.
887
+ * @param projectKey The project key.
888
+ * @param pullRequestId The ID of the pull request within the repository
889
+ * @param repositorySlug The repository slug.
890
+ * @returns RestAutoMergeProcessingResult The result of trying to auto-merge the pull request.
891
+ * @throws ApiError
892
+ */
893
+ static tryAutoMerge(projectKey, pullRequestId, repositorySlug) {
894
+ return __request(OpenAPI, {
895
+ method: 'POST',
896
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/auto-merge',
897
+ path: {
898
+ 'projectKey': projectKey,
899
+ 'pullRequestId': pullRequestId,
900
+ 'repositorySlug': repositorySlug,
901
+ },
902
+ errors: {
903
+ 400: `An auto-merge request was not submitted for this pull request.`,
904
+ 401: `The currently authenticated user has insufficient permissions to modify the pull request.`,
905
+ 403: `The auto-merge setting is not enabled for the repository that this pull request targets.`,
906
+ 404: `The specified repository or pull request does not exist.`,
907
+ },
908
+ });
909
+ }
910
+ /**
911
+ * Search pull request comments
912
+ * Gets comments matching the given set of field values for the specified pull request. (Note this does <b>not</b> perform any kind of searching for comments by their text).
913
+ *
914
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
915
+ * @param projectKey The project key.
916
+ * @param pullRequestId The pull request ID.
917
+ * @param repositorySlug The repository slug.
918
+ * @param count If true only the count of the comments by state will be returned (and not the body of the comments).
919
+ * @param state
920
+ * @param states (optional). If supplied, only comments with a state in the given list will be returned. The state can be OPEN or RESOLVED.
921
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
922
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
923
+ * @returns any A page of Comments from the supplied pull request.
924
+ * @throws ApiError
925
+ */
926
+ static getComments1(projectKey, pullRequestId, repositorySlug, count, state, states, start, limit) {
927
+ return __request(OpenAPI, {
928
+ method: 'GET',
929
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments',
930
+ path: {
931
+ 'projectKey': projectKey,
932
+ 'pullRequestId': pullRequestId,
933
+ 'repositorySlug': repositorySlug,
934
+ },
935
+ query: {
936
+ 'count': count,
937
+ 'state': state,
938
+ 'states': states,
939
+ 'start': start,
940
+ 'limit': limit,
941
+ },
942
+ errors: {
943
+ 401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
944
+ 404: `The repository or pull request does not exist.`,
945
+ },
946
+ });
947
+ }
948
+ /**
949
+ * Add new blocker comment
950
+ * Add a new blocker comment.
951
+ *
952
+ * Comments can be added in a few places by setting different attributes:
953
+ *
954
+ * General pull request blocker comment:
955
+ * ```
956
+ *
957
+ * {
958
+ * "text": "A task on a pull request."
959
+ * }
960
+ * ```
961
+ *
962
+ * Blocker reply to a comment:
963
+ *
964
+ * ```
965
+ *
966
+ * {
967
+ * "text": "This reply is a task.",
968
+ * "parent": {
969
+ * "id": 1
970
+ * }
971
+ * }
972
+ * ```
973
+ *
974
+ * General blocker file comment:
975
+ *
976
+ * ```
977
+ *
978
+ * {
979
+ * "text": "A blocker comment on a file.",
980
+ * "anchor": {
981
+ * "diffType": "RANGE",
982
+ * "fromHash": "6df3858eeb9a53a911cd17e66a9174d44ffb02cd",
983
+ * "path": "path/to/file",
984
+ * "srcPath": "path/to/file",
985
+ * "toHash": "04c7c5c931b9418ca7b66f51fe934d0bd9b2ba4b"
986
+ * }
987
+ * }
988
+ * ```
989
+ *
990
+ * Blocker file line comment:
991
+ *
992
+ * ```
993
+ *
994
+ * {
995
+ * "text": "A task on a particular line within a file.",
996
+ * "anchor": {
997
+ * "diffType": "COMMIT",
998
+ * "line": 1,
999
+ * "lineType": "CONTEXT",
1000
+ * "fileType": "FROM",
1001
+ * "fromHash": "6df3858eeb9a53a911cd17e66a9174d44ffb02cd",
1002
+ * "path": "path/to/file",
1003
+ * "srcPath": "path/to/file",
1004
+ * "toHash": "04c7c5c931b9418ca7b66f51fe934d0bd9b2ba4b"
1005
+ * }
1006
+ * }
1007
+ * ```
1008
+ *
1009
+ * 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. Finally diffType refers to the type of diff the comment was added on. For backwards compatibility purposes if no diffType is provided and no fromHash/toHash pair is provided the diffType will be resolved to 'EFFECTIVE'. In any other cases the diffType is REQUIRED.
1010
+ *
1011
+ * 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:
1012
+ *
1013
+ * - 'ADDED' - for an added line;
1014
+ * - 'REMOVED' - for a removed line; or
1015
+ * - 'CONTEXT' - for a line that was unmodified but is in the vicinity of the diff.
1016
+ *
1017
+ *
1018
+ * '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:
1019
+ *
1020
+ * - 'FROM' - the source file of the diff
1021
+ * - 'TO' - the destination file of the diff
1022
+ *
1023
+ *
1024
+ * If the current user is not a participant the user is added as a watcher of the pull request.
1025
+ *
1026
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1027
+ * @param projectKey The project key.
1028
+ * @param pullRequestId The pull request ID.
1029
+ * @param repositorySlug The repository slug.
1030
+ * @param requestBody The comment to add.
1031
+ * @returns RestComment The newly created comment.
1032
+ * @throws ApiError
1033
+ */
1034
+ static createComment1(projectKey, pullRequestId, repositorySlug, requestBody) {
1035
+ return __request(OpenAPI, {
1036
+ method: 'POST',
1037
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments',
1038
+ path: {
1039
+ 'projectKey': projectKey,
1040
+ 'pullRequestId': pullRequestId,
1041
+ 'repositorySlug': repositorySlug,
1042
+ },
1043
+ body: requestBody,
1044
+ mediaType: 'application/json',
1045
+ errors: {
1046
+ 400: `The comment was not created due to a validation error.`,
1047
+ 401: `The currently authenticated user has insufficient permissions to view the pull request, create a comment or watch the pull request.`,
1048
+ 404: `Unable to find the supplied project, repository, pull request or parent comment.`,
1049
+ 409: `The new created name already exists or adding, deleting, or editing comments isn't supported on archived repositories.`,
1050
+ },
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Delete pull request comment
1055
+ * Delete a pull request comment. Anyone can delete their own comment. Only users with <strong>REPO_ADMIN</strong> and above may delete comments created by other users.
1056
+ *
1057
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1058
+ * @param projectKey The project key.
1059
+ * @param commentId The ID of the comment to retrieve.
1060
+ * @param pullRequestId The pull request ID.
1061
+ * @param repositorySlug The repository slug.
1062
+ * @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.
1063
+ * @returns void
1064
+ * @throws ApiError
1065
+ */
1066
+ static deleteComment1(projectKey, commentId, pullRequestId, repositorySlug, version) {
1067
+ return __request(OpenAPI, {
1068
+ method: 'DELETE',
1069
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments/{commentId}',
1070
+ path: {
1071
+ 'projectKey': projectKey,
1072
+ 'commentId': commentId,
1073
+ 'pullRequestId': pullRequestId,
1074
+ 'repositorySlug': repositorySlug,
1075
+ },
1076
+ query: {
1077
+ 'version': version,
1078
+ },
1079
+ errors: {
1080
+ 401: `The currently authenticated user has insufficient permissions to delete the comment.`,
1081
+ 404: `Unable to find the supplied project, repository or pull request.`,
1082
+ 409: `The comment has replies, the version supplied does not match the current version or the repository is archived.`,
1083
+ },
1084
+ });
1085
+ }
1086
+ /**
1087
+ * Get pull request comment
1088
+ * Retrieves a pull request comment.
1089
+ *
1090
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1091
+ * @param projectKey The project key.
1092
+ * @param commentId The ID of the comment to retrieve
1093
+ * @param pullRequestId The pull request ID.
1094
+ * @param repositorySlug The repository slug.
1095
+ * @returns RestComment The requested comment.
1096
+ * @throws ApiError
1097
+ */
1098
+ static getComment1(projectKey, commentId, pullRequestId, repositorySlug) {
1099
+ return __request(OpenAPI, {
1100
+ method: 'GET',
1101
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments/{commentId}',
1102
+ path: {
1103
+ 'projectKey': projectKey,
1104
+ 'commentId': commentId,
1105
+ 'pullRequestId': pullRequestId,
1106
+ 'repositorySlug': repositorySlug,
1107
+ },
1108
+ errors: {
1109
+ 401: `The currently authenticated user has insufficient permissions to view the comment.`,
1110
+ 404: `Unable to find the supplied project, repository, pull request or comment.`,
1111
+ },
1112
+ });
1113
+ }
1114
+ /**
1115
+ * Update pull request comment
1116
+ * Update a comment, with the following restrictions:
1117
+ *
1118
+ * - only the author of the comment may update the <i>text</i> of the comment
1119
+ * - only the author of the comment, the author of the pull request or repository admins and above may update the other fields of a comment
1120
+ *
1121
+ *
1122
+ * Convert a comment to a task or vice versa.
1123
+ *
1124
+ * Comments can be converted to tasks by setting the 'severity' attribute to 'BLOCKER':
1125
+ * ```
1126
+ *
1127
+ * {
1128
+ * "severity": "BLOCKER"
1129
+ * }
1130
+ *
1131
+ * ```
1132
+ *
1133
+ * Tasks can be converted to comments by setting the 'severity' attribute to 'NORMAL': ```
1134
+ *
1135
+ * {
1136
+ * "severity": "NORMAL"
1137
+ * }
1138
+ *
1139
+ * ```
1140
+ *
1141
+ * Resolve a blocker comment.
1142
+ *
1143
+ * Blocker comments can be resolved by setting the 'state' attribute to 'RESOLVED': ```
1144
+ *
1145
+ * {
1146
+ * "state": "RESOLVED"
1147
+ * }
1148
+ * ```
1149
+ *
1150
+ * <strong>Note:</strong> the 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.
1151
+ *
1152
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1153
+ * @param projectKey The project key.
1154
+ * @param commentId The ID of the comment to retrieve.
1155
+ * @param pullRequestId The pull request ID.
1156
+ * @param repositorySlug The repository slug.
1157
+ * @param requestBody The comment to add.
1158
+ * @returns RestComment The newly updated comment.
1159
+ * @throws ApiError
1160
+ */
1161
+ static updateComment1(projectKey, commentId, pullRequestId, repositorySlug, requestBody) {
1162
+ return __request(OpenAPI, {
1163
+ method: 'PUT',
1164
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments/{commentId}',
1165
+ path: {
1166
+ 'projectKey': projectKey,
1167
+ 'commentId': commentId,
1168
+ 'pullRequestId': pullRequestId,
1169
+ 'repositorySlug': repositorySlug,
1170
+ },
1171
+ body: requestBody,
1172
+ mediaType: 'application/json',
1173
+ errors: {
1174
+ 400: `The comment was not updated due to a validation error.`,
1175
+ 401: `The currently authenticated user has insufficient permissions to view the pull request, update a comment or watch the pull request.`,
1176
+ 404: `Unable to find the supplied project, repository, pull request or comment.`,
1177
+ 409: `The comment version supplied does not match the current version or the repository is archived.`,
1178
+ },
1179
+ });
1180
+ }
1181
+ /**
1182
+ * Gets pull request changes
1183
+ * Gets changes for the specified PullRequest.
1184
+ *
1185
+ * If the changeScope query parameter is set to 'UNREVIEWED', the application will attempt to stream unreviewed changes based on the lastReviewedCommit of the current user, which are the changes between the lastReviewedCommit and the latest commit of the source branch. The current user is considered to <i>not</i> have any unreviewed changes for the pull request when the lastReviewedCommit is either null (everything is unreviewed, so all changes are streamed), equal to the latest commit of the source branch (everything is reviewed), or no longer on the source branch (the source branch has been rebased). In these cases, the application will fall back to streaming all changes (the default), which is the effective diff for the pull request. The type of changes streamed can be determined by the changeScope parameter included in the properties map of the response.
1186
+ *
1187
+ * Note: This resource is currently <i>not paged</i>. The server will return at most one page. The server will truncate the number of changes to either the request's page limit or an internal maximum, whichever is smaller. The start parameter of the page request is also ignored.
1188
+ *
1189
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1190
+ * @param projectKey The project key.
1191
+ * @param pullRequestId The pull request ID.
1192
+ * @param repositorySlug The repository slug.
1193
+ * @param sinceId The since commit hash to stream changes for a RANGE arbitrary change scope
1194
+ * @param changeScope UNREVIEWED to stream the unreviewed changes for the current user (if they exist); RANGE to stream changes between two arbitrary commits (requires 'sinceId' and 'untilId'); otherwise ALL to stream all changes (the default)
1195
+ * @param untilId The until commit hash to stream changes for a RANGE arbitrary change scope
1196
+ * @param withComments true to apply comment counts in the changes (the default); otherwise, false to stream changes without comment counts
1197
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1198
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1199
+ * @returns RestChange A page of unreviewed Changes for the current user from the supplied pull request, including the unreviewedCommits in the properties map.
1200
+ * @throws ApiError
1201
+ */
1202
+ static streamChanges1(projectKey, pullRequestId, repositorySlug, sinceId, changeScope, untilId, withComments, start, limit) {
1203
+ return __request(OpenAPI, {
1204
+ method: 'GET',
1205
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/changes',
1206
+ path: {
1207
+ 'projectKey': projectKey,
1208
+ 'pullRequestId': pullRequestId,
1209
+ 'repositorySlug': repositorySlug,
1210
+ },
1211
+ query: {
1212
+ 'sinceId': sinceId,
1213
+ 'changeScope': changeScope,
1214
+ 'untilId': untilId,
1215
+ 'withComments': withComments,
1216
+ 'start': start,
1217
+ 'limit': limit,
1218
+ },
1219
+ errors: {
1220
+ 401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
1221
+ 404: `The repository or pull request does not exist.`,
1222
+ },
1223
+ });
1224
+ }
1225
+ /**
1226
+ * Get pull request comments for path
1227
+ * Gets comments for the specified pull request and path.
1228
+ *
1229
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1230
+ * @param path The path to stream comments for a given path
1231
+ * @param projectKey The project key.
1232
+ * @param pullRequestId The pull request ID.
1233
+ * @param repositorySlug The repository slug.
1234
+ * @param fromHash The from commit hash to stream comments for a RANGE or COMMIT arbitrary change scope
1235
+ * @param anchorState ACTIVE to stream the active comments; ORPHANED to stream the orphaned comments; ALL to stream both the active and the orphaned comments;
1236
+ * @param diffType
1237
+ * @param toHash The to commit hash to stream comments for a RANGE or COMMIT arbitrary change scope
1238
+ * @param state
1239
+ * @param diffTypes EFFECTIVE to stream the comments related to the effective diff of the pull request; RANGE to stream comments related to a commit range between two arbitrary commits (requires 'fromHash' and 'toHash'); COMMIT to stream comments related to a commit between two arbitrary commits (requires 'fromHash' and 'toHash')
1240
+ * @param states (optional). If supplied, only comments with a state in the given list will be returned. The state can be OPEN or RESOLVED.
1241
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1242
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1243
+ * @returns any A page of Comments from the supplied pull request.
1244
+ * @throws ApiError
1245
+ */
1246
+ static getComments2(path, projectKey, pullRequestId, repositorySlug, fromHash, anchorState, diffType, toHash, state, diffTypes, states, start, limit) {
1247
+ return __request(OpenAPI, {
1248
+ method: 'GET',
1249
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments',
1250
+ path: {
1251
+ 'projectKey': projectKey,
1252
+ 'pullRequestId': pullRequestId,
1253
+ 'repositorySlug': repositorySlug,
1254
+ },
1255
+ query: {
1256
+ 'path': path,
1257
+ 'fromHash': fromHash,
1258
+ 'anchorState': anchorState,
1259
+ 'diffType': diffType,
1260
+ 'toHash': toHash,
1261
+ 'state': state,
1262
+ 'diffTypes': diffTypes,
1263
+ 'states': states,
1264
+ 'start': start,
1265
+ 'limit': limit,
1266
+ },
1267
+ errors: {
1268
+ 401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
1269
+ 404: `The repository or pull request does not exist.`,
1270
+ },
1271
+ });
1272
+ }
1273
+ /**
1274
+ * Add pull request comment
1275
+ * Add a new comment.
1276
+ *
1277
+ * Comments can be added in a few places by setting different attributes: </p>General pull request comment:
1278
+ * <pre> {
1279
+ * "text": "An insightful general comment on a pull request."
1280
+ * }
1281
+ * </pre> Reply to a comment: <pre> {
1282
+ * "text": "A measured reply.",
1283
+ * "parent": {
1284
+ * "id": 1
1285
+ * }
1286
+ * }
1287
+ * </pre> General file comment: <pre> {
1288
+ * "text": "An insightful general comment on a file.",
1289
+ * "anchor": {
1290
+ * "diffType": "RANGE",
1291
+ * "fromHash": "6df3858eeb9a53a911cd17e66a9174d44ffb02cd",
1292
+ * "path": "path/to/file",
1293
+ * "srcPath": "path/to/file",
1294
+ * "toHash": "04c7c5c931b9418ca7b66f51fe934d0bd9b2ba4b"
1295
+ * }
1296
+ * }
1297
+ * </pre> File line comment: <pre> {
1298
+ * "text": "A pithy comment on a particular line within a file.",
1299
+ * "anchor": {
1300
+ * "diffType": "COMMIT",
1301
+ * "line": 1,
1302
+ * "lineType": "CONTEXT",
1303
+ * "fileType": "FROM",
1304
+ * "fromHash": "6df3858eeb9a53a911cd17e66a9174d44ffb02cd",
1305
+ * "path": "path/to/file",
1306
+ * "srcPath": "path/to/file",
1307
+ * "toHash": "04c7c5c931b9418ca7b66f51fe934d0bd9b2ba4b"
1308
+ * }
1309
+ * }
1310
+ * </pre>
1311
+ *
1312
+ * Add a new task.
1313
+ *
1314
+ * Tasks are just comments with the attribute 'severity' set to 'BLOCKER':
1315
+ *
1316
+ * General pull request task: <pre> {
1317
+ * "text": "A task on a pull request.",
1318
+ * "severity": "BLOCKER"
1319
+ * }
1320
+ * </pre>
1321
+ *
1322
+ * Add a pending comment.
1323
+ *
1324
+ * Pending comments are just comments with the attribute 'state' set to 'PENDING':
1325
+ *
1326
+ * Pending comment: <pre> {
1327
+ * "text": "This is a pending comment",
1328
+ * "state": "PENDING"
1329
+ * }
1330
+ * </pre>
1331
+ *
1332
+ * 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).
1333
+ *
1334
+ * fromHash and toHash refer to the sinceId / untilId (respectively) used to produce the diff on which the comment was added.
1335
+ *
1336
+ * For diffType 'COMMIT' or 'RANGE', you must specify both the fromHash and toHash. Note that this behaviour differs from `/commits/comments`
1337
+ *
1338
+ * Finally diffType refers to the type of diff the comment was added on. For backwards compatibility purposes if no diffType is provided and no fromHash/toHash pair is provided the diffType will be resolved to 'EFFECTIVE'. In any other cases the diffType is REQUIRED.
1339
+ *
1340
+ * 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:
1341
+ *
1342
+ * - 'ADDED' - for an added line;
1343
+ * - 'REMOVED' - for a removed line; or
1344
+ * - 'CONTEXT' - for a line that was unmodified but is in the vicinity of the diff.
1345
+ * </ul>'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:
1346
+ *
1347
+ * - 'FROM' - the source file of the diff
1348
+ * - 'TO' - the destination file of the diff
1349
+ * </ul>If the current user is not a participant the user is added as a watcher of the pull request.
1350
+ *
1351
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1352
+ * @param projectKey The project key.
1353
+ * @param pullRequestId The pull request ID.
1354
+ * @param repositorySlug The repository slug.
1355
+ * @param requestBody The comment to add
1356
+ * @returns RestComment The newly created comment.
1357
+ * @throws ApiError
1358
+ */
1359
+ static createComment2(projectKey, pullRequestId, repositorySlug, requestBody) {
1360
+ return __request(OpenAPI, {
1361
+ method: 'POST',
1362
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments',
1363
+ path: {
1364
+ 'projectKey': projectKey,
1365
+ 'pullRequestId': pullRequestId,
1366
+ 'repositorySlug': repositorySlug,
1367
+ },
1368
+ body: requestBody,
1369
+ mediaType: 'application/json',
1370
+ errors: {
1371
+ 400: `The comment was not created due to a validation error.`,
1372
+ 401: `The currently authenticated user has insufficient permissions to view the pull request, create a comment or watch the pull request.`,
1373
+ 404: `Unable to find the supplied project, repository, pull request or parent comment.`,
1374
+ 409: `Adding, deleting, or editing comments isn't supported on archived repositories.`,
1375
+ },
1376
+ });
1377
+ }
1378
+ /**
1379
+ * Delete a pull request comment
1380
+ * Delete a pull request comment. Anyone can delete their own comment. Only users with <strong>REPO_ADMIN</strong> and above may delete comments created by other users.
1381
+ *
1382
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1383
+ * @param projectKey The project key.
1384
+ * @param commentId The ID of the comment to retrieve.
1385
+ * @param pullRequestId The pull request ID.
1386
+ * @param repositorySlug The repository slug.
1387
+ * @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.
1388
+ * @returns void
1389
+ * @throws ApiError
1390
+ */
1391
+ static deleteComment2(projectKey, commentId, pullRequestId, repositorySlug, version) {
1392
+ return __request(OpenAPI, {
1393
+ method: 'DELETE',
1394
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}',
1395
+ path: {
1396
+ 'projectKey': projectKey,
1397
+ 'commentId': commentId,
1398
+ 'pullRequestId': pullRequestId,
1399
+ 'repositorySlug': repositorySlug,
1400
+ },
1401
+ query: {
1402
+ 'version': version,
1403
+ },
1404
+ errors: {
1405
+ 401: `The currently authenticated user has insufficient permissions to delete the comment.`,
1406
+ 404: `Unable to find the supplied project, repository or pull request.`,
1407
+ 409: `The comment has replies, the version supplied does not match the current version or the repository is archived.`,
1408
+ },
1409
+ });
1410
+ }
1411
+ /**
1412
+ * Get a pull request comment
1413
+ * Retrieves a pull request comment.
1414
+ *
1415
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1416
+ * @param projectKey The project key.
1417
+ * @param commentId The ID of the comment to retrieve.
1418
+ * @param pullRequestId The pull request ID.
1419
+ * @param repositorySlug The repository slug.
1420
+ * @returns RestComment The requested comment.
1421
+ * @throws ApiError
1422
+ */
1423
+ static getComment2(projectKey, commentId, pullRequestId, repositorySlug) {
1424
+ return __request(OpenAPI, {
1425
+ method: 'GET',
1426
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}',
1427
+ path: {
1428
+ 'projectKey': projectKey,
1429
+ 'commentId': commentId,
1430
+ 'pullRequestId': pullRequestId,
1431
+ 'repositorySlug': repositorySlug,
1432
+ },
1433
+ errors: {
1434
+ 401: `The currently authenticated user has insufficient permissions to view the comment.`,
1435
+ 404: `Unable to find the supplied project, repository, pull request or comment.`,
1436
+ },
1437
+ });
1438
+ }
1439
+ /**
1440
+ * Update pull request comment
1441
+ * Update a comment, with the following restrictions:
1442
+ *
1443
+ * - only the author of the comment may update the <i>text</i> of the comment
1444
+ * - only the author of the comment, the author of the pull request or repository admins and above may update the other fields of a comment
1445
+ * </ul>
1446
+ *
1447
+ * Convert a comment to a task or vice versa.
1448
+ *
1449
+ * Comments can be converted to tasks by setting the 'severity' attribute to 'BLOCKER':
1450
+ * <pre> {
1451
+ * "severity": "BLOCKER"
1452
+ * }
1453
+ * </pre>
1454
+ *
1455
+ * Tasks can be converted to comments by setting the 'severity' attribute to 'NORMAL': <pre> {
1456
+ * "severity": "NORMAL"
1457
+ * }
1458
+ * </pre>
1459
+ *
1460
+ * Resolve a task.
1461
+ *
1462
+ * Tasks can be resolved by setting the 'state' attribute to 'RESOLVED': <pre> {
1463
+ * "state": "RESOLVED"
1464
+ * }
1465
+ * </pre>
1466
+ *
1467
+ * <strong>Note:</strong> the 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.
1468
+ *
1469
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1470
+ * @param projectKey The project key.
1471
+ * @param commentId The ID of the comment to retrieve.
1472
+ * @param pullRequestId The pull request ID.
1473
+ * @param repositorySlug The repository slug.
1474
+ * @param requestBody The updated comment
1475
+ * @returns RestComment The newly updated comment.
1476
+ * @throws ApiError
1477
+ */
1478
+ static updateComment2(projectKey, commentId, pullRequestId, repositorySlug, requestBody) {
1479
+ return __request(OpenAPI, {
1480
+ method: 'PUT',
1481
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}',
1482
+ path: {
1483
+ 'projectKey': projectKey,
1484
+ 'commentId': commentId,
1485
+ 'pullRequestId': pullRequestId,
1486
+ 'repositorySlug': repositorySlug,
1487
+ },
1488
+ body: requestBody,
1489
+ mediaType: 'application/json',
1490
+ errors: {
1491
+ 400: `The comment was not updated due to a validation error.`,
1492
+ 401: `The currently authenticated user has insufficient permissions to view the pull request, update a comment or watch the pull request.`,
1493
+ 404: `Unable to find the supplied project, repository, pull request or comment.`,
1494
+ 409: `The comment version supplied does not match the current version or the repository is archived.`,
1495
+ },
1496
+ });
1497
+ }
1498
+ /**
1499
+ * Apply pull request suggestion
1500
+ * Apply a suggestion contained within a comment.
1501
+ * @param projectKey The project key.
1502
+ * @param commentId The ID of the comment to retrieve.
1503
+ * @param pullRequestId The pull request ID.
1504
+ * @param repositorySlug The repository slug.
1505
+ * @param requestBody A request containing other parameters required to apply a suggestion - The given versions/hashes must match the server's version/hashes or the suggestion application will fail (in order to avoid applying the suggestion to the wrong place
1506
+ * @returns void
1507
+ * @throws ApiError
1508
+ */
1509
+ static applySuggestion(projectKey, commentId, pullRequestId, repositorySlug, requestBody) {
1510
+ return __request(OpenAPI, {
1511
+ method: 'POST',
1512
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/apply-suggestion',
1513
+ path: {
1514
+ 'projectKey': projectKey,
1515
+ 'commentId': commentId,
1516
+ 'pullRequestId': pullRequestId,
1517
+ 'repositorySlug': repositorySlug,
1518
+ },
1519
+ body: requestBody,
1520
+ mediaType: 'application/json',
1521
+ errors: {
1522
+ 400: `The suggestion was not applied due to a validation error.`,
1523
+ 401: `The currently authenticated user has insufficient permissions to apply the suggestion.`,
1524
+ 404: `Unable to find the supplied project, repository, pull request or parent comment.`,
1525
+ 409: `There was an error applying the suggestion to the source branch. It must be applied manually.`,
1526
+ },
1527
+ });
1528
+ }
1529
+ /**
1530
+ * Get commit message suggestion
1531
+ * Retrieve a suggested commit message for the given Pull Request.
1532
+ * @param projectKey The project key.
1533
+ * @param pullRequestId The ID of the pull request to generate the suggestion for
1534
+ * @param repositorySlug The repository slug.
1535
+ * @returns RestCommitMessageSuggestion The suggested commit message
1536
+ * @throws ApiError
1537
+ */
1538
+ static getCommitMessageSuggestion(projectKey, pullRequestId, repositorySlug) {
1539
+ return __request(OpenAPI, {
1540
+ method: 'GET',
1541
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commit-message-suggestion',
1542
+ path: {
1543
+ 'projectKey': projectKey,
1544
+ 'pullRequestId': pullRequestId,
1545
+ 'repositorySlug': repositorySlug,
1546
+ },
1547
+ errors: {
1548
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
1549
+ 404: `The specified repository or pull request does not exist.`,
1550
+ },
1551
+ });
1552
+ }
1553
+ /**
1554
+ * Get pull request commits
1555
+ * Retrieve commits for the specified pull request.
1556
+ *
1557
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1558
+ * @param projectKey The project key.
1559
+ * @param pullRequestId ID of the pullrequest, part of the path
1560
+ * @param repositorySlug The repository slug.
1561
+ * @param avatarScheme The desired scheme for the avatar URL. If the parameter is not present URLs will use the same scheme as this request
1562
+ * @param withCounts If set to true, the service will add "authorCount" and "totalCount" at the end of the page. "authorCount" is the number of different authors and "totalCount" is the total number of commits.
1563
+ * @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 setCOMMIT to stream comments related to a commit between two arbitrary commits (requires 'fromHash' and 'toHash')
1564
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1565
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1566
+ * @returns any A page of commits from the supplied pull request.
1567
+ * @throws ApiError
1568
+ */
1569
+ static getCommits1(projectKey, pullRequestId, repositorySlug, avatarScheme, withCounts, avatarSize, start, limit) {
1570
+ return __request(OpenAPI, {
1571
+ method: 'GET',
1572
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits',
1573
+ path: {
1574
+ 'projectKey': projectKey,
1575
+ 'pullRequestId': pullRequestId,
1576
+ 'repositorySlug': repositorySlug,
1577
+ },
1578
+ query: {
1579
+ 'avatarScheme': avatarScheme,
1580
+ 'withCounts': withCounts,
1581
+ 'avatarSize': avatarSize,
1582
+ 'start': start,
1583
+ 'limit': limit,
1584
+ },
1585
+ errors: {
1586
+ 401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
1587
+ 404: `The repository or pull request does not exist.`,
1588
+ },
1589
+ });
1590
+ }
1591
+ /**
1592
+ * Decline pull request
1593
+ * Decline a pull request.
1594
+ *
1595
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1596
+ * @param projectKey The project key.
1597
+ * @param pullRequestId The pullrequest ID provided by the path
1598
+ * @param repositorySlug The repository slug.
1599
+ * @param version The current version of the pull request. If the server's version isn't the same as the specified version the operation will fail. To determine the current version of the pull request it should be fetched from the server prior to this operation. Look for the 'version' attribute in the returned JSON structure.
1600
+ * @param requestBody Optional body
1601
+ * @returns RestPullRequest The pull request was declined.
1602
+ * @throws ApiError
1603
+ */
1604
+ static decline(projectKey, pullRequestId, repositorySlug, version, requestBody) {
1605
+ return __request(OpenAPI, {
1606
+ method: 'POST',
1607
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/decline',
1608
+ path: {
1609
+ 'projectKey': projectKey,
1610
+ 'pullRequestId': pullRequestId,
1611
+ 'repositorySlug': repositorySlug,
1612
+ },
1613
+ query: {
1614
+ 'version': version,
1615
+ },
1616
+ body: requestBody,
1617
+ mediaType: 'application/json',
1618
+ errors: {
1619
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
1620
+ 404: `The specified repository or pull request does not exist.`,
1621
+ 409: `The pull request is not OPEN or has been updated since the version specified by the request.`,
1622
+ },
1623
+ });
1624
+ }
1625
+ /**
1626
+ * Get diff stats summary for pull request
1627
+ * Retrieve the diff stats summary for the given Pull Request.
1628
+ *
1629
+ * The stats summary include the total number of modified files, added lines, and deleted lines.
1630
+ *
1631
+ * Note: The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1632
+ * @param path Optional path to the file which should be diffed
1633
+ * @param projectKey The project key.
1634
+ * @param pullRequestId The ID of the pull request within the repository
1635
+ * @param repositorySlug The repository slug.
1636
+ * @param sinceId The since commit hash to stream a diff between two arbitrary hashes
1637
+ * @param srcPath The previous path to the file, if the file has been copied, moved or renamed
1638
+ * @param untilId The until commit hash to stream a diff between two arbitrary hashes
1639
+ * @param whitespace Optional whitespace flag which can be set to <code>ignore-all</code>
1640
+ * @returns RestDiffStatsSummary The diff stats summary
1641
+ * @throws ApiError
1642
+ */
1643
+ static getDiffStatsSummary2(path, projectKey, pullRequestId, repositorySlug, sinceId, srcPath, untilId, whitespace) {
1644
+ return __request(OpenAPI, {
1645
+ method: 'GET',
1646
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff-stats-summary/{path}',
1647
+ path: {
1648
+ 'path': path,
1649
+ 'projectKey': projectKey,
1650
+ 'pullRequestId': pullRequestId,
1651
+ 'repositorySlug': repositorySlug,
1652
+ },
1653
+ query: {
1654
+ 'sinceId': sinceId,
1655
+ 'srcPath': srcPath,
1656
+ 'untilId': untilId,
1657
+ 'whitespace': whitespace,
1658
+ },
1659
+ errors: {
1660
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
1661
+ 404: `The specified repository or pull request does not exist.`,
1662
+ },
1663
+ });
1664
+ }
1665
+ /**
1666
+ * Stream a diff within a pull request
1667
+ * Streams a diff within a pull request.
1668
+ *
1669
+ * If the specified file has been copied, moved or renamed, the <code>srcPath</code> must also be specified to produce the correct diff.
1670
+ *
1671
+ * To stream a raw text representation of the diff, this endpoint can be called with the request header 'Accept: text/plain'.
1672
+ *
1673
+ * Note: This RESTful endpoint 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.
1674
+ *
1675
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1676
+ * @param path The path to the file which should be diffed (optional)
1677
+ * @param projectKey The project key.
1678
+ * @param pullRequestId The pull request ID.
1679
+ * @param repositorySlug The repository slug.
1680
+ * @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
1681
+ * @param contextLines The number of context lines to include around added/removed lines in the diff
1682
+ * @param sinceId The since commit hash to stream a diff between two arbitrary hashes
1683
+ * @param srcPath The previous path to the file, if the file has been copied, moved or renamed
1684
+ * @param diffType The type of diff being requested. When withComments is true this works as a hint to the system to attach the correct set of comments to the diff. Not applicable if streaming raw diff
1685
+ * @param untilId The until commit hash to stream a diff between two arbitrary hashes
1686
+ * @param whitespace Optional whitespace flag which can be set to <code>ignore-all</code>
1687
+ * @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
1688
+ * @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
1689
+ * @returns RestDiff A page of differences from a pull request.
1690
+ * @throws ApiError
1691
+ */
1692
+ static streamDiff2(path, projectKey, pullRequestId, repositorySlug, avatarScheme, contextLines, sinceId, srcPath, diffType, untilId, whitespace, withComments, avatarSize) {
1693
+ return __request(OpenAPI, {
1694
+ method: 'GET',
1695
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path}',
1696
+ path: {
1697
+ 'path': path,
1698
+ 'projectKey': projectKey,
1699
+ 'pullRequestId': pullRequestId,
1700
+ 'repositorySlug': repositorySlug,
1701
+ },
1702
+ query: {
1703
+ 'avatarScheme': avatarScheme,
1704
+ 'contextLines': contextLines,
1705
+ 'sinceId': sinceId,
1706
+ 'srcPath': srcPath,
1707
+ 'diffType': diffType,
1708
+ 'untilId': untilId,
1709
+ 'whitespace': whitespace,
1710
+ 'withComments': withComments,
1711
+ 'avatarSize': avatarSize,
1712
+ },
1713
+ errors: {
1714
+ 400: `If the request was malformed.`,
1715
+ 401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
1716
+ 404: `The repository or pull request does not exist.`,
1717
+ },
1718
+ });
1719
+ }
1720
+ /**
1721
+ * Test if pull request can be merged
1722
+ * Test whether a pull request can be merged.
1723
+ *
1724
+ * A pull request may not be merged if:
1725
+ *
1726
+ * - there are conflicts that need to be manually resolved before merging; and/or
1727
+ * - one or more merge checks have vetoed the merge.
1728
+ *
1729
+ *
1730
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1731
+ * @param projectKey The project key.
1732
+ * @param pullRequestId The ID of the pull request within the repository
1733
+ * @param repositorySlug The repository slug.
1734
+ * @returns RestPullRequestMergeability The mergeability status of the pull request.
1735
+ * @throws ApiError
1736
+ */
1737
+ static canMerge(projectKey, pullRequestId, repositorySlug) {
1738
+ return __request(OpenAPI, {
1739
+ method: 'GET',
1740
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge',
1741
+ path: {
1742
+ 'projectKey': projectKey,
1743
+ 'pullRequestId': pullRequestId,
1744
+ 'repositorySlug': repositorySlug,
1745
+ },
1746
+ errors: {
1747
+ 401: `The currently authenticated user has insufficient permissions to view the specified pull request.`,
1748
+ 404: `The specified repository or pull request does not exist.`,
1749
+ 409: `The specified pull request is not open.`,
1750
+ },
1751
+ });
1752
+ }
1753
+ /**
1754
+ * Merge pull request
1755
+ * Merge the specified pull request immediately or set the pull request to auto-merge when all the merge checks pass by setting <strong>autoMerge</strong> field in the request body.
1756
+ *
1757
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the repository that this pull request targets to call this resource.
1758
+ * @param projectKey The project key.
1759
+ * @param pullRequestId The ID of the pull request within the repository
1760
+ * @param repositorySlug The repository slug.
1761
+ * @param version The current version of the pull request. If the server's version isn't the same as the specified version the operation will fail. To determine the current version of the pull request it should be fetched from the server prior to this operation. Look for the 'version' attribute in the returned JSON structure.
1762
+ * @param requestBody The body holder
1763
+ * @returns RestPullRequest The merged pull request.
1764
+ * @throws ApiError
1765
+ */
1766
+ static merge(projectKey, pullRequestId, repositorySlug, version, requestBody) {
1767
+ return __request(OpenAPI, {
1768
+ method: 'POST',
1769
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge',
1770
+ path: {
1771
+ 'projectKey': projectKey,
1772
+ 'pullRequestId': pullRequestId,
1773
+ 'repositorySlug': repositorySlug,
1774
+ },
1775
+ query: {
1776
+ 'version': version,
1777
+ },
1778
+ body: requestBody,
1779
+ mediaType: 'application/json',
1780
+ errors: {
1781
+ 401: `The currently authenticated user has insufficient permissions to merge the specified pull request`,
1782
+ 403: `The auto-merge setting is not enabled for the repository that this pull request targets.`,
1783
+ 404: `The specified repository or pull request does not exist.`,
1784
+ 409: `One of the following error cases occurred (check the error message for more details):
1785
+ - The pull request has conflicts.
1786
+ - A merge check vetoed the merge.
1787
+ - The specified version is out of date.
1788
+ - The specified pull request is not open.
1789
+ - The <em>to</em> repository is archived.
1790
+ `,
1791
+ },
1792
+ });
1793
+ }
1794
+ /**
1795
+ * Get the common ancestor between the latest commits of the source and target branches of the pull request
1796
+ * Returns the best common ancestor between the latest commits of the source and target branches of the pull request.
1797
+ *
1798
+ * If more than one best common ancestor exists, only one will be returned. It is unspecified which will be returned.
1799
+ * @param projectKey The project key.
1800
+ * @param pullRequestId The pull request ID.
1801
+ * @param repositorySlug The repository slug.
1802
+ * @returns RestCommit The common ancestor of the latest commits in the source and target branches of this pull request
1803
+ * @throws ApiError
1804
+ */
1805
+ static getMergeBase1(projectKey, pullRequestId, repositorySlug) {
1806
+ return __request(OpenAPI, {
1807
+ method: 'GET',
1808
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/merge-base',
1809
+ path: {
1810
+ 'projectKey': projectKey,
1811
+ 'pullRequestId': pullRequestId,
1812
+ 'repositorySlug': repositorySlug,
1813
+ },
1814
+ errors: {
1815
+ 404: `The project, repository, or pull request does not exist`,
1816
+ },
1817
+ });
1818
+ }
1819
+ /**
1820
+ * @deprecated
1821
+ * Unassign pull request participant
1822
+ * Unassigns a participant from the REVIEWER role they may have been given in a pull request.
1823
+ *
1824
+ * If the participant has no explicit role this method has no effect.
1825
+ *
1826
+ * Afterwards, the user will still remain a participant in the pull request but their role will be reduced to PARTICIPANT. This is because once made a participant of a pull request, a user will forever remain a participant. Only their role may be altered.
1827
+ *
1828
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the repository that this pull request targets to call this resource.
1829
+ *
1830
+ * <strong>Deprecated since 4.2</strong>. Use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug} instead.
1831
+ * @param projectKey The project key.
1832
+ * @param pullRequestId The ID of the pull request within the repository
1833
+ * @param repositorySlug The repository slug.
1834
+ * @param username
1835
+ * @returns void
1836
+ * @throws ApiError
1837
+ */
1838
+ static unassignParticipantRole1(projectKey, pullRequestId, repositorySlug, username) {
1839
+ return __request(OpenAPI, {
1840
+ method: 'DELETE',
1841
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants',
1842
+ path: {
1843
+ 'projectKey': projectKey,
1844
+ 'pullRequestId': pullRequestId,
1845
+ 'repositorySlug': repositorySlug,
1846
+ },
1847
+ query: {
1848
+ 'username': username,
1849
+ },
1850
+ errors: {
1851
+ 401: `The currently authenticated user has insufficient permissions to update the pull request.`,
1852
+ 404: `The specified repository or pull request does not exist.`,
1853
+ 409: `Removing reviewers isn't supported on archived repositories.`,
1854
+ },
1855
+ });
1856
+ }
1857
+ /**
1858
+ * Get pull request participants
1859
+ * Retrieves a page of the participants for a given pull request.
1860
+ *
1861
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1862
+ * @param projectKey The project key.
1863
+ * @param pullRequestId The ID of the pull request within the repository
1864
+ * @param repositorySlug The repository slug.
1865
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1866
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1867
+ * @returns any Details of the participants in this pull request.
1868
+ * @throws ApiError
1869
+ */
1870
+ static listParticipants(projectKey, pullRequestId, repositorySlug, start, limit) {
1871
+ return __request(OpenAPI, {
1872
+ method: 'GET',
1873
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants',
1874
+ path: {
1875
+ 'projectKey': projectKey,
1876
+ 'pullRequestId': pullRequestId,
1877
+ 'repositorySlug': repositorySlug,
1878
+ },
1879
+ query: {
1880
+ 'start': start,
1881
+ 'limit': limit,
1882
+ },
1883
+ errors: {
1884
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
1885
+ 404: `The specified repository or pull request does not exist.`,
1886
+ },
1887
+ });
1888
+ }
1889
+ /**
1890
+ * Assign pull request participant role
1891
+ * Assigns a participant to an explicit role in pull request. Currently only the REVIEWER role may be assigned.
1892
+ *
1893
+ * If the user is not yet a participant in the pull request, they are made one and assigned the supplied role.
1894
+ *
1895
+ * If the user is already a participant in the pull request, their previous role is replaced with the supplied role unless they are already assigned the AUTHOR role which cannot be changed and will result in a Bad Request (400) response code.
1896
+ *
1897
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the repository that this pull request targets to call this resource.
1898
+ * @param projectKey The project key.
1899
+ * @param pullRequestId The ID of the pull request within the repository
1900
+ * @param repositorySlug The repository slug.
1901
+ * @param requestBody The participant to be added to the pull request, includes the user and their role
1902
+ * @returns RestPullRequestParticipant Details of the participants in this pull request.
1903
+ * @throws ApiError
1904
+ */
1905
+ static assignParticipantRole(projectKey, pullRequestId, repositorySlug, requestBody) {
1906
+ return __request(OpenAPI, {
1907
+ method: 'POST',
1908
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants',
1909
+ path: {
1910
+ 'projectKey': projectKey,
1911
+ 'pullRequestId': pullRequestId,
1912
+ 'repositorySlug': repositorySlug,
1913
+ },
1914
+ body: requestBody,
1915
+ mediaType: 'application/json',
1916
+ errors: {
1917
+ 400: `The request does not have the username and role, or is attempting an invalid assignment.`,
1918
+ 401: `The currently authenticated user has insufficient permissions to update the pull request.`,
1919
+ 404: `The specified repository or pull request does not exist.`,
1920
+ 409: `Adding reviewers isn't supported on archived repositories`,
1921
+ },
1922
+ });
1923
+ }
1924
+ /**
1925
+ * Unassign pull request participant
1926
+ * Unassigns a participant from the REVIEWER role they may have been given in a pull request.
1927
+ *
1928
+ * If the participant has no explicit role this method has no effect.
1929
+ *
1930
+ * Afterwards, the user will still remain a participant in the pull request but their role will be reduced to PARTICIPANT. This is because once made a participant of a pull request, a user will forever remain a participant. Only their role may be altered.
1931
+ *
1932
+ * The authenticated user must have <strong>REPO_WRITE</strong> permission for the repository that this pull request targets to call this resource.
1933
+ * @param projectKey The project key.
1934
+ * @param userSlug The slug for the user being unassigned
1935
+ * @param pullRequestId The ID of the pull request within the repository
1936
+ * @param repositorySlug The repository slug.
1937
+ * @returns void
1938
+ * @throws ApiError
1939
+ */
1940
+ static unassignParticipantRole(projectKey, userSlug, pullRequestId, repositorySlug) {
1941
+ return __request(OpenAPI, {
1942
+ method: 'DELETE',
1943
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug}',
1944
+ path: {
1945
+ 'projectKey': projectKey,
1946
+ 'userSlug': userSlug,
1947
+ 'pullRequestId': pullRequestId,
1948
+ 'repositorySlug': repositorySlug,
1949
+ },
1950
+ errors: {
1951
+ 400: `The request does not have the username.`,
1952
+ 401: `The currently authenticated user has insufficient permissions to update the pull request.`,
1953
+ 404: `The specified repository or pull request does not exist.`,
1954
+ 409: `Removing reviewers isn't supported on archived repositories.`,
1955
+ },
1956
+ });
1957
+ }
1958
+ /**
1959
+ * Change pull request status
1960
+ * Change the current user's status for a pull request. Implicitly adds the user as a participant if they are not already. If the current user is the author, this method will fail.
1961
+ *
1962
+ * The possible values for {@code status} are <strong>UNAPPROVED</strong>, <strong>NEEDS_WORK</strong> (which is referred to as "Requested changes" in the frontend from 8.10 onward), or <strong>APPROVED</strong>.
1963
+ *
1964
+ * If the new {@code status} is <strong>NEEDS_WORK</strong> or <strong>APPROVED</strong> then the {@code lastReviewedCommit} for the participant will be updated to the latest commit of the source branch of the pull request.
1965
+ *
1966
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
1967
+ * @param projectKey The project key.
1968
+ * @param userSlug The slug for the user changing their status
1969
+ * @param pullRequestId The ID of the pull request within the repository
1970
+ * @param repositorySlug The repository slug.
1971
+ * @param requestBody The participant representing the status to set, includes the status of the participant and last reviewed commit. If last reviewed commit is provided, it will be used to update the participant status. The operation will fail if the latest commit of the pull request does not match the provided last reviewed commit. If last reviewed commit is not provided, the latest commit of the pull request will be used for the update by default.
1972
+ * @param version The current version of the pull request. If the server's version isn't the same as the specified version the operation will fail. To determine the current version of the pull request it should be fetched from the server prior to this operation. Look for the 'version' attribute in the returned JSON structure. Note: This parameter is deprecated. Use last reviewed commit in request body instead
1973
+ * @returns RestPullRequestParticipant Details of the new participant.
1974
+ * @throws ApiError
1975
+ */
1976
+ static updateStatus(projectKey, userSlug, pullRequestId, repositorySlug, requestBody, version) {
1977
+ return __request(OpenAPI, {
1978
+ method: 'PUT',
1979
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug}',
1980
+ path: {
1981
+ 'projectKey': projectKey,
1982
+ 'userSlug': userSlug,
1983
+ 'pullRequestId': pullRequestId,
1984
+ 'repositorySlug': repositorySlug,
1985
+ },
1986
+ query: {
1987
+ 'version': version,
1988
+ },
1989
+ body: requestBody,
1990
+ mediaType: 'application/json',
1991
+ errors: {
1992
+ 400: `The specified status was invalid or the currently authenticated user is the author of the PR and cannot have its status updated.`,
1993
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
1994
+ 404: `The specified repository or pull request does not exist.`,
1995
+ 409: `The pull request is not open, or has been updated since the last reviewed commit specified by the request.`,
1996
+ },
1997
+ });
1998
+ }
1999
+ /**
2000
+ * Re-open pull request
2001
+ * Re-open a declined pull request.
2002
+ *
2003
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
2004
+ * @param projectKey The project key.
2005
+ * @param pullRequestId The ID of the pull request within the repository
2006
+ * @param repositorySlug The repository slug.
2007
+ * @param version The current version of the pull request. If the server's version isn't the same as the specified version the operation will fail. To determine the current version of the pull request it should be fetched from the server prior to this operation. Look for the 'version' attribute in the returned JSON structure.
2008
+ * @param requestBody The body holder
2009
+ * @returns RestPullRequest The merged pull request.
2010
+ * @throws ApiError
2011
+ */
2012
+ static reopen(projectKey, pullRequestId, repositorySlug, version, requestBody) {
2013
+ return __request(OpenAPI, {
2014
+ method: 'POST',
2015
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/reopen',
2016
+ path: {
2017
+ 'projectKey': projectKey,
2018
+ 'pullRequestId': pullRequestId,
2019
+ 'repositorySlug': repositorySlug,
2020
+ },
2021
+ query: {
2022
+ 'version': version,
2023
+ },
2024
+ body: requestBody,
2025
+ mediaType: 'application/json',
2026
+ errors: {
2027
+ 401: `The currently authenticated user has insufficient permissions to reopen the specified pull request.`,
2028
+ 404: `The specified repository or pull request does not exist.`,
2029
+ 409: `One of the following error cases occurred (check the error message for more details):
2030
+ - The pull request is not in a declined state.
2031
+ - The specified version is out of date.
2032
+ - The <em>to</em> repository is archived.
2033
+ `,
2034
+ },
2035
+ });
2036
+ }
2037
+ /**
2038
+ * Discard pull request review
2039
+ * Discard a pull request review for the authenticated user.
2040
+ *
2041
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository to call this resource.
2042
+ * @param projectKey The project key.
2043
+ * @param pullRequestId The pull request ID.
2044
+ * @param repositorySlug The repository slug.
2045
+ * @returns void
2046
+ * @throws ApiError
2047
+ */
2048
+ static discardReview(projectKey, pullRequestId, repositorySlug) {
2049
+ return __request(OpenAPI, {
2050
+ method: 'DELETE',
2051
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/review',
2052
+ path: {
2053
+ 'projectKey': projectKey,
2054
+ 'pullRequestId': pullRequestId,
2055
+ 'repositorySlug': repositorySlug,
2056
+ },
2057
+ errors: {
2058
+ 401: `The currently authenticated user has insufficient permissions to discard the the pull request review`,
2059
+ 404: `The specified pull request or repository does not exist.`,
2060
+ },
2061
+ });
2062
+ }
2063
+ /**
2064
+ * Get pull request comment thread
2065
+ * Get the <code>CommentThread</code> threads which have <code>Comment</code> comments that have a <code>CommentState#PENDING</code> pending state and are part of the pull request review for the authenticated user.
2066
+ * @param projectKey The project key.
2067
+ * @param pullRequestId The pull request ID.
2068
+ * @param repositorySlug The repository slug.
2069
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2070
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2071
+ * @returns any A page of Comments from the supplied pull request.
2072
+ * @throws ApiError
2073
+ */
2074
+ static getReview(projectKey, pullRequestId, repositorySlug, start, limit) {
2075
+ return __request(OpenAPI, {
2076
+ method: 'GET',
2077
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/review',
2078
+ path: {
2079
+ 'projectKey': projectKey,
2080
+ 'pullRequestId': pullRequestId,
2081
+ 'repositorySlug': repositorySlug,
2082
+ },
2083
+ query: {
2084
+ 'start': start,
2085
+ 'limit': limit,
2086
+ },
2087
+ errors: {
2088
+ 401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
2089
+ 404: `The repository or pull request does not exist.`,
2090
+ },
2091
+ });
2092
+ }
2093
+ /**
2094
+ * Complete pull request review
2095
+ * Complete a review on a pull request.
2096
+ * @param projectKey The project key.
2097
+ * @param pullRequestId The pull request ID.
2098
+ * @param repositorySlug The repository slug.
2099
+ * @param version The current version of the pull request. If the server's version isn't the same as the specified version the operation will fail. To determine the current version of the pull request it should be fetched from the server prior to this operation. Look for the 'version' attribute in the returned JSON structure. Note: This parameter is deprecated. Use last reviewed commit in request body instead
2100
+ * @param requestBody The REST request which contains comment text, last reviewed commit and participant status. If last reviewed commit is provided, it will be used to update the participant status. The operation will fail if the latest commit of the pull request does not match the provided last reviewed commit. If last reviewed commit is not provided, the latest commit of the pull request will be used for the update by default.
2101
+ * @returns any Getting back the number of published comments and completing the review on a pull request.
2102
+ * @throws ApiError
2103
+ */
2104
+ static finishReview(projectKey, pullRequestId, repositorySlug, version, requestBody) {
2105
+ return __request(OpenAPI, {
2106
+ method: 'PUT',
2107
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/review',
2108
+ path: {
2109
+ 'projectKey': projectKey,
2110
+ 'pullRequestId': pullRequestId,
2111
+ 'repositorySlug': repositorySlug,
2112
+ },
2113
+ query: {
2114
+ 'version': version,
2115
+ },
2116
+ body: requestBody,
2117
+ mediaType: 'application/json',
2118
+ errors: {
2119
+ 400: `The request is invalid when there is no request body provided, or the participant status in the request is invalid.`,
2120
+ 401: `The currently authenticated user has insufficient permissions to view the pull request, update a comment or watch the pull request.`,
2121
+ 404: `There is no pull request review for the user to finish.`,
2122
+ 409: `The pull request has been updated since the last reviewed commit specified by the request, or reviews cannot be made on pull requests in archived repositories.`,
2123
+ },
2124
+ });
2125
+ }
2126
+ /**
2127
+ * Stop watching pull request
2128
+ * Remove the authenticated user as a watcher for the specified pull request.
2129
+ *
2130
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
2131
+ * @param projectKey The project key.
2132
+ * @param pullRequestId The pull request ID.
2133
+ * @param repositorySlug The repository slug.
2134
+ * @returns void
2135
+ * @throws ApiError
2136
+ */
2137
+ static unwatch1(projectKey, pullRequestId, repositorySlug) {
2138
+ return __request(OpenAPI, {
2139
+ method: 'DELETE',
2140
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/watch',
2141
+ path: {
2142
+ 'projectKey': projectKey,
2143
+ 'pullRequestId': pullRequestId,
2144
+ 'repositorySlug': repositorySlug,
2145
+ },
2146
+ errors: {
2147
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
2148
+ 404: `The specified repository or pull request does not exist.`,
2149
+ },
2150
+ });
2151
+ }
2152
+ /**
2153
+ * Watch pull request
2154
+ * Add the authenticated user as a watcher for the specified pull request.
2155
+ *
2156
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the repository that this pull request targets to call this resource.
2157
+ * @param projectKey The project key.
2158
+ * @param pullRequestId The pull request ID.
2159
+ * @param repositorySlug The repository slug.
2160
+ * @returns void
2161
+ * @throws ApiError
2162
+ */
2163
+ static watch1(projectKey, pullRequestId, repositorySlug) {
2164
+ return __request(OpenAPI, {
2165
+ method: 'POST',
2166
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/watch',
2167
+ path: {
2168
+ 'projectKey': projectKey,
2169
+ 'pullRequestId': pullRequestId,
2170
+ 'repositorySlug': repositorySlug,
2171
+ },
2172
+ errors: {
2173
+ 401: `The currently authenticated user has insufficient permissions to view the pull request.`,
2174
+ 404: `The specified repository or pull request does not exist.`,
2175
+ },
2176
+ });
2177
+ }
2178
+ /**
2179
+ * Get all reviewer groups
2180
+ * Retrieve a page of reviewer groups of a given scope.
2181
+ *
2182
+ * The authenticated user must have <b>REPO_READ</b> permission for the specified repository to call this resource.
2183
+ * @param projectKey The project key.
2184
+ * @param repositorySlug The repository slug.
2185
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2186
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2187
+ * @returns any A `page` of reviewer group(s) of the provided scope and its inherited scope.
2188
+ * @throws ApiError
2189
+ */
2190
+ static getReviewerGroups1(projectKey, repositorySlug, start, limit) {
2191
+ return __request(OpenAPI, {
2192
+ method: 'GET',
2193
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/reviewer-groups',
2194
+ path: {
2195
+ 'projectKey': projectKey,
2196
+ 'repositorySlug': repositorySlug,
2197
+ },
2198
+ query: {
2199
+ 'start': start,
2200
+ 'limit': limit,
2201
+ },
2202
+ errors: {
2203
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2204
+ 404: `The repository scope supplied does not exist.`,
2205
+ },
2206
+ });
2207
+ }
2208
+ /**
2209
+ * Create reviewer group
2210
+ * Create a reviewer group.
2211
+ *
2212
+ * The authenticated user must have <b>REPO_ADMIN</b> permission for the specified repository to call this resource.
2213
+ * @param projectKey The project key.
2214
+ * @param repositorySlug The repository slug.
2215
+ * @param requestBody The request containing the details of the reviewer group.
2216
+ * @returns RestReviewerGroup The newly created reviewer group.
2217
+ * @throws ApiError
2218
+ */
2219
+ static create2(projectKey, repositorySlug, requestBody) {
2220
+ return __request(OpenAPI, {
2221
+ method: 'POST',
2222
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/reviewer-groups',
2223
+ path: {
2224
+ 'projectKey': projectKey,
2225
+ 'repositorySlug': repositorySlug,
2226
+ },
2227
+ body: requestBody,
2228
+ mediaType: 'application/json',
2229
+ errors: {
2230
+ 400: `The request is missing a reviewer group name.`,
2231
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2232
+ 404: `The repository scope supplied does not exist.`,
2233
+ 409: `The new created name already exists.`,
2234
+ },
2235
+ });
2236
+ }
2237
+ /**
2238
+ * Delete reviewer group
2239
+ * Deletes a reviewer group.
2240
+ *
2241
+ * The authenticated user must have <b>REPO_ADMIN</b> permission for the specified repository to call this resource.
2242
+ * @param projectKey The project key.
2243
+ * @param id The ID of the reviewer group to be deleted
2244
+ * @param repositorySlug The repository slug.
2245
+ * @returns void
2246
+ * @throws ApiError
2247
+ */
2248
+ static delete7(projectKey, id, repositorySlug) {
2249
+ return __request(OpenAPI, {
2250
+ method: 'DELETE',
2251
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/reviewer-groups/{id}',
2252
+ path: {
2253
+ 'projectKey': projectKey,
2254
+ 'id': id,
2255
+ 'repositorySlug': repositorySlug,
2256
+ },
2257
+ errors: {
2258
+ 401: `The currently authenticated user has insufficient permissions to delete the reviewer group in this repository.`,
2259
+ 404: `Unable to find the supplied reviewer group ID.`,
2260
+ },
2261
+ });
2262
+ }
2263
+ /**
2264
+ * Get reviewer group
2265
+ * Retrieve a reviewer group.
2266
+ *
2267
+ * The authenticated user must have <b>REPO_READ</b> permission for the specified repository to call this resource.
2268
+ * @param projectKey The project key.
2269
+ * @param id The ID of the reviewer group to be retrieved
2270
+ * @param repositorySlug The repository slug.
2271
+ * @returns RestReviewerGroup The reviewer group.
2272
+ * @throws ApiError
2273
+ */
2274
+ static getReviewerGroup1(projectKey, id, repositorySlug) {
2275
+ return __request(OpenAPI, {
2276
+ method: 'GET',
2277
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/reviewer-groups/{id}',
2278
+ path: {
2279
+ 'projectKey': projectKey,
2280
+ 'id': id,
2281
+ 'repositorySlug': repositorySlug,
2282
+ },
2283
+ errors: {
2284
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2285
+ 404: `The ID supplied does not exist.`,
2286
+ },
2287
+ });
2288
+ }
2289
+ /**
2290
+ * Update reviewer group attributes
2291
+ * Update the attributes of a reviewer group.
2292
+ *
2293
+ * The authenticated user must have <b>REPO_ADMIN</b> permission for the specified repository to call this resource.
2294
+ * @param projectKey The project key.
2295
+ * @param id The ID of the reviewer group to be updated
2296
+ * @param repositorySlug The repository slug.
2297
+ * @param requestBody The request containing the attributes of the reviewer group to be updated. Only the attributes to be updated need to be present in this object.
2298
+ * @returns RestReviewerGroup The updated reviewer group.
2299
+ * @throws ApiError
2300
+ */
2301
+ static update2(projectKey, id, repositorySlug, requestBody) {
2302
+ return __request(OpenAPI, {
2303
+ method: 'PUT',
2304
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/reviewer-groups/{id}',
2305
+ path: {
2306
+ 'projectKey': projectKey,
2307
+ 'id': id,
2308
+ 'repositorySlug': repositorySlug,
2309
+ },
2310
+ body: requestBody,
2311
+ mediaType: 'application/json',
2312
+ errors: {
2313
+ 400: `The updated attribute does not meet the requirements. E.g. the name exceeds 50 characters, setting name to blank.`,
2314
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2315
+ 404: `The repository scope supplied does not exist.`,
2316
+ 409: `The new updated name already exists.`,
2317
+ },
2318
+ });
2319
+ }
2320
+ /**
2321
+ * Get reviewer group users
2322
+ * Retrieve a list of the users of a reviewer group.
2323
+ *
2324
+ * This does not return all the users of the group, only the users who are licensed and have <b>REPO_READ</b> permission for the specified repository.
2325
+ *
2326
+ * The authenticated user must have <b>REPO_READ</b> permission for the specified repository to call this resource.
2327
+ * @param projectKey The project key.
2328
+ * @param id The ID of the reviewer group to be retrieved
2329
+ * @param repositorySlug The repository slug.
2330
+ * @returns RestApplicationUser The list of users of a reviewer group.
2331
+ * @throws ApiError
2332
+ */
2333
+ static getUsers(projectKey, id, repositorySlug) {
2334
+ return __request(OpenAPI, {
2335
+ method: 'GET',
2336
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/settings/reviewer-groups/{id}/users',
2337
+ path: {
2338
+ 'projectKey': projectKey,
2339
+ 'id': id,
2340
+ 'repositorySlug': repositorySlug,
2341
+ },
2342
+ errors: {
2343
+ 401: `The currently authenticated user has insufficient permissions to view the repository.`,
2344
+ 404: `The ID supplied does not exist.d`,
2345
+ },
2346
+ });
2347
+ }
2348
+ /**
2349
+ * Get all reviewer groups
2350
+ * Retrieve a page of reviewer groups of a given scope.
2351
+ *
2352
+ * The authenticated user must have <b>PROJECT_READ</b> permission for the specified project to call this resource.
2353
+ * @param projectKey The project key.
2354
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
2355
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
2356
+ * @returns any A page of reviewer group(s) of the provided scope.
2357
+ * @throws ApiError
2358
+ */
2359
+ static getReviewerGroups(projectKey, start, limit) {
2360
+ return __request(OpenAPI, {
2361
+ method: 'GET',
2362
+ url: '/api/latest/projects/{projectKey}/settings/reviewer-groups',
2363
+ path: {
2364
+ 'projectKey': projectKey,
2365
+ },
2366
+ query: {
2367
+ 'start': start,
2368
+ 'limit': limit,
2369
+ },
2370
+ errors: {
2371
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
2372
+ 404: `The project scope supplied does not exist.`,
2373
+ },
2374
+ });
2375
+ }
2376
+ /**
2377
+ * Create reviewer group
2378
+ * Create a reviewer group.
2379
+ *
2380
+ * The authenticated user must have <b>PROJECT_ADMIN</b> permission for the specified project to call this resource.
2381
+ * @param projectKey The project key.
2382
+ * @param requestBody The reviewer group to be create
2383
+ * @returns RestReviewerGroup The newly created reviewer group.
2384
+ * @throws ApiError
2385
+ */
2386
+ static create1(projectKey, requestBody) {
2387
+ return __request(OpenAPI, {
2388
+ method: 'POST',
2389
+ url: '/api/latest/projects/{projectKey}/settings/reviewer-groups',
2390
+ path: {
2391
+ 'projectKey': projectKey,
2392
+ },
2393
+ body: requestBody,
2394
+ mediaType: 'application/json',
2395
+ errors: {
2396
+ 400: `The request is missing a reviewer group name.`,
2397
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
2398
+ 404: `The project scope supplied does not exist.`,
2399
+ 409: `The new created name already exists.`,
2400
+ },
2401
+ });
2402
+ }
2403
+ /**
2404
+ * Delete reviewer group
2405
+ * Deletes a reviewer group.
2406
+ *
2407
+ * The authenticated user must have <b>PROJECT_ADMIN</b> permission for the specified project to call this resource.
2408
+ * @param projectKey The project key.
2409
+ * @param id The ID of the reviewer group to be deleted
2410
+ * @returns void
2411
+ * @throws ApiError
2412
+ */
2413
+ static delete6(projectKey, id) {
2414
+ return __request(OpenAPI, {
2415
+ method: 'DELETE',
2416
+ url: '/api/latest/projects/{projectKey}/settings/reviewer-groups/{id}',
2417
+ path: {
2418
+ 'projectKey': projectKey,
2419
+ 'id': id,
2420
+ },
2421
+ errors: {
2422
+ 401: `The currently authenticated user has insufficient permissions to delete the reviewer group in this project.`,
2423
+ 404: `Unable to find the supplied reviewer group ID.`,
2424
+ },
2425
+ });
2426
+ }
2427
+ /**
2428
+ * Get reviewer group
2429
+ * Retrieve a reviewer group.
2430
+ *
2431
+ * The authenticated user must have <b>PROJECT_READ</b> permission for the specified project to call this resource.
2432
+ * @param projectKey The project key.
2433
+ * @param id The ID of the reviewer group to be retrieved
2434
+ * @returns RestReviewerGroup The reviewer group.
2435
+ * @throws ApiError
2436
+ */
2437
+ static getReviewerGroup(projectKey, id) {
2438
+ return __request(OpenAPI, {
2439
+ method: 'GET',
2440
+ url: '/api/latest/projects/{projectKey}/settings/reviewer-groups/{id}',
2441
+ path: {
2442
+ 'projectKey': projectKey,
2443
+ 'id': id,
2444
+ },
2445
+ errors: {
2446
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
2447
+ 404: `The ID supplied does not exist.`,
2448
+ },
2449
+ });
2450
+ }
2451
+ /**
2452
+ * Update reviewer group attributes
2453
+ * Update the attributes of a reviewer group.
2454
+ *
2455
+ * The authenticated user must have <b>PROJECT_READ</b> permission for the specified project to call this resource.
2456
+ * @param projectKey The project key.
2457
+ * @param id The ID of the reviewer group to be updated
2458
+ * @param requestBody The request containing the attributes of the reviewer group to be updated. Only the attributes to be updated need to be present in this object.
2459
+ * @returns RestReviewerGroup A page of changes.
2460
+ * @throws ApiError
2461
+ */
2462
+ static update1(projectKey, id, requestBody) {
2463
+ return __request(OpenAPI, {
2464
+ method: 'PUT',
2465
+ url: '/api/latest/projects/{projectKey}/settings/reviewer-groups/{id}',
2466
+ path: {
2467
+ 'projectKey': projectKey,
2468
+ 'id': id,
2469
+ },
2470
+ body: requestBody,
2471
+ mediaType: 'application/json',
2472
+ errors: {
2473
+ 400: `The updated attribute does not meet the requirements. E.g. the name exceeds 50 characters, setting name to blank.`,
2474
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
2475
+ 404: `The project scope supplied does not exist.`,
2476
+ 409: `The new updated name already exists.`,
2477
+ },
2478
+ });
2479
+ }
2480
+ }
2481
+ //# sourceMappingURL=PullRequestsService.js.map