/** * @ottocode/api - Type-safe API client for ottocode server * * This package provides a fully typed API client generated from the OpenAPI spec * using @hey-api/openapi-ts with Axios client support. * * The client uses Axios for HTTP requests and provides: * - Type-safe SDK functions for all API endpoints * - Runtime schemas for validation * - SSE streaming utilities * - Error handling helpers */ export * from './generated/types.gen'; export { client } from './generated/client.gen'; export * from './generated/sdk.gen'; export * from './generated/schemas.gen'; export { buildClientEventsStreamUrl, buildProjectEventsStreamUrl, buildSessionStreamUrl, consumeSSE, createClientEventsStream, createSSEStream, isClientEvent, isServerEvent, parseClientEvent, parseServerEvent, } from './streaming'; export type { ClientEvent, ClientEventsStreamOptions, ConsumeSSEOptions, NotificationAction, NotificationEvent, NotificationLevel, SSEEvent, SSERequestMethod, SSEStreamOptions, SSETransportMode, ServerEvent, SessionStatusEvent, } from './streaming'; export { connectDictationSession, DICTATION_AUDIO_FORMAT, parseDictationServerEvent, resolveDictationWebSocketUrl, streamDictationModelInstall, } from './dictation'; export type { ConnectDictationSessionOptions, DictationConnection, DictationFinalEvent, DictationModelInstallResponse, DictationModelState, DictationServerEvent, DictationSession, DictationStatus, DictationWebSocketFactory, DictationWebSocketLike, StreamDictationModelInstallOptions, } from './dictation'; export { isApiError, handleApiError } from './utils'; export type { ApiError } from './utils'; export { clientIdentityHeaders, evaluateCompatibility, OTTO_CLIENT_CAPABILITIES, OTTO_PROTOCOL_MAX_VERSION, OTTO_PROTOCOL_MIN_VERSION, OTTO_PROTOCOL_VERSION, } from './compatibility'; export type { ClientIdentity, CompatibilityResult, CompatibilityStatus, ProtocolDescriptor, } from './compatibility'; /** * Quick Start Example: * * ```typescript * import { client, getSessions } from '@ottocode/api'; * * // Configure the client * client.setConfig({ * baseURL: 'http://localhost:3000', * // Optional: add interceptors, auth, etc. * }); * * // Make API calls * const { data, error } = await getSessions(); * if (error) { * console.error('Failed to fetch sessions:', error); * } else { * console.log('Sessions:', data); * } * ``` */ //# sourceMappingURL=index.d.ts.map