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