@revrag-ai/embed-react-native
Version:
A powerful React Native library for integrating AI-powered voice agents into mobile applications. Features real-time voice communication, intelligent speech processing, customizable UI components, and comprehensive event handling for building conversation
46 lines • 1.26 kB
TypeScript
export declare const SDK_NAME = "embed_react_native";
export declare const SDK_VERSION = "1.0.27";
export declare const SDK_PLATFORM = "react_native";
export declare const DEFAULT_EMBED_URL = "https://embed.revrag.ai";
/**
* Generate a random event ID
*/
export declare function generateEventId(): string;
export type EventContext = {
screen?: string;
flow?: string;
app_version?: string;
};
export type EventPayload = {
event_id: string;
type: string;
app_user_id: string;
session_id?: string;
timestamp: string;
event_name: string;
sdk: {
sdk_name: string;
sdk_version: string;
platform: string;
};
context?: EventContext;
data: Record<string, unknown>;
};
type BuildEventPayloadParams = {
eventKey: string;
app_user_id?: string;
appUserId?: string;
eventData?: Record<string, unknown>;
data?: Record<string, unknown>;
sessionId?: string;
session_id?: string;
context?: EventContext;
screen?: string;
flow?: string;
} & Record<string, unknown>;
/**
* Build a standardized event payload for the SDK
*/
export declare function buildEventPayload(params: BuildEventPayloadParams): EventPayload;
export {};
//# sourceMappingURL=constant.d.ts.map