@omicc/unified-sdk
v0.1.0-beta2
Published
Vendor-agnostic Contact Center SDK
Maintainers
Readme
UnifiedSDK
Vendor-agnostic Contact Center SDK for seamless integration with multiple CC platforms.
Features
- 🎯 Unified API - Single interface for multiple vendors (Webex CC, MPCC, Cisco, Genesys)
- 📦 Tree-Shakeable - Only bundle what you use
- 🔄 Runtime Switching - Switch vendors without rebuilding
- 🎨 TypeScript - Full type safety
- ⚡ Optimized - Dynamic imports and code-splitting
- 🧪 Well-Tested - Unit and property-based tests
Installation
# Auto-installs all vendor SDKs (default)
npm install @omicx/unified-sdkQuick Start
import { UnifiedSDK, VendorType } from '@omicx/unified-sdk';
const sdk = UnifiedSDK.getInstance();
await sdk.initialize({
vendor: VendorType.MPCC,
orgId: 'your-org-id',
vendorConfig: {
vendor: VendorType.MPCC,
accessToken: 'your-token',
},
});
sdk.on('CALL_CREATED', event => {
console.log('Incoming call:', event);
});
await sdk.answer({ legId: event.legId });Documentation
See docs for full documentation.
License
MIT
