/** * HTTP client for Coordinalo REST API. * * Supports two modes: * - Public: calls to /api/servicialo/* without Authorization header * - Authenticated: calls to /api/organizations/{orgSlug}/* with Bearer token * * Implements ServicialoAdapter — the pluggable backend interface used by * all MCP tool handlers. This is the default adapter (SERVICIALO_ADAPTER=coordinalo). */ import type { ServicialoAdapter } from './adapter.js'; export interface ClientConfig { baseUrl: string; apiKey?: string; orgId?: string; } export declare class CoordinaloClient implements ServicialoAdapter { private baseUrl; private apiKey; private orgId; constructor(config: ClientConfig); /** Whether the client has credentials for authenticated operations */ get isAuthenticated(): boolean; /** Base path for all org-scoped endpoints */ private orgPath; private authHeaders; private publicHeaders; /** * Build full URL for authenticated (org-scoped) requests. * If path starts with `/api/` it's used as-is (absolute). * Otherwise it's appended to the org-scoped base path. */ private buildUrl; /** * Build full URL for public requests. * Path must be absolute (e.g., /api/v1/public/registry). */ private buildPublicUrl; readonly pub: { get: (path: string, params?: Record) => Promise; }; get(path: string, params?: Record): Promise; post(path: string, body?: unknown): Promise; put(path: string, body?: unknown): Promise; patch(path: string, body?: unknown): Promise; delete(path: string): Promise; } //# sourceMappingURL=client.d.ts.map