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,2096 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class ProjectService {
4
+ /**
5
+ * Deletes all default tasks for the project
6
+ * Delete all the default tasks for the supplied project
7
+ *
8
+ * The authenticated user must have **PROJECT_ADMIN** permission for this project to call the resource.
9
+ * @param projectKey The project key.
10
+ * @returns void
11
+ * @throws ApiError
12
+ */
13
+ static deleteAllDefaultTasks(projectKey) {
14
+ return __request(OpenAPI, {
15
+ method: 'DELETE',
16
+ url: '/default-tasks/latest/projects/{projectKey}/tasks',
17
+ path: {
18
+ 'projectKey': projectKey,
19
+ },
20
+ errors: {
21
+ 401: `The currently authenticated user has insufficient permissions to delete default tasks`,
22
+ 404: `The specified project does not exist`,
23
+ },
24
+ });
25
+ }
26
+ /**
27
+ * Get a page of default tasks
28
+ * Retrieves the default tasks for the supplied project.
29
+ *
30
+ * The authenticated user must have **PROJECT_VIEW** permission for this project to call the resource.
31
+ * @param projectKey The project key.
32
+ * @param markup If present or "true", includes a markup-rendered description
33
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
34
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
35
+ * @returns any A page of default tasks
36
+ * @throws ApiError
37
+ */
38
+ static getDefaultTasks(projectKey, markup, start, limit) {
39
+ return __request(OpenAPI, {
40
+ method: 'GET',
41
+ url: '/default-tasks/latest/projects/{projectKey}/tasks',
42
+ path: {
43
+ 'projectKey': projectKey,
44
+ },
45
+ query: {
46
+ 'markup': markup,
47
+ 'start': start,
48
+ 'limit': limit,
49
+ },
50
+ errors: {
51
+ 401: `The currently authenticated user has insufficient permissions to delete default tasks`,
52
+ 404: `The specified project does not exist`,
53
+ },
54
+ });
55
+ }
56
+ /**
57
+ * Add a default task
58
+ * Creates a default task for the project.
59
+ *
60
+ * The authenticated user must have **PROJECT_ADMIN** permission for this project to call the resource.
61
+ * @param projectKey The project key.
62
+ * @param requestBody The task to be added
63
+ * @returns RestDefaultTask The default task
64
+ * @throws ApiError
65
+ */
66
+ static addDefaultTask(projectKey, requestBody) {
67
+ return __request(OpenAPI, {
68
+ method: 'POST',
69
+ url: '/default-tasks/latest/projects/{projectKey}/tasks',
70
+ path: {
71
+ 'projectKey': projectKey,
72
+ },
73
+ body: requestBody,
74
+ mediaType: 'application/json',
75
+ errors: {
76
+ 400: `One or more of the following error cases occurred (check the error message for more details):
77
+ - the description is empty- the sourceMatcher or targetMatcher is invalid`,
78
+ 401: `The currently authenticated user has insufficient permissions to add a default task`,
79
+ 404: `The specified project does not exist`,
80
+ },
81
+ });
82
+ }
83
+ /**
84
+ * Delete a specific default task
85
+ * Delete a specific default task for a project.
86
+ *
87
+ * The authenticated user must have **PROJECT_ADMIN** permission for this project to call the resource.
88
+ * @param projectKey The project key.
89
+ * @param taskId The ID of the default task
90
+ * @returns void
91
+ * @throws ApiError
92
+ */
93
+ static deleteDefaultTask(projectKey, taskId) {
94
+ return __request(OpenAPI, {
95
+ method: 'DELETE',
96
+ url: '/default-tasks/latest/projects/{projectKey}/tasks/{taskId}',
97
+ path: {
98
+ 'projectKey': projectKey,
99
+ 'taskId': taskId,
100
+ },
101
+ errors: {
102
+ 401: `The currently authenticated user has insufficient permissions to delete default tasks`,
103
+ 404: `The specified project or task does not exist`,
104
+ },
105
+ });
106
+ }
107
+ /**
108
+ * Update a default task
109
+ * Updates a default task for the supplied project.
110
+ *
111
+ * The authenticated user must have **PROJECT_ADMIN** permission for this project to call the resource.
112
+ * @param projectKey The project key.
113
+ * @param taskId The ID of the default task
114
+ * @param requestBody The task to be updated
115
+ * @returns RestDefaultTask The default task
116
+ * @throws ApiError
117
+ */
118
+ static updateDefaultTask(projectKey, taskId, requestBody) {
119
+ return __request(OpenAPI, {
120
+ method: 'PUT',
121
+ url: '/default-tasks/latest/projects/{projectKey}/tasks/{taskId}',
122
+ path: {
123
+ 'projectKey': projectKey,
124
+ 'taskId': taskId,
125
+ },
126
+ body: requestBody,
127
+ mediaType: 'application/json',
128
+ errors: {
129
+ 400: `One or more of the following error cases occurred (check the error message for more details):
130
+ - the provided taskId does not exist- the description is empty- the sourceMatcher or targetMatcher is invalid`,
131
+ 401: `The currently authenticated user has insufficient permissions to add a default task`,
132
+ 404: `The specified project does not exist`,
133
+ },
134
+ });
135
+ }
136
+ /**
137
+ * Search for ref restrictions
138
+ * Search for restrictions using the supplied parameters.
139
+ *
140
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission or higher to call this resource. Only authenticated users may call this resource.
141
+ * @param projectKey The project key.
142
+ * @param matcherType Matcher type to filter on
143
+ * @param matcherId Matcher id to filter on. Requires the matcherType parameter to be specified also.
144
+ * @param type Types of restrictions to filter on.
145
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
146
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
147
+ * @returns any A response containing a page of restrictions.
148
+ * @throws ApiError
149
+ */
150
+ static getRestrictions(projectKey, matcherType, matcherId, type, start, limit) {
151
+ return __request(OpenAPI, {
152
+ method: 'GET',
153
+ url: '/branch-permissions/latest/projects/{projectKey}/restrictions',
154
+ path: {
155
+ 'projectKey': projectKey,
156
+ },
157
+ query: {
158
+ 'matcherType': matcherType,
159
+ 'matcherId': matcherId,
160
+ 'type': type,
161
+ 'start': start,
162
+ 'limit': limit,
163
+ },
164
+ errors: {
165
+ 400: `The request has failed validation.`,
166
+ 401: `The currently authenticated user is not permitted to get restrictions on the provided project`,
167
+ 404: `No restriction exists for the provided ID.`,
168
+ },
169
+ });
170
+ }
171
+ /**
172
+ * Create multiple ref restrictions
173
+ * Allows creating multiple restrictions at once.
174
+ * @param projectKey The project key.
175
+ * @param requestBody The request containing a list of the details of the restrictions to create.
176
+ * @returns RestRefRestriction Response contains the ref restriction that was just created.
177
+ * @throws ApiError
178
+ */
179
+ static createRestrictions(projectKey, requestBody) {
180
+ return __request(OpenAPI, {
181
+ method: 'POST',
182
+ url: '/branch-permissions/latest/projects/{projectKey}/restrictions',
183
+ path: {
184
+ 'projectKey': projectKey,
185
+ },
186
+ body: requestBody,
187
+ mediaType: 'application/vnd.atl.bitbucket.bulk+json',
188
+ errors: {
189
+ 400: `The request has failed validation.`,
190
+ 401: `The currently authenticated user has insufficient permissions to perform this operation.`,
191
+ },
192
+ });
193
+ }
194
+ /**
195
+ * Delete a ref restriction
196
+ * Deletes a restriction as specified by a restriction id.
197
+ *
198
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission or higher to call this resource. Only authenticated users may call this resource.
199
+ * @param projectKey The project key.
200
+ * @param id The restriction id.
201
+ * @returns void
202
+ * @throws ApiError
203
+ */
204
+ static deleteRestriction(projectKey, id) {
205
+ return __request(OpenAPI, {
206
+ method: 'DELETE',
207
+ url: '/branch-permissions/latest/projects/{projectKey}/restrictions/{id}',
208
+ path: {
209
+ 'projectKey': projectKey,
210
+ 'id': id,
211
+ },
212
+ errors: {
213
+ 400: `The request has failed validation.`,
214
+ 401: `The currently authenticated user is not permitted to delete restrictions on the provided project`,
215
+ },
216
+ });
217
+ }
218
+ /**
219
+ * Get a ref restriction
220
+ * Returns a restriction as specified by a restriction id.
221
+ *
222
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission or higher to call this resource. Only authenticated users may call this resource.
223
+ * @param projectKey The project key.
224
+ * @param id The restriction id.
225
+ * @returns RestRefRestriction A response containing the restriction.
226
+ * @throws ApiError
227
+ */
228
+ static getRestriction(projectKey, id) {
229
+ return __request(OpenAPI, {
230
+ method: 'GET',
231
+ url: '/branch-permissions/latest/projects/{projectKey}/restrictions/{id}',
232
+ path: {
233
+ 'projectKey': projectKey,
234
+ 'id': id,
235
+ },
236
+ errors: {
237
+ 400: `The request has failed validation.`,
238
+ 401: `The currently authenticated user is not permitted to get restrictions on the provided project`,
239
+ 404: `No restriction exists for the provided ID.`,
240
+ },
241
+ });
242
+ }
243
+ /**
244
+ * Get project avatar
245
+ * Retrieve the avatar for the project matching the supplied <strong>moduleKey</strong>.
246
+ * @param hookKey The complete module key of the hook module.
247
+ * @param version (optional) Version used for HTTP caching only - any non-blank version will result in a large max-age Cache-Control header. Note that this does not affect the Last-Modified header.
248
+ * @returns any The avatar of the project matching the supplied <strong>moduleKey</strong>.
249
+ * @throws ApiError
250
+ */
251
+ static getAvatar(hookKey, version) {
252
+ return __request(OpenAPI, {
253
+ method: 'GET',
254
+ url: '/api/latest/hooks/{hookKey}/avatar',
255
+ path: {
256
+ 'hookKey': hookKey,
257
+ },
258
+ query: {
259
+ 'version': version,
260
+ },
261
+ errors: {
262
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
263
+ 404: `The specified project does not exist.`,
264
+ },
265
+ });
266
+ }
267
+ /**
268
+ * Get projects
269
+ * Retrieve a page of projects.
270
+ *
271
+ * Only projects for which the authenticated user has the <strong>PROJECT_VIEW</strong> permission will be returned.
272
+ * @param name Name to filter by.
273
+ * @param permission Permission to filter by
274
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
275
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
276
+ * @returns any A page of projects.
277
+ * @throws ApiError
278
+ */
279
+ static getProjects(name, permission, start, limit) {
280
+ return __request(OpenAPI, {
281
+ method: 'GET',
282
+ url: '/api/latest/projects',
283
+ query: {
284
+ 'name': name,
285
+ 'permission': permission,
286
+ 'start': start,
287
+ 'limit': limit,
288
+ },
289
+ errors: {
290
+ 400: `The permission level is unknown or not related to projects.`,
291
+ },
292
+ });
293
+ }
294
+ /**
295
+ * Create a new project
296
+ * Create a new project.
297
+ *
298
+ * To include a custom avatar for the project, the project definition should contain an additional attribute with the key <code>avatar</code> and the value a data URI containing Base64-encoded image data. The URI should be in the following format: <pre> data:(content type, e.g. image/png);base64,(data) </pre>If the data is not Base64-encoded, or if a character set is defined in the URI, or the URI is otherwise invalid, <em>project creation will fail</em>.
299
+ *
300
+ * The authenticated user must have <strong>PROJECT_CREATE</strong> permission to call this resource.
301
+ * @param requestBody The project.
302
+ * @returns RestProject The newly created project.
303
+ * @throws ApiError
304
+ */
305
+ static createProject(requestBody) {
306
+ return __request(OpenAPI, {
307
+ method: 'POST',
308
+ url: '/api/latest/projects',
309
+ body: requestBody,
310
+ mediaType: 'application/json',
311
+ errors: {
312
+ 400: `The currently authenticated user has insufficient permissions to update the project.`,
313
+ 401: `The currently authenticated user has insufficient permissions to create a project.`,
314
+ 409: `The project key or name is already in use.`,
315
+ },
316
+ });
317
+ }
318
+ /**
319
+ * Delete project
320
+ * Delete the project matching the supplied <strong>projectKey</strong>.
321
+ *
322
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
323
+ * @param projectKey The project key.
324
+ * @returns void
325
+ * @throws ApiError
326
+ */
327
+ static deleteProject(projectKey) {
328
+ return __request(OpenAPI, {
329
+ method: 'DELETE',
330
+ url: '/api/latest/projects/{projectKey}',
331
+ path: {
332
+ 'projectKey': projectKey,
333
+ },
334
+ errors: {
335
+ 401: `The currently authenticated user has insufficient permissions to delete the project.`,
336
+ 404: `The specified project does not exist.`,
337
+ 409: `The project can not be deleted as it contains repositories.`,
338
+ },
339
+ });
340
+ }
341
+ /**
342
+ * Get a project
343
+ * Retrieve the project matching the supplied <strong>projectKey</strong>.
344
+ *
345
+ * The authenticated user must have <strong>PROJECT_VIEW</strong> permission for the specified project to call this resource.
346
+ * @param projectKey The project key.
347
+ * @returns RestProject The project matching the supplied <strong>projectKey</strong>.
348
+ * @throws ApiError
349
+ */
350
+ static getProject(projectKey) {
351
+ return __request(OpenAPI, {
352
+ method: 'GET',
353
+ url: '/api/latest/projects/{projectKey}',
354
+ path: {
355
+ 'projectKey': projectKey,
356
+ },
357
+ errors: {
358
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
359
+ 404: `The specified project does not exist.`,
360
+ },
361
+ });
362
+ }
363
+ /**
364
+ * Update project
365
+ * Update the project matching the <strong>projectKey</strong> supplied in the resource path.
366
+ *
367
+ * To include a custom avatar for the updated project, the project definition should contain an additional attribute with the key <code>avatar</code> and the value a data URI containing Base64-encoded image data. The URI should be in the following format:
368
+ * ``` data:(content type, e.g. image/png);base64,(data)```
369
+ *
370
+ * If the data is not Base64-encoded, or if a character set is defined in the URI, or the URI is otherwise invalid, <em>project creation will fail</em>.
371
+ *
372
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
373
+ * @param projectKey The project key.
374
+ * @param requestBody Project parameters to update.
375
+ * @returns RestProject The updated project. The project's key <strong>was not</strong> updated.
376
+ * @throws ApiError
377
+ */
378
+ static updateProject(projectKey, requestBody) {
379
+ return __request(OpenAPI, {
380
+ method: 'PUT',
381
+ url: '/api/latest/projects/{projectKey}',
382
+ path: {
383
+ 'projectKey': projectKey,
384
+ },
385
+ body: requestBody,
386
+ mediaType: 'application/json',
387
+ errors: {
388
+ 400: `The project was not updated due to a validation error.`,
389
+ 401: `The currently authenticated user has insufficient permissions to update the project.`,
390
+ 404: `The specified project does not exist.`,
391
+ },
392
+ });
393
+ }
394
+ /**
395
+ * Get avatar for project
396
+ * Retrieve the avatar for the project matching the supplied <strong>projectKey</strong>.
397
+ *
398
+ * The authenticated user must have <strong>PROJECT_VIEW</strong> permission for the specified project to call this resource.
399
+ * @param projectKey The project key.
400
+ * @param s The desired size of the image. The server will return an image as close as possible to the specified size.
401
+ * @returns any The avatar of the project matching the supplied <strong>projectKey</strong>.
402
+ * @throws ApiError
403
+ */
404
+ static getProjectAvatar(projectKey, s) {
405
+ return __request(OpenAPI, {
406
+ method: 'GET',
407
+ url: '/api/latest/projects/{projectKey}/avatar.png',
408
+ path: {
409
+ 'projectKey': projectKey,
410
+ },
411
+ query: {
412
+ 's': s,
413
+ },
414
+ errors: {
415
+ 401: `The currently authenticated user has insufficient permissions to view the project.`,
416
+ 404: `The specified project does not exist.`,
417
+ },
418
+ });
419
+ }
420
+ /**
421
+ * Update project avatar
422
+ * Update the avatar for the project matching the supplied <strong>projectKey</strong>.
423
+ *
424
+ * This resource accepts POST multipart form data, containing a single image in a form-field named 'avatar'.
425
+ *
426
+ * There are configurable server limits on both the dimensions (1024x1024 pixels by default) and uploaded file size (1MB by default). Several different image formats are supported, but <strong>PNG</strong> and <strong>JPEG</strong> are preferred due to the file size limit.
427
+ *
428
+ * This resource has Cross-Site Request Forgery (XSRF) protection. To allow the request to pass the XSRF check the caller needs to send an <code>X-Atlassian-Token</code> HTTP header with the value <code>no-check</code>.
429
+ *
430
+ * An example <a href="http://curl.haxx.se/">curl</a> request to upload an image name 'avatar.png' would be: ```curl -X POST -u username:password -H "X-Atlassian-Token: no-check" http://example.com/rest/api/1.0/projects/STASH/avatar.png -F avatar=@avatar.png ```
431
+ *
432
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
433
+ * @param projectKey The project key.
434
+ * @param formData The mutlipart form data containing the file.
435
+ * @returns any The avatar was uploaded successfully.
436
+ * @throws ApiError
437
+ */
438
+ static uploadAvatar(projectKey, formData) {
439
+ return __request(OpenAPI, {
440
+ method: 'POST',
441
+ url: '/api/latest/projects/{projectKey}/avatar.png',
442
+ path: {
443
+ 'projectKey': projectKey,
444
+ },
445
+ formData: formData,
446
+ mediaType: 'multipart/form-data',
447
+ errors: {
448
+ 401: `The currently authenticated user has insufficient permissions to update the project.`,
449
+ 404: `The specified project does not exist.`,
450
+ },
451
+ });
452
+ }
453
+ /**
454
+ * Get configured hook scripts
455
+ * Return a page of hook scripts configured for the specified project.
456
+ *
457
+ * This endpoint requires **PROJECT_ADMIN** permission.
458
+ * @param projectKey The project key.
459
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
460
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
461
+ * @returns any A page of hook scripts.
462
+ * @throws ApiError
463
+ */
464
+ static getConfigurations(projectKey, start, limit) {
465
+ return __request(OpenAPI, {
466
+ method: 'GET',
467
+ url: '/api/latest/projects/{projectKey}/hook-scripts',
468
+ path: {
469
+ 'projectKey': projectKey,
470
+ },
471
+ query: {
472
+ 'start': start,
473
+ 'limit': limit,
474
+ },
475
+ errors: {
476
+ 401: `The currently authenticated user has insufficient permissions to view the specified project.`,
477
+ 404: `The specified project does not exist.`,
478
+ },
479
+ });
480
+ }
481
+ /**
482
+ * Remove a hook script
483
+ * Removes the hook script from the set of hook scripts configured to run in all repositories under the project.
484
+ *
485
+ * This endpoint requires **PROJECT_ADMIN** permission.
486
+ * @param projectKey The project key.
487
+ * @param scriptId The ID of the hook script
488
+ * @returns void
489
+ * @throws ApiError
490
+ */
491
+ static removeConfiguration(projectKey, scriptId) {
492
+ return __request(OpenAPI, {
493
+ method: 'DELETE',
494
+ url: '/api/latest/projects/{projectKey}/hook-scripts/{scriptId}',
495
+ path: {
496
+ 'projectKey': projectKey,
497
+ 'scriptId': scriptId,
498
+ },
499
+ errors: {
500
+ 401: `The currently authenticated user has insufficient permissions to view the specified project.`,
501
+ 404: `The project key or hook script ID supplied does not exist.`,
502
+ },
503
+ });
504
+ }
505
+ /**
506
+ * Create/update a hook script
507
+ * Creates/updates the hook script configuration for the provided hook script and project.
508
+ *
509
+ * This endpoint requires **PROJECT_ADMIN** permission.
510
+ * @param projectKey The project key.
511
+ * @param scriptId The ID of the hook script
512
+ * @param requestBody The hook triggers for which the hook script should be run
513
+ * @returns RestHookScriptConfig The updated hook script.
514
+ * @throws ApiError
515
+ */
516
+ static setConfiguration(projectKey, scriptId, requestBody) {
517
+ return __request(OpenAPI, {
518
+ method: 'PUT',
519
+ url: '/api/latest/projects/{projectKey}/hook-scripts/{scriptId}',
520
+ path: {
521
+ 'projectKey': projectKey,
522
+ 'scriptId': scriptId,
523
+ },
524
+ body: requestBody,
525
+ mediaType: 'application/json',
526
+ errors: {
527
+ 400: `The hook script was not created/updated due to a validation error.`,
528
+ 401: `The currently authenticated user has insufficient permissions to view the specified project.`,
529
+ 404: `The project key supplied does not exist.`,
530
+ },
531
+ });
532
+ }
533
+ /**
534
+ * Revoke project permissions
535
+ * Revoke all permissions for the specified project for the given groups and users.
536
+ *
537
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
538
+ *
539
+ * In addition, a user may not revoke a group's permission if their own permission would be revoked as a result, nor may they revoke their own permission unless they have a global permission that already implies that permission.
540
+ * @param projectKey The project key
541
+ * @param user The names of the users
542
+ * @param group The names of the groups
543
+ * @returns void
544
+ * @throws ApiError
545
+ */
546
+ static revokePermissions(projectKey, user, group) {
547
+ return __request(OpenAPI, {
548
+ method: 'DELETE',
549
+ url: '/api/latest/projects/{projectKey}/permissions',
550
+ path: {
551
+ 'projectKey': projectKey,
552
+ },
553
+ query: {
554
+ 'user': user,
555
+ 'group': group,
556
+ },
557
+ errors: {
558
+ 400: `No permissions were revoked because the request was invalid. No users or groups were provided.`,
559
+ 401: `The currently authenticated user is not an administrator for the specifiedspecified project.`,
560
+ 404: `The specified project does not exist, or one or more of the users or groups provided does not exist.`,
561
+ 409: `The action was disallowed as it would revoke the currently authenticated user's permission on the project.`,
562
+ },
563
+ });
564
+ }
565
+ /**
566
+ * Revoke group project permission
567
+ * Revoke all permissions for the specified project for a group.
568
+ *
569
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
570
+ *
571
+ * In addition, a user may not revoke a group's permissions if it will reduce their own permission level.
572
+ * @param projectKey The project key
573
+ * @param name The name of the group
574
+ * @returns void
575
+ * @throws ApiError
576
+ */
577
+ static revokePermissionsForGroup1(projectKey, name) {
578
+ return __request(OpenAPI, {
579
+ method: 'DELETE',
580
+ url: '/api/latest/projects/{projectKey}/permissions/groups',
581
+ path: {
582
+ 'projectKey': projectKey,
583
+ },
584
+ query: {
585
+ 'name': name,
586
+ },
587
+ errors: {
588
+ 401: `The currently authenticated user is not an administrator for the specifiedspecified project.`,
589
+ 404: `The specified project does not exist.`,
590
+ 409: ` The action was disallowed as it would reduce the currently authenticated user'spermission level.`,
591
+ },
592
+ });
593
+ }
594
+ /**
595
+ * Get groups with permission to project
596
+ * Retrieve a page of groups that have been granted at least one permission for the specified project.
597
+ *
598
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
599
+ * @param projectKey The project key
600
+ * @param filter If specified only group names containing the supplied string will be returned
601
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
602
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
603
+ * @returns any A page of groups and their highest permissions for the specified project.
604
+ * @throws ApiError
605
+ */
606
+ static getGroupsWithAnyPermission1(projectKey, filter, start, limit) {
607
+ return __request(OpenAPI, {
608
+ method: 'GET',
609
+ url: '/api/latest/projects/{projectKey}/permissions/groups',
610
+ path: {
611
+ 'projectKey': projectKey,
612
+ },
613
+ query: {
614
+ 'filter': filter,
615
+ 'start': start,
616
+ 'limit': limit,
617
+ },
618
+ errors: {
619
+ 401: `The currently authenticated user is not a project administrator for the specified project.`,
620
+ 404: `The specified project does not exist.`,
621
+ },
622
+ });
623
+ }
624
+ /**
625
+ * Update group project permission
626
+ * Promote or demote a group's permission level for the specified project.
627
+ *
628
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource. In addition, a user may not demote a group's permission level if theirown permission level would be reduced as a result.
629
+ * @param projectKey The project key
630
+ * @param name The names of the groups
631
+ * @param permission The permission to grant.See the [permissions documentation](https://confluence.atlassian.com/display/BitbucketServer/Using+project+permissions)for a detailed explanation of what each permission entails. Available project permissions are:
632
+ *
633
+ * - PROJECT_READ
634
+ * - PROJECT_WRITE
635
+ * - PROJECT_ADMIN
636
+ *
637
+ *
638
+ *
639
+ * @returns void
640
+ * @throws ApiError
641
+ */
642
+ static setPermissionForGroups1(projectKey, name, permission) {
643
+ return __request(OpenAPI, {
644
+ method: 'PUT',
645
+ url: '/api/latest/projects/{projectKey}/permissions/groups',
646
+ path: {
647
+ 'projectKey': projectKey,
648
+ },
649
+ query: {
650
+ 'name': name,
651
+ 'permission': permission,
652
+ },
653
+ errors: {
654
+ 400: `The request was malformed or the specified permission does not exist.`,
655
+ 401: `The currently authenticated user is not an administrator for the specifiedspecified project.`,
656
+ 403: `The action was disallowed as it would reduce the currently authenticated user'spermission level.`,
657
+ 404: `The specified project does not exist.`,
658
+ },
659
+ });
660
+ }
661
+ /**
662
+ * Get groups without project permission
663
+ * Retrieve a page of groups that have no granted permissions for the specified project.
664
+ *
665
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher
666
+ * @param projectKey The project key
667
+ * @param filter If specified only group names containing the supplied string will be returned
668
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
669
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
670
+ * @returns any A page of groups that have not been granted any permissions for the specifiedproject.
671
+ * @throws ApiError
672
+ */
673
+ static getGroupsWithoutAnyPermission1(projectKey, filter, start, limit) {
674
+ return __request(OpenAPI, {
675
+ method: 'GET',
676
+ url: '/api/latest/projects/{projectKey}/permissions/groups/none',
677
+ path: {
678
+ 'projectKey': projectKey,
679
+ },
680
+ query: {
681
+ 'filter': filter,
682
+ 'start': start,
683
+ 'limit': limit,
684
+ },
685
+ errors: {
686
+ 401: `The currently authenticated user is not a project administrator for thespecified project.`,
687
+ 404: `The specified project does not exist.`,
688
+ },
689
+ });
690
+ }
691
+ /**
692
+ * Search project permissions
693
+ * Search direct and implied permissions of principals (users and groups). This endpoint returns a superset of the results returned by the /users and /groups endpoints because it allows filtering by global permissions too.
694
+ *
695
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
696
+ * @param projectKey The project key
697
+ * @param permission Permissions to filter by. See the [permissions documentation](https://confluence.atlassian.com/display/BitbucketServer/Using+project+permissions)for a detailed explanation of what each permission entails. This parameter can be specified multiple times to filter by more than one permission, and can contain global and project permissions.
698
+ *
699
+ *
700
+ * @param filterText Name of the user or group to filter the name of
701
+ * @param type Type of entity (user or group)Valid entity types are:
702
+ *
703
+ * - USER- GROUP
704
+ * @returns any default response
705
+ * @throws ApiError
706
+ */
707
+ static searchPermissions(projectKey, permission, filterText, type) {
708
+ return __request(OpenAPI, {
709
+ method: 'GET',
710
+ url: '/api/latest/projects/{projectKey}/permissions/search',
711
+ path: {
712
+ 'projectKey': projectKey,
713
+ },
714
+ query: {
715
+ 'permission': permission,
716
+ 'filterText': filterText,
717
+ 'type': type,
718
+ },
719
+ });
720
+ }
721
+ /**
722
+ * Revoke user project permission
723
+ * Revoke all permissions for the specified project for a user.
724
+ *
725
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
726
+ *
727
+ * In addition, a user may not revoke their own project permissions if they do not have a higher global permission.
728
+ * @param projectKey The project key
729
+ * @param name The name of the user
730
+ * @returns void
731
+ * @throws ApiError
732
+ */
733
+ static revokePermissionsForUser1(projectKey, name) {
734
+ return __request(OpenAPI, {
735
+ method: 'DELETE',
736
+ url: '/api/latest/projects/{projectKey}/permissions/users',
737
+ path: {
738
+ 'projectKey': projectKey,
739
+ },
740
+ query: {
741
+ 'name': name,
742
+ },
743
+ errors: {
744
+ 401: `The currently authenticated user is not an administrator for the specifiedspecified project.`,
745
+ 404: `The specified project does not exist.`,
746
+ 409: ` The action was disallowed as it would reduce the currently authenticated user'spermission level.`,
747
+ },
748
+ });
749
+ }
750
+ /**
751
+ * Get users with permission to project
752
+ * Retrieve a page of users that have been granted at least one permission for the specified project.
753
+ *
754
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
755
+ * @param projectKey The project key
756
+ * @param filter If specified only user names containing the supplied string will be returned
757
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
758
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
759
+ * @returns any A page of users and their highest permissions for the specified project.
760
+ * @throws ApiError
761
+ */
762
+ static getUsersWithAnyPermission1(projectKey, filter, start, limit) {
763
+ return __request(OpenAPI, {
764
+ method: 'GET',
765
+ url: '/api/latest/projects/{projectKey}/permissions/users',
766
+ path: {
767
+ 'projectKey': projectKey,
768
+ },
769
+ query: {
770
+ 'filter': filter,
771
+ 'start': start,
772
+ 'limit': limit,
773
+ },
774
+ errors: {
775
+ 401: `The currently authenticated user is not a project administrator for thespecified project.`,
776
+ 404: `The specified project does not exist.`,
777
+ },
778
+ });
779
+ }
780
+ /**
781
+ * Update user project permission
782
+ * Promote or demote a user's permission level for the specified project.
783
+ *
784
+ *
785
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource. In addition, a user may not reduce their own permission level unless they have a global permission that already implies that permission.
786
+ * @param projectKey The project key
787
+ * @param name The names of the users
788
+ * @param permission The permission to grant.See the [permissions documentation](https://confluence.atlassian.com/display/BitbucketServer/Using+project+permissions)for a detailed explanation of what each permission entails. Available project permissions are:
789
+ *
790
+ * - PROJECT_READ
791
+ * - PROJECT_WRITE
792
+ * - PROJECT_ADMIN
793
+ *
794
+ *
795
+ *
796
+ * @returns void
797
+ * @throws ApiError
798
+ */
799
+ static setPermissionForUsers1(projectKey, name, permission) {
800
+ return __request(OpenAPI, {
801
+ method: 'PUT',
802
+ url: '/api/latest/projects/{projectKey}/permissions/users',
803
+ path: {
804
+ 'projectKey': projectKey,
805
+ },
806
+ query: {
807
+ 'name': name,
808
+ 'permission': permission,
809
+ },
810
+ errors: {
811
+ 400: `The request was malformed or the specified permission does not exist.`,
812
+ 401: `The currently authenticated user is not an administrator for the specifiedspecified project.`,
813
+ 403: `The action was disallowed as it would reduce the currently authenticated user'spermission level.`,
814
+ 404: `The specified project does not exist.`,
815
+ },
816
+ });
817
+ }
818
+ /**
819
+ * Get users without project permission
820
+ * Retrieve a page of <i>licensed</i> users that have no granted permissions for the specified project.
821
+ *
822
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
823
+ * @param projectKey The project key
824
+ * @param filter If specified only user names containing the supplied string will be returned
825
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
826
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
827
+ * @returns any A page of users that have not been granted any permissions for the specified project
828
+ * @throws ApiError
829
+ */
830
+ static getUsersWithoutPermission(projectKey, filter, start, limit) {
831
+ return __request(OpenAPI, {
832
+ method: 'GET',
833
+ url: '/api/latest/projects/{projectKey}/permissions/users/none',
834
+ path: {
835
+ 'projectKey': projectKey,
836
+ },
837
+ query: {
838
+ 'filter': filter,
839
+ 'start': start,
840
+ 'limit': limit,
841
+ },
842
+ errors: {
843
+ 401: `The currently authenticated user is not a project administrator for thespecified project.`,
844
+ 404: `The specified project does not exist.`,
845
+ },
846
+ });
847
+ }
848
+ /**
849
+ * Check default project permission
850
+ * Check whether the specified permission is the default permission (granted to all users) for a project.
851
+ *
852
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher global permission to call this resource.
853
+ * @param projectKey The project key
854
+ * @param permission The permission to grant. Available project permissions are:
855
+ *
856
+ * - PROJECT_READ
857
+ * - PROJECT_WRITE
858
+ * - PROJECT_ADMIN
859
+ *
860
+ *
861
+ *
862
+ * @returns RestPermitted A simple entity indicating whether the specified permission is the defaultpermission for this project.
863
+ * @throws ApiError
864
+ */
865
+ static hasAllUserPermission(projectKey, permission) {
866
+ return __request(OpenAPI, {
867
+ method: 'GET',
868
+ url: '/api/latest/projects/{projectKey}/permissions/{permission}/all',
869
+ path: {
870
+ 'projectKey': projectKey,
871
+ 'permission': permission,
872
+ },
873
+ errors: {
874
+ 400: `The request was malformed or the specified permission does not exist.`,
875
+ 401: `The currently authenticated user is not an administrator for the specifiedspecified project.`,
876
+ 403: `The action was disallowed as it would reduce the currently authenticated user'spermission level.`,
877
+ 404: `The specified project does not exist.`,
878
+ },
879
+ });
880
+ }
881
+ /**
882
+ * Grant project permission
883
+ * Grant or revoke a project permission to all users, i.e. set the default permission.
884
+ *
885
+ *
886
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project or a higher
887
+ * global permission to call this resource.
888
+ * @param projectKey The project key
889
+ * @param permission The permission to grant. Available project permissions are:
890
+ *
891
+ * - PROJECT_READ
892
+ * - PROJECT_WRITE
893
+ * - PROJECT_ADMIN
894
+ *
895
+ *
896
+ *
897
+ * @param allow <em>true</em> to grant the specified permission to all users, or <em>false</em> to revoke it
898
+ * @returns void
899
+ * @throws ApiError
900
+ */
901
+ static modifyAllUserPermission(projectKey, permission, allow) {
902
+ return __request(OpenAPI, {
903
+ method: 'POST',
904
+ url: '/api/latest/projects/{projectKey}/permissions/{permission}/all',
905
+ path: {
906
+ 'projectKey': projectKey,
907
+ 'permission': permission,
908
+ },
909
+ query: {
910
+ 'allow': allow,
911
+ },
912
+ errors: {
913
+ 400: `The request was malformed or the specified permission does not exist.`,
914
+ 401: `The currently authenticated user is not an administrator for the specified project.`,
915
+ 404: `The specified project does not exist.`,
916
+ },
917
+ });
918
+ }
919
+ /**
920
+ * Get repositories for project
921
+ * Retrieve repositories from the project corresponding to the supplied <strong>projectKey</strong>.
922
+ *
923
+ * The authenticated user must have <strong>PROJECT_READ</strong> permission for the specified project to call this resource.
924
+ * @param projectKey The project key.
925
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
926
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
927
+ * @returns any The repositories matching the supplied <strong>projectKey</strong>.
928
+ * @throws ApiError
929
+ */
930
+ static getRepositories(projectKey, start, limit) {
931
+ return __request(OpenAPI, {
932
+ method: 'GET',
933
+ url: '/api/latest/projects/{projectKey}/repos',
934
+ path: {
935
+ 'projectKey': projectKey,
936
+ },
937
+ query: {
938
+ 'start': start,
939
+ 'limit': limit,
940
+ },
941
+ errors: {
942
+ 401: `The currently authenticated user has insufficient permissions to see the specified project.`,
943
+ 404: `The specified project does not exist.`,
944
+ },
945
+ });
946
+ }
947
+ /**
948
+ * Create repository
949
+ * Create a new repository. Requires an existing project in which this repository will be created. The only parameters which will be used are name and scmId.
950
+ *
951
+ * The authenticated user must have <strong>REPO_CREATE</strong> permission or higher, for the context project to call this resource.
952
+ * @param projectKey The project key.
953
+ * @param requestBody The repository
954
+ * @returns RestRepository The newly created repository.
955
+ * @throws ApiError
956
+ */
957
+ static createRepository(projectKey, requestBody) {
958
+ return __request(OpenAPI, {
959
+ method: 'POST',
960
+ url: '/api/latest/projects/{projectKey}/repos',
961
+ path: {
962
+ 'projectKey': projectKey,
963
+ },
964
+ body: requestBody,
965
+ mediaType: 'application/json',
966
+ errors: {
967
+ 400: `The repository was not created due to a validation error.`,
968
+ 401: `The currently authenticated user has insufficient permissions to create a repository.`,
969
+ 409: `A repository with same name already exists.`,
970
+ },
971
+ });
972
+ }
973
+ /**
974
+ * Delete repository
975
+ * Schedule the repository matching the supplied <strong>projectKey</strong> and <strong>repositorySlug</strong> to be deleted.
976
+ *
977
+ * The authenticated user must have sufficient permissions specified by the repository delete policy to call this resource. The default permission required is <strong>REPO_ADMIN</strong> permission.
978
+ * @param projectKey The project key.
979
+ * @param repositorySlug The repository slug.
980
+ * @returns any The repository has been scheduled for deletion.
981
+ * @throws ApiError
982
+ */
983
+ static deleteRepository(projectKey, repositorySlug) {
984
+ return __request(OpenAPI, {
985
+ method: 'DELETE',
986
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}',
987
+ path: {
988
+ 'projectKey': projectKey,
989
+ 'repositorySlug': repositorySlug,
990
+ },
991
+ errors: {
992
+ 401: `The currently authenticated user has insufficient permissions to delete the repository.`,
993
+ },
994
+ });
995
+ }
996
+ /**
997
+ * Get repository
998
+ * Retrieve the repository matching the supplied <strong>projectKey</strong> and <strong>repositorySlug</strong>.
999
+ *
1000
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1001
+ * @param projectKey The project key.
1002
+ * @param repositorySlug The repository slug.
1003
+ * @returns RestRepository The repository which matches the supplied <strong>projectKey</strong> and <strong>repositorySlug</strong>.
1004
+ * @throws ApiError
1005
+ */
1006
+ static getRepository(projectKey, repositorySlug) {
1007
+ return __request(OpenAPI, {
1008
+ method: 'GET',
1009
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}',
1010
+ path: {
1011
+ 'projectKey': projectKey,
1012
+ 'repositorySlug': repositorySlug,
1013
+ },
1014
+ errors: {
1015
+ 401: `The currently authenticated user has insufficient permissions to see the specified repository.`,
1016
+ 404: `The specified repository does not exist.`,
1017
+ },
1018
+ });
1019
+ }
1020
+ /**
1021
+ * Fork repository
1022
+ * Create a new repository forked from an existing repository.
1023
+ *
1024
+ * The JSON body for this <code>POST</code> is not required to contain <i>any</i> properties. Even the name may be omitted. The following properties will be used, if provided:
1025
+ *
1026
+ * - <code>"name":"Fork name"</code> - Specifies the forked repository's name
1027
+ * - Defaults to the name of the origin repository if not specified
1028
+ * - <code>"defaultBranch":"main"</code> - Specifies the forked repository's default branch
1029
+ * - Defaults to the origin repository's default branch if not specified
1030
+ * - <code>"project":{"key":"TARGET_KEY"}</code> - Specifies the forked repository's target project by key
1031
+ * - Defaults to the current user's personal project if not specified
1032
+ *
1033
+ *
1034
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository and <strong>PROJECT_ADMIN</strong> on the target project to call this resource. Note that users <i>always</i> have <b>PROJECT_ADMIN</b> permission on their personal projects.
1035
+ * @param projectKey The project key.
1036
+ * @param repositorySlug The repository slug.
1037
+ * @param requestBody The rest fork.
1038
+ * @returns RestRepository The newly created fork.
1039
+ * @throws ApiError
1040
+ */
1041
+ static forkRepository(projectKey, repositorySlug, requestBody) {
1042
+ return __request(OpenAPI, {
1043
+ method: 'POST',
1044
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}',
1045
+ path: {
1046
+ 'projectKey': projectKey,
1047
+ 'repositorySlug': repositorySlug,
1048
+ },
1049
+ body: requestBody,
1050
+ mediaType: 'application/json',
1051
+ errors: {
1052
+ 400: `A validation error prevented the fork from being created. Possible validation errors include: The name or slug for the fork collides with another repository in the target project; an SCM type was specified in the JSON body; a project was specified in the JSON body without a "key" property.`,
1053
+ 401: `The currently authenticated user has insufficient permissions to create a fork.`,
1054
+ 404: `The specified repository does not exist, or, if a target project was specified, the target project does not exist.`,
1055
+ },
1056
+ });
1057
+ }
1058
+ /**
1059
+ * Update repository
1060
+ * Update the repository matching the <strong>repositorySlug</strong> supplied in the resource path.
1061
+ *
1062
+ * The repository's slug is derived from its name. If the name changes the slug may also change.
1063
+ *
1064
+ * This resource can be used to change the repository's default branch by specifying a new default branch in the request. For example: <code>"defaultBranch":"main"</code>
1065
+ *
1066
+ * This resource can be used to move the repository to a different project by specifying a new project in the request. For example: <code>"project":{"key":"NEW_KEY"}</code>
1067
+ *
1068
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
1069
+ * @param projectKey The project key.
1070
+ * @param repositorySlug The repository slug.
1071
+ * @param requestBody The updated repository.
1072
+ * @returns RestRepository The updated repository.
1073
+ * @throws ApiError
1074
+ */
1075
+ static updateRepository(projectKey, repositorySlug, requestBody) {
1076
+ return __request(OpenAPI, {
1077
+ method: 'PUT',
1078
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}',
1079
+ path: {
1080
+ 'projectKey': projectKey,
1081
+ 'repositorySlug': repositorySlug,
1082
+ },
1083
+ body: requestBody,
1084
+ mediaType: 'application/json',
1085
+ errors: {
1086
+ 400: `The repository was not updated due to a validation error.`,
1087
+ 401: `The currently authenticated user has insufficient permissions to update a repository.`,
1088
+ 403: `Cannot archive repository because it has open pull requests.`,
1089
+ 404: `The specified repository does not exist.`,
1090
+ 409: `A repository with the same name as the target already exists, or the repository is archived.`,
1091
+ },
1092
+ });
1093
+ }
1094
+ /**
1095
+ * Get repository contributing guidelines
1096
+ * Retrieves the contributing guidelines for the repository, if they've been defined.
1097
+ *
1098
+ * This checks the repository for a CONTRIBUTING file, optionally with an md or txt extension, and, if found, streams it. By default, the <i>raw content</i> of the file is streamed. Appending <code>?markup</code> to the URL will stream an HTML-rendered version instead.
1099
+ *
1100
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1101
+ * @param projectKey The project key.
1102
+ * @param repositorySlug The repository slug.
1103
+ * @param at A specific commit or ref to retrieve the guidelines at, or the default branch if not specified
1104
+ * @param markup If present or <code>"true"</code>, triggers the raw content to be markup-rendered and returned as HTML; otherwise, if not specified, or any value other than <code>"true"</code>, the content is streamed without markup
1105
+ * @param htmlEscape (Optional) true if HTML should be escaped in the input markup, false otherwise. If not specified, the value of the <code>markup.render.html.escape</code> property, which is <code>true</code> by default, will be used
1106
+ * @param includeHeadingId (Optional) true if headings should contain an ID based on the heading content. If not specified, the value of the <code>markup.render.headerids</code> property, which is false by default, will be used
1107
+ * @param hardwrap (Optional) Whether the markup implementation should convert newlines to breaks. If not specified, the value of the <code>markup.render.hardwrap</code> property, which is <code>true</code> by default, will be used
1108
+ * @returns any The contributing guidelines for the repository.
1109
+ * @throws ApiError
1110
+ */
1111
+ static streamContributing(projectKey, repositorySlug, at, markup, htmlEscape, includeHeadingId, hardwrap) {
1112
+ return __request(OpenAPI, {
1113
+ method: 'GET',
1114
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/contributing',
1115
+ path: {
1116
+ 'projectKey': projectKey,
1117
+ 'repositorySlug': repositorySlug,
1118
+ },
1119
+ query: {
1120
+ 'at': at,
1121
+ 'markup': markup,
1122
+ 'htmlEscape': htmlEscape,
1123
+ 'includeHeadingId': includeHeadingId,
1124
+ 'hardwrap': hardwrap,
1125
+ },
1126
+ errors: {
1127
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
1128
+ 404: `The specified repository does not exist.`,
1129
+ },
1130
+ });
1131
+ }
1132
+ /**
1133
+ * Get repository default branch
1134
+ * Retrieves the repository's <i>configured</i> default branch.
1135
+ *
1136
+ * Every repository has a <i>configured</i> default branch, but that branch may not actually <i>exist</i> in the repository. For example, a newly-created repository will have a configured default branch even though no branches have been pushed yet.
1137
+ *
1138
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1139
+ * @param projectKey The project key.
1140
+ * @param repositorySlug The repository slug.
1141
+ * @returns RestMinimalRef The configured default branch for the repository.
1142
+ * @throws ApiError
1143
+ */
1144
+ static getDefaultBranch2(projectKey, repositorySlug) {
1145
+ return __request(OpenAPI, {
1146
+ method: 'GET',
1147
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/default-branch',
1148
+ path: {
1149
+ 'projectKey': projectKey,
1150
+ 'repositorySlug': repositorySlug,
1151
+ },
1152
+ errors: {
1153
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
1154
+ 404: `The specified repository does not exist, or its configured default branch does not exist.`,
1155
+ },
1156
+ });
1157
+ }
1158
+ /**
1159
+ * Update default branch for repository
1160
+ * Update the default branch of a repository.
1161
+ *
1162
+ * The authenticated user must have <strong>REPO_ADMIN</strong> permission for the specified repository to call this resource.
1163
+ * @param projectKey The project key.
1164
+ * @param repositorySlug The repository slug.
1165
+ * @param requestBody The branch to set as default
1166
+ * @returns void
1167
+ * @throws ApiError
1168
+ */
1169
+ static setDefaultBranch2(projectKey, repositorySlug, requestBody) {
1170
+ return __request(OpenAPI, {
1171
+ method: 'PUT',
1172
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/default-branch',
1173
+ path: {
1174
+ 'projectKey': projectKey,
1175
+ 'repositorySlug': repositorySlug,
1176
+ },
1177
+ body: requestBody,
1178
+ mediaType: 'application/json',
1179
+ errors: {
1180
+ 401: `The authenticated user does not have permission to modify the default branch.`,
1181
+ 404: `The specified repository does not exist.`,
1182
+ },
1183
+ });
1184
+ }
1185
+ /**
1186
+ * Get repository forks
1187
+ * Retrieve repositories which have been forked from this one. Unlike #getRelatedRepositories(Repository, PageRequest) related repositories, this only looks at a given repository's direct forks. If those forks have themselves been the origin of more forks, such "grandchildren" repositories will not be retrieved.
1188
+ *
1189
+ * Only repositories to which the authenticated user has <b>REPO_READ</b> permission will be included, even if other repositories have been forked from this one.
1190
+ * @param projectKey The project key.
1191
+ * @param repositorySlug The repository slug.
1192
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1193
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1194
+ * @returns any A page of repositories related to the request repository.
1195
+ * @throws ApiError
1196
+ */
1197
+ static getForkedRepositories(projectKey, repositorySlug, start, limit) {
1198
+ return __request(OpenAPI, {
1199
+ method: 'GET',
1200
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/forks',
1201
+ path: {
1202
+ 'projectKey': projectKey,
1203
+ 'repositorySlug': repositorySlug,
1204
+ },
1205
+ query: {
1206
+ 'start': start,
1207
+ 'limit': limit,
1208
+ },
1209
+ errors: {
1210
+ 401: `The currently authenticated user has insufficient permissions to see the request repository.`,
1211
+ 404: `The request repository does not exist.`,
1212
+ },
1213
+ });
1214
+ }
1215
+ /**
1216
+ * Get repository license
1217
+ * Retrieves the license for the repository, if it's been defined.
1218
+ *
1219
+ * This checks the repository for a <pre>LICENSE</pre> file, optionally with an <pre>md</pre> or <pre>txt</pre>extension, and, if found, streams it. By default, the <i>raw content</i> of the file is streamed. Appending <pre>?markup</pre> to the URL will stream an HTML-rendered version instead.
1220
+ *
1221
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1222
+ * @param projectKey The project key.
1223
+ * @param repositorySlug The repository slug.
1224
+ * @param at A specific commit or ref to retrieve the guidelines at, or the default branch if not specified
1225
+ * @param markup If present or <code>"true"</code>, triggers the raw content to be markup-rendered and returned as HTML; otherwise, if not specified, or any value other than <code>"true"</code>, the content is streamed without markup
1226
+ * @param htmlEscape (Optional) true if HTML should be escaped in the input markup, false otherwise. If not specified, the value of the <code>markup.render.html.escape</code> property, which is <code>true</code> by default, will be used
1227
+ * @param includeHeadingId (Optional) true if headings should contain an ID based on the heading content. If not specified, the value of the <code>markup.render.headerids</code> property, which is false by default, will be used
1228
+ * @param hardwrap (Optional) Whether the markup implementation should convert newlines to breaks. If not specified, the value of the <code>markup.render.hardwrap</code> property, which is <code>true</code> by default, will be used
1229
+ * @returns any The license for the repository.
1230
+ * @throws ApiError
1231
+ */
1232
+ static streamLicense(projectKey, repositorySlug, at, markup, htmlEscape, includeHeadingId, hardwrap) {
1233
+ return __request(OpenAPI, {
1234
+ method: 'GET',
1235
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/license',
1236
+ path: {
1237
+ 'projectKey': projectKey,
1238
+ 'repositorySlug': repositorySlug,
1239
+ },
1240
+ query: {
1241
+ 'at': at,
1242
+ 'markup': markup,
1243
+ 'htmlEscape': htmlEscape,
1244
+ 'includeHeadingId': includeHeadingId,
1245
+ 'hardwrap': hardwrap,
1246
+ },
1247
+ errors: {
1248
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
1249
+ 404: `The specified repository does not exist.`,
1250
+ },
1251
+ });
1252
+ }
1253
+ /**
1254
+ * Get repository readme
1255
+ * Retrieves the README for the repository, if it's been defined.
1256
+ *
1257
+ * This checks the repository for a <pre>README</pre> file, optionally with an <pre>md</pre> or <pre>txt</pre>extension, and, if found, streams it. By default, the <i>raw content</i> of the file is streamed. Appending <pre>?markup</pre> to the URL will stream an HTML-rendered version instead. Note that, when streaming HTML, relative URLs in the README will not work if applied relative to this URL.
1258
+ *
1259
+ * The authenticated user must have <strong>REPO_READ</strong> permission for the specified repository to call this resource.
1260
+ * @param projectKey The project key.
1261
+ * @param repositorySlug The repository slug.
1262
+ * @param at A specific commit or ref to retrieve the guidelines at, or the default branch if not specified
1263
+ * @param markup If present or <code>"true"</code>, triggers the raw content to be markup-rendered and returned as HTML; otherwise, if not specified, or any value other than <code>"true"</code>, the content is streamed without markup
1264
+ * @param htmlEscape (Optional) true if HTML should be escaped in the input markup, false otherwise. If not specified, the value of the <code>markup.render.html.escape</code> property, which is <code>true</code> by default, will be used
1265
+ * @param includeHeadingId (Optional) true if headings should contain an ID based on the heading content. If not specified, the value of the <code>markup.render.headerids</code> property, which is false by default, will be used
1266
+ * @param hardwrap (Optional) Whether the markup implementation should convert newlines to breaks. If not specified, the value of the <code>markup.render.hardwrap</code> property, which is <code>true</code> by default, will be used
1267
+ * @returns any The README for the repository.
1268
+ * @throws ApiError
1269
+ */
1270
+ static streamReadme(projectKey, repositorySlug, at, markup, htmlEscape, includeHeadingId, hardwrap) {
1271
+ return __request(OpenAPI, {
1272
+ method: 'GET',
1273
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/readme',
1274
+ path: {
1275
+ 'projectKey': projectKey,
1276
+ 'repositorySlug': repositorySlug,
1277
+ },
1278
+ query: {
1279
+ 'at': at,
1280
+ 'markup': markup,
1281
+ 'htmlEscape': htmlEscape,
1282
+ 'includeHeadingId': includeHeadingId,
1283
+ 'hardwrap': hardwrap,
1284
+ },
1285
+ errors: {
1286
+ 401: `The currently authenticated user has insufficient permissions to read the repository.`,
1287
+ 404: `The specified repository does not exist.`,
1288
+ },
1289
+ });
1290
+ }
1291
+ /**
1292
+ * Retry repository creation
1293
+ * If a create or fork operation fails, calling this method will clean up the broken repository and try again. The repository must be in an INITIALISATION_FAILED state.
1294
+ *
1295
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1296
+ * @param projectKey The project key.
1297
+ * @param repositorySlug The repository slug.
1298
+ * @returns RestRepository The newly created repository.
1299
+ * @throws ApiError
1300
+ */
1301
+ static retryCreateRepository(projectKey, repositorySlug) {
1302
+ return __request(OpenAPI, {
1303
+ method: 'POST',
1304
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/recreate',
1305
+ path: {
1306
+ 'projectKey': projectKey,
1307
+ 'repositorySlug': repositorySlug,
1308
+ },
1309
+ errors: {
1310
+ 400: `The repository was not created due to a validation error.`,
1311
+ 401: `The currently authenticated user has insufficient permissions to create a repository.`,
1312
+ 404: `The specified repository does not exist.`,
1313
+ },
1314
+ });
1315
+ }
1316
+ /**
1317
+ * Get related repository
1318
+ * Retrieve repositories which are related to this one. Related repositories are from the same Repository#getHierarchyId() hierarchy as this repository.
1319
+ *
1320
+ * Only repositories to which the authenticated user has <b>REPO_READ</b> permission will be included, even if more repositories are part of this repository's hierarchy.
1321
+ * @param projectKey The project key.
1322
+ * @param repositorySlug The repository slug.
1323
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1324
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1325
+ * @returns any A page of repositories related to the request repository.
1326
+ * @throws ApiError
1327
+ */
1328
+ static getRelatedRepositories(projectKey, repositorySlug, start, limit) {
1329
+ return __request(OpenAPI, {
1330
+ method: 'GET',
1331
+ url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/related',
1332
+ path: {
1333
+ 'projectKey': projectKey,
1334
+ 'repositorySlug': repositorySlug,
1335
+ },
1336
+ query: {
1337
+ 'start': start,
1338
+ 'limit': limit,
1339
+ },
1340
+ errors: {
1341
+ 401: `The currently authenticated user has insufficient permissions to see the request repository.`,
1342
+ 404: `The request repository does not exist.`,
1343
+ },
1344
+ });
1345
+ }
1346
+ /**
1347
+ * Stop enforcing project restriction
1348
+ * Delete a specified project settings restriction.
1349
+ *
1350
+ * If a restriction does not exist for the specified project, namespace, featureKey, and componentKey, the request will be ignored and a 204 response will be returned.
1351
+ *
1352
+ * The authenticated user must have **PROJECT_ADMIN** permission for the target project to delete a settings restriction.
1353
+ * @param projectKey The project key.
1354
+ * @param namespace A namespace used to identify the provider of the feature
1355
+ * @param featureKey A key to uniquely identify the feature within the provided namespace
1356
+ * @param componentKey A key to uniquely identify individually restrictable subcomponents of a feature within the provided feature key and namespace
1357
+ * @returns void
1358
+ * @throws ApiError
1359
+ */
1360
+ static delete9(projectKey, namespace, featureKey, componentKey) {
1361
+ return __request(OpenAPI, {
1362
+ method: 'DELETE',
1363
+ url: '/api/latest/projects/{projectKey}/settings-restriction',
1364
+ path: {
1365
+ 'projectKey': projectKey,
1366
+ },
1367
+ query: {
1368
+ 'namespace': namespace,
1369
+ 'componentKey': componentKey,
1370
+ 'featureKey': featureKey,
1371
+ },
1372
+ errors: {
1373
+ 400: `The settings restriction was not deleted because the request was invalid. Possible issues include:
1374
+ - The namespace was not provided, or longer than 255 characters
1375
+ - The featureKey was not provided, or longer than 255 characters
1376
+ - The provided componentKey was fewer than 2 characters, or longer than 255 characters`,
1377
+ 401: `The currently authenticated user has insufficient permissions to delete a settings restriction`,
1378
+ 404: `The specified project does not exist`,
1379
+ },
1380
+ });
1381
+ }
1382
+ /**
1383
+ * Get enforcing project setting
1384
+ * Get a specified project settings restriction for the given namespace, feature key and component key.
1385
+ * Note that not providing the component key will **not** return restrictions for the namespace and feature key with a component key set.
1386
+ *
1387
+ * The authenticated user must have **PROJECT_VIEW** permission for the target project to retrieve a settings restriction.
1388
+ * @param projectKey The project key.
1389
+ * @param namespace The namespace used to identify the provider of the feature
1390
+ * @param featureKey The feature key to uniquely identify the feature within the provided namespace
1391
+ * @param componentKey The component key to uniquely identify individually restrictable subcomponents of a feature within the provided feature key and namespace
1392
+ * @returns RestProjectSettingsRestriction The settings restriction associated with the provided namespace and feature key
1393
+ * @throws ApiError
1394
+ */
1395
+ static get7(projectKey, namespace, featureKey, componentKey) {
1396
+ return __request(OpenAPI, {
1397
+ method: 'GET',
1398
+ url: '/api/latest/projects/{projectKey}/settings-restriction',
1399
+ path: {
1400
+ 'projectKey': projectKey,
1401
+ },
1402
+ query: {
1403
+ 'namespace': namespace,
1404
+ 'componentKey': componentKey,
1405
+ 'featureKey': featureKey,
1406
+ },
1407
+ errors: {
1408
+ 400: `The settings restriction could not be retrieved because the provided parameters were invalid. Possible issues include:
1409
+ - The namespace was not provided, or longer than 255 characters
1410
+ - The featureKey was not provided, or longer than 255 characters
1411
+ - The provided componentKey was fewer than 2 characters, or longer than 255 characters`,
1412
+ 401: `The currently authenticated user has insufficient permissions to retrieve a settings restriction`,
1413
+ 404: `The specified project, or settings restriction does not exist`,
1414
+ },
1415
+ });
1416
+ }
1417
+ /**
1418
+ * Enforce project restriction
1419
+ * Create a new project settings restriction for the given project.
1420
+ *
1421
+ * The authenticated user must have **PROJECT_ADMIN** permission for the target project to create a settings restriction.
1422
+ * @param projectKey The project key.
1423
+ * @param requestBody The project settings restriction to create
1424
+ * @returns RestProjectSettingsRestriction The settings restriction was successfully created
1425
+ * @throws ApiError
1426
+ */
1427
+ static create3(projectKey, requestBody) {
1428
+ return __request(OpenAPI, {
1429
+ method: 'POST',
1430
+ url: '/api/latest/projects/{projectKey}/settings-restriction',
1431
+ path: {
1432
+ 'projectKey': projectKey,
1433
+ },
1434
+ body: requestBody,
1435
+ mediaType: 'application/json',
1436
+ errors: {
1437
+ 400: `The settings restriction was not created because the request was invalid. Possible issues include:
1438
+ - The namespace was not provided, or longer than 255 characters
1439
+ - The featureKey was not provided, or longer than 255 characters
1440
+ - The provided componentKey was fewer than 2 characters, or longer than 255 characters`,
1441
+ 401: `The currently authenticated user has insufficient permissions to create a settings restriction`,
1442
+ 404: `The specified project does not exist`,
1443
+ 409: `A settings restriction with the same namespace, featureKey and componentKey already exists on this project`,
1444
+ },
1445
+ });
1446
+ }
1447
+ /**
1448
+ * Get all enforcing project settings
1449
+ * Get all project settings restrictions for the given namespace and feature key, including those with a component key set.
1450
+ *
1451
+ * The authenticated user must have **PROJECT_VIEW** permission for the target project to retrieve a settings restrictions.
1452
+ * @param projectKey The project key.
1453
+ * @param namespace A namespace used to identify the provider of the feature
1454
+ * @param featureKey A key to uniquely identify the feature within the provided namespace
1455
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1456
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1457
+ * @returns any A page of settings restrictions associated with the provided namespace and feature key
1458
+ * @throws ApiError
1459
+ */
1460
+ static getAll(projectKey, namespace, featureKey, start, limit) {
1461
+ return __request(OpenAPI, {
1462
+ method: 'GET',
1463
+ url: '/api/latest/projects/{projectKey}/settings-restriction/all',
1464
+ path: {
1465
+ 'projectKey': projectKey,
1466
+ },
1467
+ query: {
1468
+ 'namespace': namespace,
1469
+ 'featureKey': featureKey,
1470
+ 'start': start,
1471
+ 'limit': limit,
1472
+ },
1473
+ errors: {
1474
+ 400: `The settings restrictions could not be retrieved because the provided parameters were invalid. Possible issues include:
1475
+ - The namespace was not provided, or longer than 255 characters
1476
+ - The featureKey was not provided, or longer than 255 characters`,
1477
+ 401: `The currently authenticated user has insufficient permissions to retrieve project settings restrictions`,
1478
+ 404: `The specified project does not exist`,
1479
+ },
1480
+ });
1481
+ }
1482
+ /**
1483
+ * Delete auto decline settings
1484
+ * Delete auto decline settings for the supplied project.
1485
+ *
1486
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for this project to call the resource.
1487
+ * @param projectKey The project key
1488
+ * @returns void
1489
+ * @throws ApiError
1490
+ */
1491
+ static deleteAutoDeclineSettings(projectKey) {
1492
+ return __request(OpenAPI, {
1493
+ method: 'DELETE',
1494
+ url: '/api/latest/projects/{projectKey}/settings/auto-decline',
1495
+ path: {
1496
+ 'projectKey': projectKey,
1497
+ },
1498
+ errors: {
1499
+ 401: `The currently authenticated user has insufficient permissions to delete the auto decline settings.`,
1500
+ 404: `The specified project does not exist.`,
1501
+ },
1502
+ });
1503
+ }
1504
+ /**
1505
+ * Get auto decline settings
1506
+ * Retrieves the auto decline settings for the supplied project. Default settings are returned if no explicit settings have been set for the project.
1507
+ * @param projectKey The project key
1508
+ * @returns RestAutoDeclineSettings The auto decline settings
1509
+ * @throws ApiError
1510
+ */
1511
+ static getAutoDeclineSettings(projectKey) {
1512
+ return __request(OpenAPI, {
1513
+ method: 'GET',
1514
+ url: '/api/latest/projects/{projectKey}/settings/auto-decline',
1515
+ path: {
1516
+ 'projectKey': projectKey,
1517
+ },
1518
+ errors: {
1519
+ 401: `The currently authenticated user has insufficient permissions to retrieve the auto decline settings.`,
1520
+ 404: `The specified project does not exist.`,
1521
+ },
1522
+ });
1523
+ }
1524
+ /**
1525
+ * Create/Update auto decline settings
1526
+ * Creates or updates the auto decline settings for the supplied project.
1527
+ *
1528
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for this project to call the resource.
1529
+ * @param projectKey The project key
1530
+ * @param requestBody The settings to create or update
1531
+ * @returns RestAutoDeclineSettings The auto decline settings
1532
+ * @throws ApiError
1533
+ */
1534
+ static setAutoDeclineSettings(projectKey, requestBody) {
1535
+ return __request(OpenAPI, {
1536
+ method: 'PUT',
1537
+ url: '/api/latest/projects/{projectKey}/settings/auto-decline',
1538
+ path: {
1539
+ 'projectKey': projectKey,
1540
+ },
1541
+ body: requestBody,
1542
+ mediaType: 'application/json',
1543
+ errors: {
1544
+ 400: `inactivityWeeks was not one of 1, 2, 4, 8, or, 12, or the enabled parameter was not included in the request.`,
1545
+ 401: `The currently authenticated user has insufficient permissions to create or update the auto decline settings.`,
1546
+ 404: `The specified project does not exist.`,
1547
+ },
1548
+ });
1549
+ }
1550
+ /**
1551
+ * Delete pull request auto-merge settings
1552
+ * Deletes pull request auto-merge settings for the supplied project.
1553
+ *
1554
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for this project to call the resource.
1555
+ * @param projectKey The project key
1556
+ * @returns void
1557
+ * @throws ApiError
1558
+ */
1559
+ static delete4(projectKey) {
1560
+ return __request(OpenAPI, {
1561
+ method: 'DELETE',
1562
+ url: '/api/latest/projects/{projectKey}/settings/auto-merge',
1563
+ path: {
1564
+ 'projectKey': projectKey,
1565
+ },
1566
+ errors: {
1567
+ 401: `The currently authenticated user has insufficient permissions to delete the pull request auto-merge settings.`,
1568
+ 404: `The specified project does not exist.`,
1569
+ },
1570
+ });
1571
+ }
1572
+ /**
1573
+ * Get pull request auto-merge settings
1574
+ * Retrieves the pull request auto-merge settings for the supplied project. Default settings will be returned if no explicit settings have been set for the project
1575
+ *
1576
+ * The authenticated user must have <strong>PROJECT_VIEW</strong> permission for this project to call the resource.
1577
+ * @param projectKey The project key
1578
+ * @returns RestAutoMergeRestrictedSettings The pull request auto-merge settings
1579
+ * @throws ApiError
1580
+ */
1581
+ static get4(projectKey) {
1582
+ return __request(OpenAPI, {
1583
+ method: 'GET',
1584
+ url: '/api/latest/projects/{projectKey}/settings/auto-merge',
1585
+ path: {
1586
+ 'projectKey': projectKey,
1587
+ },
1588
+ errors: {
1589
+ 401: `The currently authenticated user has insufficient permissions to retrieve the pull request auto-merge settings.`,
1590
+ 404: `The specified project does not exist.`,
1591
+ },
1592
+ });
1593
+ }
1594
+ /**
1595
+ * Create or update the pull request auto-merge settings
1596
+ * Creates or updates the pull request auto-merge settings for the supplied project, and applies the restriction action specified in the request.
1597
+ *
1598
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for this project to call the resource.
1599
+ * @param projectKey The project key
1600
+ * @param requestBody The settings to create or update
1601
+ * @returns RestAutoMergeRestrictedSettings The pull request auto-merge settings
1602
+ * @throws ApiError
1603
+ */
1604
+ static set(projectKey, requestBody) {
1605
+ return __request(OpenAPI, {
1606
+ method: 'PUT',
1607
+ url: '/api/latest/projects/{projectKey}/settings/auto-merge',
1608
+ path: {
1609
+ 'projectKey': projectKey,
1610
+ },
1611
+ body: requestBody,
1612
+ mediaType: 'application/json',
1613
+ errors: {
1614
+ 400: `The 'enabled' and 'restrictionAction' fields were not provided correctly.`,
1615
+ 401: `The currently authenticated user has insufficient permissions to create or update the pull request auto-merge settings.`,
1616
+ 404: `The specified project does not exist.`,
1617
+ },
1618
+ });
1619
+ }
1620
+ /**
1621
+ * Get repository hooks
1622
+ * Retrieve a page of repository hooks for this project.
1623
+ *
1624
+ * The authenticated user must have <strong>PROJECT_READ</strong> permission for the specified project to call this resource.
1625
+ * @param projectKey The project key.
1626
+ * @param type The optional type to filter by.
1627
+ * @param start Start number for the page (inclusive). If not passed, first page is assumed.
1628
+ * @param limit Number of items to return. If not passed, a page size of 25 is used.
1629
+ * @returns any A page of repository hooks with their associated enabled state.
1630
+ * @throws ApiError
1631
+ */
1632
+ static getRepositoryHooks(projectKey, type, start, limit) {
1633
+ return __request(OpenAPI, {
1634
+ method: 'GET',
1635
+ url: '/api/latest/projects/{projectKey}/settings/hooks',
1636
+ path: {
1637
+ 'projectKey': projectKey,
1638
+ },
1639
+ query: {
1640
+ 'type': type,
1641
+ 'start': start,
1642
+ 'limit': limit,
1643
+ },
1644
+ errors: {
1645
+ 401: `The currently authenticated user has insufficient permissions to retrieve the hooks.`,
1646
+ 404: `The specified project does not exist.`,
1647
+ },
1648
+ });
1649
+ }
1650
+ /**
1651
+ * Get a repository hook
1652
+ * Retrieve a repository hook for this project.
1653
+ *
1654
+ * The authenticated user must have <strong>PROJECT_READ</strong> permission for the specified project to call this resource.
1655
+ * @param projectKey The project key.
1656
+ * @param hookKey The hook key.
1657
+ * @returns RestRepositoryHook Returns the repository hooks with their associated enabled state for the supplied hookKey.
1658
+ * @throws ApiError
1659
+ */
1660
+ static getRepositoryHook(projectKey, hookKey) {
1661
+ return __request(OpenAPI, {
1662
+ method: 'GET',
1663
+ url: '/api/latest/projects/{projectKey}/settings/hooks/{hookKey}',
1664
+ path: {
1665
+ 'projectKey': projectKey,
1666
+ 'hookKey': hookKey,
1667
+ },
1668
+ errors: {
1669
+ 401: `The currently authenticated user has insufficient permissions to enable the hook.`,
1670
+ 404: `The specified repository hook does not exist for the given project, or the project does not exist.`,
1671
+ },
1672
+ });
1673
+ }
1674
+ /**
1675
+ * Disable repository hook
1676
+ * Disable a repository hook for this project.
1677
+ *
1678
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1679
+ * @param projectKey The project key.
1680
+ * @param hookKey The hook key.
1681
+ * @returns RestRepositoryHook The repository hooks with their associated enabled state for the supplied hookKey.
1682
+ * @throws ApiError
1683
+ */
1684
+ static disableHook(projectKey, hookKey) {
1685
+ return __request(OpenAPI, {
1686
+ method: 'DELETE',
1687
+ url: '/api/latest/projects/{projectKey}/settings/hooks/{hookKey}/enabled',
1688
+ path: {
1689
+ 'projectKey': projectKey,
1690
+ 'hookKey': hookKey,
1691
+ },
1692
+ errors: {
1693
+ 401: `The currently authenticated user has insufficient permissions to disable the hook.`,
1694
+ 404: `The specified project or hook does not exist.`,
1695
+ },
1696
+ });
1697
+ }
1698
+ /**
1699
+ * Enable repository hook
1700
+ * Enable a repository hook for this project and optionally apply new configuration.
1701
+ *
1702
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1703
+ *
1704
+ * A JSON document may be provided to use as the settings for the hook. These structure and validity of the document is decided by the plugin providing the hook.
1705
+ * @param projectKey The project key.
1706
+ * @param hookKey The hook key.
1707
+ * @param contentLength The content length.
1708
+ * @returns RestRepositoryHook The repository hooks with their associated enabled state for the supplied hookKey.
1709
+ * @throws ApiError
1710
+ */
1711
+ static enableHook(projectKey, hookKey, contentLength) {
1712
+ return __request(OpenAPI, {
1713
+ method: 'PUT',
1714
+ url: '/api/latest/projects/{projectKey}/settings/hooks/{hookKey}/enabled',
1715
+ path: {
1716
+ 'projectKey': projectKey,
1717
+ 'hookKey': hookKey,
1718
+ },
1719
+ headers: {
1720
+ 'Content-Length': contentLength,
1721
+ },
1722
+ errors: {
1723
+ 400: `The settings specified are invalid.`,
1724
+ 401: `The currently authenticated user has insufficient permissions to enable the hook.`,
1725
+ 404: `The specified project or hook does not exist.`,
1726
+ },
1727
+ });
1728
+ }
1729
+ /**
1730
+ * Get repository hook settings
1731
+ * Retrieve the settings for a repository hook for this project.
1732
+ *
1733
+ * The authenticated user must have <strong>PROJECT_READ</strong> permission for the specified project to call this resource.
1734
+ * @param projectKey The project key.
1735
+ * @param hookKey The hook key.
1736
+ * @returns ExampleSettings The settings for the hook.
1737
+ * @throws ApiError
1738
+ */
1739
+ static getSettings(projectKey, hookKey) {
1740
+ return __request(OpenAPI, {
1741
+ method: 'GET',
1742
+ url: '/api/latest/projects/{projectKey}/settings/hooks/{hookKey}/settings',
1743
+ path: {
1744
+ 'projectKey': projectKey,
1745
+ 'hookKey': hookKey,
1746
+ },
1747
+ errors: {
1748
+ 401: `The currently authenticated user has insufficient permissions to retrieve the hook settings.`,
1749
+ 404: `The specified project or hook does not exist.`,
1750
+ },
1751
+ });
1752
+ }
1753
+ /**
1754
+ * Update repository hook settings
1755
+ * Modify the settings for a repository hook for this project.
1756
+ *
1757
+ * The service will reject any settings which are too large, the current limit is 32KB once serialized.
1758
+ *
1759
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1760
+ *
1761
+ * A JSON document can be provided to use as the settings for the hook. These structure and validity of the document is decided by the plugin providing the hook.
1762
+ * @param projectKey The project key.
1763
+ * @param hookKey The complete module key of the hook module.
1764
+ * @param requestBody The raw settings.
1765
+ * @returns ExampleSettings The settings for the hook.
1766
+ * @throws ApiError
1767
+ */
1768
+ static setSettings(projectKey, hookKey, requestBody) {
1769
+ return __request(OpenAPI, {
1770
+ method: 'PUT',
1771
+ url: '/api/latest/projects/{projectKey}/settings/hooks/{hookKey}/settings',
1772
+ path: {
1773
+ 'projectKey': projectKey,
1774
+ 'hookKey': hookKey,
1775
+ },
1776
+ body: requestBody,
1777
+ mediaType: 'application/json',
1778
+ errors: {
1779
+ 400: `The settings specified are invalid.`,
1780
+ 401: `The currently authenticated user has insufficient permissions to modify the hook settings.`,
1781
+ 404: `The specified project or hook does not exist.`,
1782
+ },
1783
+ });
1784
+ }
1785
+ /**
1786
+ * Get merge strategy
1787
+ * Retrieve the merge strategy configuration for this project and SCM.
1788
+ *
1789
+ * The authenticated user must have <strong>PROJECT_READ</strong> permission for the context repository to call this resource.
1790
+ * @param projectKey The project key.
1791
+ * @param scmId The SCM to get strategies for.
1792
+ * @returns RestPullRequestSettings The merge configuration of the request project.
1793
+ * @throws ApiError
1794
+ */
1795
+ static getPullRequestSettings(projectKey, scmId) {
1796
+ return __request(OpenAPI, {
1797
+ method: 'GET',
1798
+ url: '/api/latest/projects/{projectKey}/settings/pull-requests/{scmId}',
1799
+ path: {
1800
+ 'projectKey': projectKey,
1801
+ 'scmId': scmId,
1802
+ },
1803
+ errors: {
1804
+ 401: `The currently authenticated user has insufficient permissions to see the request repository.`,
1805
+ 404: `The request repository does not exist.`,
1806
+ },
1807
+ });
1808
+ }
1809
+ /**
1810
+ * Update merge strategy
1811
+ * Update the pull request merge strategy configuration for this project and SCM.
1812
+ *
1813
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the context repository to call this resource.
1814
+ *
1815
+ * Only the strategies provided will be enabled, the default must be set and included in the set of strategies.
1816
+ *
1817
+ * An explicitly set pull request merge strategy configuration can be deleted by POSTing a document with an empty "mergeConfig" attribute. i.e:
1818
+ * <pre>{
1819
+ * "mergeConfig": {}
1820
+ * }
1821
+ * </pre>
1822
+ *
1823
+ * Upon completion of this request, the effective configuration will be the configuration explicitly set for the SCM, or if no such explicit configuration is set then the default configuration will be used.
1824
+ * @param projectKey The project key.
1825
+ * @param scmId The SCM to get strategies for.
1826
+ * @param requestBody The settings.
1827
+ * @returns RestPullRequestSettings The merge configuration of the request project.
1828
+ * @throws ApiError
1829
+ */
1830
+ static updatePullRequestSettings(projectKey, scmId, requestBody) {
1831
+ return __request(OpenAPI, {
1832
+ method: 'POST',
1833
+ url: '/api/latest/projects/{projectKey}/settings/pull-requests/{scmId}',
1834
+ path: {
1835
+ 'projectKey': projectKey,
1836
+ 'scmId': scmId,
1837
+ },
1838
+ body: requestBody,
1839
+ mediaType: 'application/json',
1840
+ errors: {
1841
+ 400: `The repository pull request merge strategies were not updated due to a validation error.`,
1842
+ 401: `The currently authenticated user has insufficient permissions to administrate the specified repository.`,
1843
+ 404: `The specified repository does not exist.`,
1844
+ },
1845
+ });
1846
+ }
1847
+ /**
1848
+ * Find webhooks
1849
+ * Find webhooks in this project.
1850
+ *
1851
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1852
+ * @param projectKey The project key.
1853
+ * @param event List of <code>com.atlassian.webhooks.WebhookEvent</code> IDs to filter for
1854
+ * @param statistics <code>true</code> if statistics should be provided for all found webhooks
1855
+ * @returns any A page of webhooks.
1856
+ * @throws ApiError
1857
+ */
1858
+ static findWebhooks(projectKey, event, statistics) {
1859
+ return __request(OpenAPI, {
1860
+ method: 'GET',
1861
+ url: '/api/latest/projects/{projectKey}/webhooks',
1862
+ path: {
1863
+ 'projectKey': projectKey,
1864
+ },
1865
+ query: {
1866
+ 'event': event,
1867
+ 'statistics': statistics,
1868
+ },
1869
+ errors: {
1870
+ 401: `The currently authenticated user has insufficient permissions to find webhooks in the project.`,
1871
+ 404: `The specified project does not exist.`,
1872
+ },
1873
+ });
1874
+ }
1875
+ /**
1876
+ * Create webhook
1877
+ * Create a webhook for the project specified via the URL.
1878
+ *
1879
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1880
+ * @param projectKey The project key.
1881
+ * @param requestBody The webhook to be created for this project.
1882
+ * @returns RestWebhook A created webhook.
1883
+ * @throws ApiError
1884
+ */
1885
+ static createWebhook(projectKey, requestBody) {
1886
+ return __request(OpenAPI, {
1887
+ method: 'POST',
1888
+ url: '/api/latest/projects/{projectKey}/webhooks',
1889
+ path: {
1890
+ 'projectKey': projectKey,
1891
+ },
1892
+ body: requestBody,
1893
+ mediaType: 'application/json',
1894
+ errors: {
1895
+ 400: `The webhook parameters were invalid or not supplied.`,
1896
+ 401: `The currently authenticated user has insufficient permissions to create webhooks in the project.`,
1897
+ 404: `The project does not exist.`,
1898
+ },
1899
+ });
1900
+ }
1901
+ /**
1902
+ * Test webhook
1903
+ * Test connectivity to a specific endpoint.
1904
+ *
1905
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1906
+ * @param projectKey The project key.
1907
+ * @param webhookId
1908
+ * @param sslVerificationRequired
1909
+ * @param url The url in which to connect to
1910
+ * @param requestBody Basic authentication credentials, if required.
1911
+ * @returns RestWebhookRequestResponse A webhook.
1912
+ * @throws ApiError
1913
+ */
1914
+ static testWebhook(projectKey, webhookId, sslVerificationRequired = true, url, requestBody) {
1915
+ return __request(OpenAPI, {
1916
+ method: 'POST',
1917
+ url: '/api/latest/projects/{projectKey}/webhooks/test',
1918
+ path: {
1919
+ 'projectKey': projectKey,
1920
+ },
1921
+ query: {
1922
+ 'webhookId': webhookId,
1923
+ 'sslVerificationRequired': sslVerificationRequired,
1924
+ 'url': url,
1925
+ },
1926
+ body: requestBody,
1927
+ mediaType: 'application/json',
1928
+ errors: {
1929
+ 401: `The currently authenticated user has insufficient permissions to test a connection.`,
1930
+ 404: `The specified project does not exist.`,
1931
+ },
1932
+ });
1933
+ }
1934
+ /**
1935
+ * Delete webhook
1936
+ * Delete a webhook for the project specified via the URL.
1937
+ *
1938
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1939
+ * @param projectKey The project key.
1940
+ * @param webhookId The ID of the webhook to be deleted.
1941
+ * @returns void
1942
+ * @throws ApiError
1943
+ */
1944
+ static deleteWebhook(projectKey, webhookId) {
1945
+ return __request(OpenAPI, {
1946
+ method: 'DELETE',
1947
+ url: '/api/latest/projects/{projectKey}/webhooks/{webhookId}',
1948
+ path: {
1949
+ 'projectKey': projectKey,
1950
+ 'webhookId': webhookId,
1951
+ },
1952
+ errors: {
1953
+ 401: `The currently authenticated user has insufficient permissions to delete webhooks in the project.`,
1954
+ 404: `The specified project does not exist, or webhook does not exist in this project.`,
1955
+ },
1956
+ });
1957
+ }
1958
+ /**
1959
+ * Get webhook
1960
+ * Get a webhook by ID.
1961
+ *
1962
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1963
+ * @param projectKey The project key.
1964
+ * @param webhookId ID of the webhook
1965
+ * @param statistics <code>true</code> if statistics should be provided for the webhook
1966
+ * @returns RestWebhook A webhook.
1967
+ * @throws ApiError
1968
+ */
1969
+ static getWebhook(projectKey, webhookId, statistics) {
1970
+ return __request(OpenAPI, {
1971
+ method: 'GET',
1972
+ url: '/api/latest/projects/{projectKey}/webhooks/{webhookId}',
1973
+ path: {
1974
+ 'projectKey': projectKey,
1975
+ 'webhookId': webhookId,
1976
+ },
1977
+ query: {
1978
+ 'statistics': statistics,
1979
+ },
1980
+ errors: {
1981
+ 401: `The currently authenticated user has insufficient permissions to get a webhook in the project.`,
1982
+ 404: `The project does not exist, or the webhook does not exist in the project.`,
1983
+ },
1984
+ });
1985
+ }
1986
+ /**
1987
+ * Update webhook
1988
+ * Update an existing webhook.
1989
+ *
1990
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
1991
+ * @param projectKey The project key.
1992
+ * @param webhookId Id of the existing webhook
1993
+ * @param requestBody The representation of the updated values for the webhook
1994
+ * @returns RestWebhook A webhook.
1995
+ * @throws ApiError
1996
+ */
1997
+ static updateWebhook(projectKey, webhookId, requestBody) {
1998
+ return __request(OpenAPI, {
1999
+ method: 'PUT',
2000
+ url: '/api/latest/projects/{projectKey}/webhooks/{webhookId}',
2001
+ path: {
2002
+ 'projectKey': projectKey,
2003
+ 'webhookId': webhookId,
2004
+ },
2005
+ body: requestBody,
2006
+ mediaType: 'application/json',
2007
+ errors: {
2008
+ 401: `The currently authenticated user has insufficient permissions to update a webhook in this project.`,
2009
+ 404: `The project does not exist, or the webhook does not exist in the project.`,
2010
+ },
2011
+ });
2012
+ }
2013
+ /**
2014
+ * Get last webhook invocation details
2015
+ * Get the latest invocations for a specific webhook.
2016
+ *
2017
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
2018
+ * @param projectKey The project key.
2019
+ * @param webhookId ID of the webhook
2020
+ * @param event The string ID of a specific event to retrieve the last invocation for.
2021
+ * @param outcome The outcome to filter for. Can be SUCCESS, FAILURE, ERROR. None specified means that the all will be considered
2022
+ * @returns RestDetailedInvocation A webhook invocation dataset.
2023
+ * @throws ApiError
2024
+ */
2025
+ static getLatestInvocation(projectKey, webhookId, event, outcome) {
2026
+ return __request(OpenAPI, {
2027
+ method: 'GET',
2028
+ url: '/api/latest/projects/{projectKey}/webhooks/{webhookId}/latest',
2029
+ path: {
2030
+ 'projectKey': projectKey,
2031
+ 'webhookId': webhookId,
2032
+ },
2033
+ query: {
2034
+ 'event': event,
2035
+ 'outcome': outcome,
2036
+ },
2037
+ errors: {
2038
+ 401: `The currently authenticated user has insufficient permissions to get webhook invocations in the project.`,
2039
+ 404: `The specified project does not exist, or the webhook does not exist in the project.`,
2040
+ },
2041
+ });
2042
+ }
2043
+ /**
2044
+ * Get webhook statistics
2045
+ * Get the statistics for a specific webhook.
2046
+ *
2047
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
2048
+ * @param projectKey The project key.
2049
+ * @param webhookId ID of the webhook
2050
+ * @param event The string ID of a specific event to retrieve the last invocation for. May be empty, in which case all events are considered
2051
+ * @returns RestInvocationHistory A webhook invocation dataset.
2052
+ * @throws ApiError
2053
+ */
2054
+ static getStatistics(projectKey, webhookId, event) {
2055
+ return __request(OpenAPI, {
2056
+ method: 'GET',
2057
+ url: '/api/latest/projects/{projectKey}/webhooks/{webhookId}/statistics',
2058
+ path: {
2059
+ 'projectKey': projectKey,
2060
+ 'webhookId': webhookId,
2061
+ },
2062
+ query: {
2063
+ 'event': event,
2064
+ },
2065
+ errors: {
2066
+ 401: `The currently authenticated user has insufficient permissions to get webhook statistics in the project.`,
2067
+ 404: `The specified project does not exist, or the webhook does not exist in the project.`,
2068
+ },
2069
+ });
2070
+ }
2071
+ /**
2072
+ * Get webhook statistics summary
2073
+ * Get the statistics summary for a specific webhook.
2074
+ *
2075
+ * The authenticated user must have <strong>PROJECT_ADMIN</strong> permission for the specified project to call this resource.
2076
+ * @param projectKey The project key.
2077
+ * @param webhookId ID of the webhook
2078
+ * @returns RestInvocationHistory A webhook invocation dataset.
2079
+ * @throws ApiError
2080
+ */
2081
+ static getStatisticsSummary(projectKey, webhookId) {
2082
+ return __request(OpenAPI, {
2083
+ method: 'GET',
2084
+ url: '/api/latest/projects/{projectKey}/webhooks/{webhookId}/statistics/summary',
2085
+ path: {
2086
+ 'projectKey': projectKey,
2087
+ 'webhookId': webhookId,
2088
+ },
2089
+ errors: {
2090
+ 401: `The currently authenticated user has insufficient permissions to get webhook statistics summary in the project.`,
2091
+ 404: `The project does not exist, or the webhook does not exist in the project.`,
2092
+ },
2093
+ });
2094
+ }
2095
+ }
2096
+ //# sourceMappingURL=ProjectService.js.map