/** * HttpAdapter — generic adapter for any Servicialo-compatible implementation * that exposes the canonical HTTP_PROFILE.md REST endpoints. * * Path translation: * Coordinalo internal paths (used by tool handlers) are translated to * canonical /v1/* paths defined in HTTP_PROFILE.md. * * Public endpoints: * /api/servicialo/registry → /v1/registry * /api/servicialo/{slug}/services → /v1/organizations/{slug}/services * /api/servicialo/{slug}/availability → /v1/organizations/{slug}/availability * * Authenticated endpoints: * /coordinalo/* → /v1/* * /relacionalo/clients/upsert → /v1/clients * /planificalo/* → /v1/* * * Unlike CoordinaloClient, this adapter does NOT prefix paths with * /api/organizations/{orgId}. The org context is communicated via * the X-Servicialo-Org header (or the implementation's own mechanism). */ import type { ServicialoAdapter } from './adapter.js'; export interface HttpAdapterConfig { baseUrl: string; apiKey?: string; orgId?: string; } export declare class HttpAdapter implements ServicialoAdapter { private baseUrl; private apiKey; private orgId; constructor(config: HttpAdapterConfig); get isAuthenticated(): boolean; /** * Translate a Coordinalo-internal path to a canonical HTTP_PROFILE.md path. */ private translatePath; private authHeaders; private publicHeaders; private buildUrl; 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=adapter-http.d.ts.map