UNPKG

ai-sync

Version:

AI-native sync infrastructure SDK - Your code gains conversational intelligence

47 lines 1.67 kB
/** * SyncClient - The paradigm-shifting SDK * Makes your code conversational and intelligent * * This transforms your sophisticated backend into impossibly simple developer experience */ import { EventEmitter } from 'eventemitter3'; import type { SyncClientConfig, AIResponse, SyncConfiguration, SyncLink, ConnectionStatus, AutoConnectResult, SDKEvents } from './types.js'; /** * Main SyncClient class - Your code's new intelligence layer */ export declare class SyncClient extends EventEmitter<SDKEvents> { private config; private api; private cache; constructor(config: SyncClientConfig); /** * AI-powered sync configuration generation * The magic moment - your code understands natural language */ ai(prompt: string): Promise<AIResponse>; /** * Execute AI-generated sync configuration * The moment when configuration becomes live infrastructure */ createLink(config: SyncConfiguration): Promise<SyncLink>; /** * Auto-connect with OAuth automation * Your code connects itself to external services * Universal - works with any service your backend supports */ autoConnect(service: string): Promise<AutoConnectResult>; /** * Get connection status with paradigm messaging * Universal - works with any service */ getConnectionStatus(service: string): Promise<ConnectionStatus>; private initializeCache; private getCachedResponse; private isSimilarPrompt; private callAIAPI; private transformAPIResponse; private transformExplanation; private cacheResponse; private delay; } //# sourceMappingURL=SyncClient.d.ts.map