UNPKG

@vapi-ai/mcp-server

Version:
537 lines 18.3 kB
import { z } from 'zod'; export declare const ModelProvider: { readonly OpenAI: "openai"; readonly Anthropic: "anthropic"; readonly GoogleAI: "google"; }; export declare const OpenAIModels: { readonly GPT4o: "gpt-4o"; readonly GPT4oMini: "gpt-4o-mini"; }; export declare const AnthropicModels: { readonly Claude3Sonnet: "claude-3-7-sonnet-20250219"; readonly Claude3Haiku: "claude-3-5-haiku-20241022"; }; export declare const GoogleModels: { readonly GeminiPro: "gemini-1.5-pro"; readonly GeminiFlash: "gemini-1.5-flash"; readonly Gemini2Flash: "gemini-2.0-flash"; readonly Gemini2Pro: "gemini-2.0-pro"; }; export type ModelProviderType = (typeof ModelProvider)[keyof typeof ModelProvider]; export type OpenAIModelType = (typeof OpenAIModels)[keyof typeof OpenAIModels]; export type AnthropicModelType = (typeof AnthropicModels)[keyof typeof AnthropicModels]; export type GoogleModelType = (typeof GoogleModels)[keyof typeof GoogleModels]; export declare const DEFAULT_LLM: { provider: "openai"; model: "gpt-4o"; }; declare const VoiceProviderSchema: z.ZodEnum<["vapi", "11labs", "azure", "cartesia", "custom-voice", "deepgram", "11labs", "hume", "lmnt", "neuphonic", "openai", "playht", "rime-ai", "smallest-ai", "tavus", "sesame"]>; export type VoiceProviderType = z.infer<typeof VoiceProviderSchema>; export declare const DEFAULT_VOICE: { provider: VoiceProviderType; voiceId: string; }; export declare const DEFAULT_TRANSCRIBER: { provider: string; model: string; }; export declare const ElevenLabsVoiceIds: { readonly Sarah: "sarah"; readonly Phillip: "phillip"; readonly Steve: "steve"; readonly Joseph: "joseph"; readonly Myra: "myra"; }; export declare const BaseResponseSchema: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; }, { id: string; createdAt: string; updatedAt: string; }>; export declare const CreateAssistantInputSchema: z.ZodObject<{ name: z.ZodString; instructions: z.ZodDefault<z.ZodOptional<z.ZodString>>; llm: z.ZodDefault<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ provider: z.ZodLiteral<"openai">; model: z.ZodEnum<["gpt-4o", "gpt-4o-mini"]>; }, "strip", z.ZodTypeAny, { provider: "openai"; model: "gpt-4o" | "gpt-4o-mini"; }, { provider: "openai"; model: "gpt-4o" | "gpt-4o-mini"; }>, z.ZodObject<{ provider: z.ZodLiteral<"anthropic">; model: z.ZodEnum<["claude-3-7-sonnet-20250219", "claude-3-5-haiku-20241022"]>; }, "strip", z.ZodTypeAny, { provider: "anthropic"; model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022"; }, { provider: "anthropic"; model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022"; }>, z.ZodObject<{ provider: z.ZodLiteral<"google">; model: z.ZodEnum<["gemini-1.5-pro", "gemini-1.5-flash", "gemini-2.0-flash", "gemini-2.0-pro"]>; }, "strip", z.ZodTypeAny, { provider: "google"; model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro"; }, { provider: "google"; model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro"; }>, z.ZodObject<{ provider: z.ZodString; model: z.ZodString; }, "strip", z.ZodTypeAny, { provider: string; model: string; }, { provider: string; model: string; }>]>, z.ZodEffects<z.ZodString, any, string>]>>; toolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; transcriber: z.ZodDefault<z.ZodObject<{ provider: z.ZodString; model: z.ZodString; }, "strip", z.ZodTypeAny, { provider: string; model: string; }, { provider: string; model: string; }>>; voice: z.ZodDefault<z.ZodObject<{ provider: z.ZodEnum<["vapi", "11labs", "azure", "cartesia", "custom-voice", "deepgram", "11labs", "hume", "lmnt", "neuphonic", "openai", "playht", "rime-ai", "smallest-ai", "tavus", "sesame"]>; voiceId: z.ZodString; model: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; }, { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; }>>; firstMessage: z.ZodDefault<z.ZodOptional<z.ZodString>>; firstMessageMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["assistant-speaks-first", "assistant-waits-for-user", "assistant-speaks-first-with-model-generated-message"]>>>; }, "strip", z.ZodTypeAny, { name: string; instructions: string; transcriber: { provider: string; model: string; }; voice: { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; }; firstMessage: string; llm?: any; toolIds?: string[] | undefined; firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined; }, { name: string; instructions?: string | undefined; llm?: string | { provider: "openai"; model: "gpt-4o" | "gpt-4o-mini"; } | { provider: "anthropic"; model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022"; } | { provider: "google"; model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro"; } | { provider: string; model: string; } | undefined; toolIds?: string[] | undefined; transcriber?: { provider: string; model: string; } | undefined; voice?: { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; } | undefined; firstMessage?: string | undefined; firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined; }>; export declare const AssistantOutputSchema: z.ZodObject<z.objectUtil.extendShape<{ id: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, { name: z.ZodString; llm: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; }, "strip", z.ZodTypeAny, { provider: string; model: string; }, { provider: string; model: string; }>; voice: z.ZodObject<{ provider: z.ZodString; voiceId: z.ZodString; model: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { provider: string; voiceId: string; model?: string | undefined; }, { provider: string; voiceId: string; model?: string | undefined; }>; transcriber: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; }, "strip", z.ZodTypeAny, { provider: string; model: string; }, { provider: string; model: string; }>; toolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }>, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; name: string; llm: { provider: string; model: string; }; transcriber: { provider: string; model: string; }; voice: { provider: string; voiceId: string; model?: string | undefined; }; toolIds?: string[] | undefined; }, { id: string; createdAt: string; updatedAt: string; name: string; llm: { provider: string; model: string; }; transcriber: { provider: string; model: string; }; voice: { provider: string; voiceId: string; model?: string | undefined; }; toolIds?: string[] | undefined; }>; export declare const GetAssistantInputSchema: z.ZodObject<{ assistantId: z.ZodString; }, "strip", z.ZodTypeAny, { assistantId: string; }, { assistantId: string; }>; export declare const UpdateAssistantInputSchema: z.ZodObject<{ assistantId: z.ZodString; name: z.ZodOptional<z.ZodString>; instructions: z.ZodOptional<z.ZodString>; llm: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ provider: z.ZodLiteral<"openai">; model: z.ZodEnum<["gpt-4o", "gpt-4o-mini"]>; }, "strip", z.ZodTypeAny, { provider: "openai"; model: "gpt-4o" | "gpt-4o-mini"; }, { provider: "openai"; model: "gpt-4o" | "gpt-4o-mini"; }>, z.ZodObject<{ provider: z.ZodLiteral<"anthropic">; model: z.ZodEnum<["claude-3-7-sonnet-20250219", "claude-3-5-haiku-20241022"]>; }, "strip", z.ZodTypeAny, { provider: "anthropic"; model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022"; }, { provider: "anthropic"; model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022"; }>, z.ZodObject<{ provider: z.ZodLiteral<"google">; model: z.ZodEnum<["gemini-1.5-pro", "gemini-1.5-flash", "gemini-2.0-flash", "gemini-2.0-pro"]>; }, "strip", z.ZodTypeAny, { provider: "google"; model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro"; }, { provider: "google"; model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro"; }>, z.ZodObject<{ provider: z.ZodString; model: z.ZodString; }, "strip", z.ZodTypeAny, { provider: string; model: string; }, { provider: string; model: string; }>]>, z.ZodEffects<z.ZodString, any, string>]>>; toolIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; transcriber: z.ZodOptional<z.ZodObject<{ provider: z.ZodString; model: z.ZodString; }, "strip", z.ZodTypeAny, { provider: string; model: string; }, { provider: string; model: string; }>>; voice: z.ZodOptional<z.ZodObject<{ provider: z.ZodEnum<["vapi", "11labs", "azure", "cartesia", "custom-voice", "deepgram", "11labs", "hume", "lmnt", "neuphonic", "openai", "playht", "rime-ai", "smallest-ai", "tavus", "sesame"]>; voiceId: z.ZodString; model: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; }, { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; }>>; firstMessage: z.ZodOptional<z.ZodString>; firstMessageMode: z.ZodOptional<z.ZodEnum<["assistant-speaks-first", "assistant-waits-for-user", "assistant-speaks-first-with-model-generated-message"]>>; }, "strip", z.ZodTypeAny, { assistantId: string; name?: string | undefined; instructions?: string | undefined; llm?: any; toolIds?: string[] | undefined; transcriber?: { provider: string; model: string; } | undefined; voice?: { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; } | undefined; firstMessage?: string | undefined; firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined; }, { assistantId: string; name?: string | undefined; instructions?: string | undefined; llm?: string | { provider: "openai"; model: "gpt-4o" | "gpt-4o-mini"; } | { provider: "anthropic"; model: "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-20241022"; } | { provider: "google"; model: "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-pro"; } | { provider: string; model: string; } | undefined; toolIds?: string[] | undefined; transcriber?: { provider: string; model: string; } | undefined; voice?: { provider: "openai" | "vapi" | "11labs" | "azure" | "cartesia" | "custom-voice" | "deepgram" | "hume" | "lmnt" | "neuphonic" | "playht" | "rime-ai" | "smallest-ai" | "tavus" | "sesame"; voiceId: string; model?: string | undefined; } | undefined; firstMessage?: string | undefined; firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user" | "assistant-speaks-first-with-model-generated-message" | undefined; }>; export declare const CallInputSchema: z.ZodObject<{ assistantId: z.ZodOptional<z.ZodString>; phoneNumberId: z.ZodOptional<z.ZodString>; customer: z.ZodOptional<z.ZodObject<{ number: z.ZodString; }, "strip", z.ZodTypeAny, { number: string; }, { number: string; }>>; scheduledAt: z.ZodOptional<z.ZodString>; assistantOverrides: z.ZodOptional<z.ZodObject<{ variableValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { variableValues?: Record<string, any> | undefined; }, { variableValues?: Record<string, any> | undefined; }>>; }, "strip", z.ZodTypeAny, { assistantId?: string | undefined; phoneNumberId?: string | undefined; customer?: { number: string; } | undefined; scheduledAt?: string | undefined; assistantOverrides?: { variableValues?: Record<string, any> | undefined; } | undefined; }, { assistantId?: string | undefined; phoneNumberId?: string | undefined; customer?: { number: string; } | undefined; scheduledAt?: string | undefined; assistantOverrides?: { variableValues?: Record<string, any> | undefined; } | undefined; }>; export declare const CallOutputSchema: z.ZodObject<z.objectUtil.extendShape<{ id: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, { status: z.ZodString; endedReason: z.ZodOptional<z.ZodString>; assistantId: z.ZodOptional<z.ZodString>; phoneNumberId: z.ZodOptional<z.ZodString>; customer: z.ZodOptional<z.ZodObject<{ number: z.ZodString; }, "strip", z.ZodTypeAny, { number: string; }, { number: string; }>>; scheduledAt: z.ZodOptional<z.ZodString>; }>, "strip", z.ZodTypeAny, { status: string; id: string; createdAt: string; updatedAt: string; assistantId?: string | undefined; phoneNumberId?: string | undefined; customer?: { number: string; } | undefined; scheduledAt?: string | undefined; endedReason?: string | undefined; }, { status: string; id: string; createdAt: string; updatedAt: string; assistantId?: string | undefined; phoneNumberId?: string | undefined; customer?: { number: string; } | undefined; scheduledAt?: string | undefined; endedReason?: string | undefined; }>; export declare const GetCallInputSchema: z.ZodObject<{ callId: z.ZodString; }, "strip", z.ZodTypeAny, { callId: string; }, { callId: string; }>; export declare const GetPhoneNumberInputSchema: z.ZodObject<{ phoneNumberId: z.ZodString; }, "strip", z.ZodTypeAny, { phoneNumberId: string; }, { phoneNumberId: string; }>; export declare const PhoneNumberOutputSchema: z.ZodObject<z.objectUtil.extendShape<{ id: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, { name: z.ZodOptional<z.ZodString>; phoneNumber: z.ZodString; status: z.ZodString; capabilities: z.ZodOptional<z.ZodObject<{ sms: z.ZodOptional<z.ZodBoolean>; voice: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { voice?: boolean | undefined; sms?: boolean | undefined; }, { voice?: boolean | undefined; sms?: boolean | undefined; }>>; }>, "strip", z.ZodTypeAny, { status: string; id: string; createdAt: string; updatedAt: string; phoneNumber: string; name?: string | undefined; capabilities?: { voice?: boolean | undefined; sms?: boolean | undefined; } | undefined; }, { status: string; id: string; createdAt: string; updatedAt: string; phoneNumber: string; name?: string | undefined; capabilities?: { voice?: boolean | undefined; sms?: boolean | undefined; } | undefined; }>; export declare const GetToolInputSchema: z.ZodObject<{ toolId: z.ZodString; }, "strip", z.ZodTypeAny, { toolId: string; }, { toolId: string; }>; export declare const ToolOutputSchema: z.ZodObject<z.objectUtil.extendShape<{ id: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, { type: z.ZodString; name: z.ZodString; description: z.ZodString; }>, "strip", z.ZodTypeAny, { type: string; id: string; createdAt: string; updatedAt: string; name: string; description: string; }, { type: string; id: string; createdAt: string; updatedAt: string; name: string; description: string; }>; export {}; //# sourceMappingURL=index.d.ts.map