ai-sync
Version:
AI-native sync infrastructure SDK - Your code gains conversational intelligence
62 lines • 2.08 kB
TypeScript
/**
* @syncapis/sdk - AI-Native Sync Infrastructure
*
* Make your code conversational. Your applications gain native sync intelligence.
*
* @example
* ```typescript
* import { SyncClient } from '@syncapis/sdk';
*
* const sync = new SyncClient({
* apiKey: 'your-api-key',
* tenantId: 'your-tenant-id'
* });
*
* // Your code understands natural language
* const config = await sync.ai("sync stripe customers to hubspot");
*
* // Your runtime gains sync capabilities
* const link = await sync.createLink(config.syncConfig);
*
* // Your infrastructure reports on itself
* link.on('sync:success', (data) => {
* console.log('Your code synced:', data.entityId);
* });
* ```
*/
export { SyncClient } from './SyncClient.js';
export type { SyncClientConfig, AIResponse, SyncConfiguration, SyncLink, SyncStatus, ConnectionStatus, AutoConnectResult, FieldMapping, SyncFilter, AIAlternative, AIRecommendations, SDKEvents } from './types.js';
import { SyncClient } from './SyncClient.js';
import type { SyncConfiguration } from './types.js';
/**
* Quick start helper - Create a sync client with minimal configuration
*/
export declare function createSyncClient(apiKey: string, tenantId?: string): SyncClient;
/**
* Common sync patterns for instant setup
* Universal architecture - supports any source/target combination
*/
export declare const SyncTemplates: {
/**
* Bidirectional sync between any two systems
*/
bidirectional: (sourceType: string, targetType: string, tenantId: string) => SyncConfiguration;
/**
* Unidirectional sync (source -> target only)
*/
unidirectional: (sourceType: string, targetType: string, tenantId: string) => SyncConfiguration;
/**
* Common patterns - backwards compatibility
*/
stripeToHubSpot: (tenantId: string) => SyncConfiguration;
billingSync: (tenantId: string) => SyncConfiguration;
};
/**
* Version information
*/
export declare const version = "1.0.0";
/**
* Default export for convenience
*/
export default SyncClient;
//# sourceMappingURL=index.d.ts.map