/** * Combined DALP platform client factory. * * Related: kit/sdk/src/client.ts, kit/sdk/src/auth.ts * * @module */ import { type DalpAuthClient } from "./auth.js"; import { DalpCookieStore } from "./cookie-store.js"; import type { DalpClient, DalpClientConfig } from "./types.js"; export interface DalpPlatformClientConfig { /** Base URL of the DALP API (e.g., `"https://dalp.example.com"`). */ url: string; /** API key used by the DAPI client and, by default, the auth client. */ apiKey?: string; /** Organization ID sent to both DAPI and auth operations when provided. */ organizationId?: string; /** Headers merged into DAPI requests. */ headers?: DalpClientConfig["headers"]; /** Headers merged into Better Auth requests. */ authHeaders?: Record; /** Better Auth session token sent as an Authorization bearer token. */ sessionToken?: string; /** Initial cookie header for Better Auth session handoff. */ cookie?: string; /** Existing cookie store to reuse across platform clients. */ cookieStore?: DalpCookieStore; /** Validate outgoing DAPI requests against the contract before sending. */ requestValidation?: boolean; /** Validate incoming DAPI responses against the contract. */ responseValidation?: boolean; /** Custom `fetch` implementation for both DAPI and Better Auth clients. */ fetch?: typeof globalThis.fetch; } export interface DalpPlatformClient { dapi: DalpClient; auth: DalpAuthClient; cookieStore: DalpCookieStore; } export declare function createDalpPlatformClient(config: DalpPlatformClientConfig): DalpPlatformClient; //# sourceMappingURL=platform.d.ts.map