export interface VoiceSessionConfig { voiceName?: 'Puck' | 'Aoede' | 'Fenrir' | 'Kore' | 'Charon'; model?: string; systemInstruction?: string; orderId?: string; customerId?: string; resourceId?: string; apiKey?: string; } export interface ClientVoiceMessage { type: 'voice_start' | 'audio_chunk' | 'text_input' | 'interrupt' | 'ping' | 'tool_response'; payload?: { pcm16Base64?: string; text?: string; sessionConfig?: VoiceSessionConfig; callId?: string; output?: unknown; }; } export interface ServerVoiceMessage { type: 'voice_ready' | 'audio_output' | 'transcript' | 'tool_call_start' | 'tool_call_complete' | 'incident_detected' | 'hitl_gated' | 'interrupted' | 'turn_complete' | 'error' | 'pong'; payload?: { pcm24Base64?: string; role?: 'user' | 'model' | 'system'; text?: string; isFinal?: boolean; toolName?: string; callId?: string; args?: Record; result?: unknown; status?: string; message?: string; error?: string; timestamp?: number; }; } export interface GeminiSetupMessage { setup: { model: string; generationConfig?: { responseModalities?: string[]; speechConfig?: { voiceConfig?: { prebuiltVoiceConfig?: { voiceName?: string; }; }; }; }; systemInstruction?: { parts: Array<{ text: string; }>; }; tools?: Array<{ functionDeclarations: GeminiFunctionDeclaration[]; }>; }; } export interface GeminiFunctionDeclaration { name: string; description: string; parameters: { type: string; properties: Record; required?: string[]; }; } export interface GeminiRealtimeInputMessage { realtimeInput: { mediaChunks: Array<{ mimeType: string; data: string; }>; }; } export interface GeminiClientContentMessage { clientContent: { turns: Array<{ role: string; parts: Array<{ text?: string; }>; }>; turnComplete: boolean; }; } export interface GeminiToolResponseMessage { toolResponse: { functionResponses: Array<{ id: string; response: { output: unknown; }; }>; }; } export interface GeminiServerContentMessage { serverContent?: { modelTurn?: { parts?: Array<{ text?: string; inlineData?: { mimeType: string; data: string; }; }>; }; interrupted?: boolean; turnComplete?: boolean; }; toolCall?: { functionCalls?: Array<{ id: string; name: string; args: Record; }>; }; toolCallCancellation?: { ids: string[]; }; } //# sourceMappingURL=types.d.ts.map