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.
- package/CHANGELOG.md +307 -0
- package/README.md +236 -0
- package/bin/run.js +7 -0
- package/build/__tests__/bitbucket-service.test.d.ts +2 -0
- package/build/__tests__/bitbucket-service.test.d.ts.map +1 -0
- package/build/__tests__/bitbucket-service.test.js +2824 -0
- package/build/__tests__/bitbucket-service.test.js.map +1 -0
- package/build/__tests__/bitbucket-token-optimization.test.d.ts +2 -0
- package/build/__tests__/bitbucket-token-optimization.test.d.ts.map +1 -0
- package/build/__tests__/bitbucket-token-optimization.test.js +391 -0
- package/build/__tests__/bitbucket-token-optimization.test.js.map +1 -0
- package/build/__tests__/config.test.d.ts +2 -0
- package/build/__tests__/config.test.d.ts.map +1 -0
- package/build/__tests__/config.test.js +49 -0
- package/build/__tests__/config.test.js.map +1 -0
- package/build/__tests__/inbox-pr-mapper.test.d.ts +2 -0
- package/build/__tests__/inbox-pr-mapper.test.d.ts.map +1 -0
- package/build/__tests__/inbox-pr-mapper.test.js +304 -0
- package/build/__tests__/inbox-pr-mapper.test.js.map +1 -0
- package/build/__tests__/pr-changes-mapper.test.d.ts +2 -0
- package/build/__tests__/pr-changes-mapper.test.d.ts.map +1 -0
- package/build/__tests__/pr-changes-mapper.test.js +396 -0
- package/build/__tests__/pr-changes-mapper.test.js.map +1 -0
- package/build/__tests__/pr-comment-mapper.test.d.ts +2 -0
- package/build/__tests__/pr-comment-mapper.test.d.ts.map +1 -0
- package/build/__tests__/pr-comment-mapper.test.js +490 -0
- package/build/__tests__/pr-comment-mapper.test.js.map +1 -0
- package/build/bitbucket-client/core/ApiError.d.ts +11 -0
- package/build/bitbucket-client/core/ApiError.d.ts.map +1 -0
- package/build/bitbucket-client/core/ApiError.js +17 -0
- package/build/bitbucket-client/core/ApiError.js.map +1 -0
- package/build/bitbucket-client/core/ApiRequestOptions.d.ts +14 -0
- package/build/bitbucket-client/core/ApiRequestOptions.d.ts.map +1 -0
- package/build/bitbucket-client/core/ApiRequestOptions.js +2 -0
- package/build/bitbucket-client/core/ApiRequestOptions.js.map +1 -0
- package/build/bitbucket-client/core/ApiResult.d.ts +8 -0
- package/build/bitbucket-client/core/ApiResult.d.ts.map +1 -0
- package/build/bitbucket-client/core/ApiResult.js +2 -0
- package/build/bitbucket-client/core/ApiResult.js.map +1 -0
- package/build/bitbucket-client/core/CancelablePromise.d.ts +21 -0
- package/build/bitbucket-client/core/CancelablePromise.d.ts.map +1 -0
- package/build/bitbucket-client/core/CancelablePromise.js +100 -0
- package/build/bitbucket-client/core/CancelablePromise.js.map +1 -0
- package/build/bitbucket-client/core/OpenAPI.d.ts +17 -0
- package/build/bitbucket-client/core/OpenAPI.d.ts.map +1 -0
- package/build/bitbucket-client/core/OpenAPI.js +12 -0
- package/build/bitbucket-client/core/OpenAPI.js.map +1 -0
- package/build/bitbucket-client/core/request.d.ts +31 -0
- package/build/bitbucket-client/core/request.d.ts.map +1 -0
- package/build/bitbucket-client/core/request.js +292 -0
- package/build/bitbucket-client/core/request.js.map +1 -0
- package/build/bitbucket-client/index.d.ts +297 -0
- package/build/bitbucket-client/index.d.ts.map +1 -0
- package/build/bitbucket-client/index.js +44 -0
- package/build/bitbucket-client/index.js.map +1 -0
- package/build/bitbucket-client/models/AdminPasswordUpdate.d.ts +6 -0
- package/build/bitbucket-client/models/AdminPasswordUpdate.d.ts.map +1 -0
- package/build/bitbucket-client/models/AdminPasswordUpdate.js +2 -0
- package/build/bitbucket-client/models/AdminPasswordUpdate.js.map +1 -0
- package/build/bitbucket-client/models/ApplicationId.d.ts +2 -0
- package/build/bitbucket-client/models/ApplicationId.d.ts.map +1 -0
- package/build/bitbucket-client/models/ApplicationId.js +2 -0
- package/build/bitbucket-client/models/ApplicationId.js.map +1 -0
- package/build/bitbucket-client/models/ApplicationUser.d.ts +2 -0
- package/build/bitbucket-client/models/ApplicationUser.d.ts.map +1 -0
- package/build/bitbucket-client/models/ApplicationUser.js +2 -0
- package/build/bitbucket-client/models/ApplicationUser.js.map +1 -0
- package/build/bitbucket-client/models/AuthenticationEntity.d.ts +9 -0
- package/build/bitbucket-client/models/AuthenticationEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/AuthenticationEntity.js +2 -0
- package/build/bitbucket-client/models/AuthenticationEntity.js.map +1 -0
- package/build/bitbucket-client/models/AuthenticationResponse.d.ts +2 -0
- package/build/bitbucket-client/models/AuthenticationResponse.d.ts.map +1 -0
- package/build/bitbucket-client/models/AuthenticationResponse.js +2 -0
- package/build/bitbucket-client/models/AuthenticationResponse.js.map +1 -0
- package/build/bitbucket-client/models/BasicAuthConfigEntity.d.ts +2 -0
- package/build/bitbucket-client/models/BasicAuthConfigEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/BasicAuthConfigEntity.js +2 -0
- package/build/bitbucket-client/models/BasicAuthConfigEntity.js.map +1 -0
- package/build/bitbucket-client/models/CaptchaDataEntity.d.ts +2 -0
- package/build/bitbucket-client/models/CaptchaDataEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/CaptchaDataEntity.js +2 -0
- package/build/bitbucket-client/models/CaptchaDataEntity.js.map +1 -0
- package/build/bitbucket-client/models/Comment.d.ts +33 -0
- package/build/bitbucket-client/models/Comment.d.ts.map +1 -0
- package/build/bitbucket-client/models/Comment.js +15 -0
- package/build/bitbucket-client/models/Comment.js.map +1 -0
- package/build/bitbucket-client/models/CommentOperations.d.ts +6 -0
- package/build/bitbucket-client/models/CommentOperations.d.ts.map +1 -0
- package/build/bitbucket-client/models/CommentOperations.js +2 -0
- package/build/bitbucket-client/models/CommentOperations.js.map +1 -0
- package/build/bitbucket-client/models/CommentThread.d.ts +17 -0
- package/build/bitbucket-client/models/CommentThread.d.ts.map +1 -0
- package/build/bitbucket-client/models/CommentThread.js +2 -0
- package/build/bitbucket-client/models/CommentThread.js.map +1 -0
- package/build/bitbucket-client/models/CommentThreadDiffAnchor.d.ts +41 -0
- package/build/bitbucket-client/models/CommentThreadDiffAnchor.d.ts.map +1 -0
- package/build/bitbucket-client/models/CommentThreadDiffAnchor.js +27 -0
- package/build/bitbucket-client/models/CommentThreadDiffAnchor.js.map +1 -0
- package/build/bitbucket-client/models/Commentable.d.ts +2 -0
- package/build/bitbucket-client/models/Commentable.d.ts.map +1 -0
- package/build/bitbucket-client/models/Commentable.js +2 -0
- package/build/bitbucket-client/models/Commentable.js.map +1 -0
- package/build/bitbucket-client/models/Context.d.ts +4 -0
- package/build/bitbucket-client/models/Context.d.ts.map +1 -0
- package/build/bitbucket-client/models/Context.js +2 -0
- package/build/bitbucket-client/models/Context.js.map +1 -0
- package/build/bitbucket-client/models/ConversationDTO.d.ts +4 -0
- package/build/bitbucket-client/models/ConversationDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/ConversationDTO.js +2 -0
- package/build/bitbucket-client/models/ConversationDTO.js.map +1 -0
- package/build/bitbucket-client/models/Credentials.d.ts +5 -0
- package/build/bitbucket-client/models/Credentials.d.ts.map +1 -0
- package/build/bitbucket-client/models/Credentials.js +2 -0
- package/build/bitbucket-client/models/Credentials.js.map +1 -0
- package/build/bitbucket-client/models/CredentialsCheckFailedDTO.d.ts +2 -0
- package/build/bitbucket-client/models/CredentialsCheckFailedDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/CredentialsCheckFailedDTO.js +2 -0
- package/build/bitbucket-client/models/CredentialsCheckFailedDTO.js.map +1 -0
- package/build/bitbucket-client/models/DiffContentFilter.d.ts +2 -0
- package/build/bitbucket-client/models/DiffContentFilter.d.ts.map +1 -0
- package/build/bitbucket-client/models/DiffContentFilter.js +2 -0
- package/build/bitbucket-client/models/DiffContentFilter.js.map +1 -0
- package/build/bitbucket-client/models/ElevationMethodRestDTO.d.ts +2 -0
- package/build/bitbucket-client/models/ElevationMethodRestDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/ElevationMethodRestDTO.js +2 -0
- package/build/bitbucket-client/models/ElevationMethodRestDTO.js.map +1 -0
- package/build/bitbucket-client/models/EnrichedRepository.d.ts +2 -0
- package/build/bitbucket-client/models/EnrichedRepository.d.ts.map +1 -0
- package/build/bitbucket-client/models/EnrichedRepository.js +2 -0
- package/build/bitbucket-client/models/EnrichedRepository.js.map +1 -0
- package/build/bitbucket-client/models/ErrorEntity.d.ts +2 -0
- package/build/bitbucket-client/models/ErrorEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/ErrorEntity.js +2 -0
- package/build/bitbucket-client/models/ErrorEntity.js.map +1 -0
- package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.d.ts +7 -0
- package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.js +2 -0
- package/build/bitbucket-client/models/ExampleAvatarMultipartFormData.js.map +1 -0
- package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.d.ts +7 -0
- package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.js +2 -0
- package/build/bitbucket-client/models/ExampleCertificateMultipartFormData.js.map +1 -0
- package/build/bitbucket-client/models/ExampleFiles.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleFiles.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleFiles.js +2 -0
- package/build/bitbucket-client/models/ExampleFiles.js.map +1 -0
- package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.js +2 -0
- package/build/bitbucket-client/models/ExampleJsonLastModifiedCallback.js.map +1 -0
- package/build/bitbucket-client/models/ExampleMultipartFormData.d.ts +23 -0
- package/build/bitbucket-client/models/ExampleMultipartFormData.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleMultipartFormData.js +2 -0
- package/build/bitbucket-client/models/ExampleMultipartFormData.js.map +1 -0
- package/build/bitbucket-client/models/ExamplePostMultipartFormData.d.ts +19 -0
- package/build/bitbucket-client/models/ExamplePostMultipartFormData.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExamplePostMultipartFormData.js +2 -0
- package/build/bitbucket-client/models/ExamplePostMultipartFormData.js.map +1 -0
- package/build/bitbucket-client/models/ExamplePreviewMigration.d.ts +2 -0
- package/build/bitbucket-client/models/ExamplePreviewMigration.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExamplePreviewMigration.js +2 -0
- package/build/bitbucket-client/models/ExamplePreviewMigration.js.map +1 -0
- package/build/bitbucket-client/models/ExamplePutMultipartFormData.d.ts +15 -0
- package/build/bitbucket-client/models/ExamplePutMultipartFormData.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExamplePutMultipartFormData.js +2 -0
- package/build/bitbucket-client/models/ExamplePutMultipartFormData.js.map +1 -0
- package/build/bitbucket-client/models/ExampleRequirements.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleRequirements.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleRequirements.js +2 -0
- package/build/bitbucket-client/models/ExampleRequirements.js.map +1 -0
- package/build/bitbucket-client/models/ExampleSettings.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleSettings.js +2 -0
- package/build/bitbucket-client/models/ExampleSettings.js.map +1 -0
- package/build/bitbucket-client/models/ExampleSettingsMap.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleSettingsMap.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleSettingsMap.js +2 -0
- package/build/bitbucket-client/models/ExampleSettingsMap.js.map +1 -0
- package/build/bitbucket-client/models/ExampleSocketAddress.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleSocketAddress.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleSocketAddress.js +2 -0
- package/build/bitbucket-client/models/ExampleSocketAddress.js.map +1 -0
- package/build/bitbucket-client/models/ExampleStatus.d.ts +2 -0
- package/build/bitbucket-client/models/ExampleStatus.d.ts.map +1 -0
- package/build/bitbucket-client/models/ExampleStatus.js +2 -0
- package/build/bitbucket-client/models/ExampleStatus.js.map +1 -0
- package/build/bitbucket-client/models/FileListResource.d.ts +2 -0
- package/build/bitbucket-client/models/FileListResource.d.ts.map +1 -0
- package/build/bitbucket-client/models/FileListResource.js +2 -0
- package/build/bitbucket-client/models/FileListResource.js.map +1 -0
- package/build/bitbucket-client/models/FilePart.d.ts +9 -0
- package/build/bitbucket-client/models/FilePart.d.ts.map +1 -0
- package/build/bitbucket-client/models/FilePart.js +2 -0
- package/build/bitbucket-client/models/FilePart.js.map +1 -0
- package/build/bitbucket-client/models/Group.d.ts +2 -0
- package/build/bitbucket-client/models/Group.d.ts.map +1 -0
- package/build/bitbucket-client/models/Group.js +2 -0
- package/build/bitbucket-client/models/Group.js.map +1 -0
- package/build/bitbucket-client/models/GroupAndUsers.d.ts +5 -0
- package/build/bitbucket-client/models/GroupAndUsers.d.ts.map +1 -0
- package/build/bitbucket-client/models/GroupAndUsers.js +2 -0
- package/build/bitbucket-client/models/GroupAndUsers.js.map +1 -0
- package/build/bitbucket-client/models/GroupPickerContext.d.ts +5 -0
- package/build/bitbucket-client/models/GroupPickerContext.d.ts.map +1 -0
- package/build/bitbucket-client/models/GroupPickerContext.js +2 -0
- package/build/bitbucket-client/models/GroupPickerContext.js.map +1 -0
- package/build/bitbucket-client/models/IdpConfigEntity.d.ts +2 -0
- package/build/bitbucket-client/models/IdpConfigEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/IdpConfigEntity.js +2 -0
- package/build/bitbucket-client/models/IdpConfigEntity.js.map +1 -0
- package/build/bitbucket-client/models/JitConfigEntity.d.ts +2 -0
- package/build/bitbucket-client/models/JitConfigEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/JitConfigEntity.js +2 -0
- package/build/bitbucket-client/models/JitConfigEntity.js.map +1 -0
- package/build/bitbucket-client/models/JitUserEntity.d.ts +2 -0
- package/build/bitbucket-client/models/JitUserEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/JitUserEntity.js +2 -0
- package/build/bitbucket-client/models/JitUserEntity.js.map +1 -0
- package/build/bitbucket-client/models/LineNumberRange.d.ts +6 -0
- package/build/bitbucket-client/models/LineNumberRange.d.ts.map +1 -0
- package/build/bitbucket-client/models/LineNumberRange.js +2 -0
- package/build/bitbucket-client/models/LineNumberRange.js.map +1 -0
- package/build/bitbucket-client/models/LoginOptionEntity.d.ts +2 -0
- package/build/bitbucket-client/models/LoginOptionEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/LoginOptionEntity.js +2 -0
- package/build/bitbucket-client/models/LoginOptionEntity.js.map +1 -0
- package/build/bitbucket-client/models/MethodStateDTO.d.ts +2 -0
- package/build/bitbucket-client/models/MethodStateDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/MethodStateDTO.js +2 -0
- package/build/bitbucket-client/models/MethodStateDTO.js.map +1 -0
- package/build/bitbucket-client/models/NextLoginStepDTO.d.ts +2 -0
- package/build/bitbucket-client/models/NextLoginStepDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/NextLoginStepDTO.js +2 -0
- package/build/bitbucket-client/models/NextLoginStepDTO.js.map +1 -0
- package/build/bitbucket-client/models/OptionalBodyBeanParam.d.ts +2 -0
- package/build/bitbucket-client/models/OptionalBodyBeanParam.d.ts.map +1 -0
- package/build/bitbucket-client/models/OptionalBodyBeanParam.js +2 -0
- package/build/bitbucket-client/models/OptionalBodyBeanParam.js.map +1 -0
- package/build/bitbucket-client/models/PageRequestImpl.d.ts +5 -0
- package/build/bitbucket-client/models/PageRequestImpl.d.ts.map +1 -0
- package/build/bitbucket-client/models/PageRequestImpl.js +2 -0
- package/build/bitbucket-client/models/PageRequestImpl.js.map +1 -0
- package/build/bitbucket-client/models/PasswordElevationRestDTO.d.ts +4 -0
- package/build/bitbucket-client/models/PasswordElevationRestDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/PasswordElevationRestDTO.js +2 -0
- package/build/bitbucket-client/models/PasswordElevationRestDTO.js.map +1 -0
- package/build/bitbucket-client/models/Project.d.ts +15 -0
- package/build/bitbucket-client/models/Project.d.ts.map +1 -0
- package/build/bitbucket-client/models/Project.js +9 -0
- package/build/bitbucket-client/models/Project.js.map +1 -0
- package/build/bitbucket-client/models/PropertyMap.d.ts +2 -0
- package/build/bitbucket-client/models/PropertyMap.d.ts.map +1 -0
- package/build/bitbucket-client/models/PropertyMap.js +2 -0
- package/build/bitbucket-client/models/PropertyMap.js.map +1 -0
- package/build/bitbucket-client/models/PullRequest.d.ts +31 -0
- package/build/bitbucket-client/models/PullRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/PullRequest.js +10 -0
- package/build/bitbucket-client/models/PullRequest.js.map +1 -0
- package/build/bitbucket-client/models/PullRequestParticipant.d.ts +23 -0
- package/build/bitbucket-client/models/PullRequestParticipant.d.ts.map +1 -0
- package/build/bitbucket-client/models/PullRequestParticipant.js +16 -0
- package/build/bitbucket-client/models/PullRequestParticipant.js.map +1 -0
- package/build/bitbucket-client/models/PullRequestRef.d.ts +10 -0
- package/build/bitbucket-client/models/PullRequestRef.d.ts.map +1 -0
- package/build/bitbucket-client/models/PullRequestRef.js +2 -0
- package/build/bitbucket-client/models/PullRequestRef.js.map +1 -0
- package/build/bitbucket-client/models/RefType.d.ts +2 -0
- package/build/bitbucket-client/models/RefType.d.ts.map +1 -0
- package/build/bitbucket-client/models/RefType.js +2 -0
- package/build/bitbucket-client/models/RefType.js.map +1 -0
- package/build/bitbucket-client/models/Repository.d.ts +31 -0
- package/build/bitbucket-client/models/Repository.d.ts.map +1 -0
- package/build/bitbucket-client/models/Repository.js +11 -0
- package/build/bitbucket-client/models/Repository.js.map +1 -0
- package/build/bitbucket-client/models/RepositoryHookDetails.d.ts +2 -0
- package/build/bitbucket-client/models/RepositoryHookDetails.d.ts.map +1 -0
- package/build/bitbucket-client/models/RepositoryHookDetails.js +2 -0
- package/build/bitbucket-client/models/RepositoryHookDetails.js.map +1 -0
- package/build/bitbucket-client/models/RestAccessToken.d.ts +2 -0
- package/build/bitbucket-client/models/RestAccessToken.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAccessToken.js +2 -0
- package/build/bitbucket-client/models/RestAccessToken.js.map +1 -0
- package/build/bitbucket-client/models/RestAccessTokenRequest.d.ts +6 -0
- package/build/bitbucket-client/models/RestAccessTokenRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAccessTokenRequest.js +2 -0
- package/build/bitbucket-client/models/RestAccessTokenRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestAggregateRejectCounter.d.ts +2 -0
- package/build/bitbucket-client/models/RestAggregateRejectCounter.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAggregateRejectCounter.js +2 -0
- package/build/bitbucket-client/models/RestAggregateRejectCounter.js.map +1 -0
- package/build/bitbucket-client/models/RestAnalyticsSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestAnalyticsSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAnalyticsSettings.js +2 -0
- package/build/bitbucket-client/models/RestAnalyticsSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestAnnouncementBanner.d.ts +2 -0
- package/build/bitbucket-client/models/RestAnnouncementBanner.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAnnouncementBanner.js +2 -0
- package/build/bitbucket-client/models/RestAnnouncementBanner.js.map +1 -0
- package/build/bitbucket-client/models/RestApplicationProperties.d.ts +2 -0
- package/build/bitbucket-client/models/RestApplicationProperties.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestApplicationProperties.js +2 -0
- package/build/bitbucket-client/models/RestApplicationProperties.js.map +1 -0
- package/build/bitbucket-client/models/RestApplicationUser.d.ts +2 -0
- package/build/bitbucket-client/models/RestApplicationUser.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestApplicationUser.js +2 -0
- package/build/bitbucket-client/models/RestApplicationUser.js.map +1 -0
- package/build/bitbucket-client/models/RestApplicationUserWithPermissions.d.ts +2 -0
- package/build/bitbucket-client/models/RestApplicationUserWithPermissions.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestApplicationUserWithPermissions.js +2 -0
- package/build/bitbucket-client/models/RestApplicationUserWithPermissions.js.map +1 -0
- package/build/bitbucket-client/models/RestApplySuggestionRequest.d.ts +7 -0
- package/build/bitbucket-client/models/RestApplySuggestionRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestApplySuggestionRequest.js +2 -0
- package/build/bitbucket-client/models/RestApplySuggestionRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestAttachmentMetadata.d.ts +2 -0
- package/build/bitbucket-client/models/RestAttachmentMetadata.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAttachmentMetadata.js +2 -0
- package/build/bitbucket-client/models/RestAttachmentMetadata.js.map +1 -0
- package/build/bitbucket-client/models/RestAuthenticationRequest.d.ts +6 -0
- package/build/bitbucket-client/models/RestAuthenticationRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAuthenticationRequest.js +2 -0
- package/build/bitbucket-client/models/RestAuthenticationRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettings.js +2 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.d.ts +5 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.js +2 -0
- package/build/bitbucket-client/models/RestAutoDeclineSettingsRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeProcessingResult.d.ts +2 -0
- package/build/bitbucket-client/models/RestAutoMergeProcessingResult.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeProcessingResult.js +2 -0
- package/build/bitbucket-client/models/RestAutoMergeProcessingResult.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.d.ts +12 -0
- package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.js +10 -0
- package/build/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeRequest.d.ts +2 -0
- package/build/bitbucket-client/models/RestAutoMergeRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeRequest.js +2 -0
- package/build/bitbucket-client/models/RestAutoMergeRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.js +2 -0
- package/build/bitbucket-client/models/RestAutoMergeRestrictedSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.d.ts +4 -0
- package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.js +2 -0
- package/build/bitbucket-client/models/RestAutoMergeSettingsRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestBearerTokenCredentials.d.ts +4 -0
- package/build/bitbucket-client/models/RestBearerTokenCredentials.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBearerTokenCredentials.js +2 -0
- package/build/bitbucket-client/models/RestBearerTokenCredentials.js.map +1 -0
- package/build/bitbucket-client/models/RestBitbucketLicense.d.ts +2 -0
- package/build/bitbucket-client/models/RestBitbucketLicense.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBitbucketLicense.js +2 -0
- package/build/bitbucket-client/models/RestBitbucketLicense.js.map +1 -0
- package/build/bitbucket-client/models/RestBranch.d.ts +2 -0
- package/build/bitbucket-client/models/RestBranch.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBranch.js +2 -0
- package/build/bitbucket-client/models/RestBranch.js.map +1 -0
- package/build/bitbucket-client/models/RestBranchCreateRequest.d.ts +11 -0
- package/build/bitbucket-client/models/RestBranchCreateRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBranchCreateRequest.js +2 -0
- package/build/bitbucket-client/models/RestBranchCreateRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestBranchDeleteRequest.d.ts +15 -0
- package/build/bitbucket-client/models/RestBranchDeleteRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBranchDeleteRequest.js +2 -0
- package/build/bitbucket-client/models/RestBranchDeleteRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestBuildCapabilities.d.ts +2 -0
- package/build/bitbucket-client/models/RestBuildCapabilities.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBuildCapabilities.js +2 -0
- package/build/bitbucket-client/models/RestBuildCapabilities.js.map +1 -0
- package/build/bitbucket-client/models/RestBuildStats.d.ts +2 -0
- package/build/bitbucket-client/models/RestBuildStats.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBuildStats.js +2 -0
- package/build/bitbucket-client/models/RestBuildStats.js.map +1 -0
- package/build/bitbucket-client/models/RestBuildStatus.d.ts +2 -0
- package/build/bitbucket-client/models/RestBuildStatus.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBuildStatus.js +2 -0
- package/build/bitbucket-client/models/RestBuildStatus.js.map +1 -0
- package/build/bitbucket-client/models/RestBuildStatusSetRequest.d.ts +27 -0
- package/build/bitbucket-client/models/RestBuildStatusSetRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBuildStatusSetRequest.js +12 -0
- package/build/bitbucket-client/models/RestBuildStatusSetRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.d.ts +5 -0
- package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.js +2 -0
- package/build/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.d.ts +9 -0
- package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.js +2 -0
- package/build/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestChange.d.ts +2 -0
- package/build/bitbucket-client/models/RestChange.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestChange.js +2 -0
- package/build/bitbucket-client/models/RestChange.js.map +1 -0
- package/build/bitbucket-client/models/RestChangeset.d.ts +2 -0
- package/build/bitbucket-client/models/RestChangeset.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestChangeset.js +2 -0
- package/build/bitbucket-client/models/RestChangeset.js.map +1 -0
- package/build/bitbucket-client/models/RestClusterInformation.d.ts +2 -0
- package/build/bitbucket-client/models/RestClusterInformation.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestClusterInformation.js +2 -0
- package/build/bitbucket-client/models/RestClusterInformation.js.map +1 -0
- package/build/bitbucket-client/models/RestClusterNode.d.ts +2 -0
- package/build/bitbucket-client/models/RestClusterNode.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestClusterNode.js +2 -0
- package/build/bitbucket-client/models/RestClusterNode.js.map +1 -0
- package/build/bitbucket-client/models/RestComment.d.ts +2 -0
- package/build/bitbucket-client/models/RestComment.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestComment.js +2 -0
- package/build/bitbucket-client/models/RestComment.js.map +1 -0
- package/build/bitbucket-client/models/RestCommentJiraIssue.d.ts +2 -0
- package/build/bitbucket-client/models/RestCommentJiraIssue.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestCommentJiraIssue.js +2 -0
- package/build/bitbucket-client/models/RestCommentJiraIssue.js.map +1 -0
- package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.d.ts +2 -0
- package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.js +2 -0
- package/build/bitbucket-client/models/RestCommentThreadDiffAnchor.js.map +1 -0
- package/build/bitbucket-client/models/RestCommit.d.ts +2 -0
- package/build/bitbucket-client/models/RestCommit.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestCommit.js +2 -0
- package/build/bitbucket-client/models/RestCommit.js.map +1 -0
- package/build/bitbucket-client/models/RestCommitMessageSuggestion.d.ts +2 -0
- package/build/bitbucket-client/models/RestCommitMessageSuggestion.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestCommitMessageSuggestion.js +2 -0
- package/build/bitbucket-client/models/RestCommitMessageSuggestion.js.map +1 -0
- package/build/bitbucket-client/models/RestConflict.d.ts +2 -0
- package/build/bitbucket-client/models/RestConflict.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestConflict.js +2 -0
- package/build/bitbucket-client/models/RestConflict.js.map +1 -0
- package/build/bitbucket-client/models/RestConflictChange.d.ts +2 -0
- package/build/bitbucket-client/models/RestConflictChange.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestConflictChange.js +2 -0
- package/build/bitbucket-client/models/RestConflictChange.js.map +1 -0
- package/build/bitbucket-client/models/RestConnectivitySummary.d.ts +2 -0
- package/build/bitbucket-client/models/RestConnectivitySummary.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestConnectivitySummary.js +2 -0
- package/build/bitbucket-client/models/RestConnectivitySummary.js.map +1 -0
- package/build/bitbucket-client/models/RestCreateBranchRequest.d.ts +6 -0
- package/build/bitbucket-client/models/RestCreateBranchRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestCreateBranchRequest.js +2 -0
- package/build/bitbucket-client/models/RestCreateBranchRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestCreateTagRequest.d.ts +6 -0
- package/build/bitbucket-client/models/RestCreateTagRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestCreateTagRequest.js +2 -0
- package/build/bitbucket-client/models/RestCreateTagRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestDefaultBranch.d.ts +4 -0
- package/build/bitbucket-client/models/RestDefaultBranch.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDefaultBranch.js +2 -0
- package/build/bitbucket-client/models/RestDefaultBranch.js.map +1 -0
- package/build/bitbucket-client/models/RestDefaultReviewersRequest.d.ts +33 -0
- package/build/bitbucket-client/models/RestDefaultReviewersRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDefaultReviewersRequest.js +12 -0
- package/build/bitbucket-client/models/RestDefaultReviewersRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestDefaultTask.d.ts +2 -0
- package/build/bitbucket-client/models/RestDefaultTask.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDefaultTask.js +2 -0
- package/build/bitbucket-client/models/RestDefaultTask.js.map +1 -0
- package/build/bitbucket-client/models/RestDefaultTaskRequest.d.ts +29 -0
- package/build/bitbucket-client/models/RestDefaultTaskRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDefaultTaskRequest.js +12 -0
- package/build/bitbucket-client/models/RestDefaultTaskRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestDelayedSyncRepository.d.ts +6 -0
- package/build/bitbucket-client/models/RestDelayedSyncRepository.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDelayedSyncRepository.js +2 -0
- package/build/bitbucket-client/models/RestDelayedSyncRepository.js.map +1 -0
- package/build/bitbucket-client/models/RestDeployment.d.ts +2 -0
- package/build/bitbucket-client/models/RestDeployment.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDeployment.js +2 -0
- package/build/bitbucket-client/models/RestDeployment.js.map +1 -0
- package/build/bitbucket-client/models/RestDeploymentEnvironment.d.ts +2 -0
- package/build/bitbucket-client/models/RestDeploymentEnvironment.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDeploymentEnvironment.js +2 -0
- package/build/bitbucket-client/models/RestDeploymentEnvironment.js.map +1 -0
- package/build/bitbucket-client/models/RestDeploymentSetRequest.d.ts +23 -0
- package/build/bitbucket-client/models/RestDeploymentSetRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDeploymentSetRequest.js +14 -0
- package/build/bitbucket-client/models/RestDeploymentSetRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestDetailedGroup.d.ts +2 -0
- package/build/bitbucket-client/models/RestDetailedGroup.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDetailedGroup.js +2 -0
- package/build/bitbucket-client/models/RestDetailedGroup.js.map +1 -0
- package/build/bitbucket-client/models/RestDetailedInvocation.d.ts +2 -0
- package/build/bitbucket-client/models/RestDetailedInvocation.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDetailedInvocation.js +2 -0
- package/build/bitbucket-client/models/RestDetailedInvocation.js.map +1 -0
- package/build/bitbucket-client/models/RestDetailedUser.d.ts +2 -0
- package/build/bitbucket-client/models/RestDetailedUser.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDetailedUser.js +2 -0
- package/build/bitbucket-client/models/RestDetailedUser.js.map +1 -0
- package/build/bitbucket-client/models/RestDiff.d.ts +2 -0
- package/build/bitbucket-client/models/RestDiff.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDiff.js +2 -0
- package/build/bitbucket-client/models/RestDiff.js.map +1 -0
- package/build/bitbucket-client/models/RestDiffHunk.d.ts +2 -0
- package/build/bitbucket-client/models/RestDiffHunk.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDiffHunk.js +2 -0
- package/build/bitbucket-client/models/RestDiffHunk.js.map +1 -0
- package/build/bitbucket-client/models/RestDiffLine.d.ts +2 -0
- package/build/bitbucket-client/models/RestDiffLine.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDiffLine.js +2 -0
- package/build/bitbucket-client/models/RestDiffLine.js.map +1 -0
- package/build/bitbucket-client/models/RestDiffSegment.d.ts +2 -0
- package/build/bitbucket-client/models/RestDiffSegment.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDiffSegment.js +2 -0
- package/build/bitbucket-client/models/RestDiffSegment.js.map +1 -0
- package/build/bitbucket-client/models/RestDiffStatsSummary.d.ts +2 -0
- package/build/bitbucket-client/models/RestDiffStatsSummary.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestDiffStatsSummary.js +2 -0
- package/build/bitbucket-client/models/RestDiffStatsSummary.js.map +1 -0
- package/build/bitbucket-client/models/RestEmoticon.d.ts +2 -0
- package/build/bitbucket-client/models/RestEmoticon.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestEmoticon.js +2 -0
- package/build/bitbucket-client/models/RestEmoticon.js.map +1 -0
- package/build/bitbucket-client/models/RestEnhancedEntityLink.d.ts +2 -0
- package/build/bitbucket-client/models/RestEnhancedEntityLink.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestEnhancedEntityLink.js +2 -0
- package/build/bitbucket-client/models/RestEnhancedEntityLink.js.map +1 -0
- package/build/bitbucket-client/models/RestErasedUser.d.ts +2 -0
- package/build/bitbucket-client/models/RestErasedUser.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestErasedUser.js +2 -0
- package/build/bitbucket-client/models/RestErasedUser.js.map +1 -0
- package/build/bitbucket-client/models/RestErrorMessage.d.ts +2 -0
- package/build/bitbucket-client/models/RestErrorMessage.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestErrorMessage.js +2 -0
- package/build/bitbucket-client/models/RestErrorMessage.js.map +1 -0
- package/build/bitbucket-client/models/RestErrors.d.ts +2 -0
- package/build/bitbucket-client/models/RestErrors.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestErrors.js +2 -0
- package/build/bitbucket-client/models/RestErrors.js.map +1 -0
- package/build/bitbucket-client/models/RestExportRequest.d.ts +8 -0
- package/build/bitbucket-client/models/RestExportRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestExportRequest.js +2 -0
- package/build/bitbucket-client/models/RestExportRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestFarmSynchronizationRequest.d.ts +13 -0
- package/build/bitbucket-client/models/RestFarmSynchronizationRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestFarmSynchronizationRequest.js +9 -0
- package/build/bitbucket-client/models/RestFarmSynchronizationRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestGitTagCreateRequest.d.ts +14 -0
- package/build/bitbucket-client/models/RestGitTagCreateRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestGitTagCreateRequest.js +9 -0
- package/build/bitbucket-client/models/RestGitTagCreateRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestGpgKey.d.ts +2 -0
- package/build/bitbucket-client/models/RestGpgKey.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestGpgKey.js +2 -0
- package/build/bitbucket-client/models/RestGpgKey.js.map +1 -0
- package/build/bitbucket-client/models/RestGpgSubKey.d.ts +2 -0
- package/build/bitbucket-client/models/RestGpgSubKey.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestGpgSubKey.js +2 -0
- package/build/bitbucket-client/models/RestGpgSubKey.js.map +1 -0
- package/build/bitbucket-client/models/RestHookScript.d.ts +2 -0
- package/build/bitbucket-client/models/RestHookScript.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestHookScript.js +2 -0
- package/build/bitbucket-client/models/RestHookScript.js.map +1 -0
- package/build/bitbucket-client/models/RestHookScriptConfig.d.ts +2 -0
- package/build/bitbucket-client/models/RestHookScriptConfig.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestHookScriptConfig.js +2 -0
- package/build/bitbucket-client/models/RestHookScriptConfig.js.map +1 -0
- package/build/bitbucket-client/models/RestHookScriptTriggers.d.ts +4 -0
- package/build/bitbucket-client/models/RestHookScriptTriggers.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestHookScriptTriggers.js +2 -0
- package/build/bitbucket-client/models/RestHookScriptTriggers.js.map +1 -0
- package/build/bitbucket-client/models/RestImportRequest.d.ts +4 -0
- package/build/bitbucket-client/models/RestImportRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestImportRequest.js +2 -0
- package/build/bitbucket-client/models/RestImportRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestInsightAnnotation.d.ts +2 -0
- package/build/bitbucket-client/models/RestInsightAnnotation.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInsightAnnotation.js +2 -0
- package/build/bitbucket-client/models/RestInsightAnnotation.js.map +1 -0
- package/build/bitbucket-client/models/RestInsightAnnotationsResponse.d.ts +2 -0
- package/build/bitbucket-client/models/RestInsightAnnotationsResponse.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInsightAnnotationsResponse.js +2 -0
- package/build/bitbucket-client/models/RestInsightAnnotationsResponse.js.map +1 -0
- package/build/bitbucket-client/models/RestInsightReport.d.ts +2 -0
- package/build/bitbucket-client/models/RestInsightReport.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInsightReport.js +2 -0
- package/build/bitbucket-client/models/RestInsightReport.js.map +1 -0
- package/build/bitbucket-client/models/RestInsightReportData.d.ts +2 -0
- package/build/bitbucket-client/models/RestInsightReportData.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInsightReportData.js +2 -0
- package/build/bitbucket-client/models/RestInsightReportData.js.map +1 -0
- package/build/bitbucket-client/models/RestInvocationHistory.d.ts +2 -0
- package/build/bitbucket-client/models/RestInvocationHistory.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInvocationHistory.js +2 -0
- package/build/bitbucket-client/models/RestInvocationHistory.js.map +1 -0
- package/build/bitbucket-client/models/RestInvocationRequest.d.ts +2 -0
- package/build/bitbucket-client/models/RestInvocationRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInvocationRequest.js +2 -0
- package/build/bitbucket-client/models/RestInvocationRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestInvocationResult.d.ts +2 -0
- package/build/bitbucket-client/models/RestInvocationResult.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestInvocationResult.js +2 -0
- package/build/bitbucket-client/models/RestInvocationResult.js.map +1 -0
- package/build/bitbucket-client/models/RestJiraIssue.d.ts +5 -0
- package/build/bitbucket-client/models/RestJiraIssue.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestJiraIssue.js +2 -0
- package/build/bitbucket-client/models/RestJiraIssue.js.map +1 -0
- package/build/bitbucket-client/models/RestJob.d.ts +2 -0
- package/build/bitbucket-client/models/RestJob.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestJob.js +2 -0
- package/build/bitbucket-client/models/RestJob.js.map +1 -0
- package/build/bitbucket-client/models/RestJobMessage.d.ts +2 -0
- package/build/bitbucket-client/models/RestJobMessage.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestJobMessage.js +2 -0
- package/build/bitbucket-client/models/RestJobMessage.js.map +1 -0
- package/build/bitbucket-client/models/RestLabel.d.ts +2 -0
- package/build/bitbucket-client/models/RestLabel.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestLabel.js +2 -0
- package/build/bitbucket-client/models/RestLabel.js.map +1 -0
- package/build/bitbucket-client/models/RestLabelable.d.ts +2 -0
- package/build/bitbucket-client/models/RestLabelable.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestLabelable.js +2 -0
- package/build/bitbucket-client/models/RestLabelable.js.map +1 -0
- package/build/bitbucket-client/models/RestLogLevel.d.ts +2 -0
- package/build/bitbucket-client/models/RestLogLevel.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestLogLevel.js +2 -0
- package/build/bitbucket-client/models/RestLogLevel.js.map +1 -0
- package/build/bitbucket-client/models/RestLoggingSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestLoggingSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestLoggingSettings.js +2 -0
- package/build/bitbucket-client/models/RestLoggingSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestMailConfiguration.d.ts +2 -0
- package/build/bitbucket-client/models/RestMailConfiguration.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMailConfiguration.js +2 -0
- package/build/bitbucket-client/models/RestMailConfiguration.js.map +1 -0
- package/build/bitbucket-client/models/RestMarkup.d.ts +2 -0
- package/build/bitbucket-client/models/RestMarkup.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMarkup.js +2 -0
- package/build/bitbucket-client/models/RestMarkup.js.map +1 -0
- package/build/bitbucket-client/models/RestMeshConnectivityReport.d.ts +2 -0
- package/build/bitbucket-client/models/RestMeshConnectivityReport.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMeshConnectivityReport.js +2 -0
- package/build/bitbucket-client/models/RestMeshConnectivityReport.js.map +1 -0
- package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.d.ts +2 -0
- package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.js +2 -0
- package/build/bitbucket-client/models/RestMeshMigrationQueueStateCounts.js.map +1 -0
- package/build/bitbucket-client/models/RestMeshMigrationRequest.d.ts +10 -0
- package/build/bitbucket-client/models/RestMeshMigrationRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMeshMigrationRequest.js +2 -0
- package/build/bitbucket-client/models/RestMeshMigrationRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestMeshMigrationSummary.d.ts +2 -0
- package/build/bitbucket-client/models/RestMeshMigrationSummary.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMeshMigrationSummary.js +2 -0
- package/build/bitbucket-client/models/RestMeshMigrationSummary.js.map +1 -0
- package/build/bitbucket-client/models/RestMeshNode.d.ts +2 -0
- package/build/bitbucket-client/models/RestMeshNode.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMeshNode.js +2 -0
- package/build/bitbucket-client/models/RestMeshNode.js.map +1 -0
- package/build/bitbucket-client/models/RestMigrationRepository.d.ts +2 -0
- package/build/bitbucket-client/models/RestMigrationRepository.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMigrationRepository.js +2 -0
- package/build/bitbucket-client/models/RestMigrationRepository.js.map +1 -0
- package/build/bitbucket-client/models/RestMinimalCommit.d.ts +2 -0
- package/build/bitbucket-client/models/RestMinimalCommit.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMinimalCommit.js +2 -0
- package/build/bitbucket-client/models/RestMinimalCommit.js.map +1 -0
- package/build/bitbucket-client/models/RestMinimalRef.d.ts +2 -0
- package/build/bitbucket-client/models/RestMinimalRef.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMinimalRef.js +2 -0
- package/build/bitbucket-client/models/RestMinimalRef.js.map +1 -0
- package/build/bitbucket-client/models/RestMirrorHashes.d.ts +2 -0
- package/build/bitbucket-client/models/RestMirrorHashes.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirrorHashes.js +2 -0
- package/build/bitbucket-client/models/RestMirrorHashes.js.map +1 -0
- package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.d.ts +2 -0
- package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.js +2 -0
- package/build/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.js.map +1 -0
- package/build/bitbucket-client/models/RestMirrorServer.d.ts +2 -0
- package/build/bitbucket-client/models/RestMirrorServer.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirrorServer.js +2 -0
- package/build/bitbucket-client/models/RestMirrorServer.js.map +1 -0
- package/build/bitbucket-client/models/RestMirrorUpgradeRequest.d.ts +5 -0
- package/build/bitbucket-client/models/RestMirrorUpgradeRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirrorUpgradeRequest.js +2 -0
- package/build/bitbucket-client/models/RestMirrorUpgradeRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestMirroredRepository.d.ts +2 -0
- package/build/bitbucket-client/models/RestMirroredRepository.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirroredRepository.js +2 -0
- package/build/bitbucket-client/models/RestMirroredRepository.js.map +1 -0
- package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.d.ts +2 -0
- package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.js +2 -0
- package/build/bitbucket-client/models/RestMirroredRepositoryDescriptor.js.map +1 -0
- package/build/bitbucket-client/models/RestMirroringRequest.d.ts +2 -0
- package/build/bitbucket-client/models/RestMirroringRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMirroringRequest.js +2 -0
- package/build/bitbucket-client/models/RestMirroringRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestMultilineCommentMarker.d.ts +2 -0
- package/build/bitbucket-client/models/RestMultilineCommentMarker.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMultilineCommentMarker.js +2 -0
- package/build/bitbucket-client/models/RestMultilineCommentMarker.js.map +1 -0
- package/build/bitbucket-client/models/RestMultilineCommentSpan.d.ts +2 -0
- package/build/bitbucket-client/models/RestMultilineCommentSpan.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMultilineCommentSpan.js +2 -0
- package/build/bitbucket-client/models/RestMultilineCommentSpan.js.map +1 -0
- package/build/bitbucket-client/models/RestMultipleBuildStats.d.ts +2 -0
- package/build/bitbucket-client/models/RestMultipleBuildStats.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestMultipleBuildStats.js +2 -0
- package/build/bitbucket-client/models/RestMultipleBuildStats.js.map +1 -0
- package/build/bitbucket-client/models/RestNamedLink.d.ts +2 -0
- package/build/bitbucket-client/models/RestNamedLink.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestNamedLink.js +2 -0
- package/build/bitbucket-client/models/RestNamedLink.js.map +1 -0
- package/build/bitbucket-client/models/RestNode.d.ts +2 -0
- package/build/bitbucket-client/models/RestNode.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestNode.js +2 -0
- package/build/bitbucket-client/models/RestNode.js.map +1 -0
- package/build/bitbucket-client/models/RestNodeConnectivityReport.d.ts +2 -0
- package/build/bitbucket-client/models/RestNodeConnectivityReport.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestNodeConnectivityReport.js +2 -0
- package/build/bitbucket-client/models/RestNodeConnectivityReport.js.map +1 -0
- package/build/bitbucket-client/models/RestNodeConnectivitySummary.d.ts +2 -0
- package/build/bitbucket-client/models/RestNodeConnectivitySummary.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestNodeConnectivitySummary.js +2 -0
- package/build/bitbucket-client/models/RestNodeConnectivitySummary.js.map +1 -0
- package/build/bitbucket-client/models/RestPageIdpConfigEntity.d.ts +9 -0
- package/build/bitbucket-client/models/RestPageIdpConfigEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPageIdpConfigEntity.js +2 -0
- package/build/bitbucket-client/models/RestPageIdpConfigEntity.js.map +1 -0
- package/build/bitbucket-client/models/RestPageLoginOptionEntity.d.ts +9 -0
- package/build/bitbucket-client/models/RestPageLoginOptionEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPageLoginOptionEntity.js +2 -0
- package/build/bitbucket-client/models/RestPageLoginOptionEntity.js.map +1 -0
- package/build/bitbucket-client/models/RestPageRestChange.d.ts +2 -0
- package/build/bitbucket-client/models/RestPageRestChange.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPageRestChange.js +2 -0
- package/build/bitbucket-client/models/RestPageRestChange.js.map +1 -0
- package/build/bitbucket-client/models/RestPath.d.ts +2 -0
- package/build/bitbucket-client/models/RestPath.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPath.js +2 -0
- package/build/bitbucket-client/models/RestPath.js.map +1 -0
- package/build/bitbucket-client/models/RestPermitted.d.ts +2 -0
- package/build/bitbucket-client/models/RestPermitted.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPermitted.js +2 -0
- package/build/bitbucket-client/models/RestPermitted.js.map +1 -0
- package/build/bitbucket-client/models/RestPermittedGroup.d.ts +2 -0
- package/build/bitbucket-client/models/RestPermittedGroup.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPermittedGroup.js +2 -0
- package/build/bitbucket-client/models/RestPermittedGroup.js.map +1 -0
- package/build/bitbucket-client/models/RestPermittedUser.d.ts +2 -0
- package/build/bitbucket-client/models/RestPermittedUser.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPermittedUser.js +2 -0
- package/build/bitbucket-client/models/RestPermittedUser.js.map +1 -0
- package/build/bitbucket-client/models/RestPerson.d.ts +2 -0
- package/build/bitbucket-client/models/RestPerson.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPerson.js +2 -0
- package/build/bitbucket-client/models/RestPerson.js.map +1 -0
- package/build/bitbucket-client/models/RestProgress.d.ts +2 -0
- package/build/bitbucket-client/models/RestProgress.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestProgress.js +2 -0
- package/build/bitbucket-client/models/RestProgress.js.map +1 -0
- package/build/bitbucket-client/models/RestProject.d.ts +2 -0
- package/build/bitbucket-client/models/RestProject.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestProject.js +2 -0
- package/build/bitbucket-client/models/RestProject.js.map +1 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestriction.d.ts +2 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestriction.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestriction.js +2 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestriction.js.map +1 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.d.ts +6 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.js +2 -0
- package/build/bitbucket-client/models/RestProjectSettingsRestrictionRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestProperties.d.ts +2 -0
- package/build/bitbucket-client/models/RestProperties.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestProperties.js +2 -0
- package/build/bitbucket-client/models/RestProperties.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequest.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestActivity.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestActivity.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestActivity.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestActivity.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.d.ts +26 -0
- package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.js +15 -0
- package/build/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.d.ts +12 -0
- package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.js +10 -0
- package/build/bitbucket-client/models/RestPullRequestAssignStatusRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestCommitMessageTemplate.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestCondition.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestCondition.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestCondition.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestCondition.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestDeclineRequest.d.ts +5 -0
- package/build/bitbucket-client/models/RestPullRequestDeclineRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestDeclineRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestDeclineRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestDeleteRequest.d.ts +4 -0
- package/build/bitbucket-client/models/RestPullRequestDeleteRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestDeleteRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestDeleteRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.d.ts +6 -0
- package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestFinishReviewRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeConfig.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeConfig.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeConfig.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeConfig.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeRequest.d.ts +8 -0
- package/build/bitbucket-client/models/RestPullRequestMergeRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeStrategy.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeStrategy.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeStrategy.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeStrategy.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeability.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeability.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestMergeability.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestMergeability.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestParticipant.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestParticipant.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestParticipant.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestParticipant.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseRequest.d.ts +4 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseResult.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseResult.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseResult.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseResult.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseability.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseability.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseability.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestRebaseability.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRef.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestRef.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestRef.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestRef.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestReopenRequest.d.ts +4 -0
- package/build/bitbucket-client/models/RestPullRequestReopenRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestReopenRequest.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestReopenRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestSettings.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestSuggestion.d.ts +2 -0
- package/build/bitbucket-client/models/RestPullRequestSuggestion.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPullRequestSuggestion.js +2 -0
- package/build/bitbucket-client/models/RestPullRequestSuggestion.js.map +1 -0
- package/build/bitbucket-client/models/RestPushRefChange.d.ts +2 -0
- package/build/bitbucket-client/models/RestPushRefChange.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestPushRefChange.js +2 -0
- package/build/bitbucket-client/models/RestPushRefChange.js.map +1 -0
- package/build/bitbucket-client/models/RestRateLimitSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestRateLimitSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRateLimitSettings.js +2 -0
- package/build/bitbucket-client/models/RestRateLimitSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestRawAccessToken.d.ts +2 -0
- package/build/bitbucket-client/models/RestRawAccessToken.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRawAccessToken.js +2 -0
- package/build/bitbucket-client/models/RestRawAccessToken.js.map +1 -0
- package/build/bitbucket-client/models/RestRefChange.d.ts +2 -0
- package/build/bitbucket-client/models/RestRefChange.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefChange.js +2 -0
- package/build/bitbucket-client/models/RestRefChange.js.map +1 -0
- package/build/bitbucket-client/models/RestRefMatcher.d.ts +2 -0
- package/build/bitbucket-client/models/RestRefMatcher.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefMatcher.js +2 -0
- package/build/bitbucket-client/models/RestRefMatcher.js.map +1 -0
- package/build/bitbucket-client/models/RestRefMatcherType.d.ts +2 -0
- package/build/bitbucket-client/models/RestRefMatcherType.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefMatcherType.js +2 -0
- package/build/bitbucket-client/models/RestRefMatcherType.js.map +1 -0
- package/build/bitbucket-client/models/RestRefRestriction.d.ts +2 -0
- package/build/bitbucket-client/models/RestRefRestriction.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefRestriction.js +2 -0
- package/build/bitbucket-client/models/RestRefRestriction.js.map +1 -0
- package/build/bitbucket-client/models/RestRefSyncQueue.d.ts +5 -0
- package/build/bitbucket-client/models/RestRefSyncQueue.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefSyncQueue.js +2 -0
- package/build/bitbucket-client/models/RestRefSyncQueue.js.map +1 -0
- package/build/bitbucket-client/models/RestRefSyncRequest.d.ts +14 -0
- package/build/bitbucket-client/models/RestRefSyncRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefSyncRequest.js +10 -0
- package/build/bitbucket-client/models/RestRefSyncRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestRefSyncStatus.d.ts +2 -0
- package/build/bitbucket-client/models/RestRefSyncStatus.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRefSyncStatus.js +2 -0
- package/build/bitbucket-client/models/RestRefSyncStatus.js.map +1 -0
- package/build/bitbucket-client/models/RestRejectedRef.d.ts +2 -0
- package/build/bitbucket-client/models/RestRejectedRef.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRejectedRef.js +2 -0
- package/build/bitbucket-client/models/RestRejectedRef.js.map +1 -0
- package/build/bitbucket-client/models/RestRelatedLinks.d.ts +2 -0
- package/build/bitbucket-client/models/RestRelatedLinks.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRelatedLinks.js +2 -0
- package/build/bitbucket-client/models/RestRelatedLinks.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoriesExportRequest.d.ts +5 -0
- package/build/bitbucket-client/models/RestRepositoriesExportRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoriesExportRequest.js +2 -0
- package/build/bitbucket-client/models/RestRepositoriesExportRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestRepository.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepository.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepository.js +2 -0
- package/build/bitbucket-client/models/RestRepository.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryHook.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepositoryHook.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryHook.js +2 -0
- package/build/bitbucket-client/models/RestRepositoryHook.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryHookVeto.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepositoryHookVeto.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryHookVeto.js +2 -0
- package/build/bitbucket-client/models/RestRepositoryHookVeto.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryLockOwner.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepositoryLockOwner.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryLockOwner.js +2 -0
- package/build/bitbucket-client/models/RestRepositoryLockOwner.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryMirrorEvent.d.ts +12 -0
- package/build/bitbucket-client/models/RestRepositoryMirrorEvent.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryMirrorEvent.js +9 -0
- package/build/bitbucket-client/models/RestRepositoryMirrorEvent.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryPolicy.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepositoryPolicy.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryPolicy.js +2 -0
- package/build/bitbucket-client/models/RestRepositoryPolicy.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.js +2 -0
- package/build/bitbucket-client/models/RestRepositoryPullRequestSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.d.ts +2 -0
- package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.js +2 -0
- package/build/bitbucket-client/models/RestRepositoryRefChangeActivity.js.map +1 -0
- package/build/bitbucket-client/models/RestRepositorySelector.d.ts +5 -0
- package/build/bitbucket-client/models/RestRepositorySelector.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRepositorySelector.js +2 -0
- package/build/bitbucket-client/models/RestRepositorySelector.js.map +1 -0
- package/build/bitbucket-client/models/RestRequiredBuildCondition.d.ts +2 -0
- package/build/bitbucket-client/models/RestRequiredBuildCondition.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRequiredBuildCondition.js +2 -0
- package/build/bitbucket-client/models/RestRequiredBuildCondition.js.map +1 -0
- package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.d.ts +26 -0
- package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.js +12 -0
- package/build/bitbucket-client/models/RestRequiredBuildConditionSetRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestRestrictionRequest.d.ts +39 -0
- package/build/bitbucket-client/models/RestRestrictionRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRestrictionRequest.js +18 -0
- package/build/bitbucket-client/models/RestRestrictionRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestReviewerGroup.d.ts +2 -0
- package/build/bitbucket-client/models/RestReviewerGroup.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestReviewerGroup.js +2 -0
- package/build/bitbucket-client/models/RestReviewerGroup.js.map +1 -0
- package/build/bitbucket-client/models/RestRollingUpgradeState.d.ts +2 -0
- package/build/bitbucket-client/models/RestRollingUpgradeState.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestRollingUpgradeState.js +2 -0
- package/build/bitbucket-client/models/RestRollingUpgradeState.js.map +1 -0
- package/build/bitbucket-client/models/RestScope.d.ts +2 -0
- package/build/bitbucket-client/models/RestScope.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestScope.js +2 -0
- package/build/bitbucket-client/models/RestScope.js.map +1 -0
- package/build/bitbucket-client/models/RestScopesExample.d.ts +2 -0
- package/build/bitbucket-client/models/RestScopesExample.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestScopesExample.js +2 -0
- package/build/bitbucket-client/models/RestScopesExample.js.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.d.ts +2 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.js +2 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRule.js.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.d.ts +15 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.js +2 -0
- package/build/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningRule.d.ts +2 -0
- package/build/bitbucket-client/models/RestSecretScanningRule.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningRule.js +2 -0
- package/build/bitbucket-client/models/RestSecretScanningRule.js.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.d.ts +15 -0
- package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.js +2 -0
- package/build/bitbucket-client/models/RestSecretScanningRuleSetRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestSetInsightReportRequest.d.ts +13 -0
- package/build/bitbucket-client/models/RestSetInsightReportRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSetInsightReportRequest.js +2 -0
- package/build/bitbucket-client/models/RestSetInsightReportRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.d.ts +10 -0
- package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.js +2 -0
- package/build/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestSshAccessKey.d.ts +2 -0
- package/build/bitbucket-client/models/RestSshAccessKey.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshAccessKey.js +2 -0
- package/build/bitbucket-client/models/RestSshAccessKey.js.map +1 -0
- package/build/bitbucket-client/models/RestSshAccessKeyLocations.d.ts +7 -0
- package/build/bitbucket-client/models/RestSshAccessKeyLocations.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshAccessKeyLocations.js +2 -0
- package/build/bitbucket-client/models/RestSshAccessKeyLocations.js.map +1 -0
- package/build/bitbucket-client/models/RestSshCredentials.d.ts +12 -0
- package/build/bitbucket-client/models/RestSshCredentials.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshCredentials.js +2 -0
- package/build/bitbucket-client/models/RestSshCredentials.js.map +1 -0
- package/build/bitbucket-client/models/RestSshKey.d.ts +2 -0
- package/build/bitbucket-client/models/RestSshKey.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshKey.js +2 -0
- package/build/bitbucket-client/models/RestSshKey.js.map +1 -0
- package/build/bitbucket-client/models/RestSshKeySettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestSshKeySettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshKeySettings.js +2 -0
- package/build/bitbucket-client/models/RestSshKeySettings.js.map +1 -0
- package/build/bitbucket-client/models/RestSshKeyTypeRestriction.d.ts +2 -0
- package/build/bitbucket-client/models/RestSshKeyTypeRestriction.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshKeyTypeRestriction.js +2 -0
- package/build/bitbucket-client/models/RestSshKeyTypeRestriction.js.map +1 -0
- package/build/bitbucket-client/models/RestSshSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestSshSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSshSettings.js +2 -0
- package/build/bitbucket-client/models/RestSshSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestSyncProgress.d.ts +2 -0
- package/build/bitbucket-client/models/RestSyncProgress.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSyncProgress.js +2 -0
- package/build/bitbucket-client/models/RestSyncProgress.js.map +1 -0
- package/build/bitbucket-client/models/RestSystemSigningConfiguration.d.ts +2 -0
- package/build/bitbucket-client/models/RestSystemSigningConfiguration.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestSystemSigningConfiguration.js +2 -0
- package/build/bitbucket-client/models/RestSystemSigningConfiguration.js.map +1 -0
- package/build/bitbucket-client/models/RestTag.d.ts +2 -0
- package/build/bitbucket-client/models/RestTag.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestTag.js +2 -0
- package/build/bitbucket-client/models/RestTag.js.map +1 -0
- package/build/bitbucket-client/models/RestTestResults.d.ts +2 -0
- package/build/bitbucket-client/models/RestTestResults.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestTestResults.js +2 -0
- package/build/bitbucket-client/models/RestTestResults.js.map +1 -0
- package/build/bitbucket-client/models/RestTokenBucketSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestTokenBucketSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestTokenBucketSettings.js +2 -0
- package/build/bitbucket-client/models/RestTokenBucketSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestUpstreamServer.d.ts +2 -0
- package/build/bitbucket-client/models/RestUpstreamServer.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUpstreamServer.js +2 -0
- package/build/bitbucket-client/models/RestUpstreamServer.js.map +1 -0
- package/build/bitbucket-client/models/RestUpstreamSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestUpstreamSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUpstreamSettings.js +2 -0
- package/build/bitbucket-client/models/RestUpstreamSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestUserDirectory.d.ts +2 -0
- package/build/bitbucket-client/models/RestUserDirectory.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUserDirectory.js +2 -0
- package/build/bitbucket-client/models/RestUserDirectory.js.map +1 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettings.d.ts +2 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettings.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettings.js +2 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettings.js.map +1 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.d.ts +8 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.js +2 -0
- package/build/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.js.map +1 -0
- package/build/bitbucket-client/models/RestUserReaction.d.ts +2 -0
- package/build/bitbucket-client/models/RestUserReaction.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUserReaction.js +2 -0
- package/build/bitbucket-client/models/RestUserReaction.js.map +1 -0
- package/build/bitbucket-client/models/RestUsernamePasswordCredentials.d.ts +5 -0
- package/build/bitbucket-client/models/RestUsernamePasswordCredentials.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestUsernamePasswordCredentials.js +2 -0
- package/build/bitbucket-client/models/RestUsernamePasswordCredentials.js.map +1 -0
- package/build/bitbucket-client/models/RestWebhook.d.ts +2 -0
- package/build/bitbucket-client/models/RestWebhook.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestWebhook.js +2 -0
- package/build/bitbucket-client/models/RestWebhook.js.map +1 -0
- package/build/bitbucket-client/models/RestWebhookCredentials.d.ts +2 -0
- package/build/bitbucket-client/models/RestWebhookCredentials.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestWebhookCredentials.js +2 -0
- package/build/bitbucket-client/models/RestWebhookCredentials.js.map +1 -0
- package/build/bitbucket-client/models/RestWebhookRequestResponse.d.ts +2 -0
- package/build/bitbucket-client/models/RestWebhookRequestResponse.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestWebhookRequestResponse.js +2 -0
- package/build/bitbucket-client/models/RestWebhookRequestResponse.js.map +1 -0
- package/build/bitbucket-client/models/RestWebhookScope.d.ts +2 -0
- package/build/bitbucket-client/models/RestWebhookScope.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestWebhookScope.js +2 -0
- package/build/bitbucket-client/models/RestWebhookScope.js.map +1 -0
- package/build/bitbucket-client/models/RestX509Certificate.d.ts +2 -0
- package/build/bitbucket-client/models/RestX509Certificate.d.ts.map +1 -0
- package/build/bitbucket-client/models/RestX509Certificate.js +2 -0
- package/build/bitbucket-client/models/RestX509Certificate.js.map +1 -0
- package/build/bitbucket-client/models/Scope.d.ts +12 -0
- package/build/bitbucket-client/models/Scope.d.ts.map +1 -0
- package/build/bitbucket-client/models/Scope.js +10 -0
- package/build/bitbucket-client/models/Scope.js.map +1 -0
- package/build/bitbucket-client/models/SimpleSshKeyFingerprint.d.ts +2 -0
- package/build/bitbucket-client/models/SimpleSshKeyFingerprint.d.ts.map +1 -0
- package/build/bitbucket-client/models/SimpleSshKeyFingerprint.js +2 -0
- package/build/bitbucket-client/models/SimpleSshKeyFingerprint.js.map +1 -0
- package/build/bitbucket-client/models/SsoConfigEntity.d.ts +2 -0
- package/build/bitbucket-client/models/SsoConfigEntity.d.ts.map +1 -0
- package/build/bitbucket-client/models/SsoConfigEntity.js +2 -0
- package/build/bitbucket-client/models/SsoConfigEntity.js.map +1 -0
- package/build/bitbucket-client/models/SsoManagementStatusDTO.d.ts +2 -0
- package/build/bitbucket-client/models/SsoManagementStatusDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/SsoManagementStatusDTO.js +2 -0
- package/build/bitbucket-client/models/SsoManagementStatusDTO.js.map +1 -0
- package/build/bitbucket-client/models/StatusDTO.d.ts +2 -0
- package/build/bitbucket-client/models/StatusDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/StatusDTO.js +2 -0
- package/build/bitbucket-client/models/StatusDTO.js.map +1 -0
- package/build/bitbucket-client/models/TotpCodeVerificationDTO.d.ts +5 -0
- package/build/bitbucket-client/models/TotpCodeVerificationDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/TotpCodeVerificationDTO.js +2 -0
- package/build/bitbucket-client/models/TotpCodeVerificationDTO.js.map +1 -0
- package/build/bitbucket-client/models/TotpElevationRestDTO.d.ts +4 -0
- package/build/bitbucket-client/models/TotpElevationRestDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/TotpElevationRestDTO.js +2 -0
- package/build/bitbucket-client/models/TotpElevationRestDTO.js.map +1 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.d.ts +5 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.js +2 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.js.map +1 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeDTO.d.ts +2 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeDTO.js +2 -0
- package/build/bitbucket-client/models/TotpRecoveryCodeDTO.js.map +1 -0
- package/build/bitbucket-client/models/TotpUserEnrollmentDTO.d.ts +2 -0
- package/build/bitbucket-client/models/TotpUserEnrollmentDTO.d.ts.map +1 -0
- package/build/bitbucket-client/models/TotpUserEnrollmentDTO.js +2 -0
- package/build/bitbucket-client/models/TotpUserEnrollmentDTO.js.map +1 -0
- package/build/bitbucket-client/models/UserAndGroups.d.ts +5 -0
- package/build/bitbucket-client/models/UserAndGroups.d.ts.map +1 -0
- package/build/bitbucket-client/models/UserAndGroups.js +2 -0
- package/build/bitbucket-client/models/UserAndGroups.js.map +1 -0
- package/build/bitbucket-client/models/UserPasswordUpdate.d.ts +6 -0
- package/build/bitbucket-client/models/UserPasswordUpdate.d.ts.map +1 -0
- package/build/bitbucket-client/models/UserPasswordUpdate.js +2 -0
- package/build/bitbucket-client/models/UserPasswordUpdate.js.map +1 -0
- package/build/bitbucket-client/models/UserPickerContext.d.ts +5 -0
- package/build/bitbucket-client/models/UserPickerContext.d.ts.map +1 -0
- package/build/bitbucket-client/models/UserPickerContext.js +2 -0
- package/build/bitbucket-client/models/UserPickerContext.js.map +1 -0
- package/build/bitbucket-client/models/UserRename.d.ts +5 -0
- package/build/bitbucket-client/models/UserRename.d.ts.map +1 -0
- package/build/bitbucket-client/models/UserRename.js +2 -0
- package/build/bitbucket-client/models/UserRename.js.map +1 -0
- package/build/bitbucket-client/models/UserUpdate.d.ts +6 -0
- package/build/bitbucket-client/models/UserUpdate.d.ts.map +1 -0
- package/build/bitbucket-client/models/UserUpdate.js +2 -0
- package/build/bitbucket-client/models/UserUpdate.js.map +1 -0
- package/build/bitbucket-client/models/UserUpdateWithCredentials.d.ts +10 -0
- package/build/bitbucket-client/models/UserUpdateWithCredentials.d.ts.map +1 -0
- package/build/bitbucket-client/models/UserUpdateWithCredentials.js +2 -0
- package/build/bitbucket-client/models/UserUpdateWithCredentials.js.map +1 -0
- package/build/bitbucket-client/services/AuthenticationService.d.ts +684 -0
- package/build/bitbucket-client/services/AuthenticationService.d.ts.map +1 -0
- package/build/bitbucket-client/services/AuthenticationService.js +1381 -0
- package/build/bitbucket-client/services/AuthenticationService.js.map +1 -0
- package/build/bitbucket-client/services/BuildsAndDeploymentsService.d.ts +364 -0
- package/build/bitbucket-client/services/BuildsAndDeploymentsService.d.ts.map +1 -0
- package/build/bitbucket-client/services/BuildsAndDeploymentsService.js +705 -0
- package/build/bitbucket-client/services/BuildsAndDeploymentsService.js.map +1 -0
- package/build/bitbucket-client/services/CapabilitiesService.d.ts +19 -0
- package/build/bitbucket-client/services/CapabilitiesService.d.ts.map +1 -0
- package/build/bitbucket-client/services/CapabilitiesService.js +32 -0
- package/build/bitbucket-client/services/CapabilitiesService.js.map +1 -0
- package/build/bitbucket-client/services/DashboardService.d.ts +46 -0
- package/build/bitbucket-client/services/DashboardService.d.ts.map +1 -0
- package/build/bitbucket-client/services/DashboardService.js +63 -0
- package/build/bitbucket-client/services/DashboardService.js.map +1 -0
- package/build/bitbucket-client/services/DefaultService.d.ts +21 -0
- package/build/bitbucket-client/services/DefaultService.d.ts.map +1 -0
- package/build/bitbucket-client/services/DefaultService.js +37 -0
- package/build/bitbucket-client/services/DefaultService.js.map +1 -0
- package/build/bitbucket-client/services/DeprecatedService.d.ts +185 -0
- package/build/bitbucket-client/services/DeprecatedService.d.ts.map +1 -0
- package/build/bitbucket-client/services/DeprecatedService.js +338 -0
- package/build/bitbucket-client/services/DeprecatedService.js.map +1 -0
- package/build/bitbucket-client/services/JiraIntegrationService.d.ts +64 -0
- package/build/bitbucket-client/services/JiraIntegrationService.d.ts.map +1 -0
- package/build/bitbucket-client/services/JiraIntegrationService.js +102 -0
- package/build/bitbucket-client/services/JiraIntegrationService.js.map +1 -0
- package/build/bitbucket-client/services/MarkupService.d.ts +19 -0
- package/build/bitbucket-client/services/MarkupService.d.ts.map +1 -0
- package/build/bitbucket-client/services/MarkupService.js +36 -0
- package/build/bitbucket-client/services/MarkupService.js.map +1 -0
- package/build/bitbucket-client/services/MirroringMirrorService.d.ts +182 -0
- package/build/bitbucket-client/services/MirroringMirrorService.d.ts.map +1 -0
- package/build/bitbucket-client/services/MirroringMirrorService.js +375 -0
- package/build/bitbucket-client/services/MirroringMirrorService.js.map +1 -0
- package/build/bitbucket-client/services/MirroringUpstreamService.d.ts +215 -0
- package/build/bitbucket-client/services/MirroringUpstreamService.d.ts.map +1 -0
- package/build/bitbucket-client/services/MirroringUpstreamService.js +405 -0
- package/build/bitbucket-client/services/MirroringUpstreamService.js.map +1 -0
- package/build/bitbucket-client/services/PermissionManagementService.d.ts +713 -0
- package/build/bitbucket-client/services/PermissionManagementService.d.ts.map +1 -0
- package/build/bitbucket-client/services/PermissionManagementService.js +1210 -0
- package/build/bitbucket-client/services/PermissionManagementService.js.map +1 -0
- package/build/bitbucket-client/services/ProjectService.d.ts +1082 -0
- package/build/bitbucket-client/services/ProjectService.d.ts.map +1 -0
- package/build/bitbucket-client/services/ProjectService.js +2096 -0
- package/build/bitbucket-client/services/ProjectService.js.map +1 -0
- package/build/bitbucket-client/services/PullRequestsService.d.ts +1370 -0
- package/build/bitbucket-client/services/PullRequestsService.d.ts.map +1 -0
- package/build/bitbucket-client/services/PullRequestsService.js +2481 -0
- package/build/bitbucket-client/services/PullRequestsService.js.map +1 -0
- package/build/bitbucket-client/services/RepositoryService.d.ts +1734 -0
- package/build/bitbucket-client/services/RepositoryService.d.ts.map +1 -0
- package/build/bitbucket-client/services/RepositoryService.js +3228 -0
- package/build/bitbucket-client/services/RepositoryService.js.map +1 -0
- package/build/bitbucket-client/services/SecurityService.d.ts +542 -0
- package/build/bitbucket-client/services/SecurityService.d.ts.map +1 -0
- package/build/bitbucket-client/services/SecurityService.js +1049 -0
- package/build/bitbucket-client/services/SecurityService.js.map +1 -0
- package/build/bitbucket-client/services/SystemMaintenanceService.d.ts +1174 -0
- package/build/bitbucket-client/services/SystemMaintenanceService.d.ts.map +1 -0
- package/build/bitbucket-client/services/SystemMaintenanceService.js +1996 -0
- package/build/bitbucket-client/services/SystemMaintenanceService.js.map +1 -0
- package/build/bitbucket-response-mapper.d.ts +8 -0
- package/build/bitbucket-response-mapper.d.ts.map +1 -0
- package/build/bitbucket-response-mapper.js +102 -0
- package/build/bitbucket-response-mapper.js.map +1 -0
- package/build/bitbucket-service.d.ts +1655 -0
- package/build/bitbucket-service.d.ts.map +1 -0
- package/build/bitbucket-service.js +2186 -0
- package/build/bitbucket-service.js.map +1 -0
- package/build/config.d.ts +6 -0
- package/build/config.d.ts.map +1 -0
- package/build/config.js +22 -0
- package/build/config.js.map +1 -0
- package/build/inbox-pr-mapper.d.ts +39 -0
- package/build/inbox-pr-mapper.d.ts.map +1 -0
- package/build/inbox-pr-mapper.js +76 -0
- package/build/inbox-pr-mapper.js.map +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +332 -0
- package/build/index.js.map +1 -0
- package/build/pr-changes-mapper.d.ts +32 -0
- package/build/pr-changes-mapper.d.ts.map +1 -0
- package/build/pr-changes-mapper.js +111 -0
- package/build/pr-changes-mapper.js.map +1 -0
- package/build/pr-comment-mapper.d.ts +55 -0
- package/build/pr-comment-mapper.d.ts.map +1 -0
- package/build/pr-comment-mapper.js +182 -0
- package/build/pr-comment-mapper.js.map +1 -0
- package/build/setup.d.ts +2 -0
- package/build/setup.d.ts.map +1 -0
- package/build/setup.js +16 -0
- package/build/setup.js.map +1 -0
- package/jest.config.js +24 -0
- package/package.json +53 -0
- package/server.json +51 -0
- package/src/__tests__/bitbucket-service.test.ts +4626 -0
- package/src/__tests__/bitbucket-token-optimization.test.ts +429 -0
- package/src/__tests__/config.test.ts +64 -0
- package/src/__tests__/inbox-pr-mapper.test.ts +347 -0
- package/src/__tests__/pr-changes-mapper.test.ts +420 -0
- package/src/__tests__/pr-comment-mapper.test.ts +559 -0
- package/src/bitbucket-client/core/ApiError.ts +26 -0
- package/src/bitbucket-client/core/ApiRequestOptions.ts +17 -0
- package/src/bitbucket-client/core/ApiResult.ts +11 -0
- package/src/bitbucket-client/core/CancelablePromise.ts +131 -0
- package/src/bitbucket-client/core/OpenAPI.ts +33 -0
- package/src/bitbucket-client/core/request.ts +337 -0
- package/src/bitbucket-client/index.ts +303 -0
- package/src/bitbucket-client/models/AdminPasswordUpdate.ts +10 -0
- package/src/bitbucket-client/models/ApplicationId.ts +5 -0
- package/src/bitbucket-client/models/ApplicationUser.ts +7 -0
- package/src/bitbucket-client/models/AuthenticationEntity.ts +13 -0
- package/src/bitbucket-client/models/AuthenticationResponse.ts +7 -0
- package/src/bitbucket-client/models/BasicAuthConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/CaptchaDataEntity.ts +7 -0
- package/src/bitbucket-client/models/Comment.ts +38 -0
- package/src/bitbucket-client/models/CommentOperations.ts +10 -0
- package/src/bitbucket-client/models/CommentThread.ts +22 -0
- package/src/bitbucket-client/models/CommentThreadDiffAnchor.ts +46 -0
- package/src/bitbucket-client/models/Commentable.ts +5 -0
- package/src/bitbucket-client/models/Context.ts +8 -0
- package/src/bitbucket-client/models/ConversationDTO.ts +8 -0
- package/src/bitbucket-client/models/Credentials.ts +10 -0
- package/src/bitbucket-client/models/CredentialsCheckFailedDTO.ts +7 -0
- package/src/bitbucket-client/models/DiffContentFilter.ts +5 -0
- package/src/bitbucket-client/models/ElevationMethodRestDTO.ts +7 -0
- package/src/bitbucket-client/models/EnrichedRepository.ts +7 -0
- package/src/bitbucket-client/models/ErrorEntity.ts +7 -0
- package/src/bitbucket-client/models/ExampleAvatarMultipartFormData.ts +11 -0
- package/src/bitbucket-client/models/ExampleCertificateMultipartFormData.ts +11 -0
- package/src/bitbucket-client/models/ExampleFiles.ts +7 -0
- package/src/bitbucket-client/models/ExampleJsonLastModifiedCallback.ts +7 -0
- package/src/bitbucket-client/models/ExampleMultipartFormData.ts +27 -0
- package/src/bitbucket-client/models/ExamplePostMultipartFormData.ts +23 -0
- package/src/bitbucket-client/models/ExamplePreviewMigration.ts +7 -0
- package/src/bitbucket-client/models/ExamplePutMultipartFormData.ts +19 -0
- package/src/bitbucket-client/models/ExampleRequirements.ts +7 -0
- package/src/bitbucket-client/models/ExampleSettings.ts +7 -0
- package/src/bitbucket-client/models/ExampleSettingsMap.ts +7 -0
- package/src/bitbucket-client/models/ExampleSocketAddress.ts +7 -0
- package/src/bitbucket-client/models/ExampleStatus.ts +7 -0
- package/src/bitbucket-client/models/FileListResource.ts +7 -0
- package/src/bitbucket-client/models/FilePart.ts +13 -0
- package/src/bitbucket-client/models/Group.ts +7 -0
- package/src/bitbucket-client/models/GroupAndUsers.ts +9 -0
- package/src/bitbucket-client/models/GroupPickerContext.ts +9 -0
- package/src/bitbucket-client/models/IdpConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/JitConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/JitUserEntity.ts +7 -0
- package/src/bitbucket-client/models/LineNumberRange.ts +10 -0
- package/src/bitbucket-client/models/LoginOptionEntity.ts +7 -0
- package/src/bitbucket-client/models/MethodStateDTO.ts +7 -0
- package/src/bitbucket-client/models/NextLoginStepDTO.ts +7 -0
- package/src/bitbucket-client/models/OptionalBodyBeanParam.ts +5 -0
- package/src/bitbucket-client/models/PageRequestImpl.ts +9 -0
- package/src/bitbucket-client/models/PasswordElevationRestDTO.ts +8 -0
- package/src/bitbucket-client/models/Project.ts +19 -0
- package/src/bitbucket-client/models/PropertyMap.ts +7 -0
- package/src/bitbucket-client/models/PullRequest.ts +36 -0
- package/src/bitbucket-client/models/PullRequestParticipant.ts +28 -0
- package/src/bitbucket-client/models/PullRequestRef.ts +15 -0
- package/src/bitbucket-client/models/RefType.ts +7 -0
- package/src/bitbucket-client/models/Repository.ts +36 -0
- package/src/bitbucket-client/models/RepositoryHookDetails.ts +7 -0
- package/src/bitbucket-client/models/RestAccessToken.ts +7 -0
- package/src/bitbucket-client/models/RestAccessTokenRequest.ts +10 -0
- package/src/bitbucket-client/models/RestAggregateRejectCounter.ts +7 -0
- package/src/bitbucket-client/models/RestAnalyticsSettings.ts +7 -0
- package/src/bitbucket-client/models/RestAnnouncementBanner.ts +7 -0
- package/src/bitbucket-client/models/RestApplicationProperties.ts +7 -0
- package/src/bitbucket-client/models/RestApplicationUser.ts +7 -0
- package/src/bitbucket-client/models/RestApplicationUserWithPermissions.ts +7 -0
- package/src/bitbucket-client/models/RestApplySuggestionRequest.ts +11 -0
- package/src/bitbucket-client/models/RestAttachmentMetadata.ts +7 -0
- package/src/bitbucket-client/models/RestAuthenticationRequest.ts +11 -0
- package/src/bitbucket-client/models/RestAutoDeclineSettings.ts +7 -0
- package/src/bitbucket-client/models/RestAutoDeclineSettingsRequest.ts +9 -0
- package/src/bitbucket-client/models/RestAutoMergeProcessingResult.ts +7 -0
- package/src/bitbucket-client/models/RestAutoMergeProjectSettingsRequest.ts +16 -0
- package/src/bitbucket-client/models/RestAutoMergeRequest.ts +7 -0
- package/src/bitbucket-client/models/RestAutoMergeRestrictedSettings.ts +7 -0
- package/src/bitbucket-client/models/RestAutoMergeSettingsRequest.ts +8 -0
- package/src/bitbucket-client/models/RestBearerTokenCredentials.ts +8 -0
- package/src/bitbucket-client/models/RestBitbucketLicense.ts +7 -0
- package/src/bitbucket-client/models/RestBranch.ts +7 -0
- package/src/bitbucket-client/models/RestBranchCreateRequest.ts +15 -0
- package/src/bitbucket-client/models/RestBranchDeleteRequest.ts +19 -0
- package/src/bitbucket-client/models/RestBuildCapabilities.ts +7 -0
- package/src/bitbucket-client/models/RestBuildStats.ts +7 -0
- package/src/bitbucket-client/models/RestBuildStatus.ts +7 -0
- package/src/bitbucket-client/models/RestBuildStatusSetRequest.ts +31 -0
- package/src/bitbucket-client/models/RestBulkAddInsightAnnotationRequest.ts +10 -0
- package/src/bitbucket-client/models/RestBulkUserRateLimitSettingsUpdateRequest.ts +13 -0
- package/src/bitbucket-client/models/RestChange.ts +7 -0
- package/src/bitbucket-client/models/RestChangeset.ts +7 -0
- package/src/bitbucket-client/models/RestClusterInformation.ts +7 -0
- package/src/bitbucket-client/models/RestClusterNode.ts +7 -0
- package/src/bitbucket-client/models/RestComment.ts +7 -0
- package/src/bitbucket-client/models/RestCommentJiraIssue.ts +7 -0
- package/src/bitbucket-client/models/RestCommentThreadDiffAnchor.ts +7 -0
- package/src/bitbucket-client/models/RestCommit.ts +7 -0
- package/src/bitbucket-client/models/RestCommitMessageSuggestion.ts +7 -0
- package/src/bitbucket-client/models/RestConflict.ts +7 -0
- package/src/bitbucket-client/models/RestConflictChange.ts +7 -0
- package/src/bitbucket-client/models/RestConnectivitySummary.ts +7 -0
- package/src/bitbucket-client/models/RestCreateBranchRequest.ts +10 -0
- package/src/bitbucket-client/models/RestCreateTagRequest.ts +10 -0
- package/src/bitbucket-client/models/RestDefaultBranch.ts +8 -0
- package/src/bitbucket-client/models/RestDefaultReviewersRequest.ts +38 -0
- package/src/bitbucket-client/models/RestDefaultTask.ts +7 -0
- package/src/bitbucket-client/models/RestDefaultTaskRequest.ts +33 -0
- package/src/bitbucket-client/models/RestDelayedSyncRepository.ts +10 -0
- package/src/bitbucket-client/models/RestDeployment.ts +7 -0
- package/src/bitbucket-client/models/RestDeploymentEnvironment.ts +7 -0
- package/src/bitbucket-client/models/RestDeploymentSetRequest.ts +28 -0
- package/src/bitbucket-client/models/RestDetailedGroup.ts +7 -0
- package/src/bitbucket-client/models/RestDetailedInvocation.ts +7 -0
- package/src/bitbucket-client/models/RestDetailedUser.ts +7 -0
- package/src/bitbucket-client/models/RestDiff.ts +7 -0
- package/src/bitbucket-client/models/RestDiffHunk.ts +7 -0
- package/src/bitbucket-client/models/RestDiffLine.ts +7 -0
- package/src/bitbucket-client/models/RestDiffSegment.ts +7 -0
- package/src/bitbucket-client/models/RestDiffStatsSummary.ts +7 -0
- package/src/bitbucket-client/models/RestEmoticon.ts +7 -0
- package/src/bitbucket-client/models/RestEnhancedEntityLink.ts +7 -0
- package/src/bitbucket-client/models/RestErasedUser.ts +7 -0
- package/src/bitbucket-client/models/RestErrorMessage.ts +7 -0
- package/src/bitbucket-client/models/RestErrors.ts +7 -0
- package/src/bitbucket-client/models/RestExportRequest.ts +13 -0
- package/src/bitbucket-client/models/RestFarmSynchronizationRequest.ts +17 -0
- package/src/bitbucket-client/models/RestGitTagCreateRequest.ts +18 -0
- package/src/bitbucket-client/models/RestGpgKey.ts +7 -0
- package/src/bitbucket-client/models/RestGpgSubKey.ts +7 -0
- package/src/bitbucket-client/models/RestHookScript.ts +7 -0
- package/src/bitbucket-client/models/RestHookScriptConfig.ts +7 -0
- package/src/bitbucket-client/models/RestHookScriptTriggers.ts +8 -0
- package/src/bitbucket-client/models/RestImportRequest.ts +8 -0
- package/src/bitbucket-client/models/RestInsightAnnotation.ts +7 -0
- package/src/bitbucket-client/models/RestInsightAnnotationsResponse.ts +7 -0
- package/src/bitbucket-client/models/RestInsightReport.ts +7 -0
- package/src/bitbucket-client/models/RestInsightReportData.ts +7 -0
- package/src/bitbucket-client/models/RestInvocationHistory.ts +7 -0
- package/src/bitbucket-client/models/RestInvocationRequest.ts +7 -0
- package/src/bitbucket-client/models/RestInvocationResult.ts +7 -0
- package/src/bitbucket-client/models/RestJiraIssue.ts +9 -0
- package/src/bitbucket-client/models/RestJob.ts +7 -0
- package/src/bitbucket-client/models/RestJobMessage.ts +7 -0
- package/src/bitbucket-client/models/RestLabel.ts +7 -0
- package/src/bitbucket-client/models/RestLabelable.ts +7 -0
- package/src/bitbucket-client/models/RestLogLevel.ts +7 -0
- package/src/bitbucket-client/models/RestLoggingSettings.ts +7 -0
- package/src/bitbucket-client/models/RestMailConfiguration.ts +7 -0
- package/src/bitbucket-client/models/RestMarkup.ts +7 -0
- package/src/bitbucket-client/models/RestMeshConnectivityReport.ts +7 -0
- package/src/bitbucket-client/models/RestMeshMigrationQueueStateCounts.ts +7 -0
- package/src/bitbucket-client/models/RestMeshMigrationRequest.ts +14 -0
- package/src/bitbucket-client/models/RestMeshMigrationSummary.ts +7 -0
- package/src/bitbucket-client/models/RestMeshNode.ts +7 -0
- package/src/bitbucket-client/models/RestMigrationRepository.ts +7 -0
- package/src/bitbucket-client/models/RestMinimalCommit.ts +7 -0
- package/src/bitbucket-client/models/RestMinimalRef.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorHashes.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorRepositorySynchronizationStatus.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorServer.ts +7 -0
- package/src/bitbucket-client/models/RestMirrorUpgradeRequest.ts +9 -0
- package/src/bitbucket-client/models/RestMirroredRepository.ts +7 -0
- package/src/bitbucket-client/models/RestMirroredRepositoryDescriptor.ts +7 -0
- package/src/bitbucket-client/models/RestMirroringRequest.ts +7 -0
- package/src/bitbucket-client/models/RestMultilineCommentMarker.ts +7 -0
- package/src/bitbucket-client/models/RestMultilineCommentSpan.ts +7 -0
- package/src/bitbucket-client/models/RestMultipleBuildStats.ts +7 -0
- package/src/bitbucket-client/models/RestNamedLink.ts +7 -0
- package/src/bitbucket-client/models/RestNode.ts +7 -0
- package/src/bitbucket-client/models/RestNodeConnectivityReport.ts +7 -0
- package/src/bitbucket-client/models/RestNodeConnectivitySummary.ts +7 -0
- package/src/bitbucket-client/models/RestPageIdpConfigEntity.ts +14 -0
- package/src/bitbucket-client/models/RestPageLoginOptionEntity.ts +14 -0
- package/src/bitbucket-client/models/RestPageRestChange.ts +7 -0
- package/src/bitbucket-client/models/RestPath.ts +7 -0
- package/src/bitbucket-client/models/RestPermitted.ts +7 -0
- package/src/bitbucket-client/models/RestPermittedGroup.ts +7 -0
- package/src/bitbucket-client/models/RestPermittedUser.ts +7 -0
- package/src/bitbucket-client/models/RestPerson.ts +7 -0
- package/src/bitbucket-client/models/RestProgress.ts +7 -0
- package/src/bitbucket-client/models/RestProject.ts +7 -0
- package/src/bitbucket-client/models/RestProjectSettingsRestriction.ts +7 -0
- package/src/bitbucket-client/models/RestProjectSettingsRestrictionRequest.ts +10 -0
- package/src/bitbucket-client/models/RestProperties.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequest.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestActivity.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestAssignParticipantRoleRequest.ts +30 -0
- package/src/bitbucket-client/models/RestPullRequestAssignStatusRequest.ts +16 -0
- package/src/bitbucket-client/models/RestPullRequestCommitMessageTemplate.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestCondition.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestDeclineRequest.ts +9 -0
- package/src/bitbucket-client/models/RestPullRequestDeleteRequest.ts +8 -0
- package/src/bitbucket-client/models/RestPullRequestFinishReviewRequest.ts +10 -0
- package/src/bitbucket-client/models/RestPullRequestMergeConfig.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestMergeRequest.ts +12 -0
- package/src/bitbucket-client/models/RestPullRequestMergeStrategy.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestMergeability.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestParticipant.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestRebaseRequest.ts +8 -0
- package/src/bitbucket-client/models/RestPullRequestRebaseResult.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestRebaseability.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestRef.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestReopenRequest.ts +8 -0
- package/src/bitbucket-client/models/RestPullRequestSettings.ts +7 -0
- package/src/bitbucket-client/models/RestPullRequestSuggestion.ts +7 -0
- package/src/bitbucket-client/models/RestPushRefChange.ts +7 -0
- package/src/bitbucket-client/models/RestRateLimitSettings.ts +7 -0
- package/src/bitbucket-client/models/RestRawAccessToken.ts +7 -0
- package/src/bitbucket-client/models/RestRefChange.ts +7 -0
- package/src/bitbucket-client/models/RestRefMatcher.ts +7 -0
- package/src/bitbucket-client/models/RestRefMatcherType.ts +7 -0
- package/src/bitbucket-client/models/RestRefRestriction.ts +7 -0
- package/src/bitbucket-client/models/RestRefSyncQueue.ts +10 -0
- package/src/bitbucket-client/models/RestRefSyncRequest.ts +19 -0
- package/src/bitbucket-client/models/RestRefSyncStatus.ts +7 -0
- package/src/bitbucket-client/models/RestRejectedRef.ts +7 -0
- package/src/bitbucket-client/models/RestRelatedLinks.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoriesExportRequest.ts +10 -0
- package/src/bitbucket-client/models/RestRepository.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryHook.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryHookVeto.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryLockOwner.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryMirrorEvent.ts +16 -0
- package/src/bitbucket-client/models/RestRepositoryPolicy.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryPullRequestSettings.ts +7 -0
- package/src/bitbucket-client/models/RestRepositoryRefChangeActivity.ts +7 -0
- package/src/bitbucket-client/models/RestRepositorySelector.ts +9 -0
- package/src/bitbucket-client/models/RestRequiredBuildCondition.ts +7 -0
- package/src/bitbucket-client/models/RestRequiredBuildConditionSetRequest.ts +31 -0
- package/src/bitbucket-client/models/RestRestrictionRequest.ts +44 -0
- package/src/bitbucket-client/models/RestReviewerGroup.ts +7 -0
- package/src/bitbucket-client/models/RestRollingUpgradeState.ts +7 -0
- package/src/bitbucket-client/models/RestScope.ts +7 -0
- package/src/bitbucket-client/models/RestScopesExample.ts +7 -0
- package/src/bitbucket-client/models/RestSecretScanningAllowlistRule.ts +7 -0
- package/src/bitbucket-client/models/RestSecretScanningAllowlistRuleSetRequest.ts +19 -0
- package/src/bitbucket-client/models/RestSecretScanningRule.ts +7 -0
- package/src/bitbucket-client/models/RestSecretScanningRuleSetRequest.ts +19 -0
- package/src/bitbucket-client/models/RestSetInsightReportRequest.ts +18 -0
- package/src/bitbucket-client/models/RestSingleAddInsightAnnotationRequest.ts +14 -0
- package/src/bitbucket-client/models/RestSshAccessKey.ts +7 -0
- package/src/bitbucket-client/models/RestSshAccessKeyLocations.ts +12 -0
- package/src/bitbucket-client/models/RestSshCredentials.ts +16 -0
- package/src/bitbucket-client/models/RestSshKey.ts +7 -0
- package/src/bitbucket-client/models/RestSshKeySettings.ts +7 -0
- package/src/bitbucket-client/models/RestSshKeyTypeRestriction.ts +7 -0
- package/src/bitbucket-client/models/RestSshSettings.ts +7 -0
- package/src/bitbucket-client/models/RestSyncProgress.ts +7 -0
- package/src/bitbucket-client/models/RestSystemSigningConfiguration.ts +7 -0
- package/src/bitbucket-client/models/RestTag.ts +7 -0
- package/src/bitbucket-client/models/RestTestResults.ts +7 -0
- package/src/bitbucket-client/models/RestTokenBucketSettings.ts +7 -0
- package/src/bitbucket-client/models/RestUpstreamServer.ts +7 -0
- package/src/bitbucket-client/models/RestUpstreamSettings.ts +7 -0
- package/src/bitbucket-client/models/RestUserDirectory.ts +7 -0
- package/src/bitbucket-client/models/RestUserRateLimitSettings.ts +7 -0
- package/src/bitbucket-client/models/RestUserRateLimitSettingsUpdateRequest.ts +12 -0
- package/src/bitbucket-client/models/RestUserReaction.ts +7 -0
- package/src/bitbucket-client/models/RestUsernamePasswordCredentials.ts +9 -0
- package/src/bitbucket-client/models/RestWebhook.ts +7 -0
- package/src/bitbucket-client/models/RestWebhookCredentials.ts +7 -0
- package/src/bitbucket-client/models/RestWebhookRequestResponse.ts +7 -0
- package/src/bitbucket-client/models/RestWebhookScope.ts +7 -0
- package/src/bitbucket-client/models/RestX509Certificate.ts +7 -0
- package/src/bitbucket-client/models/Scope.ts +16 -0
- package/src/bitbucket-client/models/SimpleSshKeyFingerprint.ts +7 -0
- package/src/bitbucket-client/models/SsoConfigEntity.ts +7 -0
- package/src/bitbucket-client/models/SsoManagementStatusDTO.ts +7 -0
- package/src/bitbucket-client/models/StatusDTO.ts +7 -0
- package/src/bitbucket-client/models/TotpCodeVerificationDTO.ts +9 -0
- package/src/bitbucket-client/models/TotpElevationRestDTO.ts +8 -0
- package/src/bitbucket-client/models/TotpRecoveryCodeAuthenticationDTO.ts +9 -0
- package/src/bitbucket-client/models/TotpRecoveryCodeDTO.ts +7 -0
- package/src/bitbucket-client/models/TotpUserEnrollmentDTO.ts +7 -0
- package/src/bitbucket-client/models/UserAndGroups.ts +9 -0
- package/src/bitbucket-client/models/UserPasswordUpdate.ts +10 -0
- package/src/bitbucket-client/models/UserPickerContext.ts +9 -0
- package/src/bitbucket-client/models/UserRename.ts +9 -0
- package/src/bitbucket-client/models/UserUpdate.ts +10 -0
- package/src/bitbucket-client/models/UserUpdateWithCredentials.ts +14 -0
- package/src/bitbucket-client/services/AuthenticationService.ts +1652 -0
- package/src/bitbucket-client/services/BuildsAndDeploymentsService.ts +849 -0
- package/src/bitbucket-client/services/CapabilitiesService.ts +38 -0
- package/src/bitbucket-client/services/DashboardService.ts +96 -0
- package/src/bitbucket-client/services/DefaultService.ts +46 -0
- package/src/bitbucket-client/services/DeprecatedService.ts +396 -0
- package/src/bitbucket-client/services/JiraIntegrationService.ts +133 -0
- package/src/bitbucket-client/services/MarkupService.ts +48 -0
- package/src/bitbucket-client/services/MirroringMirrorService.ts +421 -0
- package/src/bitbucket-client/services/MirroringUpstreamService.ts +487 -0
- package/src/bitbucket-client/services/PermissionManagementService.ts +1484 -0
- package/src/bitbucket-client/services/ProjectService.ts +2502 -0
- package/src/bitbucket-client/services/PullRequestsService.ts +2997 -0
- package/src/bitbucket-client/services/RepositoryService.ts +3944 -0
- package/src/bitbucket-client/services/SecurityService.ts +1253 -0
- package/src/bitbucket-client/services/SystemMaintenanceService.ts +2279 -0
- package/src/bitbucket-response-mapper.ts +127 -0
- package/src/bitbucket-service.ts +3069 -0
- package/src/config.ts +29 -0
- package/src/inbox-pr-mapper.ts +183 -0
- package/src/index.ts +811 -0
- package/src/pr-changes-mapper.ts +216 -0
- package/src/pr-comment-mapper.ts +399 -0
- package/src/setup.ts +15 -0
- package/tsconfig.json +12 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,2186 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BuildsAndDeploymentsService, DeprecatedService, OpenAPI, ProjectService, PullRequestsService, RepositoryService } from './bitbucket-client/index.js';
|
|
3
|
+
import { request as __request } from './bitbucket-client/core/request.js';
|
|
4
|
+
import { handleApiOperation, resolveOpenApiBase } from 'datacenter-mcp-core';
|
|
5
|
+
import { simplifyInboxPullRequests } from './inbox-pr-mapper.js';
|
|
6
|
+
import { BITBUCKET_PRODUCT, getDefaultPageSize, getMissingConfig } from './config.js';
|
|
7
|
+
import { shapePullRequestAck, shapePullRequestChangesResponse, shapePullRequestCommentAck, shapePullRequestCommentsResponse, } from './bitbucket-response-mapper.js';
|
|
8
|
+
function resolveToken(token) {
|
|
9
|
+
return async () => {
|
|
10
|
+
const resolvedToken = typeof token === 'function' ? token() : token;
|
|
11
|
+
return resolvedToken ?? '';
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Build a Bitbucket DC inline comment anchor.
|
|
16
|
+
*
|
|
17
|
+
* For a multiline range, Bitbucket DC (>= 9.3.0) requires `multilineMarker` + `multilineSpan`.
|
|
18
|
+
* The legacy `multilineStartLine`/`multilineStartLineType`/`multilineAnchor`/`multilineDestinationRange`
|
|
19
|
+
* fields are silently ignored by the server, which then stores a single-line anchor — so a multiline
|
|
20
|
+
* ````suggestion` only replaces its first line on Apply. Field names verified against BB DC 9.3.2.
|
|
21
|
+
*/
|
|
22
|
+
function buildCommentAnchor(params) {
|
|
23
|
+
const { filePath, line, lineType } = params;
|
|
24
|
+
const anchor = { path: filePath, diffType: 'EFFECTIVE' };
|
|
25
|
+
if (line === undefined || !lineType) {
|
|
26
|
+
return anchor;
|
|
27
|
+
}
|
|
28
|
+
if (params.startLine === undefined) {
|
|
29
|
+
anchor.line = line;
|
|
30
|
+
anchor.lineType = lineType;
|
|
31
|
+
anchor.fileType = lineType === 'REMOVED' ? 'FROM' : 'TO';
|
|
32
|
+
return anchor;
|
|
33
|
+
}
|
|
34
|
+
// Normalize so the marker sits on the lower line and `line` on the upper line.
|
|
35
|
+
let startLine = params.startLine;
|
|
36
|
+
let startLineType = params.startLineType ?? lineType;
|
|
37
|
+
let endLine = line;
|
|
38
|
+
let endLineType = lineType;
|
|
39
|
+
if (startLine > endLine) {
|
|
40
|
+
[startLine, endLine] = [endLine, startLine];
|
|
41
|
+
[startLineType, endLineType] = [endLineType, startLineType];
|
|
42
|
+
}
|
|
43
|
+
const fileType = endLineType === 'REMOVED' ? 'FROM' : 'TO';
|
|
44
|
+
anchor.line = endLine;
|
|
45
|
+
anchor.lineType = endLineType;
|
|
46
|
+
anchor.fileType = fileType;
|
|
47
|
+
anchor.multilineMarker = { startLine, startLineType };
|
|
48
|
+
anchor.multilineSpan =
|
|
49
|
+
fileType === 'FROM'
|
|
50
|
+
? { srcSpanStart: startLine, srcSpanEnd: endLine }
|
|
51
|
+
: { dstSpanStart: startLine, dstSpanEnd: endLine };
|
|
52
|
+
return anchor;
|
|
53
|
+
}
|
|
54
|
+
const SUGGESTION_BLOCK_RE = /```suggestion\b[^\n]*\n([\s\S]*?)```/;
|
|
55
|
+
/**
|
|
56
|
+
* Warn when a multi-line ````suggestion` block is anchored to a single line: Bitbucket only replaces
|
|
57
|
+
* the anchored line on Apply, leaving the rest (duplicated code). Returns undefined when there is no
|
|
58
|
+
* concern. Heuristic — a 1-line anchor with a multi-line suggestion is the common failure shape.
|
|
59
|
+
*/
|
|
60
|
+
function multilineSuggestionWarning(text, startLine) {
|
|
61
|
+
if (startLine !== undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
const match = SUGGESTION_BLOCK_RE.exec(text);
|
|
65
|
+
if (!match) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
const suggestionLineCount = match[1].replace(/\n$/, '').split('\n').length;
|
|
69
|
+
if (suggestionLineCount <= 1) {
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
return ('The comment contains a multi-line ```suggestion block but is anchored to a single line. ' +
|
|
73
|
+
'On Apply, Bitbucket replaces only that one line and leaves the rest. To replace multiple lines, ' +
|
|
74
|
+
'set startLine (first replaced line) and line (last replaced line) to span the whole range.');
|
|
75
|
+
}
|
|
76
|
+
export class BitbucketService {
|
|
77
|
+
getPageSize;
|
|
78
|
+
constructor(host, token, apiBasePath, getPageSize = getDefaultPageSize) {
|
|
79
|
+
OpenAPI.BASE = resolveOpenApiBase({
|
|
80
|
+
host,
|
|
81
|
+
apiBasePath,
|
|
82
|
+
defaultBasePath: BITBUCKET_PRODUCT.defaultApiBasePath ?? '/rest',
|
|
83
|
+
strippableSuffixes: BITBUCKET_PRODUCT.apiBasePathStrippableSuffixes,
|
|
84
|
+
});
|
|
85
|
+
OpenAPI.TOKEN = resolveToken(token);
|
|
86
|
+
OpenAPI.VERSION = '1.0';
|
|
87
|
+
this.getPageSize = getPageSize;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get commits for a repository
|
|
91
|
+
* @param projectKey The project key
|
|
92
|
+
* @param repositorySlug The repository slug
|
|
93
|
+
* @param path Optional path to filter commits by
|
|
94
|
+
* @param since Optional commit ID to retrieve commits after
|
|
95
|
+
* @param until Optional commit ID to retrieve commits before
|
|
96
|
+
* @param limit Optional pagination limit (default: 25)
|
|
97
|
+
* @returns Promise with commits data
|
|
98
|
+
*/
|
|
99
|
+
async getCommits(projectKey, repositorySlug, path, since, until, limit) {
|
|
100
|
+
projectKey = projectKey.toUpperCase();
|
|
101
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
102
|
+
return handleApiOperation(() => RepositoryService.getCommits(projectKey, repositorySlug, undefined, // avatarScheme
|
|
103
|
+
path, undefined, // withCounts
|
|
104
|
+
undefined, // followRenames
|
|
105
|
+
until, undefined, // avatarSize
|
|
106
|
+
since, undefined, // merges
|
|
107
|
+
undefined, // ignoreMissing
|
|
108
|
+
0, // start
|
|
109
|
+
limit ?? this.getPageSize()), 'Error fetching commits');
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Get a single commit by id
|
|
113
|
+
* @param projectKey The project key
|
|
114
|
+
* @param repositorySlug The repository slug
|
|
115
|
+
* @param commitId The commit id (hash) to retrieve
|
|
116
|
+
* @param path Optional path; if given, the commit is only returned if it affects this path
|
|
117
|
+
* @returns Promise with the commit data
|
|
118
|
+
*/
|
|
119
|
+
async getCommit(projectKey, repositorySlug, commitId, path) {
|
|
120
|
+
projectKey = projectKey.toUpperCase();
|
|
121
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
122
|
+
return handleApiOperation(() => RepositoryService.getCommit(projectKey, commitId, repositorySlug, path), 'Error fetching commit');
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* List build statuses for a commit
|
|
126
|
+
* @param commitId The commit id (hash) whose build statuses to list
|
|
127
|
+
* @param orderBy Optional ordering of the results
|
|
128
|
+
* @param start Optional pagination start
|
|
129
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
130
|
+
* @returns Promise with the build statuses
|
|
131
|
+
* @remarks Uses the global (repository-agnostic) build-status API, keyed only by commit id.
|
|
132
|
+
*/
|
|
133
|
+
async listBuildStatuses(commitId, orderBy, start, limit) {
|
|
134
|
+
return handleApiOperation(() => DeprecatedService.getBuildStatus(commitId, orderBy, start, limit ?? this.getPageSize()), 'Error fetching build statuses');
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Add (or update) a build status for a commit
|
|
138
|
+
* @param projectKey The project key
|
|
139
|
+
* @param repositorySlug The repository slug
|
|
140
|
+
* @param commitId The commit id (hash) to attach the build status to
|
|
141
|
+
* @param state The build state: SUCCESSFUL, FAILED, or INPROGRESS
|
|
142
|
+
* @param key A unique key identifying the build (e.g. the pipeline/plan key)
|
|
143
|
+
* @param url The URL to the build result
|
|
144
|
+
* @param name Optional display name for the build
|
|
145
|
+
* @param description Optional description for the build
|
|
146
|
+
* @returns Promise resolving to an acknowledgement
|
|
147
|
+
*/
|
|
148
|
+
async addBuildStatus(projectKey, repositorySlug, commitId, state, key, url, name, description) {
|
|
149
|
+
projectKey = projectKey.toUpperCase();
|
|
150
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
151
|
+
const requestBody = { state, key, url, ...(name ? { name } : {}), ...(description ? { description } : {}) };
|
|
152
|
+
const result = await handleApiOperation(() => BuildsAndDeploymentsService.add(projectKey, commitId, repositorySlug, requestBody), 'Error adding build status');
|
|
153
|
+
if (result.success) {
|
|
154
|
+
return { ...result, data: { added: true, commitId, key } };
|
|
155
|
+
}
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Get a single build status for a commit by its key
|
|
160
|
+
* @param projectKey The project key
|
|
161
|
+
* @param repositorySlug The repository slug
|
|
162
|
+
* @param commitId The commit id (hash)
|
|
163
|
+
* @param key The unique key of the build status to fetch
|
|
164
|
+
* @returns Promise with the build status
|
|
165
|
+
*/
|
|
166
|
+
async getBuildStatus(projectKey, repositorySlug, commitId, key) {
|
|
167
|
+
projectKey = projectKey.toUpperCase();
|
|
168
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
169
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.get(projectKey, commitId, repositorySlug, key), 'Error fetching build status');
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get the raw content of a file at a given revision
|
|
173
|
+
* @param projectKey The project key
|
|
174
|
+
* @param repositorySlug The repository slug
|
|
175
|
+
* @param path The path of the file to retrieve
|
|
176
|
+
* @param at Optional commit hash or ref (e.g. 'refs/heads/main'); defaults to the default branch
|
|
177
|
+
* @returns Promise with the raw file content
|
|
178
|
+
*/
|
|
179
|
+
async getFileContent(projectKey, repositorySlug, path, at) {
|
|
180
|
+
projectKey = projectKey.toUpperCase();
|
|
181
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
182
|
+
return handleApiOperation(() => RepositoryService.streamRaw(path, projectKey, repositorySlug, at), 'Error fetching file content');
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Get the diff of a single commit
|
|
186
|
+
* @param projectKey The project key
|
|
187
|
+
* @param repositorySlug The repository slug
|
|
188
|
+
* @param commitId The commit id (hash)
|
|
189
|
+
* @param path Optional file path to limit the diff to; omit for the whole-commit diff
|
|
190
|
+
* @param contextLines Optional number of context lines around changes
|
|
191
|
+
* @param whitespace Optional whitespace flag (e.g. 'ignore-all')
|
|
192
|
+
* @param srcPath Optional previous path if the file was copied/moved/renamed
|
|
193
|
+
* @returns Promise with the commit diff
|
|
194
|
+
*/
|
|
195
|
+
async getCommitDiff(projectKey, repositorySlug, commitId, path = '', contextLines, whitespace, srcPath) {
|
|
196
|
+
projectKey = projectKey.toUpperCase();
|
|
197
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
198
|
+
return handleApiOperation(() => RepositoryService.streamDiff(commitId, repositorySlug, path, projectKey, srcPath, undefined, // avatarSize
|
|
199
|
+
undefined, // filter
|
|
200
|
+
undefined, // avatarScheme
|
|
201
|
+
contextLines, undefined, // autoSrcPath
|
|
202
|
+
whitespace, undefined, // withComments
|
|
203
|
+
undefined // since
|
|
204
|
+
), 'Error fetching commit diff');
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Browse a repository file or directory
|
|
208
|
+
* @param projectKey The project key
|
|
209
|
+
* @param repositorySlug The repository slug
|
|
210
|
+
* @param path Optional path to browse; defaults to the repository root (directory listing)
|
|
211
|
+
* @param at Optional commit hash or ref; defaults to the default branch
|
|
212
|
+
* @param type If true, return only the node type (FILE, DIRECTORY, SUBMODULE) instead of content
|
|
213
|
+
* @param blame If true, include blame information
|
|
214
|
+
* @returns Promise with the browse result (directory children or paginated file lines)
|
|
215
|
+
*/
|
|
216
|
+
async browseRepository(projectKey, repositorySlug, path = '', at, type, blame) {
|
|
217
|
+
projectKey = projectKey.toUpperCase();
|
|
218
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
219
|
+
return handleApiOperation(() => RepositoryService.getContent1(path, projectKey, repositorySlug, undefined, // noContent
|
|
220
|
+
at, undefined, // size
|
|
221
|
+
blame ? 'true' : undefined, type ? 'true' : undefined), 'Error browsing repository content');
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Get comments on a commit
|
|
225
|
+
* @param projectKey The project key
|
|
226
|
+
* @param repositorySlug The repository slug
|
|
227
|
+
* @param commitId The commit id (hash)
|
|
228
|
+
* @param path The file path to return comments for (required by Bitbucket when retrieving commit comments)
|
|
229
|
+
* @param since Optional commit id; return comments added since that commit
|
|
230
|
+
* @param start Optional pagination start
|
|
231
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
232
|
+
* @returns Promise with the commit comments
|
|
233
|
+
*/
|
|
234
|
+
async getCommitComments(projectKey, repositorySlug, commitId, path, since, start, limit) {
|
|
235
|
+
projectKey = projectKey.toUpperCase();
|
|
236
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
237
|
+
return handleApiOperation(() => RepositoryService.getComments(projectKey, commitId, repositorySlug, path, since, start, limit ?? this.getPageSize()), 'Error fetching commit comments');
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Compare two refs (commits or changes)
|
|
241
|
+
* @param projectKey The project key
|
|
242
|
+
* @param repositorySlug The repository slug
|
|
243
|
+
* @param from The source ref/commit to compare from
|
|
244
|
+
* @param to The target ref/commit to compare to
|
|
245
|
+
* @param fromRepo Optional repository (projectKey/repositorySlug) the 'from' ref lives in, for cross-repo compares
|
|
246
|
+
* @param compareType 'commits' (default) to list commits between the refs, or 'changes' to list changed files
|
|
247
|
+
* @param start Optional pagination start
|
|
248
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
249
|
+
* @returns Promise with the comparison data
|
|
250
|
+
*/
|
|
251
|
+
async compareRefs(projectKey, repositorySlug, from, to, fromRepo, compareType = 'commits', start, limit) {
|
|
252
|
+
projectKey = projectKey.toUpperCase();
|
|
253
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
254
|
+
const pageSize = limit ?? this.getPageSize();
|
|
255
|
+
return handleApiOperation(() => compareType === 'changes'
|
|
256
|
+
? RepositoryService.streamChanges(projectKey, repositorySlug, fromRepo, from, to, start, pageSize)
|
|
257
|
+
: RepositoryService.streamCommits(projectKey, repositorySlug, fromRepo, from, to, start, pageSize), 'Error comparing refs');
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Create or replace a Code Insights report on a commit
|
|
261
|
+
* @param projectKey The project key
|
|
262
|
+
* @param repositorySlug The repository slug
|
|
263
|
+
* @param commitId The commit id (hash) the report is attached to
|
|
264
|
+
* @param key A unique key identifying the report (namespaced, e.g. 'mycompany.eslint')
|
|
265
|
+
* @param report The report payload (title required; optional details, result PASS/FAIL, reporter, link, logoUrl, data[])
|
|
266
|
+
* @returns Promise with the created report
|
|
267
|
+
*/
|
|
268
|
+
async setInsightReport(projectKey, repositorySlug, commitId, key, report) {
|
|
269
|
+
projectKey = projectKey.toUpperCase();
|
|
270
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
271
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.setACodeInsightsReport(projectKey, commitId, repositorySlug, key, report), 'Error setting code insights report');
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Get a Code Insights report on a commit
|
|
275
|
+
*/
|
|
276
|
+
async getInsightReport(projectKey, repositorySlug, commitId, key) {
|
|
277
|
+
projectKey = projectKey.toUpperCase();
|
|
278
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
279
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.getACodeInsightsReport(projectKey, commitId, repositorySlug, key), 'Error fetching code insights report');
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Delete a Code Insights report (and its annotations) on a commit
|
|
283
|
+
*/
|
|
284
|
+
async deleteInsightReport(projectKey, repositorySlug, commitId, key) {
|
|
285
|
+
projectKey = projectKey.toUpperCase();
|
|
286
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
287
|
+
const result = await handleApiOperation(() => BuildsAndDeploymentsService.deleteACodeInsightsReport(projectKey, commitId, repositorySlug, key), 'Error deleting code insights report');
|
|
288
|
+
if (result.success) {
|
|
289
|
+
return { ...result, data: { deleted: true, key } };
|
|
290
|
+
}
|
|
291
|
+
return result;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Add annotations to a Code Insights report (bulk)
|
|
295
|
+
* @param annotations Array of annotations; each: { externalId, path, line, message, severity (LOW/MEDIUM/HIGH), link?, type? }
|
|
296
|
+
*/
|
|
297
|
+
async addInsightAnnotations(projectKey, repositorySlug, commitId, key, annotations) {
|
|
298
|
+
projectKey = projectKey.toUpperCase();
|
|
299
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
300
|
+
const result = await handleApiOperation(() => BuildsAndDeploymentsService.addAnnotations(projectKey, commitId, repositorySlug, key, { annotations }), 'Error adding code insights annotations');
|
|
301
|
+
if (result.success) {
|
|
302
|
+
return { ...result, data: { added: annotations.length, key } };
|
|
303
|
+
}
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Get annotations of a Code Insights report
|
|
308
|
+
*/
|
|
309
|
+
async getInsightAnnotations(projectKey, repositorySlug, commitId, key) {
|
|
310
|
+
projectKey = projectKey.toUpperCase();
|
|
311
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
312
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.getAnnotations(projectKey, commitId, repositorySlug, key), 'Error fetching code insights annotations');
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Add a comment to a commit
|
|
316
|
+
* @param projectKey The project key
|
|
317
|
+
* @param repositorySlug The repository slug
|
|
318
|
+
* @param commitId The commit id (hash) to comment on
|
|
319
|
+
* @param text The comment text
|
|
320
|
+
* @param path Optional file path to anchor the comment to a file
|
|
321
|
+
* @param line Optional line number within the file to anchor the comment to
|
|
322
|
+
* @param lineType Optional line type for the anchored line (ADDED, REMOVED, or CONTEXT)
|
|
323
|
+
* @returns Promise with the created comment
|
|
324
|
+
*/
|
|
325
|
+
async addCommitComment(projectKey, repositorySlug, commitId, text, path, line, lineType) {
|
|
326
|
+
projectKey = projectKey.toUpperCase();
|
|
327
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
328
|
+
const requestBody = { text };
|
|
329
|
+
if (path) {
|
|
330
|
+
requestBody.anchor = {
|
|
331
|
+
path,
|
|
332
|
+
...(line !== undefined ? { line, lineType: lineType ?? 'CONTEXT', fileType: 'TO' } : {}),
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
return handleApiOperation(() => RepositoryService.createComment(projectKey, commitId, repositorySlug, undefined, requestBody), 'Error adding commit comment');
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Delete annotations of a Code Insights report
|
|
339
|
+
* @param externalId Optional external id; when given, only that annotation is deleted, otherwise all
|
|
340
|
+
*/
|
|
341
|
+
async deleteInsightAnnotations(projectKey, repositorySlug, commitId, key, externalId) {
|
|
342
|
+
projectKey = projectKey.toUpperCase();
|
|
343
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
344
|
+
const result = await handleApiOperation(() => BuildsAndDeploymentsService.deleteAnnotations(projectKey, commitId, repositorySlug, key, externalId), 'Error deleting code insights annotations');
|
|
345
|
+
if (result.success) {
|
|
346
|
+
return { ...result, data: { deleted: true, key, ...(externalId ? { externalId } : {}) } };
|
|
347
|
+
}
|
|
348
|
+
return result;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Get a list of projects
|
|
352
|
+
* @param name Optional filter by project name
|
|
353
|
+
* @param permission Optional filter by permission
|
|
354
|
+
* @param start Optional pagination start
|
|
355
|
+
* @param limit Optional pagination limit (default: 25)
|
|
356
|
+
* @returns Promise with projects data
|
|
357
|
+
*/
|
|
358
|
+
async getProjects(name, permission, start, limit) {
|
|
359
|
+
return handleApiOperation(() => ProjectService.getProjects(name, permission, start, limit ?? this.getPageSize()), 'Error fetching projects');
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Get a specific project by key
|
|
363
|
+
* @param projectKey The project key
|
|
364
|
+
* @returns Promise with project data
|
|
365
|
+
*/
|
|
366
|
+
async getProject(projectKey) {
|
|
367
|
+
projectKey = projectKey.toUpperCase();
|
|
368
|
+
return handleApiOperation(() => ProjectService.getProject(projectKey), 'Error fetching project');
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Get repositories for a project
|
|
372
|
+
* @param projectKey The project key
|
|
373
|
+
* @param start Optional pagination start
|
|
374
|
+
* @param limit Optional pagination limit (default: 25)
|
|
375
|
+
* @returns Promise with repositories data
|
|
376
|
+
*/
|
|
377
|
+
async getRepositories(projectKey, start, limit) {
|
|
378
|
+
projectKey = projectKey.toUpperCase();
|
|
379
|
+
return handleApiOperation(() => ProjectService.getRepositories(projectKey, start, limit ?? this.getPageSize()), 'Error fetching repositories');
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Get a specific repository
|
|
383
|
+
* @param projectKey The project key
|
|
384
|
+
* @param repositorySlug The repository slug
|
|
385
|
+
* @returns Promise with repository data
|
|
386
|
+
*/
|
|
387
|
+
async getRepository(projectKey, repositorySlug) {
|
|
388
|
+
projectKey = projectKey.toUpperCase();
|
|
389
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
390
|
+
return handleApiOperation(() => ProjectService.getRepository(projectKey, repositorySlug), 'Error fetching repository');
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Create a branch in a repository
|
|
394
|
+
* @param projectKey The project key
|
|
395
|
+
* @param repositorySlug The repository slug
|
|
396
|
+
* @param name The name of the new branch (e.g. 'feature/login')
|
|
397
|
+
* @param startPoint The commit hash or ref to branch from (e.g. 'refs/heads/master' or a commit id)
|
|
398
|
+
* @returns Promise with the created branch
|
|
399
|
+
*/
|
|
400
|
+
async createBranch(projectKey, repositorySlug, name, startPoint) {
|
|
401
|
+
projectKey = projectKey.toUpperCase();
|
|
402
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
403
|
+
return handleApiOperation(() => RepositoryService.createBranch(projectKey, repositorySlug, { name, startPoint }), 'Error creating branch');
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Delete a branch in a repository
|
|
407
|
+
* @param projectKey The project key
|
|
408
|
+
* @param repositorySlug The repository slug
|
|
409
|
+
* @param name The branch to delete (e.g. 'refs/heads/feature/login' or the branch name)
|
|
410
|
+
* @param dryRun If true, validate the deletion without actually removing the branch
|
|
411
|
+
* @returns Promise resolving to an acknowledgement
|
|
412
|
+
*/
|
|
413
|
+
async deleteBranch(projectKey, repositorySlug, name, dryRun) {
|
|
414
|
+
projectKey = projectKey.toUpperCase();
|
|
415
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
416
|
+
const requestBody = { name, ...(dryRun !== undefined ? { dryRun } : {}) };
|
|
417
|
+
const result = await handleApiOperation(() => RepositoryService.deleteBranch(projectKey, repositorySlug, requestBody), 'Error deleting branch');
|
|
418
|
+
if (result.success) {
|
|
419
|
+
return { ...result, data: { deleted: !dryRun, name } };
|
|
420
|
+
}
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Get branches for a repository
|
|
425
|
+
* @param projectKey The project key
|
|
426
|
+
* @param repositorySlug The repository slug
|
|
427
|
+
* @param filterText Optional text the branch name must contain
|
|
428
|
+
* @param orderBy Optional ordering: ALPHABETICAL or MODIFICATION (most recently modified first)
|
|
429
|
+
* @param start Optional pagination start
|
|
430
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
431
|
+
* @returns Promise with branches data
|
|
432
|
+
*/
|
|
433
|
+
async getBranches(projectKey, repositorySlug, filterText, orderBy, start, limit) {
|
|
434
|
+
projectKey = projectKey.toUpperCase();
|
|
435
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
436
|
+
return handleApiOperation(() => RepositoryService.getBranches(projectKey, repositorySlug, undefined, // boostMatches
|
|
437
|
+
undefined, // context
|
|
438
|
+
orderBy, undefined, // details
|
|
439
|
+
filterText, undefined, // base
|
|
440
|
+
start, limit ?? this.getPageSize()), 'Error fetching branches');
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Get tags for a repository
|
|
444
|
+
* @param projectKey The project key
|
|
445
|
+
* @param repositorySlug The repository slug
|
|
446
|
+
* @param filterText Optional text the tag name must contain
|
|
447
|
+
* @param orderBy Optional ordering: ALPHABETICAL or MODIFICATION
|
|
448
|
+
* @param start Optional pagination start
|
|
449
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
450
|
+
* @returns Promise with tags data
|
|
451
|
+
*/
|
|
452
|
+
async getTags(projectKey, repositorySlug, filterText, orderBy, start, limit) {
|
|
453
|
+
projectKey = projectKey.toUpperCase();
|
|
454
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
455
|
+
return handleApiOperation(() => RepositoryService.getTags(projectKey, repositorySlug, orderBy, filterText, start, limit ?? this.getPageSize()), 'Error fetching tags');
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Get the default branch of a repository
|
|
459
|
+
* @param projectKey The project key
|
|
460
|
+
* @param repositorySlug The repository slug
|
|
461
|
+
* @returns Promise with the default branch data
|
|
462
|
+
*/
|
|
463
|
+
async getDefaultBranch(projectKey, repositorySlug) {
|
|
464
|
+
projectKey = projectKey.toUpperCase();
|
|
465
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
466
|
+
return handleApiOperation(() => RepositoryService.getDefaultBranch1(projectKey, repositorySlug), 'Error fetching default branch');
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Get a single tag by name
|
|
470
|
+
* @param projectKey The project key
|
|
471
|
+
* @param repositorySlug The repository slug
|
|
472
|
+
* @param name The tag name (e.g. 'release-1.0.0')
|
|
473
|
+
* @returns Promise with the tag data
|
|
474
|
+
*/
|
|
475
|
+
async getTag(projectKey, repositorySlug, name) {
|
|
476
|
+
projectKey = projectKey.toUpperCase();
|
|
477
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
478
|
+
return handleApiOperation(() => RepositoryService.getTag(projectKey, name, repositorySlug), 'Error fetching tag');
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Create or edit a file in a repository and commit the change
|
|
482
|
+
* @param projectKey The project key
|
|
483
|
+
* @param repositorySlug The repository slug
|
|
484
|
+
* @param path The path of the file to create or modify
|
|
485
|
+
* @param content The full new content of the file
|
|
486
|
+
* @param message The commit message
|
|
487
|
+
* @param branch The branch to commit on (e.g. 'refs/heads/master' or 'master')
|
|
488
|
+
* @param sourceCommitId The commit id the file was last seen at; required when editing an existing file to detect conflicts. Omit for a new file.
|
|
489
|
+
* @param sourceBranch When set, creates `branch` from this starting branch before committing
|
|
490
|
+
* @returns Promise with the created commit
|
|
491
|
+
*/
|
|
492
|
+
async editFile(projectKey, repositorySlug, path, content, message, branch, sourceCommitId, sourceBranch) {
|
|
493
|
+
projectKey = projectKey.toUpperCase();
|
|
494
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
495
|
+
const formData = {
|
|
496
|
+
content,
|
|
497
|
+
message,
|
|
498
|
+
branch,
|
|
499
|
+
...(sourceCommitId ? { sourceCommitId } : {}),
|
|
500
|
+
...(sourceBranch ? { sourceBranch } : {}),
|
|
501
|
+
};
|
|
502
|
+
return handleApiOperation(() => RepositoryService.editFile(path, projectKey, repositorySlug, formData), 'Error editing file');
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Create a tag in a repository
|
|
506
|
+
* @param projectKey The project key
|
|
507
|
+
* @param repositorySlug The repository slug
|
|
508
|
+
* @param name The name of the new tag
|
|
509
|
+
* @param startPoint The commit hash or ref the tag should point at
|
|
510
|
+
* @param message Optional annotated-tag message
|
|
511
|
+
* @returns Promise with the created tag
|
|
512
|
+
*/
|
|
513
|
+
async createTag(projectKey, repositorySlug, name, startPoint, message) {
|
|
514
|
+
projectKey = projectKey.toUpperCase();
|
|
515
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
516
|
+
const requestBody = { name, startPoint, ...(message ? { message } : {}) };
|
|
517
|
+
return handleApiOperation(() => RepositoryService.createTagForRepository(projectKey, repositorySlug, requestBody), 'Error creating tag');
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Get pull requests for a repository
|
|
521
|
+
* @param projectKey The project key
|
|
522
|
+
* @param repositorySlug The repository slug
|
|
523
|
+
* @param withAttributes Optional flag to return additional pull request attributes (default: true)
|
|
524
|
+
* @param at Optional fully-qualified branch ID to find pull requests to or from (e.g., refs/heads/master)
|
|
525
|
+
* @param withProperties Optional flag to return additional pull request properties (default: true)
|
|
526
|
+
* @param draft Optional draft status filter
|
|
527
|
+
* @param filterText Optional text filter for title or description
|
|
528
|
+
* @param state Optional state filter (OPEN, DECLINED, MERGED, or ALL; default: OPEN)
|
|
529
|
+
* @param order Optional order (NEWEST or OLDEST; default: NEWEST)
|
|
530
|
+
* @param direction Optional direction relative to repository (INCOMING or OUTGOING; default: INCOMING)
|
|
531
|
+
* @param start Optional pagination start
|
|
532
|
+
* @param limit Optional pagination limit (default: 25)
|
|
533
|
+
* @returns Promise with pull requests data
|
|
534
|
+
*/
|
|
535
|
+
async getPullRequests(projectKey, repositorySlug, withAttributes, at, withProperties, draft, filterText, state, order, direction, start, limit) {
|
|
536
|
+
projectKey = projectKey.toUpperCase();
|
|
537
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
538
|
+
return handleApiOperation(() => PullRequestsService.getPage(projectKey, repositorySlug, withAttributes, at, withProperties, draft, filterText, state, order, direction, start, limit ?? this.getPageSize()), 'Error fetching pull requests');
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Get a specific pull request by ID
|
|
542
|
+
* @param projectKey The project key
|
|
543
|
+
* @param repositorySlug The repository slug
|
|
544
|
+
* @param pullRequestId The ID of the pull request within the repository
|
|
545
|
+
* @returns Promise with pull request data
|
|
546
|
+
*/
|
|
547
|
+
async getPullRequest(projectKey, repositorySlug, pullRequestId) {
|
|
548
|
+
projectKey = projectKey.toUpperCase();
|
|
549
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
550
|
+
return handleApiOperation(() => PullRequestsService.get3(projectKey, pullRequestId, repositorySlug), 'Error fetching pull request');
|
|
551
|
+
}
|
|
552
|
+
async getPullRequestCommentsAndActions(projectKey, repositorySlug, pullRequestId, start, limit, output = 'compact', includeResolved = false) {
|
|
553
|
+
projectKey = projectKey.toUpperCase();
|
|
554
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
555
|
+
const result = await handleApiOperation(() => PullRequestsService.getActivities(projectKey, pullRequestId, repositorySlug, undefined, undefined, start, limit ?? this.getPageSize()), 'Error fetching pull request comments');
|
|
556
|
+
if (result.success && result.data) {
|
|
557
|
+
return {
|
|
558
|
+
success: true,
|
|
559
|
+
data: shapePullRequestCommentsResponse(result.data, output, { includeResolved })
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
return result;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Get pull request changes
|
|
566
|
+
* @param projectKey The project key
|
|
567
|
+
* @param repositorySlug The repository slug
|
|
568
|
+
* @param pullRequestId The pull request ID
|
|
569
|
+
* @param sinceId Optional since commit hash to stream changes for a RANGE arbitrary change scope
|
|
570
|
+
* @param changeScope Optional scope: 'UNREVIEWED' for unreviewed changes, 'RANGE' for changes between commits, 'ALL' for all changes (default)
|
|
571
|
+
* @param untilId Optional until commit hash to stream changes for a RANGE arbitrary change scope
|
|
572
|
+
* @param withComments Optional flag to include comment counts (default: true)
|
|
573
|
+
* @param start Optional pagination start
|
|
574
|
+
* @param limit Optional pagination limit (default: 25)
|
|
575
|
+
* @returns Promise with PR changes data
|
|
576
|
+
*/
|
|
577
|
+
async getPullRequestChanges(projectKey, repositorySlug, pullRequestId, sinceId, changeScope, untilId, withComments, start, limit, output = 'compact') {
|
|
578
|
+
projectKey = projectKey.toUpperCase();
|
|
579
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
580
|
+
const result = await handleApiOperation(() => PullRequestsService.streamChanges1(projectKey, pullRequestId, repositorySlug, sinceId, changeScope, untilId, withComments, start, limit ?? this.getPageSize()), 'Error fetching pull request changes');
|
|
581
|
+
if (result.success && result.data) {
|
|
582
|
+
return {
|
|
583
|
+
...result,
|
|
584
|
+
data: shapePullRequestChangesResponse(result.data, output)
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
return result;
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Post a comment to a pull request
|
|
591
|
+
* @param projectKey The project key
|
|
592
|
+
* @param repositorySlug The repository slug
|
|
593
|
+
* @param pullRequestId The pull request ID
|
|
594
|
+
* @param text The comment text
|
|
595
|
+
* @param parentId Optional parent comment ID for replies
|
|
596
|
+
* @param filePath Optional file path for file-specific comments
|
|
597
|
+
* @param startLine Optional start line for multiline comments; when provided together with line, creates a range comment
|
|
598
|
+
* @param startLineType Optional line type for the start line; defaults to lineType if omitted
|
|
599
|
+
* @param line Optional end line number for line/multiline comments
|
|
600
|
+
* @param lineType Optional line type ('ADDED', 'REMOVED', 'CONTEXT') for the end line
|
|
601
|
+
* @param pending Optional flag to create a pending (draft) comment, not visible to others until a review is submitted.
|
|
602
|
+
* Only works when filePath is provided (file-level or inline comments).
|
|
603
|
+
* Top-level PR comments (no filePath) are always posted live regardless of this flag.
|
|
604
|
+
* @param severity Optional severity for the comment. 'BLOCKER' posts the comment as a task that must be resolved before the PR can be merged. Defaults to 'NORMAL' (regular comment) when omitted.
|
|
605
|
+
* @returns Promise with created comment data
|
|
606
|
+
*/
|
|
607
|
+
async postPullRequestComment(projectKey, repositorySlug, pullRequestId, text, parentId, filePath, startLine, startLineType, line, lineType, pending, severity, output = 'ack') {
|
|
608
|
+
projectKey = projectKey.toUpperCase();
|
|
609
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
610
|
+
const comment = {
|
|
611
|
+
text
|
|
612
|
+
};
|
|
613
|
+
if (severity) {
|
|
614
|
+
comment.severity = severity;
|
|
615
|
+
}
|
|
616
|
+
// Mark comment as pending (draft) — not visible to others until review is submitted
|
|
617
|
+
// Note: Bitbucket DC uses state:'PENDING' not pending:true
|
|
618
|
+
if (pending) {
|
|
619
|
+
comment.state = 'PENDING';
|
|
620
|
+
}
|
|
621
|
+
// Add parent reference for replies
|
|
622
|
+
if (parentId) {
|
|
623
|
+
comment.parent = { id: parentId };
|
|
624
|
+
}
|
|
625
|
+
// Add anchor for file/line comments
|
|
626
|
+
if (filePath) {
|
|
627
|
+
comment.anchor = buildCommentAnchor({ filePath, line, lineType, startLine, startLineType });
|
|
628
|
+
}
|
|
629
|
+
const suggestionWarning = filePath ? multilineSuggestionWarning(text, startLine) : undefined;
|
|
630
|
+
const result = await handleApiOperation(() => PullRequestsService.createComment2(projectKey, pullRequestId, repositorySlug, comment), 'Error posting pull request comment');
|
|
631
|
+
if (result.success && result.data && output !== 'full') {
|
|
632
|
+
return {
|
|
633
|
+
...result,
|
|
634
|
+
data: {
|
|
635
|
+
...shapePullRequestCommentAck(result.data),
|
|
636
|
+
...(suggestionWarning ? { warning: suggestionWarning } : {}),
|
|
637
|
+
},
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
if (result.success && suggestionWarning) {
|
|
641
|
+
return { ...result, warning: suggestionWarning };
|
|
642
|
+
}
|
|
643
|
+
return result;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Update an existing pull request comment. Use this to edit text, change severity, or resolve/reopen
|
|
647
|
+
* it via state. On a regular comment, setting state to 'RESOLVED' resolves the comment thread (the
|
|
648
|
+
* "Resolve" button in the UI, recording a resolver and resolvedDate) and 'OPEN' reopens it. On a
|
|
649
|
+
* BLOCKER (task) comment, 'RESOLVED' ticks the task and 'OPEN' un-ticks it. In both cases resolution
|
|
650
|
+
* is driven by the root comment's state.
|
|
651
|
+
* @param projectKey The project key
|
|
652
|
+
* @param repositorySlug The repository slug
|
|
653
|
+
* @param pullRequestId The pull request ID
|
|
654
|
+
* @param commentId The comment ID to update
|
|
655
|
+
* @param version The current version of the comment (required for optimistic locking)
|
|
656
|
+
* @param text Optional new comment text
|
|
657
|
+
* @param state Optional new state. 'RESOLVED' resolves the comment thread (ticks the task on a BLOCKER comment); 'OPEN' reopens it (un-ticks the task).
|
|
658
|
+
* @param severity Optional new severity. 'BLOCKER' converts a comment into a task, 'NORMAL' converts a task back to a regular comment.
|
|
659
|
+
* @returns Promise with updated comment data
|
|
660
|
+
*/
|
|
661
|
+
async updatePullRequestComment(projectKey, repositorySlug, pullRequestId, commentId, version, text, state, severity, output = 'ack') {
|
|
662
|
+
projectKey = projectKey.toUpperCase();
|
|
663
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
664
|
+
const comment = { version };
|
|
665
|
+
if (text !== undefined) {
|
|
666
|
+
comment.text = text;
|
|
667
|
+
}
|
|
668
|
+
if (state) {
|
|
669
|
+
comment.state = state;
|
|
670
|
+
}
|
|
671
|
+
if (severity) {
|
|
672
|
+
comment.severity = severity;
|
|
673
|
+
}
|
|
674
|
+
const result = await handleApiOperation(() => PullRequestsService.updateComment2(projectKey, commentId, pullRequestId, repositorySlug, comment), 'Error updating pull request comment');
|
|
675
|
+
if (result.success && result.data && output !== 'full') {
|
|
676
|
+
return {
|
|
677
|
+
...result,
|
|
678
|
+
data: shapePullRequestCommentAck(result.data),
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
return result;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Get a user by slug, or search for users by name/email filter
|
|
685
|
+
* @param userSlug Optional exact slug to look up a specific user
|
|
686
|
+
* @param filter Optional search string to find users by name or email
|
|
687
|
+
* @returns Promise with user data
|
|
688
|
+
*/
|
|
689
|
+
async getUser(userSlug, filter) {
|
|
690
|
+
if (userSlug) {
|
|
691
|
+
return handleApiOperation(() => __request(OpenAPI, {
|
|
692
|
+
method: 'GET',
|
|
693
|
+
url: '/api/latest/users/{userSlug}',
|
|
694
|
+
path: { userSlug },
|
|
695
|
+
}), 'Error fetching user');
|
|
696
|
+
}
|
|
697
|
+
return handleApiOperation(() => __request(OpenAPI, {
|
|
698
|
+
method: 'GET',
|
|
699
|
+
url: '/api/latest/users',
|
|
700
|
+
query: { filter },
|
|
701
|
+
}), 'Error fetching users');
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Submit a pull request review, publishing all pending (draft) comments and updating the reviewer's status.
|
|
705
|
+
* This is the equivalent of clicking "Submit Review" in the Bitbucket UI.
|
|
706
|
+
* @param projectKey The project key
|
|
707
|
+
* @param repositorySlug The repository slug
|
|
708
|
+
* @param pullRequestId The pull request ID
|
|
709
|
+
* @param userSlug The username/slug of the reviewer submitting the review (the PAT token owner).
|
|
710
|
+
* @param status The review verdict: 'APPROVED', 'NEEDS_WORK', or 'UNAPPROVED'
|
|
711
|
+
* @param lastReviewedCommit Optional last reviewed commit hash (for tracking review progress)
|
|
712
|
+
* @returns Promise with updated participant data
|
|
713
|
+
*/
|
|
714
|
+
async submitPullRequestReview(projectKey, repositorySlug, pullRequestId, userSlug, status, lastReviewedCommit) {
|
|
715
|
+
projectKey = projectKey.toUpperCase();
|
|
716
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
717
|
+
const requestBody = {
|
|
718
|
+
status,
|
|
719
|
+
...(lastReviewedCommit ? { lastReviewedCommit } : {})
|
|
720
|
+
};
|
|
721
|
+
return handleApiOperation(() => PullRequestsService.updateStatus(projectKey, userSlug, pullRequestId, repositorySlug, requestBody), 'Error submitting pull request review');
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Get text diff for a specific file in a pull request
|
|
725
|
+
* @param projectKey The project key
|
|
726
|
+
* @param repositorySlug The repository slug
|
|
727
|
+
* @param pullRequestId The pull request ID
|
|
728
|
+
* @param path The path to the file which should be diffed
|
|
729
|
+
* @param contextLines Optional number of context lines to include around added/removed lines
|
|
730
|
+
* @param sinceId Optional since commit hash to stream a diff between two arbitrary hashes
|
|
731
|
+
* @param srcPath Optional previous path to the file, if the file has been copied, moved or renamed
|
|
732
|
+
* @param diffType Optional type of diff being requested
|
|
733
|
+
* @param untilId Optional until commit hash to stream a diff between two arbitrary hashes
|
|
734
|
+
* @param whitespace Optional whitespace flag which can be set to 'ignore-all'
|
|
735
|
+
* @returns Promise with text diff data
|
|
736
|
+
*/
|
|
737
|
+
async getPullRequestDiff(projectKey, repositorySlug, pullRequestId, path, contextLines, sinceId, srcPath, diffType, untilId, whitespace) {
|
|
738
|
+
projectKey = projectKey.toUpperCase();
|
|
739
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
740
|
+
return handleApiOperation(() => __request(OpenAPI, {
|
|
741
|
+
method: 'GET',
|
|
742
|
+
url: '/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/diff/{path}',
|
|
743
|
+
path: {
|
|
744
|
+
'path': path,
|
|
745
|
+
'projectKey': projectKey,
|
|
746
|
+
'pullRequestId': pullRequestId,
|
|
747
|
+
'repositorySlug': repositorySlug,
|
|
748
|
+
},
|
|
749
|
+
query: {
|
|
750
|
+
'contextLines': contextLines,
|
|
751
|
+
'sinceId': sinceId,
|
|
752
|
+
'srcPath': srcPath,
|
|
753
|
+
'diffType': diffType,
|
|
754
|
+
'untilId': untilId,
|
|
755
|
+
'whitespace': whitespace,
|
|
756
|
+
},
|
|
757
|
+
headers: {
|
|
758
|
+
'Accept': 'text/plain'
|
|
759
|
+
},
|
|
760
|
+
errors: {
|
|
761
|
+
400: `If the request was malformed.`,
|
|
762
|
+
401: `The currently authenticated user has insufficient permissions to view the repository or pull request.`,
|
|
763
|
+
404: `The repository or pull request does not exist.`,
|
|
764
|
+
},
|
|
765
|
+
}), 'Error fetching pull request diff');
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Create a pull request
|
|
769
|
+
* @param projectKey The project key
|
|
770
|
+
* @param repositorySlug The repository slug
|
|
771
|
+
* @param title The pull request title
|
|
772
|
+
* @param description Optional pull request description
|
|
773
|
+
* @param fromRefId The source branch (e.g., 'refs/heads/feature-branch')
|
|
774
|
+
* @param toRefId The destination branch (e.g., 'refs/heads/main')
|
|
775
|
+
* @param reviewers Optional array of reviewer usernames
|
|
776
|
+
* @param draft Optional flag to create the pull request as a draft
|
|
777
|
+
* @param output Return a compact acknowledgement or the full API response. Defaults to 'ack'.
|
|
778
|
+
* @returns Promise with created pull request data
|
|
779
|
+
*/
|
|
780
|
+
async createPullRequest(projectKey, repositorySlug, title, description, fromRefId, toRefId, reviewers, draft, output = 'ack') {
|
|
781
|
+
projectKey = projectKey.toUpperCase();
|
|
782
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
783
|
+
const pullRequestData = {
|
|
784
|
+
title,
|
|
785
|
+
description,
|
|
786
|
+
fromRef: {
|
|
787
|
+
id: fromRefId,
|
|
788
|
+
repository: {
|
|
789
|
+
slug: repositorySlug,
|
|
790
|
+
project: {
|
|
791
|
+
key: projectKey
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
toRef: {
|
|
796
|
+
id: toRefId,
|
|
797
|
+
repository: {
|
|
798
|
+
slug: repositorySlug,
|
|
799
|
+
project: {
|
|
800
|
+
key: projectKey
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
if (reviewers && reviewers.length > 0) {
|
|
806
|
+
pullRequestData.reviewers = reviewers.map(username => ({
|
|
807
|
+
user: {
|
|
808
|
+
name: username
|
|
809
|
+
}
|
|
810
|
+
}));
|
|
811
|
+
}
|
|
812
|
+
if (draft !== undefined) {
|
|
813
|
+
pullRequestData.draft = draft;
|
|
814
|
+
}
|
|
815
|
+
const result = await handleApiOperation(() => PullRequestsService.create(projectKey, repositorySlug, pullRequestData), 'Error creating pull request');
|
|
816
|
+
if (result.success && result.data && output !== 'full') {
|
|
817
|
+
return {
|
|
818
|
+
...result,
|
|
819
|
+
data: shapePullRequestAck(result.data),
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
return result;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Update a pull request
|
|
826
|
+
* @param projectKey The project key
|
|
827
|
+
* @param repositorySlug The repository slug
|
|
828
|
+
* @param pullRequestId The pull request ID
|
|
829
|
+
* @param version The version of the pull request (required for optimistic locking)
|
|
830
|
+
* @param title Optional new title for the pull request
|
|
831
|
+
* @param description Optional new description for the pull request
|
|
832
|
+
* @param reviewers Optional array of reviewer usernames to set
|
|
833
|
+
* @param draft Optional flag to mark the pull request as a draft or ready for review
|
|
834
|
+
* @param output Return a compact acknowledgement or the full API response. Defaults to 'ack'.
|
|
835
|
+
* @returns Promise with updated pull request data
|
|
836
|
+
*/
|
|
837
|
+
async updatePullRequest(projectKey, repositorySlug, pullRequestId, version, title, description, reviewers, draft, output = 'ack') {
|
|
838
|
+
projectKey = projectKey.toUpperCase();
|
|
839
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
840
|
+
const pullRequestData = {
|
|
841
|
+
version
|
|
842
|
+
};
|
|
843
|
+
if (title !== undefined) {
|
|
844
|
+
pullRequestData.title = title;
|
|
845
|
+
}
|
|
846
|
+
if (description !== undefined) {
|
|
847
|
+
pullRequestData.description = description;
|
|
848
|
+
}
|
|
849
|
+
if (reviewers && reviewers.length > 0) {
|
|
850
|
+
pullRequestData.reviewers = reviewers.map(username => ({
|
|
851
|
+
user: {
|
|
852
|
+
name: username
|
|
853
|
+
}
|
|
854
|
+
}));
|
|
855
|
+
}
|
|
856
|
+
if (draft !== undefined) {
|
|
857
|
+
pullRequestData.draft = draft;
|
|
858
|
+
}
|
|
859
|
+
const result = await handleApiOperation(() => PullRequestsService.update(projectKey, pullRequestId, repositorySlug, pullRequestData), 'Error updating pull request');
|
|
860
|
+
if (result.success && result.data && output !== 'full') {
|
|
861
|
+
return {
|
|
862
|
+
...result,
|
|
863
|
+
data: shapePullRequestAck(result.data),
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
return result;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Check whether a pull request can be merged
|
|
870
|
+
* @param projectKey The project key
|
|
871
|
+
* @param repositorySlug The repository slug
|
|
872
|
+
* @param pullRequestId The pull request ID
|
|
873
|
+
* @returns Promise with mergeability data (canMerge, conflicted, vetoes)
|
|
874
|
+
*/
|
|
875
|
+
async canMergePullRequest(projectKey, repositorySlug, pullRequestId) {
|
|
876
|
+
projectKey = projectKey.toUpperCase();
|
|
877
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
878
|
+
return handleApiOperation(() => PullRequestsService.canMerge(projectKey, pullRequestId, repositorySlug), 'Error checking pull request mergeability');
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Merge a pull request
|
|
882
|
+
* @param projectKey The project key
|
|
883
|
+
* @param repositorySlug The repository slug
|
|
884
|
+
* @param pullRequestId The pull request ID
|
|
885
|
+
* @param version The current version of the pull request (required for optimistic locking)
|
|
886
|
+
* @param message Optional custom merge commit message
|
|
887
|
+
* @param strategyId Optional merge strategy id (e.g. 'no-ff', 'ff', 'ff-only', 'rebase-no-ff', 'squash')
|
|
888
|
+
* @param output Return a compact acknowledgement or the full API response. Defaults to 'ack'.
|
|
889
|
+
* @returns Promise with merged pull request data
|
|
890
|
+
*/
|
|
891
|
+
async mergePullRequest(projectKey, repositorySlug, pullRequestId, version, message, strategyId, output = 'ack') {
|
|
892
|
+
projectKey = projectKey.toUpperCase();
|
|
893
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
894
|
+
const requestBody = {
|
|
895
|
+
...(message ? { message } : {}),
|
|
896
|
+
...(strategyId ? { strategyId } : {}),
|
|
897
|
+
};
|
|
898
|
+
const result = await handleApiOperation(() => PullRequestsService.merge(projectKey, pullRequestId, repositorySlug, String(version), requestBody), 'Error merging pull request');
|
|
899
|
+
if (result.success && result.data && output !== 'full') {
|
|
900
|
+
return { ...result, data: shapePullRequestAck(result.data) };
|
|
901
|
+
}
|
|
902
|
+
return result;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Decline a pull request
|
|
906
|
+
* @param projectKey The project key
|
|
907
|
+
* @param repositorySlug The repository slug
|
|
908
|
+
* @param pullRequestId The pull request ID
|
|
909
|
+
* @param version The current version of the pull request (required for optimistic locking)
|
|
910
|
+
* @param comment Optional comment explaining why the pull request was declined
|
|
911
|
+
* @param output Return a compact acknowledgement or the full API response. Defaults to 'ack'.
|
|
912
|
+
* @returns Promise with declined pull request data
|
|
913
|
+
*/
|
|
914
|
+
async declinePullRequest(projectKey, repositorySlug, pullRequestId, version, comment, output = 'ack') {
|
|
915
|
+
projectKey = projectKey.toUpperCase();
|
|
916
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
917
|
+
const requestBody = {
|
|
918
|
+
...(comment ? { comment } : {}),
|
|
919
|
+
};
|
|
920
|
+
const result = await handleApiOperation(() => PullRequestsService.decline(projectKey, pullRequestId, repositorySlug, String(version), requestBody), 'Error declining pull request');
|
|
921
|
+
if (result.success && result.data && output !== 'full') {
|
|
922
|
+
return { ...result, data: shapePullRequestAck(result.data) };
|
|
923
|
+
}
|
|
924
|
+
return result;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Reopen a declined pull request
|
|
928
|
+
* @param projectKey The project key
|
|
929
|
+
* @param repositorySlug The repository slug
|
|
930
|
+
* @param pullRequestId The pull request ID
|
|
931
|
+
* @param version The current version of the pull request (required for optimistic locking)
|
|
932
|
+
* @param output Return a compact acknowledgement or the full API response. Defaults to 'ack'.
|
|
933
|
+
* @returns Promise with reopened pull request data
|
|
934
|
+
*/
|
|
935
|
+
async reopenPullRequest(projectKey, repositorySlug, pullRequestId, version, output = 'ack') {
|
|
936
|
+
projectKey = projectKey.toUpperCase();
|
|
937
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
938
|
+
const result = await handleApiOperation(() => PullRequestsService.reopen(projectKey, pullRequestId, repositorySlug, String(version), {}), 'Error reopening pull request');
|
|
939
|
+
if (result.success && result.data && output !== 'full') {
|
|
940
|
+
return { ...result, data: shapePullRequestAck(result.data) };
|
|
941
|
+
}
|
|
942
|
+
return result;
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Get required reviewers for PR creation
|
|
946
|
+
* Returns a set of users who are required reviewers for pull requests created from the given source repository
|
|
947
|
+
* and ref to the given target ref in this repository.
|
|
948
|
+
* @param projectKey The project key
|
|
949
|
+
* @param repositorySlug The repository slug
|
|
950
|
+
* @param sourceRefId The ID of the source ref (e.g., 'refs/heads/feature-branch')
|
|
951
|
+
* @param targetRefId The ID of the target ref (e.g., 'refs/heads/main')
|
|
952
|
+
* @param sourceRepoId Optional ID of the repository in which the source ref exists
|
|
953
|
+
* @param targetRepoId Optional ID of the repository in which the target ref exists
|
|
954
|
+
* @returns Promise with required reviewers data
|
|
955
|
+
*/
|
|
956
|
+
async getRequiredReviewers(projectKey, repositorySlug, sourceRefId, targetRefId, sourceRepoId, targetRepoId) {
|
|
957
|
+
projectKey = projectKey.toUpperCase();
|
|
958
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
959
|
+
return handleApiOperation(() => PullRequestsService.getReviewers(projectKey, repositorySlug, targetRepoId, sourceRepoId, sourceRefId, targetRefId), 'Error fetching required reviewers');
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Get pull requests from the dashboard API (across all repositories)
|
|
963
|
+
* @param role Role filter: AUTHOR (default), REVIEWER, or PARTICIPANT
|
|
964
|
+
* @param state State filter: OPEN (default), DECLINED, or MERGED
|
|
965
|
+
* @param closedSince Optional timestamp (in milliseconds) to filter PRs closed after this date
|
|
966
|
+
* @param order Order: NEWEST (default), OLDEST, or PARTICIPANT
|
|
967
|
+
* @param start Optional pagination start
|
|
968
|
+
* @param limit Pagination limit (defaults to the package page size)
|
|
969
|
+
* @returns Promise with dashboard pull requests data
|
|
970
|
+
*/
|
|
971
|
+
async getDashboardPullRequests(role = 'AUTHOR', state = 'OPEN', closedSince, order = 'NEWEST', start, limit) {
|
|
972
|
+
return handleApiOperation(() => __request(OpenAPI, {
|
|
973
|
+
method: 'GET',
|
|
974
|
+
url: '/api/1.0/dashboard/pull-requests',
|
|
975
|
+
query: {
|
|
976
|
+
'role': role,
|
|
977
|
+
'state': state,
|
|
978
|
+
'closedSince': closedSince,
|
|
979
|
+
'order': order,
|
|
980
|
+
'start': start,
|
|
981
|
+
'limit': limit ?? this.getPageSize(),
|
|
982
|
+
},
|
|
983
|
+
errors: {
|
|
984
|
+
401: 'The currently authenticated user is not permitted to access the dashboard.',
|
|
985
|
+
},
|
|
986
|
+
}), 'Error fetching dashboard pull requests');
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Get pull requests from the authenticated user's inbox (PRs awaiting review)
|
|
990
|
+
* @param start Optional pagination start
|
|
991
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
992
|
+
* @returns Promise with inbox pull requests data
|
|
993
|
+
*/
|
|
994
|
+
async getInboxPullRequests(start, limit) {
|
|
995
|
+
const result = await handleApiOperation(() => __request(OpenAPI, {
|
|
996
|
+
method: 'GET',
|
|
997
|
+
url: '/api/latest/inbox/pull-requests',
|
|
998
|
+
query: {
|
|
999
|
+
'start': start,
|
|
1000
|
+
'limit': limit ?? this.getPageSize(),
|
|
1001
|
+
},
|
|
1002
|
+
errors: {
|
|
1003
|
+
401: 'The currently authenticated user is not permitted to access the inbox.',
|
|
1004
|
+
},
|
|
1005
|
+
}), 'Error fetching inbox pull requests');
|
|
1006
|
+
if (result.success && result.data) {
|
|
1007
|
+
return {
|
|
1008
|
+
success: true,
|
|
1009
|
+
data: simplifyInboxPullRequests(result.data),
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
return result;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Get the branch (ref) restrictions configured for a repository
|
|
1016
|
+
* @param projectKey The project key
|
|
1017
|
+
* @param repositorySlug The repository slug
|
|
1018
|
+
* @param matcherType Optional matcher type to filter on (BRANCH, PATTERN, MODEL_CATEGORY, MODEL_BRANCH)
|
|
1019
|
+
* @param matcherId Optional matcher id to filter on (requires matcherType)
|
|
1020
|
+
* @param type Optional restriction type to filter on (read-only, no-deletes, fast-forward-only, pull-request-only, no-creates)
|
|
1021
|
+
* @param start Optional pagination start
|
|
1022
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
1023
|
+
* @returns Promise with the page of restrictions
|
|
1024
|
+
*/
|
|
1025
|
+
async getBranchRestrictions(projectKey, repositorySlug, matcherType, matcherId, type, start, limit) {
|
|
1026
|
+
projectKey = projectKey.toUpperCase();
|
|
1027
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1028
|
+
return handleApiOperation(() => RepositoryService.getRestrictions1(projectKey, repositorySlug, matcherType, matcherId, type, start, limit ?? this.getPageSize()), 'Error fetching branch restrictions');
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Find webhooks in a repository
|
|
1032
|
+
* @param projectKey The project key
|
|
1033
|
+
* @param repositorySlug The repository slug
|
|
1034
|
+
* @param event Optional webhook event ID to filter for (e.g. 'repo:refs_changed')
|
|
1035
|
+
* @param statistics Optional flag to include invocation statistics for each webhook
|
|
1036
|
+
* @returns Promise with the page of webhooks
|
|
1037
|
+
*/
|
|
1038
|
+
async getWebhooks(projectKey, repositorySlug, event, statistics) {
|
|
1039
|
+
projectKey = projectKey.toUpperCase();
|
|
1040
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1041
|
+
return handleApiOperation(() => RepositoryService.findWebhooks1(projectKey, repositorySlug, event, statistics), 'Error fetching webhooks');
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Get a single webhook by ID
|
|
1045
|
+
* @param projectKey The project key
|
|
1046
|
+
* @param repositorySlug The repository slug
|
|
1047
|
+
* @param webhookId The ID of the webhook
|
|
1048
|
+
* @param statistics Optional flag to include invocation statistics
|
|
1049
|
+
* @returns Promise with the webhook
|
|
1050
|
+
*/
|
|
1051
|
+
async getWebhook(projectKey, repositorySlug, webhookId, statistics) {
|
|
1052
|
+
projectKey = projectKey.toUpperCase();
|
|
1053
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1054
|
+
return handleApiOperation(() => RepositoryService.getWebhook1(projectKey, webhookId, repositorySlug, statistics === undefined ? undefined : String(statistics)), 'Error fetching webhook');
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Get the required-builds merge checks configured for a repository
|
|
1058
|
+
* @param projectKey The project key
|
|
1059
|
+
* @param repositorySlug The repository slug
|
|
1060
|
+
* @param start Optional pagination start
|
|
1061
|
+
* @param limit Optional pagination limit (defaults to the package page size)
|
|
1062
|
+
* @returns Promise with the page of required-builds merge checks
|
|
1063
|
+
*/
|
|
1064
|
+
async getRequiredBuildsMergeChecks(projectKey, repositorySlug, start, limit) {
|
|
1065
|
+
projectKey = projectKey.toUpperCase();
|
|
1066
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1067
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.getPageOfRequiredBuildsMergeChecks(projectKey, repositorySlug, start, limit ?? this.getPageSize()), 'Error fetching required builds merge checks');
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Get the default reviewer conditions configured for a repository
|
|
1071
|
+
* @param projectKey The project key
|
|
1072
|
+
* @param repositorySlug The repository slug
|
|
1073
|
+
* @returns Promise with the list of default reviewer conditions
|
|
1074
|
+
*/
|
|
1075
|
+
async getDefaultReviewerConditions(projectKey, repositorySlug) {
|
|
1076
|
+
projectKey = projectKey.toUpperCase();
|
|
1077
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1078
|
+
return handleApiOperation(() => PullRequestsService.getPullRequestConditions1(projectKey, repositorySlug), 'Error fetching default reviewer conditions');
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Create a default reviewer condition for a repository
|
|
1082
|
+
* @param projectKey The project key
|
|
1083
|
+
* @param repositorySlug The repository slug
|
|
1084
|
+
* @param sourceMatcherType Matcher type for the source ref (ANY_REF, BRANCH, PATTERN, MODEL_CATEGORY, MODEL_BRANCH)
|
|
1085
|
+
* @param sourceMatcherValue Matcher value for the source ref (e.g. 'ANY_REF', 'refs/heads/main', a pattern, or a model id)
|
|
1086
|
+
* @param targetMatcherType Matcher type for the target ref
|
|
1087
|
+
* @param targetMatcherValue Matcher value for the target ref
|
|
1088
|
+
* @param reviewerIds Numeric user IDs of the default reviewers
|
|
1089
|
+
* @param requiredApprovals Optional number of required approvals
|
|
1090
|
+
* @param sourceMatcherDisplayId Optional display value for the source matcher (defaults to the value)
|
|
1091
|
+
* @param targetMatcherDisplayId Optional display value for the target matcher (defaults to the value)
|
|
1092
|
+
* @returns Promise with the created condition
|
|
1093
|
+
*/
|
|
1094
|
+
async createDefaultReviewerCondition(projectKey, repositorySlug, sourceMatcherType, sourceMatcherValue, targetMatcherType, targetMatcherValue, reviewerIds, requiredApprovals, sourceMatcherDisplayId, targetMatcherDisplayId) {
|
|
1095
|
+
projectKey = projectKey.toUpperCase();
|
|
1096
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1097
|
+
const requestBody = this.buildDefaultReviewerBody(sourceMatcherType, sourceMatcherValue, targetMatcherType, targetMatcherValue, reviewerIds, requiredApprovals, sourceMatcherDisplayId, targetMatcherDisplayId);
|
|
1098
|
+
return handleApiOperation(() => PullRequestsService.createPullRequestCondition1(projectKey, repositorySlug, requestBody), 'Error creating default reviewer condition');
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Create a webhook for a repository
|
|
1102
|
+
* @param projectKey The project key
|
|
1103
|
+
* @param repositorySlug The repository slug
|
|
1104
|
+
* @param name The webhook name
|
|
1105
|
+
* @param url The endpoint URL the webhook will POST to
|
|
1106
|
+
* @param events List of event IDs to subscribe to (e.g. ['repo:refs_changed', 'pr:opened'])
|
|
1107
|
+
* @param active Optional flag controlling whether the webhook is enabled (default: true)
|
|
1108
|
+
* @param secret Optional secret used to sign webhook payloads (HMAC)
|
|
1109
|
+
* @param sslVerificationRequired Optional flag for SSL verification on the endpoint URL
|
|
1110
|
+
* @returns Promise with the created webhook
|
|
1111
|
+
*/
|
|
1112
|
+
async createWebhook(projectKey, repositorySlug, name, url, events, active, secret, sslVerificationRequired) {
|
|
1113
|
+
projectKey = projectKey.toUpperCase();
|
|
1114
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1115
|
+
const requestBody = this.buildWebhookBody(name, url, events, active, secret, sslVerificationRequired);
|
|
1116
|
+
return handleApiOperation(() => RepositoryService.createWebhook1(projectKey, repositorySlug, requestBody), 'Error creating webhook');
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Create a required-builds merge check for a repository
|
|
1120
|
+
* @param projectKey The project key
|
|
1121
|
+
* @param repositorySlug The repository slug
|
|
1122
|
+
* @param buildParentKeys Non-empty list of build parent keys that must have green builds for the check to pass
|
|
1123
|
+
* @param refMatcherType Matcher type for the target ref (ANY_REF, BRANCH, PATTERN, MODEL_CATEGORY, MODEL_BRANCH)
|
|
1124
|
+
* @param refMatcherValue Matcher value for the target ref (e.g. 'refs/heads/main')
|
|
1125
|
+
* @param refMatcherDisplayId Optional display value for the ref matcher (defaults to the value)
|
|
1126
|
+
* @param exemptRefMatcherType Optional matcher type for the exempt source ref
|
|
1127
|
+
* @param exemptRefMatcherValue Optional matcher value for the exempt source ref
|
|
1128
|
+
* @param exemptRefMatcherDisplayId Optional display value for the exempt ref matcher
|
|
1129
|
+
* @returns Promise with the created merge check
|
|
1130
|
+
*/
|
|
1131
|
+
async createRequiredBuildsMergeCheck(projectKey, repositorySlug, buildParentKeys, refMatcherType, refMatcherValue, refMatcherDisplayId, exemptRefMatcherType, exemptRefMatcherValue, exemptRefMatcherDisplayId) {
|
|
1132
|
+
projectKey = projectKey.toUpperCase();
|
|
1133
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1134
|
+
const requestBody = this.buildRequiredBuildsBody(buildParentKeys, refMatcherType, refMatcherValue, refMatcherDisplayId, exemptRefMatcherType, exemptRefMatcherValue, exemptRefMatcherDisplayId);
|
|
1135
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.createRequiredBuildsMergeCheck(projectKey, repositorySlug, requestBody), 'Error creating required builds merge check');
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Update an existing webhook (replaces its configuration)
|
|
1139
|
+
* @param projectKey The project key
|
|
1140
|
+
* @param repositorySlug The repository slug
|
|
1141
|
+
* @param webhookId The ID of the webhook to update
|
|
1142
|
+
* @param name The webhook name
|
|
1143
|
+
* @param url The endpoint URL the webhook will POST to
|
|
1144
|
+
* @param events List of event IDs to subscribe to
|
|
1145
|
+
* @param active Optional flag controlling whether the webhook is enabled
|
|
1146
|
+
* @param secret Optional secret used to sign webhook payloads (HMAC)
|
|
1147
|
+
* @param sslVerificationRequired Optional flag for SSL verification on the endpoint URL
|
|
1148
|
+
* @returns Promise with the updated webhook
|
|
1149
|
+
*/
|
|
1150
|
+
async updateWebhook(projectKey, repositorySlug, webhookId, name, url, events, active, secret, sslVerificationRequired) {
|
|
1151
|
+
projectKey = projectKey.toUpperCase();
|
|
1152
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1153
|
+
const requestBody = this.buildWebhookBody(name, url, events, active, secret, sslVerificationRequired);
|
|
1154
|
+
return handleApiOperation(() => RepositoryService.updateWebhook1(projectKey, webhookId, repositorySlug, requestBody), 'Error updating webhook');
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Create a branch (ref) restriction for a repository
|
|
1158
|
+
* @param projectKey The project key
|
|
1159
|
+
* @param repositorySlug The repository slug
|
|
1160
|
+
* @param type The restriction type (read-only, no-deletes, fast-forward-only, pull-request-only, no-creates)
|
|
1161
|
+
* @param matcherType Matcher type for the restricted ref (ANY_REF, BRANCH, PATTERN, MODEL_CATEGORY, MODEL_BRANCH)
|
|
1162
|
+
* @param matcherValue Matcher value (e.g. 'refs/heads/main', a pattern, or a model id)
|
|
1163
|
+
* @param matcherDisplayId Optional display value for the matcher (defaults to the value)
|
|
1164
|
+
* @param exemptUserSlugs Optional list of user slugs exempt from the restriction
|
|
1165
|
+
* @param exemptGroupNames Optional list of group names exempt from the restriction
|
|
1166
|
+
* @param exemptAccessKeyIds Optional list of SSH access key IDs exempt from the restriction
|
|
1167
|
+
* @returns Promise with the created restriction
|
|
1168
|
+
*/
|
|
1169
|
+
async createBranchRestriction(projectKey, repositorySlug, type, matcherType, matcherValue, matcherDisplayId, exemptUserSlugs, exemptGroupNames, exemptAccessKeyIds) {
|
|
1170
|
+
projectKey = projectKey.toUpperCase();
|
|
1171
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1172
|
+
const restriction = {
|
|
1173
|
+
type,
|
|
1174
|
+
matcher: {
|
|
1175
|
+
id: matcherValue,
|
|
1176
|
+
displayId: matcherDisplayId ?? matcherValue,
|
|
1177
|
+
type: { id: matcherType },
|
|
1178
|
+
},
|
|
1179
|
+
...(exemptUserSlugs ? { userSlugs: exemptUserSlugs } : {}),
|
|
1180
|
+
...(exemptGroupNames ? { groupNames: exemptGroupNames } : {}),
|
|
1181
|
+
...(exemptAccessKeyIds ? { accessKeyIds: exemptAccessKeyIds } : {}),
|
|
1182
|
+
};
|
|
1183
|
+
return handleApiOperation(() => RepositoryService.createRestrictions1(projectKey, repositorySlug, [restriction]), 'Error creating branch restriction');
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* Update an existing default reviewer condition (replaces the condition)
|
|
1187
|
+
* @param projectKey The project key
|
|
1188
|
+
* @param repositorySlug The repository slug
|
|
1189
|
+
* @param id The ID of the condition to update
|
|
1190
|
+
* @param sourceMatcherType Matcher type for the source ref
|
|
1191
|
+
* @param sourceMatcherValue Matcher value for the source ref
|
|
1192
|
+
* @param targetMatcherType Matcher type for the target ref
|
|
1193
|
+
* @param targetMatcherValue Matcher value for the target ref
|
|
1194
|
+
* @param reviewerIds Numeric user IDs of the default reviewers
|
|
1195
|
+
* @param requiredApprovals Optional number of required approvals
|
|
1196
|
+
* @param sourceMatcherDisplayId Optional display value for the source matcher
|
|
1197
|
+
* @param targetMatcherDisplayId Optional display value for the target matcher
|
|
1198
|
+
* @returns Promise with the updated condition
|
|
1199
|
+
*/
|
|
1200
|
+
async updateDefaultReviewerCondition(projectKey, repositorySlug, id, sourceMatcherType, sourceMatcherValue, targetMatcherType, targetMatcherValue, reviewerIds, requiredApprovals, sourceMatcherDisplayId, targetMatcherDisplayId) {
|
|
1201
|
+
projectKey = projectKey.toUpperCase();
|
|
1202
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1203
|
+
const requestBody = this.buildDefaultReviewerBody(sourceMatcherType, sourceMatcherValue, targetMatcherType, targetMatcherValue, reviewerIds, requiredApprovals, sourceMatcherDisplayId, targetMatcherDisplayId);
|
|
1204
|
+
return handleApiOperation(() => PullRequestsService.updatePullRequestCondition1(projectKey, id, repositorySlug, requestBody), 'Error updating default reviewer condition');
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* Update an existing required-builds merge check (replaces the check)
|
|
1208
|
+
* @param projectKey The project key
|
|
1209
|
+
* @param repositorySlug The repository slug
|
|
1210
|
+
* @param id The ID of the merge check to update
|
|
1211
|
+
* @param buildParentKeys Non-empty list of build parent keys
|
|
1212
|
+
* @param refMatcherType Matcher type for the target ref
|
|
1213
|
+
* @param refMatcherValue Matcher value for the target ref
|
|
1214
|
+
* @param refMatcherDisplayId Optional display value for the ref matcher
|
|
1215
|
+
* @param exemptRefMatcherType Optional matcher type for the exempt source ref
|
|
1216
|
+
* @param exemptRefMatcherValue Optional matcher value for the exempt source ref
|
|
1217
|
+
* @param exemptRefMatcherDisplayId Optional display value for the exempt ref matcher
|
|
1218
|
+
* @returns Promise with the updated merge check
|
|
1219
|
+
*/
|
|
1220
|
+
async updateRequiredBuildsMergeCheck(projectKey, repositorySlug, id, buildParentKeys, refMatcherType, refMatcherValue, refMatcherDisplayId, exemptRefMatcherType, exemptRefMatcherValue, exemptRefMatcherDisplayId) {
|
|
1221
|
+
projectKey = projectKey.toUpperCase();
|
|
1222
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1223
|
+
const requestBody = this.buildRequiredBuildsBody(buildParentKeys, refMatcherType, refMatcherValue, refMatcherDisplayId, exemptRefMatcherType, exemptRefMatcherValue, exemptRefMatcherDisplayId);
|
|
1224
|
+
return handleApiOperation(() => BuildsAndDeploymentsService.updateRequiredBuildsMergeCheck(projectKey, Number(id), repositorySlug, requestBody), 'Error updating required builds merge check');
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Get a single branch (ref) restriction by ID
|
|
1228
|
+
* @param projectKey The project key
|
|
1229
|
+
* @param repositorySlug The repository slug
|
|
1230
|
+
* @param id The restriction ID
|
|
1231
|
+
* @returns Promise with the restriction
|
|
1232
|
+
*/
|
|
1233
|
+
async getBranchRestriction(projectKey, repositorySlug, id) {
|
|
1234
|
+
projectKey = projectKey.toUpperCase();
|
|
1235
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1236
|
+
return handleApiOperation(() => RepositoryService.getRestriction1(projectKey, id, repositorySlug), 'Error fetching branch restriction');
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Delete a branch (ref) restriction by ID
|
|
1240
|
+
* @param projectKey The project key
|
|
1241
|
+
* @param repositorySlug The repository slug
|
|
1242
|
+
* @param id The restriction ID
|
|
1243
|
+
* @returns Promise with a delete acknowledgement
|
|
1244
|
+
*/
|
|
1245
|
+
async deleteBranchRestriction(projectKey, repositorySlug, id) {
|
|
1246
|
+
projectKey = projectKey.toUpperCase();
|
|
1247
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1248
|
+
const result = await handleApiOperation(() => RepositoryService.deleteRestriction1(projectKey, id, repositorySlug), 'Error deleting branch restriction');
|
|
1249
|
+
return { ...result, data: { deleted: true, id } };
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Delete a required-builds merge check by ID
|
|
1253
|
+
* @param projectKey The project key
|
|
1254
|
+
* @param repositorySlug The repository slug
|
|
1255
|
+
* @param id The ID of the merge check to delete
|
|
1256
|
+
* @returns Promise with a delete acknowledgement
|
|
1257
|
+
*/
|
|
1258
|
+
async deleteRequiredBuildsMergeCheck(projectKey, repositorySlug, id) {
|
|
1259
|
+
projectKey = projectKey.toUpperCase();
|
|
1260
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1261
|
+
const result = await handleApiOperation(() => BuildsAndDeploymentsService.deleteRequiredBuildsMergeCheck(projectKey, Number(id), repositorySlug), 'Error deleting required builds merge check');
|
|
1262
|
+
return { ...result, data: { deleted: true, id } };
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* Delete a default reviewer condition
|
|
1266
|
+
* @param projectKey The project key
|
|
1267
|
+
* @param repositorySlug The repository slug
|
|
1268
|
+
* @param id The ID of the condition to delete
|
|
1269
|
+
* @returns Promise with a delete acknowledgement
|
|
1270
|
+
*/
|
|
1271
|
+
async deleteDefaultReviewerCondition(projectKey, repositorySlug, id) {
|
|
1272
|
+
projectKey = projectKey.toUpperCase();
|
|
1273
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1274
|
+
const result = await handleApiOperation(() => PullRequestsService.deletePullRequestCondition1(projectKey, Number(id), repositorySlug), 'Error deleting default reviewer condition');
|
|
1275
|
+
return { ...result, data: { deleted: true, id } };
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Search code across Bitbucket using the search REST module.
|
|
1279
|
+
*
|
|
1280
|
+
* The query string supports Bitbucket search modifiers, e.g. `project:TEST`,
|
|
1281
|
+
* `repo:projectkey/repositoryslug` (e.g. `repo:TEST/demo`), `ext:js`, so scoping to a
|
|
1282
|
+
* project or repository is done inside the query text. Note: `repo:` must include the
|
|
1283
|
+
* project key (`repo:KEY/slug`); a bare `repo:slug` is rejected by the server.
|
|
1284
|
+
*
|
|
1285
|
+
* Note: the `/rest/search` endpoint is a separate Bitbucket REST module that is not part of
|
|
1286
|
+
* the generated client, so this is issued via the low-level request helper (same approach as
|
|
1287
|
+
* the dashboard/inbox endpoints).
|
|
1288
|
+
*
|
|
1289
|
+
* @param query The search query (may include modifiers like `repo:`, `project:`, `ext:`)
|
|
1290
|
+
* @param limit Optional primary result limit (defaults to the package page size)
|
|
1291
|
+
* @param secondaryLimit Optional secondary limit (number of hit contexts per match)
|
|
1292
|
+
* @returns Promise with the code search results
|
|
1293
|
+
*/
|
|
1294
|
+
async searchCode(query, limit, secondaryLimit) {
|
|
1295
|
+
return handleApiOperation(() => __request(OpenAPI, {
|
|
1296
|
+
method: 'POST',
|
|
1297
|
+
url: '/search/latest/search',
|
|
1298
|
+
body: {
|
|
1299
|
+
query,
|
|
1300
|
+
entities: { code: {} },
|
|
1301
|
+
limits: {
|
|
1302
|
+
primary: limit ?? this.getPageSize(),
|
|
1303
|
+
...(secondaryLimit !== undefined ? { secondary: secondaryLimit } : {}),
|
|
1304
|
+
},
|
|
1305
|
+
},
|
|
1306
|
+
mediaType: 'application/json',
|
|
1307
|
+
errors: {
|
|
1308
|
+
400: 'The search query was malformed.',
|
|
1309
|
+
401: 'The currently authenticated user is not permitted to search.',
|
|
1310
|
+
},
|
|
1311
|
+
}), 'Error searching code');
|
|
1312
|
+
}
|
|
1313
|
+
buildDefaultReviewerBody(sourceMatcherType, sourceMatcherValue, targetMatcherType, targetMatcherValue, reviewerIds, requiredApprovals, sourceMatcherDisplayId, targetMatcherDisplayId) {
|
|
1314
|
+
return {
|
|
1315
|
+
reviewers: reviewerIds.map(id => ({ id })),
|
|
1316
|
+
sourceMatcher: {
|
|
1317
|
+
id: sourceMatcherValue,
|
|
1318
|
+
displayId: sourceMatcherDisplayId ?? sourceMatcherValue,
|
|
1319
|
+
type: { id: sourceMatcherType },
|
|
1320
|
+
},
|
|
1321
|
+
targetMatcher: {
|
|
1322
|
+
id: targetMatcherValue,
|
|
1323
|
+
displayId: targetMatcherDisplayId ?? targetMatcherValue,
|
|
1324
|
+
type: { id: targetMatcherType },
|
|
1325
|
+
},
|
|
1326
|
+
...(requiredApprovals !== undefined ? { requiredApprovals } : {}),
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
buildRequiredBuildsBody(buildParentKeys, refMatcherType, refMatcherValue, refMatcherDisplayId, exemptRefMatcherType, exemptRefMatcherValue, exemptRefMatcherDisplayId) {
|
|
1330
|
+
return {
|
|
1331
|
+
buildParentKeys,
|
|
1332
|
+
refMatcher: {
|
|
1333
|
+
id: refMatcherValue,
|
|
1334
|
+
displayId: refMatcherDisplayId ?? refMatcherValue,
|
|
1335
|
+
type: { id: refMatcherType },
|
|
1336
|
+
},
|
|
1337
|
+
...(exemptRefMatcherType && exemptRefMatcherValue
|
|
1338
|
+
? {
|
|
1339
|
+
exemptRefMatcher: {
|
|
1340
|
+
id: exemptRefMatcherValue,
|
|
1341
|
+
displayId: exemptRefMatcherDisplayId ?? exemptRefMatcherValue,
|
|
1342
|
+
type: { id: exemptRefMatcherType },
|
|
1343
|
+
},
|
|
1344
|
+
}
|
|
1345
|
+
: {}),
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Delete a pull request comment
|
|
1350
|
+
* @param projectKey The project key
|
|
1351
|
+
* @param repositorySlug The repository slug
|
|
1352
|
+
* @param pullRequestId The pull request ID
|
|
1353
|
+
* @param commentId The ID of the comment to delete
|
|
1354
|
+
* @param version The current version of the comment (optimistic locking)
|
|
1355
|
+
* @returns Promise with a delete acknowledgement
|
|
1356
|
+
*/
|
|
1357
|
+
async deletePullRequestComment(projectKey, repositorySlug, pullRequestId, commentId, version) {
|
|
1358
|
+
projectKey = projectKey.toUpperCase();
|
|
1359
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1360
|
+
const result = await handleApiOperation(() => PullRequestsService.deleteComment2(projectKey, commentId, pullRequestId, repositorySlug, String(version)), 'Error deleting pull request comment');
|
|
1361
|
+
return { ...result, data: { deleted: true, commentId } };
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Apply a code suggestion contained in a pull request comment to the source branch
|
|
1365
|
+
* @param projectKey The project key
|
|
1366
|
+
* @param repositorySlug The repository slug
|
|
1367
|
+
* @param pullRequestId The pull request ID
|
|
1368
|
+
* @param commentId The ID of the comment that contains the suggestion
|
|
1369
|
+
* @param commentVersion The current version of the comment
|
|
1370
|
+
* @param pullRequestVersion The current version of the pull request
|
|
1371
|
+
* @param commitMessage Commit message for the commit that applies the suggestion (required by the server)
|
|
1372
|
+
* @param suggestionIndex Optional index of the suggestion within the comment (defaults to the first)
|
|
1373
|
+
* @returns Promise with an apply acknowledgement
|
|
1374
|
+
*/
|
|
1375
|
+
async applyPullRequestSuggestion(projectKey, repositorySlug, pullRequestId, commentId, commentVersion, pullRequestVersion, commitMessage, suggestionIndex) {
|
|
1376
|
+
projectKey = projectKey.toUpperCase();
|
|
1377
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1378
|
+
// The apply-suggestion endpoint reads the commit message from `message` (not `commitMessage`
|
|
1379
|
+
// as the generated model suggests) and rejects an empty value.
|
|
1380
|
+
const requestBody = {
|
|
1381
|
+
commentVersion,
|
|
1382
|
+
pullRequestVersion,
|
|
1383
|
+
message: commitMessage,
|
|
1384
|
+
...(suggestionIndex !== undefined ? { suggestionIndex } : {}),
|
|
1385
|
+
};
|
|
1386
|
+
const result = await handleApiOperation(() => PullRequestsService.applySuggestion(projectKey, commentId, pullRequestId, repositorySlug, requestBody), 'Error applying pull request suggestion');
|
|
1387
|
+
return { ...result, data: { applied: true, commentId } };
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Start watching a pull request (subscribe the authenticated user to notifications)
|
|
1391
|
+
* @param projectKey The project key
|
|
1392
|
+
* @param repositorySlug The repository slug
|
|
1393
|
+
* @param pullRequestId The pull request ID
|
|
1394
|
+
* @returns Promise with a watch acknowledgement
|
|
1395
|
+
*/
|
|
1396
|
+
async watchPullRequest(projectKey, repositorySlug, pullRequestId) {
|
|
1397
|
+
projectKey = projectKey.toUpperCase();
|
|
1398
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1399
|
+
const result = await handleApiOperation(() => PullRequestsService.watch1(projectKey, pullRequestId, repositorySlug), 'Error watching pull request');
|
|
1400
|
+
return { ...result, data: { watching: true, pullRequestId } };
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Stop watching a pull request (unsubscribe the authenticated user)
|
|
1404
|
+
* @param projectKey The project key
|
|
1405
|
+
* @param repositorySlug The repository slug
|
|
1406
|
+
* @param pullRequestId The pull request ID
|
|
1407
|
+
* @returns Promise with an unwatch acknowledgement
|
|
1408
|
+
*/
|
|
1409
|
+
async unwatchPullRequest(projectKey, repositorySlug, pullRequestId) {
|
|
1410
|
+
projectKey = projectKey.toUpperCase();
|
|
1411
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1412
|
+
const result = await handleApiOperation(() => PullRequestsService.unwatch1(projectKey, pullRequestId, repositorySlug), 'Error unwatching pull request');
|
|
1413
|
+
return { ...result, data: { watching: false, pullRequestId } };
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Add a reviewer to a pull request
|
|
1417
|
+
* @param projectKey The project key
|
|
1418
|
+
* @param repositorySlug The repository slug
|
|
1419
|
+
* @param pullRequestId The pull request ID
|
|
1420
|
+
* @param userSlug The username/name of the user to add as a reviewer
|
|
1421
|
+
* @returns Promise with the participant details
|
|
1422
|
+
*/
|
|
1423
|
+
async addPullRequestReviewer(projectKey, repositorySlug, pullRequestId, userSlug) {
|
|
1424
|
+
projectKey = projectKey.toUpperCase();
|
|
1425
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1426
|
+
const requestBody = { user: { name: userSlug }, role: 'REVIEWER' };
|
|
1427
|
+
return handleApiOperation(() => PullRequestsService.assignParticipantRole(projectKey, pullRequestId, repositorySlug, requestBody), 'Error adding pull request reviewer');
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Create a new project
|
|
1431
|
+
* @param key The project key
|
|
1432
|
+
* @param name The project name
|
|
1433
|
+
* @param description Optional project description
|
|
1434
|
+
* @returns Promise with the created project
|
|
1435
|
+
*/
|
|
1436
|
+
async createProject(key, name, description) {
|
|
1437
|
+
key = key.toUpperCase();
|
|
1438
|
+
const requestBody = {
|
|
1439
|
+
key,
|
|
1440
|
+
name,
|
|
1441
|
+
...(description !== undefined ? { description } : {}),
|
|
1442
|
+
};
|
|
1443
|
+
return handleApiOperation(() => ProjectService.createProject(requestBody), 'Error creating project');
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Create a new repository in a project
|
|
1447
|
+
* @param projectKey The project key the repository will be created in
|
|
1448
|
+
* @param name The repository name
|
|
1449
|
+
* @param scmId The SCM type (defaults to 'git')
|
|
1450
|
+
* @param defaultBranch Optional default branch for the new repository
|
|
1451
|
+
* @returns Promise with the created repository
|
|
1452
|
+
*/
|
|
1453
|
+
async createRepository(projectKey, name, scmId = 'git', defaultBranch) {
|
|
1454
|
+
projectKey = projectKey.toUpperCase();
|
|
1455
|
+
const requestBody = {
|
|
1456
|
+
name,
|
|
1457
|
+
scmId,
|
|
1458
|
+
...(defaultBranch ? { defaultBranch } : {}),
|
|
1459
|
+
};
|
|
1460
|
+
return handleApiOperation(() => ProjectService.createRepository(projectKey, requestBody), 'Error creating repository');
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Remove a reviewer from a pull request
|
|
1464
|
+
* @param projectKey The project key
|
|
1465
|
+
* @param repositorySlug The repository slug
|
|
1466
|
+
* @param pullRequestId The pull request ID
|
|
1467
|
+
* @param userSlug The username/name of the reviewer to remove
|
|
1468
|
+
* @returns Promise resolving to an acknowledgement
|
|
1469
|
+
*/
|
|
1470
|
+
async removePullRequestReviewer(projectKey, repositorySlug, pullRequestId, userSlug) {
|
|
1471
|
+
projectKey = projectKey.toUpperCase();
|
|
1472
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1473
|
+
const result = await handleApiOperation(() => PullRequestsService.unassignParticipantRole(projectKey, userSlug, pullRequestId, repositorySlug), 'Error removing pull request reviewer');
|
|
1474
|
+
if (result.success) {
|
|
1475
|
+
return { ...result, data: { removed: true, userSlug } };
|
|
1476
|
+
}
|
|
1477
|
+
return result;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Update an existing project (the project key is never changed)
|
|
1481
|
+
* @param key The project key
|
|
1482
|
+
* @param name Optional new project name
|
|
1483
|
+
* @param description Optional new description
|
|
1484
|
+
* @returns Promise with the updated project
|
|
1485
|
+
*/
|
|
1486
|
+
async updateProject(key, name, description) {
|
|
1487
|
+
key = key.toUpperCase();
|
|
1488
|
+
const requestBody = {
|
|
1489
|
+
key,
|
|
1490
|
+
...(name !== undefined ? { name } : {}),
|
|
1491
|
+
...(description !== undefined ? { description } : {}),
|
|
1492
|
+
};
|
|
1493
|
+
return handleApiOperation(() => ProjectService.updateProject(key, requestBody), 'Error updating project');
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Update an existing repository (rename, change description, default branch, or move project)
|
|
1497
|
+
* @param projectKey The project key
|
|
1498
|
+
* @param repositorySlug The repository slug
|
|
1499
|
+
* @param name Optional new repository name
|
|
1500
|
+
* @param description Optional new description
|
|
1501
|
+
* @param defaultBranch Optional new default branch
|
|
1502
|
+
* @param targetProjectKey Optional project key to move the repository into
|
|
1503
|
+
* @returns Promise with the updated repository
|
|
1504
|
+
*/
|
|
1505
|
+
async updateRepository(projectKey, repositorySlug, name, description, defaultBranch, targetProjectKey) {
|
|
1506
|
+
projectKey = projectKey.toUpperCase();
|
|
1507
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1508
|
+
const requestBody = {
|
|
1509
|
+
...(name !== undefined ? { name } : {}),
|
|
1510
|
+
...(description !== undefined ? { description } : {}),
|
|
1511
|
+
...(defaultBranch !== undefined ? { defaultBranch } : {}),
|
|
1512
|
+
...(targetProjectKey ? { project: { key: targetProjectKey.toUpperCase() } } : {}),
|
|
1513
|
+
};
|
|
1514
|
+
return handleApiOperation(() => ProjectService.updateRepository(projectKey, repositorySlug, requestBody), 'Error updating repository');
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Delete a project (must contain no repositories)
|
|
1518
|
+
* @param key The project key
|
|
1519
|
+
* @returns Promise with a deletion acknowledgement
|
|
1520
|
+
*/
|
|
1521
|
+
async deleteProject(key) {
|
|
1522
|
+
key = key.toUpperCase();
|
|
1523
|
+
const result = await handleApiOperation(() => ProjectService.deleteProject(key), 'Error deleting project');
|
|
1524
|
+
return { ...result, data: { deleted: true, key } };
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* Fork an existing repository
|
|
1528
|
+
* @param projectKey The project key of the origin repository
|
|
1529
|
+
* @param repositorySlug The repository slug of the origin repository
|
|
1530
|
+
* @param name Optional name for the fork (defaults to the origin name)
|
|
1531
|
+
* @param targetProjectKey Optional target project key (defaults to the user's personal project)
|
|
1532
|
+
* @param defaultBranch Optional default branch for the fork
|
|
1533
|
+
* @returns Promise with the created fork
|
|
1534
|
+
*/
|
|
1535
|
+
async forkRepository(projectKey, repositorySlug, name, targetProjectKey, defaultBranch) {
|
|
1536
|
+
projectKey = projectKey.toUpperCase();
|
|
1537
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1538
|
+
const requestBody = {
|
|
1539
|
+
...(name ? { name } : {}),
|
|
1540
|
+
...(targetProjectKey ? { project: { key: targetProjectKey.toUpperCase() } } : {}),
|
|
1541
|
+
...(defaultBranch ? { defaultBranch } : {}),
|
|
1542
|
+
};
|
|
1543
|
+
return handleApiOperation(() => ProjectService.forkRepository(projectKey, repositorySlug, requestBody), 'Error forking repository');
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Schedule a repository for deletion
|
|
1547
|
+
* @param projectKey The project key
|
|
1548
|
+
* @param repositorySlug The repository slug
|
|
1549
|
+
* @returns Promise with a deletion acknowledgement
|
|
1550
|
+
*/
|
|
1551
|
+
async deleteRepository(projectKey, repositorySlug) {
|
|
1552
|
+
projectKey = projectKey.toUpperCase();
|
|
1553
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1554
|
+
const result = await handleApiOperation(() => ProjectService.deleteRepository(projectKey, repositorySlug), 'Error deleting repository');
|
|
1555
|
+
return { ...result, data: { scheduledForDeletion: true, projectKey, repositorySlug } };
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* Delete a webhook
|
|
1559
|
+
* @param projectKey The project key
|
|
1560
|
+
* @param repositorySlug The repository slug
|
|
1561
|
+
* @param webhookId The ID of the webhook to delete
|
|
1562
|
+
* @returns Promise with a delete acknowledgement
|
|
1563
|
+
*/
|
|
1564
|
+
async deleteWebhook(projectKey, repositorySlug, webhookId) {
|
|
1565
|
+
projectKey = projectKey.toUpperCase();
|
|
1566
|
+
repositorySlug = repositorySlug.toLowerCase();
|
|
1567
|
+
const result = await handleApiOperation(() => RepositoryService.deleteWebhook1(projectKey, webhookId, repositorySlug), 'Error deleting webhook');
|
|
1568
|
+
return { ...result, data: { deleted: true, webhookId } };
|
|
1569
|
+
}
|
|
1570
|
+
buildWebhookBody(name, url, events, active, secret, sslVerificationRequired) {
|
|
1571
|
+
return {
|
|
1572
|
+
name,
|
|
1573
|
+
url,
|
|
1574
|
+
events,
|
|
1575
|
+
...(active !== undefined ? { active } : {}),
|
|
1576
|
+
...(secret ? { configuration: { secret } } : {}),
|
|
1577
|
+
...(sslVerificationRequired !== undefined ? { sslVerificationRequired } : {}),
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
async validateSetup() {
|
|
1581
|
+
await __request(OpenAPI, {
|
|
1582
|
+
method: 'GET',
|
|
1583
|
+
url: '/api/latest/dashboard/pull-requests',
|
|
1584
|
+
query: { limit: 1 },
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
static validateConfig() {
|
|
1588
|
+
return getMissingConfig();
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
export const bitbucketToolSchemas = {
|
|
1592
|
+
getProjects: {
|
|
1593
|
+
name: z.string().optional().describe("Filter projects by name"),
|
|
1594
|
+
permission: z.string().optional().describe("Filter projects by permission"),
|
|
1595
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1596
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1597
|
+
},
|
|
1598
|
+
getPullRequests: {
|
|
1599
|
+
projectKey: z.string().describe("The project key"),
|
|
1600
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1601
|
+
withAttributes: z.string().optional().describe("(optional) defaults to true, whether to return additional pull request attributes"),
|
|
1602
|
+
at: z.string().optional().describe("(optional) a fully-qualified branch ID to find pull requests to or from, such as refs/heads/master"),
|
|
1603
|
+
withProperties: z.string().optional().describe("(optional) defaults to true, whether to return additional pull request properties"),
|
|
1604
|
+
draft: z.string().optional().describe("(optional) If specified, only pull requests matching the supplied draft status will be returned"),
|
|
1605
|
+
filterText: z.string().optional().describe("(optional) If specified, only pull requests where the title or description contains the supplied string will be returned"),
|
|
1606
|
+
state: z.string().optional().describe("(optional, defaults to OPEN). Supply ALL to return pull request in any state. If a state is supplied only pull requests in the specified state will be returned. Either OPEN, DECLINED or MERGED"),
|
|
1607
|
+
order: z.string().optional().describe("(optional, defaults to NEWEST) the order to return pull requests in, either OLDEST (as in: \"oldest first\") or NEWEST"),
|
|
1608
|
+
direction: z.string().optional().describe("(optional, defaults to INCOMING) the direction relative to the specified repository. Either INCOMING or OUTGOING"),
|
|
1609
|
+
start: z.number().optional().describe("Start number for the page (inclusive). If not passed, first page is assumed"),
|
|
1610
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1611
|
+
},
|
|
1612
|
+
getPullRequest: {
|
|
1613
|
+
projectKey: z.string().describe("The project key"),
|
|
1614
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1615
|
+
pullRequestId: z.string().describe("The ID of the pull request within the repository")
|
|
1616
|
+
},
|
|
1617
|
+
getProject: {
|
|
1618
|
+
projectKey: z.string().describe("The project key")
|
|
1619
|
+
},
|
|
1620
|
+
getRepositories: {
|
|
1621
|
+
projectKey: z.string().describe("The project key"),
|
|
1622
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1623
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1624
|
+
},
|
|
1625
|
+
getRepository: {
|
|
1626
|
+
projectKey: z.string().describe("The project key"),
|
|
1627
|
+
repositorySlug: z.string().describe("The repository slug")
|
|
1628
|
+
},
|
|
1629
|
+
createBranch: {
|
|
1630
|
+
projectKey: z.string().describe("The project key"),
|
|
1631
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1632
|
+
name: z.string().describe("The name of the new branch (e.g. 'feature/login')"),
|
|
1633
|
+
startPoint: z.string().describe("The commit hash or ref to branch from (e.g. 'refs/heads/master' or a commit id)")
|
|
1634
|
+
},
|
|
1635
|
+
deleteBranch: {
|
|
1636
|
+
projectKey: z.string().describe("The project key"),
|
|
1637
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1638
|
+
name: z.string().describe("The branch to delete, as a full ref (e.g. 'refs/heads/feature/login') or branch name"),
|
|
1639
|
+
dryRun: z.boolean().optional().describe("If true, validate the deletion without actually removing the branch")
|
|
1640
|
+
},
|
|
1641
|
+
getBranches: {
|
|
1642
|
+
projectKey: z.string().describe("The project key"),
|
|
1643
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1644
|
+
filterText: z.string().optional().describe("Optional text that the returned branch names must contain (substring match)"),
|
|
1645
|
+
orderBy: z.enum(['ALPHABETICAL', 'MODIFICATION']).optional().describe("Ordering of the results: ALPHABETICAL by branch name, or MODIFICATION (most recently modified first)"),
|
|
1646
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1647
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1648
|
+
},
|
|
1649
|
+
getDefaultBranch: {
|
|
1650
|
+
projectKey: z.string().describe("The project key"),
|
|
1651
|
+
repositorySlug: z.string().describe("The repository slug")
|
|
1652
|
+
},
|
|
1653
|
+
editFile: {
|
|
1654
|
+
projectKey: z.string().describe("The project key"),
|
|
1655
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1656
|
+
path: z.string().describe("The path of the file to create or modify (e.g. 'src/index.ts')"),
|
|
1657
|
+
content: z.string().describe("The full new content of the file"),
|
|
1658
|
+
message: z.string().describe("The commit message"),
|
|
1659
|
+
branch: z.string().describe("The branch to commit on (e.g. 'master' or 'refs/heads/master')"),
|
|
1660
|
+
sourceCommitId: z.string().optional().describe("The commit id the file was last seen at. Required when editing an existing file (conflict detection); omit when creating a new file."),
|
|
1661
|
+
sourceBranch: z.string().optional().describe("When set, the target branch is created from this starting branch before committing.")
|
|
1662
|
+
},
|
|
1663
|
+
getTags: {
|
|
1664
|
+
projectKey: z.string().describe("The project key"),
|
|
1665
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1666
|
+
filterText: z.string().optional().describe("Optional text that the returned tag names must contain"),
|
|
1667
|
+
orderBy: z.enum(['ALPHABETICAL', 'MODIFICATION']).optional().describe("Ordering of the results: ALPHABETICAL or MODIFICATION (most recently modified first)"),
|
|
1668
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1669
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1670
|
+
},
|
|
1671
|
+
getTag: {
|
|
1672
|
+
projectKey: z.string().describe("The project key"),
|
|
1673
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1674
|
+
name: z.string().describe("The tag name (e.g. 'release-1.0.0')")
|
|
1675
|
+
},
|
|
1676
|
+
createTag: {
|
|
1677
|
+
projectKey: z.string().describe("The project key"),
|
|
1678
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1679
|
+
name: z.string().describe("The name of the new tag"),
|
|
1680
|
+
startPoint: z.string().describe("The commit hash or ref the tag should point at (e.g. 'refs/heads/master' or a commit id)"),
|
|
1681
|
+
message: z.string().optional().describe("Optional message; when provided, an annotated tag is created")
|
|
1682
|
+
},
|
|
1683
|
+
getCommits: {
|
|
1684
|
+
projectKey: z.string().describe("The project key"),
|
|
1685
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1686
|
+
path: z.string().optional().describe("Optional path to filter commits by"),
|
|
1687
|
+
since: z.string().optional().describe("The commit ID (exclusively) to retrieve commits after"),
|
|
1688
|
+
until: z.string().optional().describe("The commit ID (inclusively) to retrieve commits before"),
|
|
1689
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1690
|
+
},
|
|
1691
|
+
listBuildStatuses: {
|
|
1692
|
+
commitId: z.string().describe("The commit id (hash) whose build statuses to list. Note: build statuses are keyed by commit id globally, independent of project/repository."),
|
|
1693
|
+
orderBy: z.string().optional().describe("Optional ordering of the results"),
|
|
1694
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1695
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1696
|
+
},
|
|
1697
|
+
addBuildStatus: {
|
|
1698
|
+
projectKey: z.string().describe("The project key"),
|
|
1699
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1700
|
+
commitId: z.string().describe("The commit id (hash) to attach the build status to"),
|
|
1701
|
+
state: z.enum(['SUCCESSFUL', 'FAILED', 'INPROGRESS']).describe("The build state"),
|
|
1702
|
+
key: z.string().describe("A unique key identifying the build (e.g. the pipeline or plan key)"),
|
|
1703
|
+
url: z.string().describe("The URL to the build result"),
|
|
1704
|
+
name: z.string().optional().describe("Optional display name for the build"),
|
|
1705
|
+
description: z.string().optional().describe("Optional description for the build")
|
|
1706
|
+
},
|
|
1707
|
+
getBuildStatus: {
|
|
1708
|
+
projectKey: z.string().describe("The project key"),
|
|
1709
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1710
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1711
|
+
key: z.string().describe("The unique key of the build status to fetch")
|
|
1712
|
+
},
|
|
1713
|
+
setInsightReport: {
|
|
1714
|
+
projectKey: z.string().describe("The project key"),
|
|
1715
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1716
|
+
commitId: z.string().describe("The commit id (hash) the report is attached to"),
|
|
1717
|
+
key: z.string().describe("A unique, namespaced key identifying the report (e.g. 'mycompany.eslint')"),
|
|
1718
|
+
report: z.object({
|
|
1719
|
+
title: z.string().describe("The report title"),
|
|
1720
|
+
details: z.string().optional().describe("Detailed description"),
|
|
1721
|
+
result: z.enum(['PASS', 'FAIL']).optional().describe("Overall report result"),
|
|
1722
|
+
reporter: z.string().optional().describe("Name of the tool/reporter that produced the report"),
|
|
1723
|
+
link: z.string().optional().describe("URL linking to the full report"),
|
|
1724
|
+
logoUrl: z.string().optional().describe("URL of a logo to display"),
|
|
1725
|
+
data: z.array(z.any()).optional().describe("Array of report data items ({ title, type, value })")
|
|
1726
|
+
}).passthrough().describe("The Code Insights report payload")
|
|
1727
|
+
},
|
|
1728
|
+
getInsightReport: {
|
|
1729
|
+
projectKey: z.string().describe("The project key"),
|
|
1730
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1731
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1732
|
+
key: z.string().describe("The report key")
|
|
1733
|
+
},
|
|
1734
|
+
deleteInsightReport: {
|
|
1735
|
+
projectKey: z.string().describe("The project key"),
|
|
1736
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1737
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1738
|
+
key: z.string().describe("The report key")
|
|
1739
|
+
},
|
|
1740
|
+
addInsightAnnotations: {
|
|
1741
|
+
projectKey: z.string().describe("The project key"),
|
|
1742
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1743
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1744
|
+
key: z.string().describe("The report key the annotations belong to"),
|
|
1745
|
+
annotations: z.array(z.object({
|
|
1746
|
+
externalId: z.string().describe("Unique id of the annotation within the report"),
|
|
1747
|
+
path: z.string().describe("File path the annotation refers to"),
|
|
1748
|
+
line: z.number().describe("Line number the annotation refers to"),
|
|
1749
|
+
message: z.string().describe("The annotation message"),
|
|
1750
|
+
severity: z.enum(['LOW', 'MEDIUM', 'HIGH']).describe("Annotation severity"),
|
|
1751
|
+
link: z.string().optional().describe("URL with more detail"),
|
|
1752
|
+
type: z.enum(['VULNERABILITY', 'CODE_SMELL', 'BUG']).optional().describe("Annotation type")
|
|
1753
|
+
}).passthrough()).describe("Array of annotations to add to the report")
|
|
1754
|
+
},
|
|
1755
|
+
getInsightAnnotations: {
|
|
1756
|
+
projectKey: z.string().describe("The project key"),
|
|
1757
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1758
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1759
|
+
key: z.string().describe("The report key")
|
|
1760
|
+
},
|
|
1761
|
+
deleteInsightAnnotations: {
|
|
1762
|
+
projectKey: z.string().describe("The project key"),
|
|
1763
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1764
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1765
|
+
key: z.string().describe("The report key"),
|
|
1766
|
+
externalId: z.string().optional().describe("If given, delete only this annotation; otherwise delete all annotations of the report")
|
|
1767
|
+
},
|
|
1768
|
+
getCommitComments: {
|
|
1769
|
+
projectKey: z.string().describe("The project key"),
|
|
1770
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1771
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1772
|
+
path: z.string().describe("The file path to return comments for. Required: Bitbucket only returns commit comments scoped to a file path."),
|
|
1773
|
+
since: z.string().optional().describe("Optional commit id; return comments added since that commit"),
|
|
1774
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1775
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1776
|
+
},
|
|
1777
|
+
addCommitComment: {
|
|
1778
|
+
projectKey: z.string().describe("The project key"),
|
|
1779
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1780
|
+
commitId: z.string().describe("The commit id (hash) to comment on"),
|
|
1781
|
+
text: z.string().describe("The comment text"),
|
|
1782
|
+
path: z.string().optional().describe("Optional file path to anchor the comment to a file"),
|
|
1783
|
+
line: z.number().optional().describe("Optional line number within the file to anchor the comment to (requires path)"),
|
|
1784
|
+
lineType: z.enum(['ADDED', 'REMOVED', 'CONTEXT']).optional().describe("Line type for the anchored line. Defaults to CONTEXT when a line is given.")
|
|
1785
|
+
},
|
|
1786
|
+
getCommit: {
|
|
1787
|
+
projectKey: z.string().describe("The project key"),
|
|
1788
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1789
|
+
commitId: z.string().describe("The commit id (hash) to retrieve"),
|
|
1790
|
+
path: z.string().optional().describe("Optional path; the commit is only returned if it affects this path")
|
|
1791
|
+
},
|
|
1792
|
+
getCommitDiff: {
|
|
1793
|
+
projectKey: z.string().describe("The project key"),
|
|
1794
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1795
|
+
commitId: z.string().describe("The commit id (hash)"),
|
|
1796
|
+
path: z.string().optional().describe("Optional file path to limit the diff to. Omit for the whole-commit diff."),
|
|
1797
|
+
contextLines: z.string().optional().describe("Number of context lines to include around changes"),
|
|
1798
|
+
whitespace: z.string().optional().describe("Optional whitespace flag which can be set to 'ignore-all'"),
|
|
1799
|
+
srcPath: z.string().optional().describe("The previous path to the file, if it has been copied, moved or renamed")
|
|
1800
|
+
},
|
|
1801
|
+
compareRefs: {
|
|
1802
|
+
projectKey: z.string().describe("The project key"),
|
|
1803
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1804
|
+
from: z.string().describe("The source ref or commit to compare from (e.g. 'refs/heads/feature' or a commit hash)"),
|
|
1805
|
+
to: z.string().describe("The target ref or commit to compare to (e.g. 'refs/heads/master')"),
|
|
1806
|
+
fromRepo: z.string().optional().describe("Optional 'projectKey/repositorySlug' the 'from' ref lives in, for cross-repository comparisons"),
|
|
1807
|
+
compareType: z.enum(['commits', 'changes']).optional().describe("'commits' (default) lists the commits between the refs; 'changes' lists the changed files"),
|
|
1808
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1809
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1810
|
+
},
|
|
1811
|
+
getFileContent: {
|
|
1812
|
+
projectKey: z.string().describe("The project key"),
|
|
1813
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1814
|
+
path: z.string().describe("The path of the file to retrieve (e.g. 'src/index.ts')"),
|
|
1815
|
+
at: z.string().optional().describe("Optional commit hash or ref to read the file at (e.g. 'refs/heads/main' or a commit id). Defaults to the repository's default branch.")
|
|
1816
|
+
},
|
|
1817
|
+
browseRepository: {
|
|
1818
|
+
projectKey: z.string().describe("The project key"),
|
|
1819
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1820
|
+
path: z.string().optional().describe("Path to browse. Omit or pass an empty string to list the repository root. A directory path returns its children; a file path returns the file content as paginated lines."),
|
|
1821
|
+
at: z.string().optional().describe("Optional commit hash or ref to browse at. Defaults to the repository's default branch."),
|
|
1822
|
+
type: z.boolean().optional().describe("If true, return only the node type (FILE, DIRECTORY, or SUBMODULE) of the path instead of its content."),
|
|
1823
|
+
blame: z.boolean().optional().describe("If true, include blame information in the response.")
|
|
1824
|
+
},
|
|
1825
|
+
getPullRequestComments: {
|
|
1826
|
+
projectKey: z.string().describe("The project key"),
|
|
1827
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1828
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1829
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1830
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used."),
|
|
1831
|
+
output: z.enum(['summary', 'compact', 'full']).optional().describe("Choose between summary lines, compact structured output, or the full API payload. Defaults to compact."),
|
|
1832
|
+
includeResolved: z.boolean().optional().describe("Include resolved comment threads and their replies. Defaults to false, so resolved threads are omitted.")
|
|
1833
|
+
},
|
|
1834
|
+
getPullRequestChanges: {
|
|
1835
|
+
projectKey: z.string().describe("The project key"),
|
|
1836
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1837
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1838
|
+
sinceId: z.string().optional().describe("The since commit hash to stream changes for a RANGE arbitrary change scope"),
|
|
1839
|
+
changeScope: z.string().optional().describe("UNREVIEWED for unreviewed changes, RANGE for changes between commits, ALL for all changes (default)"),
|
|
1840
|
+
untilId: z.string().optional().describe("The until commit hash to stream changes for a RANGE arbitrary change scope"),
|
|
1841
|
+
withComments: z.string().optional().describe("true to apply comment counts in the changes (default), false to stream changes without comment counts"),
|
|
1842
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1843
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used."),
|
|
1844
|
+
output: z.enum(['summary', 'compact', 'full']).optional().describe("Choose between summary lines, compact structured output, or the full API payload. Defaults to compact.")
|
|
1845
|
+
},
|
|
1846
|
+
postPullRequestComment: {
|
|
1847
|
+
projectKey: z.string().describe("The project key"),
|
|
1848
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1849
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1850
|
+
text: z.string().describe("The comment text"),
|
|
1851
|
+
parentId: z.number().optional().describe("Parent comment ID for replies"),
|
|
1852
|
+
filePath: z.string().optional().describe("File path for file-specific comments"),
|
|
1853
|
+
startLine: z.number().optional().describe("First line of a multiline range. Provide together with 'line' (the last line) to span multiple lines. REQUIRED for a multi-line ```suggestion: the anchored range (startLine..line) is exactly what 'Apply suggestion' replaces — omit it and only the single 'line' is replaced, leaving the rest. Requires Bitbucket DC >= 9.3.0 for multiline suggestions."),
|
|
1854
|
+
startLineType: z.enum(['ADDED', 'REMOVED', 'CONTEXT']).optional().describe("Line type for the start line of a multiline range. Defaults to the same value as lineType if omitted."),
|
|
1855
|
+
line: z.number().optional().describe("Single-line comments: the line. Multiline: the LAST line of the range (use startLine for the first). For a ```suggestion this is the last replaced line."),
|
|
1856
|
+
lineType: z.enum(['ADDED', 'REMOVED', 'CONTEXT']).optional().describe("Line type for 'line' (the end line, or the only line for single-line comments). Use 'ADDED'/'CONTEXT' for the new/target file, 'REMOVED' for the original/source file."),
|
|
1857
|
+
pending: z.boolean().optional().describe("If true, creates a pending (draft) comment not visible to others until the review is submitted via bitbucket_submitPullRequestReview. Only works when filePath is provided — top-level PR comments (no filePath) are always posted live."),
|
|
1858
|
+
severity: z.enum(['NORMAL', 'BLOCKER']).optional().describe("Comment severity. Use 'BLOCKER' to post the comment as a task that must be resolved before the PR can be merged. Defaults to 'NORMAL' (regular comment)."),
|
|
1859
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1860
|
+
},
|
|
1861
|
+
updatePullRequestComment: {
|
|
1862
|
+
projectKey: z.string().describe("The project key"),
|
|
1863
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1864
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1865
|
+
commentId: z.string().describe("The ID of the comment to update"),
|
|
1866
|
+
version: z.number().describe("The current version of the comment, required for optimistic locking. Get it from bitbucket_getPR_CommentsAndAction or from the response of the original post/update."),
|
|
1867
|
+
text: z.string().optional().describe("New comment text. Omit to leave unchanged."),
|
|
1868
|
+
state: z.enum(['OPEN', 'RESOLVED']).optional().describe("New state. 'RESOLVED' resolves the comment thread — on a regular comment this is the 'Resolve' button in the UI; on a BLOCKER (task) comment it also ticks the task. 'OPEN' reopens the thread (un-ticks the task). Resolution is driven by the root comment's state."),
|
|
1869
|
+
severity: z.enum(['NORMAL', 'BLOCKER']).optional().describe("New severity. Use 'BLOCKER' to convert a comment into a task, 'NORMAL' to convert it back."),
|
|
1870
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1871
|
+
},
|
|
1872
|
+
getUser: {
|
|
1873
|
+
userSlug: z.string().optional().describe("Exact slug of the user to look up (e.g. 'tdepole'). Use this to confirm a known slug or fetch a user's details."),
|
|
1874
|
+
filter: z.string().optional().describe("Search string to find users by name or email. Use this to discover a user's slug when it is not known.")
|
|
1875
|
+
},
|
|
1876
|
+
submitPullRequestReview: {
|
|
1877
|
+
projectKey: z.string().describe("The project key"),
|
|
1878
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1879
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1880
|
+
userSlug: z.string().describe("The username/slug of the PAT token owner — the same user whose credentials are in BITBUCKET_API_TOKEN. Resolution order: (1) author.slug from any comment posted this session, (2) reviewers/participants array from getPullRequest, (3) bitbucket_getUser with a name/email filter."),
|
|
1881
|
+
status: z.enum(['APPROVED', 'NEEDS_WORK', 'UNAPPROVED']).describe("The review verdict: APPROVED, NEEDS_WORK, or UNAPPROVED"),
|
|
1882
|
+
lastReviewedCommit: z.string().optional().describe("Optional hash of the last commit reviewed, used to track review progress")
|
|
1883
|
+
},
|
|
1884
|
+
getPullRequestDiff: {
|
|
1885
|
+
projectKey: z.string().describe("The project key"),
|
|
1886
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1887
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1888
|
+
path: z.string().describe("The path to the file which should be diffed. Note: Before getting diff, use getPullRequestChanges to understand what files were changed in the PR"),
|
|
1889
|
+
contextLines: z.string().optional().describe("Number of context lines to include around added/removed lines in the diff"),
|
|
1890
|
+
sinceId: z.string().optional().describe("The since commit hash to stream a diff between two arbitrary hashes"),
|
|
1891
|
+
srcPath: z.string().optional().describe("The previous path to the file, if the file has been copied, moved or renamed"),
|
|
1892
|
+
diffType: z.string().optional().describe("The type of diff being requested"),
|
|
1893
|
+
untilId: z.string().optional().describe("The until commit hash to stream a diff between two arbitrary hashes"),
|
|
1894
|
+
whitespace: z.string().optional().describe("Optional whitespace flag which can be set to 'ignore-all'")
|
|
1895
|
+
},
|
|
1896
|
+
createPullRequest: {
|
|
1897
|
+
projectKey: z.string().describe("The project key"),
|
|
1898
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1899
|
+
title: z.string().describe("The pull request title"),
|
|
1900
|
+
description: z.string().optional().describe("The pull request description"),
|
|
1901
|
+
fromRefId: z.string().describe("The source branch reference ID (e.g., 'refs/heads/feature-branch')"),
|
|
1902
|
+
toRefId: z.string().describe("The destination branch reference ID (e.g., 'refs/heads/main')"),
|
|
1903
|
+
draft: z.boolean().optional().describe("If true, the pull request is created as a draft (work-in-progress) and cannot be merged until marked ready."),
|
|
1904
|
+
reviewers: z.array(z.string()).optional().describe("Optional array of reviewer usernames (use the 'name' field from Bitbucket user objects, not 'slug')"),
|
|
1905
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1906
|
+
},
|
|
1907
|
+
updatePullRequest: {
|
|
1908
|
+
projectKey: z.string().describe("The project key"),
|
|
1909
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1910
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1911
|
+
version: z.number().describe("The current version of the pull request (required for optimistic locking). Obtain this by calling bitbucket_getPullRequest first."),
|
|
1912
|
+
title: z.string().optional().describe("The new title for the pull request"),
|
|
1913
|
+
description: z.string().optional().describe("The new description for the pull request"),
|
|
1914
|
+
draft: z.boolean().optional().describe("If provided, sets the draft (work-in-progress) status of the pull request. Pass true to mark as draft, false to mark as ready for review."),
|
|
1915
|
+
reviewers: z.array(z.string()).optional().describe("Optional array of reviewer usernames to set (use the 'name' field from Bitbucket user objects, not 'slug')"),
|
|
1916
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1917
|
+
},
|
|
1918
|
+
canMergePullRequest: {
|
|
1919
|
+
projectKey: z.string().describe("The project key"),
|
|
1920
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1921
|
+
pullRequestId: z.string().describe("The pull request ID")
|
|
1922
|
+
},
|
|
1923
|
+
mergePullRequest: {
|
|
1924
|
+
projectKey: z.string().describe("The project key"),
|
|
1925
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1926
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1927
|
+
version: z.number().describe("The current version of the pull request (required for optimistic locking). Obtain it via bitbucket_getPullRequest. Use bitbucket_canMergePullRequest first to confirm there are no merge vetoes."),
|
|
1928
|
+
message: z.string().optional().describe("Optional custom merge commit message"),
|
|
1929
|
+
strategyId: z.string().optional().describe("Optional merge strategy id, e.g. 'no-ff', 'ff', 'ff-only', 'rebase-no-ff', or 'squash'. Must be enabled on the repository. Defaults to the repository's configured strategy."),
|
|
1930
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1931
|
+
},
|
|
1932
|
+
declinePullRequest: {
|
|
1933
|
+
projectKey: z.string().describe("The project key"),
|
|
1934
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1935
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1936
|
+
version: z.number().describe("The current version of the pull request (required for optimistic locking). Obtain it via bitbucket_getPullRequest."),
|
|
1937
|
+
comment: z.string().optional().describe("Optional comment explaining why the pull request is being declined"),
|
|
1938
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1939
|
+
},
|
|
1940
|
+
reopenPullRequest: {
|
|
1941
|
+
projectKey: z.string().describe("The project key"),
|
|
1942
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1943
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1944
|
+
version: z.number().describe("The current version of the declined pull request (required for optimistic locking). Obtain it via bitbucket_getPullRequest."),
|
|
1945
|
+
output: z.enum(['ack', 'full']).optional().describe("Return a compact acknowledgement or the full API response. Defaults to ack.")
|
|
1946
|
+
},
|
|
1947
|
+
addPullRequestReviewer: {
|
|
1948
|
+
projectKey: z.string().describe("The project key"),
|
|
1949
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1950
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1951
|
+
userSlug: z.string().describe("The username/name of the user to add as a reviewer (use the 'name' field from Bitbucket user objects). Adds a single reviewer without replacing the existing ones, unlike bitbucket_updatePullRequest.")
|
|
1952
|
+
},
|
|
1953
|
+
removePullRequestReviewer: {
|
|
1954
|
+
projectKey: z.string().describe("The project key"),
|
|
1955
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1956
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
1957
|
+
userSlug: z.string().describe("The username/name of the reviewer to remove. The user remains a participant but loses the REVIEWER role.")
|
|
1958
|
+
},
|
|
1959
|
+
getRequiredReviewers: {
|
|
1960
|
+
projectKey: z.string().describe("The project key"),
|
|
1961
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1962
|
+
sourceRefId: z.string().describe("The ID of the source ref (e.g., 'refs/heads/feature-branch')"),
|
|
1963
|
+
targetRefId: z.string().describe("The ID of the target ref (e.g., 'refs/heads/main')"),
|
|
1964
|
+
sourceRepoId: z.string().optional().describe("Optional ID of the repository in which the source ref exists"),
|
|
1965
|
+
targetRepoId: z.string().optional().describe("Optional ID of the repository in which the target ref exists")
|
|
1966
|
+
},
|
|
1967
|
+
getDashboardPullRequests: {
|
|
1968
|
+
role: z.enum(['AUTHOR', 'REVIEWER', 'PARTICIPANT']).optional().default('AUTHOR').describe("Filter by the user's role in the PR: AUTHOR (default), REVIEWER, or PARTICIPANT"),
|
|
1969
|
+
state: z.enum(['OPEN', 'DECLINED', 'MERGED']).optional().default('OPEN').describe("Filter by PR state: OPEN (default), DECLINED, or MERGED"),
|
|
1970
|
+
closedSince: z.number().optional().describe("Timestamp in milliseconds. If state is not OPEN, return only PRs closed after this date"),
|
|
1971
|
+
order: z.enum(['NEWEST', 'OLDEST', 'PARTICIPANT']).optional().default('NEWEST').describe("Order of results: NEWEST (default), OLDEST, or PARTICIPANT"),
|
|
1972
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1973
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1974
|
+
},
|
|
1975
|
+
getInboxPullRequests: {
|
|
1976
|
+
start: z.number().optional().describe("Start number for the page (inclusive). If not passed, first page is assumed"),
|
|
1977
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1978
|
+
},
|
|
1979
|
+
getBranchRestrictions: {
|
|
1980
|
+
projectKey: z.string().describe("The project key"),
|
|
1981
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1982
|
+
matcherType: z.enum(['BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).optional().describe("Filter by matcher type"),
|
|
1983
|
+
matcherId: z.string().optional().describe("Filter by matcher id (requires matcherType)"),
|
|
1984
|
+
type: z.enum(['read-only', 'no-deletes', 'fast-forward-only', 'pull-request-only', 'no-creates']).optional().describe("Filter by restriction type"),
|
|
1985
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
1986
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
1987
|
+
},
|
|
1988
|
+
createBranchRestriction: {
|
|
1989
|
+
projectKey: z.string().describe("The project key"),
|
|
1990
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
1991
|
+
type: z.enum(['read-only', 'no-deletes', 'fast-forward-only', 'pull-request-only', 'no-creates']).describe("The restriction type: read-only (prevent changes), no-deletes, fast-forward-only (prevent rewriting history), pull-request-only (prevent changes without a PR), no-creates"),
|
|
1992
|
+
matcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the restricted ref"),
|
|
1993
|
+
matcherValue: z.string().describe("Matcher value. For BRANCH use a ref id like 'refs/heads/main'; for PATTERN use the pattern; for MODEL_* use the model id; for ANY_REF use 'ANY_REF'."),
|
|
1994
|
+
matcherDisplayId: z.string().optional().describe("Display value for the matcher (defaults to the matcher value, e.g. 'main' for 'refs/heads/main')"),
|
|
1995
|
+
exemptUserSlugs: z.array(z.string()).optional().describe("User slugs exempt from the restriction"),
|
|
1996
|
+
exemptGroupNames: z.array(z.string()).optional().describe("Group names exempt from the restriction"),
|
|
1997
|
+
exemptAccessKeyIds: z.array(z.number()).optional().describe("SSH access key IDs exempt from the restriction")
|
|
1998
|
+
},
|
|
1999
|
+
getBranchRestriction: {
|
|
2000
|
+
projectKey: z.string().describe("The project key"),
|
|
2001
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2002
|
+
id: z.string().describe("The restriction ID")
|
|
2003
|
+
},
|
|
2004
|
+
deleteBranchRestriction: {
|
|
2005
|
+
projectKey: z.string().describe("The project key"),
|
|
2006
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2007
|
+
id: z.string().describe("The restriction ID")
|
|
2008
|
+
},
|
|
2009
|
+
searchCode: {
|
|
2010
|
+
query: z.string().describe("The search query. Supports Bitbucket search modifiers, e.g. 'project:TEST authenticate', 'repo:TEST/demo TODO' (the repo modifier must be 'repo:projectkey/repositoryslug'), 'ext:ts useState'. Scope to a project or repository inside the query text."),
|
|
2011
|
+
limit: z.number().optional().describe("Maximum number of matching files to return. If not passed, the package default page size is used."),
|
|
2012
|
+
secondaryLimit: z.number().optional().describe("Maximum number of hit contexts (matching code snippets) to return per file")
|
|
2013
|
+
},
|
|
2014
|
+
getDefaultReviewerConditions: {
|
|
2015
|
+
projectKey: z.string().describe("The project key"),
|
|
2016
|
+
repositorySlug: z.string().describe("The repository slug")
|
|
2017
|
+
},
|
|
2018
|
+
createDefaultReviewerCondition: {
|
|
2019
|
+
projectKey: z.string().describe("The project key"),
|
|
2020
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2021
|
+
sourceMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the source ref"),
|
|
2022
|
+
sourceMatcherValue: z.string().describe("Matcher value for the source ref. For ANY_REF use 'ANY_REF'; for BRANCH use a ref id like 'refs/heads/main'; for PATTERN use the pattern; for MODEL_* use the model id."),
|
|
2023
|
+
targetMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the target ref"),
|
|
2024
|
+
targetMatcherValue: z.string().describe("Matcher value for the target ref (see sourceMatcherValue)"),
|
|
2025
|
+
reviewerIds: z.array(z.number()).describe("Numeric user IDs of the default reviewers. Resolve a username to its numeric id via bitbucket_getUser."),
|
|
2026
|
+
requiredApprovals: z.number().optional().describe("Number of approvals required from the default reviewers"),
|
|
2027
|
+
sourceMatcherDisplayId: z.string().optional().describe("Display value for the source matcher (defaults to the matcher value, e.g. 'main' for 'refs/heads/main')"),
|
|
2028
|
+
targetMatcherDisplayId: z.string().optional().describe("Display value for the target matcher (defaults to the matcher value)")
|
|
2029
|
+
},
|
|
2030
|
+
updateDefaultReviewerCondition: {
|
|
2031
|
+
projectKey: z.string().describe("The project key"),
|
|
2032
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2033
|
+
id: z.string().describe("The ID of the condition to update"),
|
|
2034
|
+
sourceMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the source ref"),
|
|
2035
|
+
sourceMatcherValue: z.string().describe("Matcher value for the source ref"),
|
|
2036
|
+
targetMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the target ref"),
|
|
2037
|
+
targetMatcherValue: z.string().describe("Matcher value for the target ref"),
|
|
2038
|
+
reviewerIds: z.array(z.number()).describe("Numeric user IDs of the default reviewers. The update replaces the full condition, so pass the complete desired set."),
|
|
2039
|
+
requiredApprovals: z.number().optional().describe("Number of approvals required from the default reviewers"),
|
|
2040
|
+
sourceMatcherDisplayId: z.string().optional().describe("Display value for the source matcher (defaults to the matcher value)"),
|
|
2041
|
+
targetMatcherDisplayId: z.string().optional().describe("Display value for the target matcher (defaults to the matcher value)")
|
|
2042
|
+
},
|
|
2043
|
+
deleteDefaultReviewerCondition: {
|
|
2044
|
+
projectKey: z.string().describe("The project key"),
|
|
2045
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2046
|
+
id: z.string().describe("The ID of the condition to delete")
|
|
2047
|
+
},
|
|
2048
|
+
getRequiredBuildsMergeChecks: {
|
|
2049
|
+
projectKey: z.string().describe("The project key"),
|
|
2050
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2051
|
+
start: z.number().optional().describe("Start number for pagination"),
|
|
2052
|
+
limit: z.number().optional().describe("Number of items to return. If not passed, the package default page size is used.")
|
|
2053
|
+
},
|
|
2054
|
+
createRequiredBuildsMergeCheck: {
|
|
2055
|
+
projectKey: z.string().describe("The project key"),
|
|
2056
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2057
|
+
buildParentKeys: z.array(z.string()).describe("Non-empty list of build parent keys that must have green builds for the check to pass"),
|
|
2058
|
+
refMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the target ref the check applies to"),
|
|
2059
|
+
refMatcherValue: z.string().describe("Matcher value for the target ref. For BRANCH use a ref id like 'refs/heads/main'; for PATTERN use the pattern; for MODEL_* use the model id; for ANY_REF use 'ANY_REF'."),
|
|
2060
|
+
refMatcherDisplayId: z.string().optional().describe("Display value for the ref matcher (defaults to the matcher value)"),
|
|
2061
|
+
exemptRefMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).optional().describe("Matcher type for source refs exempt from the check"),
|
|
2062
|
+
exemptRefMatcherValue: z.string().optional().describe("Matcher value for source refs exempt from the check"),
|
|
2063
|
+
exemptRefMatcherDisplayId: z.string().optional().describe("Display value for the exempt ref matcher (defaults to its value)")
|
|
2064
|
+
},
|
|
2065
|
+
updateRequiredBuildsMergeCheck: {
|
|
2066
|
+
projectKey: z.string().describe("The project key"),
|
|
2067
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2068
|
+
id: z.string().describe("The ID of the merge check to update"),
|
|
2069
|
+
buildParentKeys: z.array(z.string()).describe("Non-empty list of build parent keys. The update replaces the whole check, so pass the complete desired list."),
|
|
2070
|
+
refMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).describe("Matcher type for the target ref"),
|
|
2071
|
+
refMatcherValue: z.string().describe("Matcher value for the target ref"),
|
|
2072
|
+
refMatcherDisplayId: z.string().optional().describe("Display value for the ref matcher (defaults to the matcher value)"),
|
|
2073
|
+
exemptRefMatcherType: z.enum(['ANY_REF', 'BRANCH', 'PATTERN', 'MODEL_CATEGORY', 'MODEL_BRANCH']).optional().describe("Matcher type for source refs exempt from the check"),
|
|
2074
|
+
exemptRefMatcherValue: z.string().optional().describe("Matcher value for source refs exempt from the check"),
|
|
2075
|
+
exemptRefMatcherDisplayId: z.string().optional().describe("Display value for the exempt ref matcher (defaults to its value)")
|
|
2076
|
+
},
|
|
2077
|
+
deleteRequiredBuildsMergeCheck: {
|
|
2078
|
+
projectKey: z.string().describe("The project key"),
|
|
2079
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2080
|
+
id: z.string().describe("The ID of the merge check to delete")
|
|
2081
|
+
},
|
|
2082
|
+
deletePullRequestComment: {
|
|
2083
|
+
projectKey: z.string().describe("The project key"),
|
|
2084
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2085
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
2086
|
+
commentId: z.string().describe("The ID of the comment to delete"),
|
|
2087
|
+
version: z.number().describe("The current version of the comment, required for optimistic locking. A comment with replies cannot be deleted.")
|
|
2088
|
+
},
|
|
2089
|
+
applyPullRequestSuggestion: {
|
|
2090
|
+
projectKey: z.string().describe("The project key"),
|
|
2091
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2092
|
+
pullRequestId: z.string().describe("The pull request ID"),
|
|
2093
|
+
commentId: z.string().describe("The ID of the comment that contains the code suggestion"),
|
|
2094
|
+
commentVersion: z.number().describe("The current version of the comment containing the suggestion"),
|
|
2095
|
+
pullRequestVersion: z.number().describe("The current version of the pull request"),
|
|
2096
|
+
commitMessage: z.string().describe("Commit message for the commit that applies the suggestion. Required and must be non-empty."),
|
|
2097
|
+
suggestionIndex: z.number().optional().describe("Index of the suggestion within the comment when it contains several. Defaults to the first suggestion.")
|
|
2098
|
+
},
|
|
2099
|
+
watchPullRequest: {
|
|
2100
|
+
projectKey: z.string().describe("The project key"),
|
|
2101
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2102
|
+
pullRequestId: z.string().describe("The pull request ID")
|
|
2103
|
+
},
|
|
2104
|
+
unwatchPullRequest: {
|
|
2105
|
+
projectKey: z.string().describe("The project key"),
|
|
2106
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2107
|
+
pullRequestId: z.string().describe("The pull request ID")
|
|
2108
|
+
},
|
|
2109
|
+
createProject: {
|
|
2110
|
+
key: z.string().describe("The project key (e.g. 'PROJ'). Used in URLs and must be unique."),
|
|
2111
|
+
name: z.string().describe("The project name"),
|
|
2112
|
+
description: z.string().optional().describe("Optional project description")
|
|
2113
|
+
},
|
|
2114
|
+
updateProject: {
|
|
2115
|
+
key: z.string().describe("The project key. The key itself is never changed by this operation."),
|
|
2116
|
+
name: z.string().optional().describe("New project name"),
|
|
2117
|
+
description: z.string().optional().describe("New project description")
|
|
2118
|
+
},
|
|
2119
|
+
deleteProject: {
|
|
2120
|
+
key: z.string().describe("The project key. The project must contain no repositories.")
|
|
2121
|
+
},
|
|
2122
|
+
createRepository: {
|
|
2123
|
+
projectKey: z.string().describe("The project key the repository will be created in"),
|
|
2124
|
+
name: z.string().describe("The repository name"),
|
|
2125
|
+
scmId: z.string().optional().describe("The SCM type. Defaults to 'git'."),
|
|
2126
|
+
defaultBranch: z.string().optional().describe("Optional default branch for the new repository (e.g. 'main')")
|
|
2127
|
+
},
|
|
2128
|
+
updateRepository: {
|
|
2129
|
+
projectKey: z.string().describe("The project key"),
|
|
2130
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2131
|
+
name: z.string().optional().describe("New repository name. Changing the name may change the slug."),
|
|
2132
|
+
description: z.string().optional().describe("New repository description"),
|
|
2133
|
+
defaultBranch: z.string().optional().describe("New default branch (e.g. 'main')"),
|
|
2134
|
+
targetProjectKey: z.string().optional().describe("Project key to move the repository into")
|
|
2135
|
+
},
|
|
2136
|
+
forkRepository: {
|
|
2137
|
+
projectKey: z.string().describe("The project key of the origin repository"),
|
|
2138
|
+
repositorySlug: z.string().describe("The repository slug of the origin repository"),
|
|
2139
|
+
name: z.string().optional().describe("Name for the fork. Defaults to the origin repository name."),
|
|
2140
|
+
targetProjectKey: z.string().optional().describe("Target project key for the fork. Defaults to the user's personal project."),
|
|
2141
|
+
defaultBranch: z.string().optional().describe("Default branch for the fork. Defaults to the origin's default branch.")
|
|
2142
|
+
},
|
|
2143
|
+
deleteRepository: {
|
|
2144
|
+
projectKey: z.string().describe("The project key"),
|
|
2145
|
+
repositorySlug: z.string().describe("The repository slug")
|
|
2146
|
+
},
|
|
2147
|
+
getWebhooks: {
|
|
2148
|
+
projectKey: z.string().describe("The project key"),
|
|
2149
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2150
|
+
event: z.string().optional().describe("Optional webhook event ID to filter for (e.g. 'repo:refs_changed', 'pr:opened')"),
|
|
2151
|
+
statistics: z.boolean().optional().describe("If true, include invocation statistics for each webhook")
|
|
2152
|
+
},
|
|
2153
|
+
getWebhook: {
|
|
2154
|
+
projectKey: z.string().describe("The project key"),
|
|
2155
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2156
|
+
webhookId: z.string().describe("The ID of the webhook"),
|
|
2157
|
+
statistics: z.boolean().optional().describe("If true, include invocation statistics for the webhook")
|
|
2158
|
+
},
|
|
2159
|
+
createWebhook: {
|
|
2160
|
+
projectKey: z.string().describe("The project key"),
|
|
2161
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2162
|
+
name: z.string().describe("The webhook name"),
|
|
2163
|
+
url: z.string().describe("The endpoint URL the webhook will POST to"),
|
|
2164
|
+
events: z.array(z.string()).describe("List of event IDs to subscribe to (e.g. ['repo:refs_changed', 'pr:opened', 'pr:merged'])"),
|
|
2165
|
+
active: z.boolean().optional().describe("Whether the webhook is enabled. Defaults to true on the server side."),
|
|
2166
|
+
secret: z.string().optional().describe("Optional secret used to sign webhook payloads (HMAC)"),
|
|
2167
|
+
sslVerificationRequired: z.boolean().optional().describe("Whether SSL verification is required for the endpoint URL")
|
|
2168
|
+
},
|
|
2169
|
+
updateWebhook: {
|
|
2170
|
+
projectKey: z.string().describe("The project key"),
|
|
2171
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2172
|
+
webhookId: z.string().describe("The ID of the webhook to update"),
|
|
2173
|
+
name: z.string().describe("The webhook name"),
|
|
2174
|
+
url: z.string().describe("The endpoint URL the webhook will POST to"),
|
|
2175
|
+
events: z.array(z.string()).describe("List of event IDs to subscribe to. This replaces the existing event set."),
|
|
2176
|
+
active: z.boolean().optional().describe("Whether the webhook is enabled"),
|
|
2177
|
+
secret: z.string().optional().describe("Optional secret used to sign webhook payloads (HMAC)"),
|
|
2178
|
+
sslVerificationRequired: z.boolean().optional().describe("Whether SSL verification is required for the endpoint URL")
|
|
2179
|
+
},
|
|
2180
|
+
deleteWebhook: {
|
|
2181
|
+
projectKey: z.string().describe("The project key"),
|
|
2182
|
+
repositorySlug: z.string().describe("The repository slug"),
|
|
2183
|
+
webhookId: z.string().describe("The ID of the webhook to delete")
|
|
2184
|
+
}
|
|
2185
|
+
};
|
|
2186
|
+
//# sourceMappingURL=bitbucket-service.js.map
|