/** * Generic paginated response wrapper for Bitbucket Server API responses. * Most list endpoints in Bitbucket Server return this structure. */ export interface PaginatedResponse { /** Whether this is the last page of results */ isLastPage: boolean; /** Maximum number of items per page */ limit: number; /** Starting index for the next page (only present if not last page) */ nextPageStart?: number; /** Number of items in this page */ size: number; /** Starting index of this page */ start: number; /** Array of items in this page */ values: T[]; } /** * Configuration for BitbucketClient */ export interface BitbucketClientConfig { /** Bitbucket Personal Access Token. */ token?: string; /** Base URL for Bitbucket Server (e.g., 'https://bitbucket.example.com') */ baseUrl: string; /** Optional axios configuration (timeout, headers, etc.) */ axiosConfig?: { /** Any other axios configuration options */ [key: string]: unknown; /** Request timeout in milliseconds */ timeout?: number; /** Custom headers to merge with default headers */ headers?: Record; }; } /** * Link object from Bitbucket Server API. */ export interface RestLink { /** Link URL */ href: string; /** Link name (optional) */ name?: string; } /** * Links object from Bitbucket Server API responses. */ export interface RestLinks { /** Alternative links */ [key: string]: RestLink[] | undefined; /** Self links */ self?: RestLink[]; /** Clone links */ clone?: RestLink[]; } /** * File path object (RestPath schema from Swagger). */ export interface RestPath { /** Path components */ components?: string[]; /** File extension */ extension?: string; /** File name */ name?: string; /** Parent path */ parent?: string; /** Full path string */ toString?: string; } //# sourceMappingURL=common.d.ts.map