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