import { z } from 'zod'; import { ServiceBubble } from '../../types/service-bubble-class.js'; import type { BubbleContext } from '../../types/bubble.js'; import { CredentialType } from '@bubblelab/shared-schemas'; export declare const ElevenLabsParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"get_signed_url">; agentId: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_signed_url"; agentId: string; credentials?: Partial> | undefined; }, { operation: "get_signed_url"; agentId: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trigger_outbound_call">; agentId: z.ZodString; toPhoneNumber: z.ZodString; phoneNumberId: z.ZodOptional; variables: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trigger_outbound_call"; agentId: string; toPhoneNumber: string; credentials?: Partial> | undefined; phoneNumberId?: string | undefined; variables?: Record | undefined; }, { operation: "trigger_outbound_call"; agentId: string; toPhoneNumber: string; credentials?: Partial> | undefined; phoneNumberId?: string | undefined; variables?: Record | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_agent">; agentId: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_agent"; agentId: string; credentials?: Partial> | undefined; }, { operation: "get_agent"; agentId: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate_webhook_signature">; signature: z.ZodString; timestamp: z.ZodString; body: z.ZodString; webhookSecret: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "validate_webhook_signature"; timestamp: string; body: string; signature: string; webhookSecret: string; credentials?: Partial> | undefined; }, { operation: "validate_webhook_signature"; timestamp: string; body: string; signature: string; webhookSecret: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation">; conversationId: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_conversation"; conversationId: string; credentials?: Partial> | undefined; }, { operation: "get_conversation"; conversationId: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversations">; agentId: z.ZodOptional; pageSize: z.ZodOptional; cursor: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_conversations"; credentials?: Partial> | undefined; cursor?: string | undefined; pageSize?: number | undefined; agentId?: string | undefined; }, { operation: "get_conversations"; credentials?: Partial> | undefined; cursor?: string | undefined; pageSize?: number | undefined; agentId?: string | undefined; }>]>; export type ElevenLabsParamsInput = z.input; export type ElevenLabsParamsParsed = z.output; export declare const ElevenLabsResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"get_signed_url">; signedUrl: z.ZodOptional; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_signed_url"; signedUrl?: string | undefined; }, { error: string; success: boolean; operation: "get_signed_url"; signedUrl?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trigger_outbound_call">; callSid: z.ZodOptional; conversationId: z.ZodOptional; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "trigger_outbound_call"; conversationId?: string | undefined; callSid?: string | undefined; }, { error: string; success: boolean; operation: "trigger_outbound_call"; conversationId?: string | undefined; callSid?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_agent">; agent: z.ZodOptional>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_agent"; agent?: Record | undefined; }, { error: string; success: boolean; operation: "get_agent"; agent?: Record | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate_webhook_signature">; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "validate_webhook_signature"; isValid: boolean; }, { error: string; success: boolean; operation: "validate_webhook_signature"; isValid: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation">; conversation: z.ZodOptional>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversation"; conversation?: Record | undefined; }, { error: string; success: boolean; operation: "get_conversation"; conversation?: Record | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversations">; conversations: z.ZodOptional, "many">>; hasMore: z.ZodOptional; nextCursor: z.ZodOptional; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversations"; conversations?: Record[] | undefined; hasMore?: boolean | undefined; nextCursor?: string | undefined; }, { error: string; success: boolean; operation: "get_conversations"; conversations?: Record[] | undefined; hasMore?: boolean | undefined; nextCursor?: string | undefined; }>]>; export type ElevenLabsResult = z.output; export declare class ElevenLabsBubble extends ServiceBubble { static readonly type: "service"; static readonly service = "eleven-labs"; static readonly authType: "apikey"; static readonly bubbleName = "eleven-labs"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"get_signed_url">; agentId: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_signed_url"; agentId: string; credentials?: Partial> | undefined; }, { operation: "get_signed_url"; agentId: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trigger_outbound_call">; agentId: z.ZodString; toPhoneNumber: z.ZodString; phoneNumberId: z.ZodOptional; variables: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "trigger_outbound_call"; agentId: string; toPhoneNumber: string; credentials?: Partial> | undefined; phoneNumberId?: string | undefined; variables?: Record | undefined; }, { operation: "trigger_outbound_call"; agentId: string; toPhoneNumber: string; credentials?: Partial> | undefined; phoneNumberId?: string | undefined; variables?: Record | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_agent">; agentId: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_agent"; agentId: string; credentials?: Partial> | undefined; }, { operation: "get_agent"; agentId: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate_webhook_signature">; signature: z.ZodString; timestamp: z.ZodString; body: z.ZodString; webhookSecret: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "validate_webhook_signature"; timestamp: string; body: string; signature: string; webhookSecret: string; credentials?: Partial> | undefined; }, { operation: "validate_webhook_signature"; timestamp: string; body: string; signature: string; webhookSecret: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation">; conversationId: z.ZodString; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_conversation"; conversationId: string; credentials?: Partial> | undefined; }, { operation: "get_conversation"; conversationId: string; credentials?: Partial> | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversations">; agentId: z.ZodOptional; pageSize: z.ZodOptional; cursor: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_conversations"; credentials?: Partial> | undefined; cursor?: string | undefined; pageSize?: number | undefined; agentId?: string | undefined; }, { operation: "get_conversations"; credentials?: Partial> | undefined; cursor?: string | undefined; pageSize?: number | undefined; agentId?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"get_signed_url">; signedUrl: z.ZodOptional; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_signed_url"; signedUrl?: string | undefined; }, { error: string; success: boolean; operation: "get_signed_url"; signedUrl?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"trigger_outbound_call">; callSid: z.ZodOptional; conversationId: z.ZodOptional; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "trigger_outbound_call"; conversationId?: string | undefined; callSid?: string | undefined; }, { error: string; success: boolean; operation: "trigger_outbound_call"; conversationId?: string | undefined; callSid?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_agent">; agent: z.ZodOptional>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_agent"; agent?: Record | undefined; }, { error: string; success: boolean; operation: "get_agent"; agent?: Record | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"validate_webhook_signature">; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "validate_webhook_signature"; isValid: boolean; }, { error: string; success: boolean; operation: "validate_webhook_signature"; isValid: boolean; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversation">; conversation: z.ZodOptional>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversation"; conversation?: Record | undefined; }, { error: string; success: boolean; operation: "get_conversation"; conversation?: Record | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_conversations">; conversations: z.ZodOptional, "many">>; hasMore: z.ZodOptional; nextCursor: z.ZodOptional; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_conversations"; conversations?: Record[] | undefined; hasMore?: boolean | undefined; nextCursor?: string | undefined; }, { error: string; success: boolean; operation: "get_conversations"; conversations?: Record[] | undefined; hasMore?: boolean | undefined; nextCursor?: string | undefined; }>]>; static readonly shortDescription = "Eleven Labs integration for Conversational AI"; static readonly longDescription = "\n Integrate with Eleven Labs Conversational AI agents.\n Use cases:\n - Generate signed URLs for secure WebSocket connections to agents\n - Trigger outbound calls\n - Get agent details\n - Validate webhook signatures\n - Get conversation history\n "; static readonly alias = "elevenlabs"; constructor(params: ElevenLabsParamsInput, context?: BubbleContext); protected chooseCredential(): string | undefined; performAction(context?: BubbleContext): Promise; testCredential(): Promise; private getSignedUrl; private triggerOutboundCall; private getAgent; private validateWebhookSignature; private getConversation; private getConversations; } //# sourceMappingURL=eleven-labs.d.ts.map