UNPKG

@gohcltech/bitbucket-mcp

Version:

Bitbucket integration for Claude via Model Context Protocol

49 lines 1.97 kB
/** * @fileoverview Workspace-specific HTTP client for Bitbucket API operations. * * This module provides workspace-related functionality including: * - Listing all accessible workspaces * - Getting detailed workspace information * - Workspace discovery and inspection * */ import { BaseClient, BitbucketApiResponse } from './base-client.js'; import { Workspace } from '../types/workspace/index.js'; /** * HTTP client for Bitbucket workspace operations. * * Provides methods for workspace discovery and inspection. Workspaces are * the top-level organizational units in Bitbucket that contain repositories, * teams, and settings. */ export declare class WorkspaceClient extends BaseClient { /** * Retrieves all workspaces accessible to the authenticated user. * * @returns Promise resolving to paginated workspace list * @throws {AuthenticationError} If not authenticated * @throws {BitbucketApiError} If API request fails */ getWorkspaces(): Promise<BitbucketApiResponse<Workspace>>; /** * Retrieves all workspaces accessible to the authenticated user (all pages). * * This method automatically handles pagination to return all workspaces * across multiple pages. Use this when you need a complete list of workspaces. * * @returns Promise resolving to array of all workspaces * @throws {AuthenticationError} If not authenticated * @throws {BitbucketApiError} If API request fails */ getAllWorkspaces(): Promise<Workspace[]>; /** * Retrieves details for a specific workspace. * * @param workspaceSlug - Unique identifier for the workspace * @returns Promise resolving to workspace details * @throws {AuthenticationError} If not authenticated * @throws {BitbucketApiError} If workspace not found or request fails */ getWorkspace(workspaceSlug: string): Promise<Workspace>; } //# sourceMappingURL=workspace-client.d.ts.map