@atlassian-dc-mcp/bitbucket 0.1.1 → 0.1.2
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 +11 -0
- package/LICENSE +21 -0
- package/bin/run.js +2 -0
- package/package.json +7 -4
- 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 +322 -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-service.ts +180 -0
- package/src/index.ts +78 -0
- package/tsconfig.json +12 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/.env +0 -2
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RestChangeset } from '../models/RestChangeset.js';
|
|
6
|
+
import type { RestCommentJiraIssue } from '../models/RestCommentJiraIssue.js';
|
|
7
|
+
import type { RestEnhancedEntityLink } from '../models/RestEnhancedEntityLink.js';
|
|
8
|
+
import type { RestJiraIssue } from '../models/RestJiraIssue.js';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
10
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
11
|
+
import { request as __request } from '../core/request.js';
|
|
12
|
+
export class JiraIntegrationService {
|
|
13
|
+
/**
|
|
14
|
+
* Create Jira Issue
|
|
15
|
+
* Create a Jira issue and associate it with a comment on a pull request.
|
|
16
|
+
*
|
|
17
|
+
* This resource can only be used with comments on a pull request. Attempting to call this resource with a different type of comment (for example, a comment on a commit) will result in an error.
|
|
18
|
+
*
|
|
19
|
+
* The authenticated user must have <strong>REPO_READ</strong> permission for the repository containing the comment to call this resource.
|
|
20
|
+
*
|
|
21
|
+
* The JSON structure for the create issue format is specified by Jira's REST v2 API.
|
|
22
|
+
* @param commentId the comment to associate the created Jira issue to
|
|
23
|
+
* @param applicationId id of the Jira server
|
|
24
|
+
* @param requestBody A String representation of the JSON format Jira create issue request see: <a href="https://docs.atlassian.com/jira/REST/server/#api/2/issue-createIssue">Jira REST API</a>
|
|
25
|
+
* @returns RestCommentJiraIssue The created Jira issue key and the associated comment ID
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
public static createIssue(
|
|
29
|
+
commentId: string,
|
|
30
|
+
applicationId?: string,
|
|
31
|
+
requestBody?: string,
|
|
32
|
+
): CancelablePromise<RestCommentJiraIssue> {
|
|
33
|
+
return __request(OpenAPI, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
url: '/jira/latest/comments/{commentId}/issues',
|
|
36
|
+
path: {
|
|
37
|
+
'commentId': commentId,
|
|
38
|
+
},
|
|
39
|
+
query: {
|
|
40
|
+
'applicationId': applicationId,
|
|
41
|
+
},
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
44
|
+
errors: {
|
|
45
|
+
400: `The specified application link ID does not match any linked Jira instance.`,
|
|
46
|
+
401: `Authentication with the Jira instance is required.`,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get changesets for issue key
|
|
52
|
+
* Retrieve a page of changesets associated with the given issue key.
|
|
53
|
+
* @param issueKey The issue key to search by
|
|
54
|
+
* @param maxChanges The maximum number of changes to retrieve for each changeset
|
|
55
|
+
* @param start Start number for the page (inclusive). If not passed, first page is assumed.
|
|
56
|
+
* @param limit Number of items to return. If not passed, a page size of 25 is used.
|
|
57
|
+
* @returns any A page of detailed changesets
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
public static getCommitsByIssueKey(
|
|
61
|
+
issueKey: string,
|
|
62
|
+
maxChanges?: string,
|
|
63
|
+
start?: number,
|
|
64
|
+
limit?: number,
|
|
65
|
+
): CancelablePromise<{
|
|
66
|
+
isLastPage?: boolean;
|
|
67
|
+
limit?: number;
|
|
68
|
+
nextPageStart?: number;
|
|
69
|
+
size?: number;
|
|
70
|
+
start?: number;
|
|
71
|
+
values?: Array<RestChangeset>;
|
|
72
|
+
}> {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/jira/latest/issues/{issueKey}/commits',
|
|
76
|
+
path: {
|
|
77
|
+
'issueKey': issueKey,
|
|
78
|
+
},
|
|
79
|
+
query: {
|
|
80
|
+
'maxChanges': maxChanges,
|
|
81
|
+
'start': start,
|
|
82
|
+
'limit': limit,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get entity link
|
|
88
|
+
* Retrieves the enchanced primary entitylink
|
|
89
|
+
*
|
|
90
|
+
* The authenticated user must have <strong>PROJECT_READ</strong> permission for the project having the primary enhanced entitylink.
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @param projectKey The project key
|
|
94
|
+
* @returns RestEnhancedEntityLink The primary enhanced entitylink.
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
public static getEnhancedEntityLinkForProject(
|
|
98
|
+
projectKey: string,
|
|
99
|
+
): CancelablePromise<RestEnhancedEntityLink> {
|
|
100
|
+
return __request(OpenAPI, {
|
|
101
|
+
method: 'GET',
|
|
102
|
+
url: '/jira/latest/projects/{projectKey}/primary-enhanced-entitylink',
|
|
103
|
+
path: {
|
|
104
|
+
'projectKey': projectKey,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get issues for a pull request
|
|
110
|
+
* Retrieves Jira issue keys that are associated with the commits in the specified pull request. The number of commits checked for issues is limited to a default of 100.
|
|
111
|
+
* @param projectKey The project key
|
|
112
|
+
* @param pullRequestId The pull request id
|
|
113
|
+
* @param repositorySlug The repository slug
|
|
114
|
+
* @returns RestJiraIssue A list of Jira issues keys for the pull request
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
public static getIssueKeysForPullRequest(
|
|
118
|
+
projectKey: string,
|
|
119
|
+
pullRequestId: string,
|
|
120
|
+
repositorySlug: string,
|
|
121
|
+
): CancelablePromise<Array<RestJiraIssue>> {
|
|
122
|
+
return __request(OpenAPI, {
|
|
123
|
+
method: 'GET',
|
|
124
|
+
url: '/jira/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/issues',
|
|
125
|
+
path: {
|
|
126
|
+
'projectKey': projectKey,
|
|
127
|
+
'pullRequestId': pullRequestId,
|
|
128
|
+
'repositorySlug': repositorySlug,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RestMarkup } from '../models/RestMarkup.js';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
8
|
+
import { request as __request } from '../core/request.js';
|
|
9
|
+
export class MarkupService {
|
|
10
|
+
/**
|
|
11
|
+
* Preview markdown render
|
|
12
|
+
* Preview generated HTML for the given markdown content.
|
|
13
|
+
*
|
|
14
|
+
* Only authenticated users may call this resource.
|
|
15
|
+
* @param htmlEscape (Optional) true if HTML should be escaped in the input markup, false otherwise.
|
|
16
|
+
* @param urlMode (Optional) The mode to use when building URLs. One of: ABSOLUTE, RELATIVE or, CONFIGURED. By default this is RELATIVE.
|
|
17
|
+
* @param includeHeadingId (Optional) true if headers should contain an ID based on the heading content.
|
|
18
|
+
* @param hardwrap (Optional) Whether the markup implementation should convert newlines to breaks. By default this is false which reflects the standard markdown specification.
|
|
19
|
+
* @param requestBody
|
|
20
|
+
* @returns RestMarkup The rendered markdown.
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
public static preview(
|
|
24
|
+
htmlEscape?: string,
|
|
25
|
+
urlMode?: string,
|
|
26
|
+
includeHeadingId?: string,
|
|
27
|
+
hardwrap?: string,
|
|
28
|
+
requestBody?: string,
|
|
29
|
+
): CancelablePromise<RestMarkup> {
|
|
30
|
+
return __request(OpenAPI, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
url: '/api/latest/markup/preview',
|
|
33
|
+
query: {
|
|
34
|
+
'htmlEscape': htmlEscape,
|
|
35
|
+
'urlMode': urlMode,
|
|
36
|
+
'includeHeadingId': includeHeadingId,
|
|
37
|
+
'hardwrap': hardwrap,
|
|
38
|
+
},
|
|
39
|
+
body: requestBody,
|
|
40
|
+
mediaType: '*/*',
|
|
41
|
+
errors: {
|
|
42
|
+
400: `The markdown was invalid.`,
|
|
43
|
+
401: `The currently authenticated user has insufficient permissions preview rendered markdown.`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RestClusterNode } from '../models/RestClusterNode.js';
|
|
6
|
+
import type { RestDelayedSyncRepository } from '../models/RestDelayedSyncRepository.js';
|
|
7
|
+
import type { RestMirroredRepository } from '../models/RestMirroredRepository.js';
|
|
8
|
+
import type { RestMirrorRepositorySynchronizationStatus } from '../models/RestMirrorRepositorySynchronizationStatus.js';
|
|
9
|
+
import type { RestRefSyncQueue } from '../models/RestRefSyncQueue.js';
|
|
10
|
+
import type { RestRepositoryLockOwner } from '../models/RestRepositoryLockOwner.js';
|
|
11
|
+
import type { RestRollingUpgradeState } from '../models/RestRollingUpgradeState.js';
|
|
12
|
+
import type { RestSyncProgress } from '../models/RestSyncProgress.js';
|
|
13
|
+
import type { RestUpstreamServer } from '../models/RestUpstreamServer.js';
|
|
14
|
+
import type { RestUpstreamSettings } from '../models/RestUpstreamSettings.js';
|
|
15
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
16
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
17
|
+
import { request as __request } from '../core/request.js';
|
|
18
|
+
export class MirroringMirrorService {
|
|
19
|
+
/**
|
|
20
|
+
* Get farm nodes
|
|
21
|
+
* Retrieves the list of farm nodes in this cluster
|
|
22
|
+
* @returns RestClusterNode The list of farm nodes
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
public static getFarmNodes(): CancelablePromise<Array<RestClusterNode>> {
|
|
26
|
+
return __request(OpenAPI, {
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: '/mirroring/latest/farmNodes',
|
|
29
|
+
errors: {
|
|
30
|
+
404: `The upstream server could not be found`,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get delayed sync repositories
|
|
36
|
+
* Retrieves a list of repositories which have not synced on one or more mirror nodes for at least the threshold time limit after the content was changed in the corresponding upstream repositories. The threshold time limit is defined by a configuration property <code>plugin.mirroring.repository.diagnostics.sync.tolerance</code>. The detection of out of sync repositories is dependent on the timing of a scheduled job which is controlled by a configuration property <code>plugin.mirroring.synchronization.interval</code> which means in worst case it can take upto <code>plugin.mirroring.repository.diagnostics.sync.tolerance</code> + <code>plugin.mirroring.synchronization.interval</code> time to detect an out-of-sync repository.<p>Note: If <code>plugin.mirroring.repository.diagnostics.sync.enabled=false</code> is set on any of the mirror farm nodes, results will not be reported from that node.
|
|
37
|
+
* @param delayThreshold Returns only those repositories that are delayed for the given duration. The minimum allowed value is the configured value for the property <code>plugin.mirroring.synchronization.interval</code>
|
|
38
|
+
* @param limit Limit the number of delayed sync repositories returned, the maximum allowed value is 100
|
|
39
|
+
* @returns RestDelayedSyncRepository The upstream ID, project key and repository slug of the delayed sync repositories
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
public static getDelayedSyncRepositories(
|
|
43
|
+
delayThreshold?: string,
|
|
44
|
+
limit?: string,
|
|
45
|
+
): CancelablePromise<Array<RestDelayedSyncRepository>> {
|
|
46
|
+
return __request(OpenAPI, {
|
|
47
|
+
method: 'GET',
|
|
48
|
+
url: '/mirroring/latest/mirrorRepos/delayed-sync',
|
|
49
|
+
query: {
|
|
50
|
+
'delayThreshold': delayThreshold,
|
|
51
|
+
'limit': limit,
|
|
52
|
+
},
|
|
53
|
+
errors: {
|
|
54
|
+
401: `The currently authenticated user has insufficient permissions to call this resource.`,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get clone URLs
|
|
60
|
+
* Retrieves all available clone urls for the specified repository.
|
|
61
|
+
* @param externalRepositoryId the repository ID
|
|
62
|
+
* @returns RestMirroredRepository The mirrored repository's information.
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
public static getMirroredRepository(
|
|
66
|
+
externalRepositoryId: string,
|
|
67
|
+
): CancelablePromise<RestMirroredRepository> {
|
|
68
|
+
return __request(OpenAPI, {
|
|
69
|
+
method: 'GET',
|
|
70
|
+
url: '/mirroring/latest/mirrorRepos/{externalRepositoryId}',
|
|
71
|
+
path: {
|
|
72
|
+
'externalRepositoryId': externalRepositoryId,
|
|
73
|
+
},
|
|
74
|
+
errors: {
|
|
75
|
+
404: `The upstream server or the repository could not be found.`,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get synchronization progress state
|
|
81
|
+
* Retrieves synchronization progress state.If there's no progress to report, this resource will return <pre><code> {"discovering":false,"syncedRepos":0,"totalRepos":0}</code></pre> If there are repositories in the process of synchronizing, but the precise number hasn't been discovered yet, this resource will return: <pre><code> {"discovering":true,"syncedRepos":3,"totalRepos":100}</code></pre> If there is progress to report and the total number of repositories is known, this resource will return: <pre> <code> {"discovering":false,"syncedRepos":242,"totalRepos":1071}</code> </pre>
|
|
82
|
+
* @returns RestSyncProgress the synchronization progress state
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
public static getSynchronizationProgress(): CancelablePromise<RestSyncProgress> {
|
|
86
|
+
return __request(OpenAPI, {
|
|
87
|
+
method: 'GET',
|
|
88
|
+
url: '/mirroring/latest/progress',
|
|
89
|
+
errors: {
|
|
90
|
+
404: `The upstream server could not be found.`,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get the repository lock owner for the syncing process
|
|
96
|
+
* Retrieves the information about the process owning the sync lock for this repository. The process owning the lock could be running on any of the nodes in the mirror farm
|
|
97
|
+
* @param projectKey The project key
|
|
98
|
+
* @param repositorySlug The repository slug
|
|
99
|
+
* @returns RestRepositoryLockOwner The information about the repository lock owner for the syncing process, if the lock is currently being held, otherwise an empty response
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
public static getRepositoryLockOwner(
|
|
103
|
+
projectKey: string,
|
|
104
|
+
repositorySlug: string,
|
|
105
|
+
): CancelablePromise<RestRepositoryLockOwner> {
|
|
106
|
+
return __request(OpenAPI, {
|
|
107
|
+
method: 'GET',
|
|
108
|
+
url: '/mirroring/latest/supportInfo/projects/{projectKey}/repos/{repositorySlug}/repo-lock-owner',
|
|
109
|
+
path: {
|
|
110
|
+
'projectKey': projectKey,
|
|
111
|
+
'repositorySlug': repositorySlug,
|
|
112
|
+
},
|
|
113
|
+
errors: {
|
|
114
|
+
401: `When the user doesn't have ADMIN permission`,
|
|
115
|
+
404: `The specified repository does not exist`,
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Gets information about the mirrored repository
|
|
121
|
+
* Retrieves information about an external repository mirrored by the mirror server. Particularly the local ID & external ID of the repository
|
|
122
|
+
* @param projectKey The project key
|
|
123
|
+
* @param repositorySlug The repository slug
|
|
124
|
+
* @returns RestMirrorRepositorySynchronizationStatus The sync status of the repository on this node
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
public static getRepoSyncStatus1(
|
|
128
|
+
projectKey: string,
|
|
129
|
+
repositorySlug: string,
|
|
130
|
+
): CancelablePromise<RestMirrorRepositorySynchronizationStatus> {
|
|
131
|
+
return __request(OpenAPI, {
|
|
132
|
+
method: 'GET',
|
|
133
|
+
url: '/mirroring/latest/supportInfo/projects/{projectKey}/repos/{repositorySlug}/repoSyncStatus',
|
|
134
|
+
path: {
|
|
135
|
+
'projectKey': projectKey,
|
|
136
|
+
'repositorySlug': repositorySlug,
|
|
137
|
+
},
|
|
138
|
+
errors: {
|
|
139
|
+
401: `When the user doesn't have ADMIN permission`,
|
|
140
|
+
404: `The specified repository does not exist`,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get items in ref changes queue
|
|
146
|
+
* Retrieves a list of up to <code>plugin.mirroring.farm.max.ref.change.queue.dump.size</code> items currently in the ref changes queue. The ref changes queue is an internal component of every mirror farm, and is shared between all nodes. When the contents of an upstream repository changes, an item is added to this queue so that the mirror farm nodes know to synchronize. The mirror farm constantly polls and removes items from this queue for processing, so it is empty most of the time.
|
|
147
|
+
* @returns RestRefSyncQueue The contents of the ref changes queue
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
public static getRefChangesQueue(): CancelablePromise<RestRefSyncQueue> {
|
|
151
|
+
return __request(OpenAPI, {
|
|
152
|
+
method: 'GET',
|
|
153
|
+
url: '/mirroring/latest/supportInfo/refChangesQueue',
|
|
154
|
+
errors: {
|
|
155
|
+
401: `The currently authenticated user has insufficient permissions to call this resource.`,
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Get total number of items in ref changes queue
|
|
161
|
+
* Retrieves the total number of items currently in the ref changes queue
|
|
162
|
+
* @returns any The total number of items currently in the ref changes queue
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
public static getRefChangesQueueCount(): CancelablePromise<any> {
|
|
166
|
+
return __request(OpenAPI, {
|
|
167
|
+
method: 'GET',
|
|
168
|
+
url: '/mirroring/latest/supportInfo/refChangesQueue/count',
|
|
169
|
+
errors: {
|
|
170
|
+
401: `When the user doesn't have ADMIN permission`,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Get all the repository lock owners for the syncing process
|
|
176
|
+
* Retrieves the information about all the processes from the all the nodes in the mirror farm owning sync lock for any repository
|
|
177
|
+
* @returns RestRepositoryLockOwner A list of all the repository lock owners for the syncing process
|
|
178
|
+
* @throws ApiError
|
|
179
|
+
*/
|
|
180
|
+
public static getRepositoryLockOwners(): CancelablePromise<Array<RestRepositoryLockOwner>> {
|
|
181
|
+
return __request(OpenAPI, {
|
|
182
|
+
method: 'GET',
|
|
183
|
+
url: '/mirroring/latest/supportInfo/repo-lock-owners',
|
|
184
|
+
errors: {
|
|
185
|
+
401: `When the user doesn't have ADMIN permission`,
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Get sync status of repositories
|
|
191
|
+
* Retrieves a page of sync statuses of the repositories on this mirror node
|
|
192
|
+
* @param start Start number for the page (inclusive). If not passed, first page is assumed.
|
|
193
|
+
* @param limit Number of items to return. If not passed, a page size of 25 is used.
|
|
194
|
+
* @returns any The sync status of the repositories on this node
|
|
195
|
+
* @throws ApiError
|
|
196
|
+
*/
|
|
197
|
+
public static getRepoSyncStatus(
|
|
198
|
+
start?: number,
|
|
199
|
+
limit?: number,
|
|
200
|
+
): CancelablePromise<{
|
|
201
|
+
isLastPage?: boolean;
|
|
202
|
+
limit?: number;
|
|
203
|
+
nextPageStart?: number;
|
|
204
|
+
size?: number;
|
|
205
|
+
start?: number;
|
|
206
|
+
values?: Array<RestMirrorRepositorySynchronizationStatus>;
|
|
207
|
+
}> {
|
|
208
|
+
return __request(OpenAPI, {
|
|
209
|
+
method: 'GET',
|
|
210
|
+
url: '/mirroring/latest/supportInfo/repoSyncStatus',
|
|
211
|
+
query: {
|
|
212
|
+
'start': start,
|
|
213
|
+
'limit': limit,
|
|
214
|
+
},
|
|
215
|
+
errors: {
|
|
216
|
+
401: `When the user doesn't have ADMIN permission`,
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Get upstream settings
|
|
222
|
+
* Retrieves upstream settings
|
|
223
|
+
* @returns RestUpstreamSettings the mirror settings
|
|
224
|
+
* @throws ApiError
|
|
225
|
+
*/
|
|
226
|
+
public static getMirrorSettings(): CancelablePromise<RestUpstreamSettings> {
|
|
227
|
+
return __request(OpenAPI, {
|
|
228
|
+
method: 'GET',
|
|
229
|
+
url: '/mirroring/latest/syncSettings',
|
|
230
|
+
errors: {
|
|
231
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
232
|
+
404: `The upstream server could not be found.`,
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Update upstream settings
|
|
238
|
+
* Sets the settings for the specified upstream
|
|
239
|
+
* @param requestBody the mirror settings to update to
|
|
240
|
+
* @returns RestUpstreamSettings the updated mirror settings
|
|
241
|
+
* @throws ApiError
|
|
242
|
+
*/
|
|
243
|
+
public static setMirrorSettings(
|
|
244
|
+
requestBody?: RestUpstreamSettings,
|
|
245
|
+
): CancelablePromise<RestUpstreamSettings> {
|
|
246
|
+
return __request(OpenAPI, {
|
|
247
|
+
method: 'PUT',
|
|
248
|
+
url: '/mirroring/latest/syncSettings',
|
|
249
|
+
body: requestBody,
|
|
250
|
+
mediaType: 'application/json',
|
|
251
|
+
errors: {
|
|
252
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
253
|
+
404: `The upstream server could not be found.`,
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Get mirror mode
|
|
259
|
+
* Gets the current mirror mode
|
|
260
|
+
* @returns any the current mirror mode
|
|
261
|
+
* @throws ApiError
|
|
262
|
+
*/
|
|
263
|
+
public static getMirrorMode(): CancelablePromise<any> {
|
|
264
|
+
return __request(OpenAPI, {
|
|
265
|
+
method: 'GET',
|
|
266
|
+
url: '/mirroring/latest/syncSettings/mode',
|
|
267
|
+
errors: {
|
|
268
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
269
|
+
404: `The upstream server could not be found.`,
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Update mirror mode
|
|
275
|
+
* Sets the mirror mode for the specified upstream
|
|
276
|
+
* @param requestBody
|
|
277
|
+
* @returns any the mode to set
|
|
278
|
+
* @throws ApiError
|
|
279
|
+
*/
|
|
280
|
+
public static setMirrorMode(
|
|
281
|
+
requestBody?: string,
|
|
282
|
+
): CancelablePromise<any> {
|
|
283
|
+
return __request(OpenAPI, {
|
|
284
|
+
method: 'PUT',
|
|
285
|
+
url: '/mirroring/latest/syncSettings/mode',
|
|
286
|
+
body: requestBody,
|
|
287
|
+
mediaType: 'application/json',
|
|
288
|
+
errors: {
|
|
289
|
+
400: `The provided mode is invalid`,
|
|
290
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
291
|
+
},
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Get mirrored project IDs
|
|
296
|
+
* Returns the IDs of the projects that the mirror is configured to mirror
|
|
297
|
+
* @returns any the currently mirrored project IDs
|
|
298
|
+
* @throws ApiError
|
|
299
|
+
*/
|
|
300
|
+
public static getMirroredProjects(): CancelablePromise<any> {
|
|
301
|
+
return __request(OpenAPI, {
|
|
302
|
+
method: 'GET',
|
|
303
|
+
url: '/mirroring/latest/syncSettings/projects',
|
|
304
|
+
errors: {
|
|
305
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
306
|
+
404: `The upstream server could not be found.`,
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Add multiple projects to be mirrored
|
|
312
|
+
* Configures the mirror to mirror the provided projects
|
|
313
|
+
* @param requestBody
|
|
314
|
+
* @returns any the currently mirrored project IDs
|
|
315
|
+
* @throws ApiError
|
|
316
|
+
*/
|
|
317
|
+
public static startMirroringProjects(
|
|
318
|
+
requestBody?: Array<string>,
|
|
319
|
+
): CancelablePromise<any> {
|
|
320
|
+
return __request(OpenAPI, {
|
|
321
|
+
method: 'POST',
|
|
322
|
+
url: '/mirroring/latest/syncSettings/projects',
|
|
323
|
+
body: requestBody,
|
|
324
|
+
mediaType: 'application/json',
|
|
325
|
+
errors: {
|
|
326
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
327
|
+
404: `The upstream server could not be found.`,
|
|
328
|
+
},
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Stop mirroring project
|
|
333
|
+
* Configures the mirror to no longer mirror the provided project
|
|
334
|
+
* @param projectId the project ID to stop mirroring
|
|
335
|
+
* @returns void
|
|
336
|
+
* @throws ApiError
|
|
337
|
+
*/
|
|
338
|
+
public static stopMirroringProject(
|
|
339
|
+
projectId: string,
|
|
340
|
+
): CancelablePromise<void> {
|
|
341
|
+
return __request(OpenAPI, {
|
|
342
|
+
method: 'DELETE',
|
|
343
|
+
url: '/mirroring/latest/syncSettings/projects/{projectId}',
|
|
344
|
+
path: {
|
|
345
|
+
'projectId': projectId,
|
|
346
|
+
},
|
|
347
|
+
errors: {
|
|
348
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
349
|
+
404: `The upstream server could not be found.`,
|
|
350
|
+
},
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Add project to be mirrored
|
|
355
|
+
* Configures the mirror to mirror the provided project
|
|
356
|
+
* @param projectId
|
|
357
|
+
* @returns any the currently mirrored project IDs
|
|
358
|
+
* @throws ApiError
|
|
359
|
+
*/
|
|
360
|
+
public static startMirroringProject(
|
|
361
|
+
projectId: string,
|
|
362
|
+
): CancelablePromise<any> {
|
|
363
|
+
return __request(OpenAPI, {
|
|
364
|
+
method: 'POST',
|
|
365
|
+
url: '/mirroring/latest/syncSettings/projects/{projectId}',
|
|
366
|
+
path: {
|
|
367
|
+
'projectId': projectId,
|
|
368
|
+
},
|
|
369
|
+
errors: {
|
|
370
|
+
401: `When the user is not a service user for the currently registered upstream or doesn't have ADMIN permission`,
|
|
371
|
+
404: `The upstream server could not be found.`,
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Get upstream server
|
|
377
|
+
* Retrieves upstream server details.
|
|
378
|
+
* @returns RestUpstreamServer The upstream server.
|
|
379
|
+
* @throws ApiError
|
|
380
|
+
*/
|
|
381
|
+
public static getUpstreamServer(): CancelablePromise<RestUpstreamServer> {
|
|
382
|
+
return __request(OpenAPI, {
|
|
383
|
+
method: 'GET',
|
|
384
|
+
url: '/mirroring/latest/upstreamServer',
|
|
385
|
+
errors: {
|
|
386
|
+
404: `The upstream server could not be found`,
|
|
387
|
+
},
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* End ZDU upgrade on mirror farm
|
|
392
|
+
* Finalizes the ZDU upgrade on the mirror farm denying heterogeneous cluster formation
|
|
393
|
+
* @returns RestRollingUpgradeState The state of the rolling upgrade which includes the current version on all the nodes in the farm.
|
|
394
|
+
* @throws ApiError
|
|
395
|
+
*/
|
|
396
|
+
public static endRollingUpgrade(): CancelablePromise<RestRollingUpgradeState> {
|
|
397
|
+
return __request(OpenAPI, {
|
|
398
|
+
method: 'POST',
|
|
399
|
+
url: '/mirroring/latest/zdu/end',
|
|
400
|
+
errors: {
|
|
401
|
+
401: `When the user doesn't have SYS_ADMIN permission`,
|
|
402
|
+
},
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Start ZDU upgrade on mirror farm
|
|
407
|
+
* Enables upgrading of individual nodes within the cluster, allowing a heterogeneous cluster formation
|
|
408
|
+
* @returns RestRollingUpgradeState The state of the rolling upgrade which includes the minimum version of all the nodes in the farm.
|
|
409
|
+
* @throws ApiError
|
|
410
|
+
*/
|
|
411
|
+
public static startRollingUpgrade(): CancelablePromise<RestRollingUpgradeState> {
|
|
412
|
+
return __request(OpenAPI, {
|
|
413
|
+
method: 'POST',
|
|
414
|
+
url: '/mirroring/latest/zdu/start',
|
|
415
|
+
errors: {
|
|
416
|
+
401: `When the user doesn't have SYS_ADMIN permission`,
|
|
417
|
+
},
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|