@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
33 lines (29 loc) • 1.14 kB
JavaScript
;
/**
* Types and interfaces for Embed events
*/
// Predefined event keys for sending data to the agent
export let EventKeys = /*#__PURE__*/function (EventKeys) {
EventKeys["USER_DATA"] = "user_data";
EventKeys["SCREEN_STATE"] = "screen_state";
EventKeys["OFFER_STATE"] = "offer_state";
EventKeys["CUSTOM_EVENT"] = "custom_event";
EventKeys["FORM_STATE"] = "form_state";
EventKeys["ANALYTICS_DATA"] = "analytics_data";
EventKeys["ACTION_STATE"] = "action_state";
EventKeys["ERROR_STATE"] = "error_state";
EventKeys["SUCCESS_STATE"] = "success_state";
EventKeys["WARNING_STATE"] = "warning_state";
EventKeys["INFO_STATE"] = "info_state";
EventKeys["DEBUG_STATE"] = "debug_state";
return EventKeys;
}({});
// Agent event keys for listening to agent state changes
export let AgentEvent = /*#__PURE__*/function (AgentEvent) {
AgentEvent["AGENT_CONNECTED"] = "agent_connected";
AgentEvent["AGENT_DISCONNECTED"] = "agent_disconnected";
AgentEvent["POPUP_MESSAGE_VISIBLE"] = "popup_message_visible";
return AgentEvent;
}({});
// Event data interfaces
//# sourceMappingURL=embed.types.js.map