@voxket-ai/voxket-live
Version:
A React widget for embedding Voxket-powered audio/video/chat experiences.
43 lines (42 loc) • 1.49 kB
TypeScript
import { ThemeType } from '../styles';
import { VoxketClient } from '../core/client';
import { SessionModality } from '../types/core';
export type DisplayType = 'fullscreen' | 'widget' | 'popup';
export type PopupPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
export interface VoxketWidgetProps {
agentId: string;
participantName?: string;
baseUrl: string;
appSecret: string;
appId: string;
className?: string;
prompts?: string[];
statusMessage?: string;
welcomeTitle?: string;
welcomeSubTitle?: string;
width?: string;
height?: string;
loadingText?: string;
suportsChatInput?: boolean;
suportsVideoInput?: boolean;
suportsScreenShare?: boolean;
theme?: ThemeType;
onSessionStart?: (sessionId: string) => void;
onSessionEnd?: (metrics: any) => void;
enableSessionLogging?: boolean;
onSessionLogsUpdate?: (logs: any[]) => void;
onSessionMetricsUpdate?: (metrics: any) => void;
modalities?: SessionModality[];
displayType?: DisplayType;
popupPosition?: PopupPosition;
popupTriggerText?: string;
onPopupToggle?: (isOpen: boolean) => void;
onDisplayTypeChange?: (displayType: DisplayType) => void;
voxketClient?: VoxketClient;
}
export default function Widget(props: VoxketWidgetProps & {
prompts?: string[];
statusMessage?: string;
welcomeTitle?: string;
welcomeSubTitle?: string;
}): import("react/jsx-runtime").JSX.Element | null;