@vapi-ai/mcp-server
Version:
Vapi MCP Server
1,324 lines • 46.1 kB
TypeScript
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 CreateToolInputSchema: z.ZodObject<z.objectUtil.extendShape<{
name: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
sms: z.ZodOptional<z.ZodObject<{
metadata: z.ZodObject<{
from: z.ZodString;
}, "strip", z.ZodTypeAny, {
from: string;
}, {
from: string;
}>;
}, "strip", z.ZodTypeAny, {
metadata: {
from: string;
};
}, {
metadata: {
from: string;
};
}>>;
transferCall: z.ZodOptional<z.ZodObject<{
destinations: z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"number">;
number: z.ZodString;
extension: z.ZodOptional<z.ZodString>;
callerId: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}, {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
}, {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
}>>;
function: z.ZodOptional<z.ZodObject<{
parameters: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
items: z.ZodOptional<z.ZodAny>;
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}>;
server: z.ZodObject<{
url: z.ZodString;
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
url: string;
headers?: Record<string, string> | undefined;
}, {
url: string;
headers?: Record<string, string> | undefined;
}>;
}, "strip", z.ZodTypeAny, {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
}, {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
}>>;
apiRequest: z.ZodOptional<z.ZodObject<{
url: z.ZodString;
method: z.ZodDefault<z.ZodEnum<["GET", "POST"]>>;
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
body: z.ZodOptional<z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
items: z.ZodOptional<z.ZodAny>;
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}>>;
backoffPlan: z.ZodOptional<z.ZodObject<{
type: z.ZodDefault<z.ZodEnum<["fixed", "exponential"]>>;
maxRetries: z.ZodDefault<z.ZodNumber>;
baseDelaySeconds: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "fixed" | "exponential";
maxRetries: number;
baseDelaySeconds: number;
}, {
type?: "fixed" | "exponential" | undefined;
maxRetries?: number | undefined;
baseDelaySeconds?: number | undefined;
}>>;
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
url: string;
method: "GET" | "POST";
timeoutSeconds: number;
headers?: Record<string, string> | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type: "fixed" | "exponential";
maxRetries: number;
baseDelaySeconds: number;
} | undefined;
}, {
url: string;
headers?: Record<string, string> | undefined;
method?: "GET" | "POST" | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type?: "fixed" | "exponential" | undefined;
maxRetries?: number | undefined;
baseDelaySeconds?: number | undefined;
} | undefined;
timeoutSeconds?: number | undefined;
}>>;
}, {
type: z.ZodEnum<["sms", "transferCall", "function", "apiRequest"]>;
}>, "strip", z.ZodTypeAny, {
type: "function" | "sms" | "transferCall" | "apiRequest";
function?: {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
} | undefined;
name?: string | undefined;
sms?: {
metadata: {
from: string;
};
} | undefined;
description?: string | undefined;
transferCall?: {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
} | undefined;
apiRequest?: {
url: string;
method: "GET" | "POST";
timeoutSeconds: number;
headers?: Record<string, string> | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type: "fixed" | "exponential";
maxRetries: number;
baseDelaySeconds: number;
} | undefined;
} | undefined;
}, {
type: "function" | "sms" | "transferCall" | "apiRequest";
function?: {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
} | undefined;
name?: string | undefined;
sms?: {
metadata: {
from: string;
};
} | undefined;
description?: string | undefined;
transferCall?: {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
} | undefined;
apiRequest?: {
url: string;
headers?: Record<string, string> | undefined;
method?: "GET" | "POST" | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type?: "fixed" | "exponential" | undefined;
maxRetries?: number | undefined;
baseDelaySeconds?: number | undefined;
} | undefined;
timeoutSeconds?: number | undefined;
} | undefined;
}>;
export declare const UpdateToolInputSchema: z.ZodObject<z.objectUtil.extendShape<{
name: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
sms: z.ZodOptional<z.ZodObject<{
metadata: z.ZodObject<{
from: z.ZodString;
}, "strip", z.ZodTypeAny, {
from: string;
}, {
from: string;
}>;
}, "strip", z.ZodTypeAny, {
metadata: {
from: string;
};
}, {
metadata: {
from: string;
};
}>>;
transferCall: z.ZodOptional<z.ZodObject<{
destinations: z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"number">;
number: z.ZodString;
extension: z.ZodOptional<z.ZodString>;
callerId: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}, {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
}, {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
}>>;
function: z.ZodOptional<z.ZodObject<{
parameters: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
items: z.ZodOptional<z.ZodAny>;
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}>;
server: z.ZodObject<{
url: z.ZodString;
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
url: string;
headers?: Record<string, string> | undefined;
}, {
url: string;
headers?: Record<string, string> | undefined;
}>;
}, "strip", z.ZodTypeAny, {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
}, {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
}>>;
apiRequest: z.ZodOptional<z.ZodObject<{
url: z.ZodString;
method: z.ZodDefault<z.ZodEnum<["GET", "POST"]>>;
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
body: z.ZodOptional<z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
items: z.ZodOptional<z.ZodAny>;
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}, {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
}>>;
backoffPlan: z.ZodOptional<z.ZodObject<{
type: z.ZodDefault<z.ZodEnum<["fixed", "exponential"]>>;
maxRetries: z.ZodDefault<z.ZodNumber>;
baseDelaySeconds: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "fixed" | "exponential";
maxRetries: number;
baseDelaySeconds: number;
}, {
type?: "fixed" | "exponential" | undefined;
maxRetries?: number | undefined;
baseDelaySeconds?: number | undefined;
}>>;
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
url: string;
method: "GET" | "POST";
timeoutSeconds: number;
headers?: Record<string, string> | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type: "fixed" | "exponential";
maxRetries: number;
baseDelaySeconds: number;
} | undefined;
}, {
url: string;
headers?: Record<string, string> | undefined;
method?: "GET" | "POST" | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type?: "fixed" | "exponential" | undefined;
maxRetries?: number | undefined;
baseDelaySeconds?: number | undefined;
} | undefined;
timeoutSeconds?: number | undefined;
}>>;
}, {
toolId: z.ZodString;
}>, "strip", z.ZodTypeAny, {
toolId: string;
function?: {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
} | undefined;
name?: string | undefined;
sms?: {
metadata: {
from: string;
};
} | undefined;
description?: string | undefined;
transferCall?: {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
} | undefined;
apiRequest?: {
url: string;
method: "GET" | "POST";
timeoutSeconds: number;
headers?: Record<string, string> | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type: "fixed" | "exponential";
maxRetries: number;
baseDelaySeconds: number;
} | undefined;
} | undefined;
}, {
toolId: string;
function?: {
parameters: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
};
server: {
url: string;
headers?: Record<string, string> | undefined;
};
} | undefined;
name?: string | undefined;
sms?: {
metadata: {
from: string;
};
} | undefined;
description?: string | undefined;
transferCall?: {
destinations: {
number: string;
type: "number";
extension?: string | undefined;
callerId?: string | undefined;
description?: string | undefined;
}[];
} | undefined;
apiRequest?: {
url: string;
headers?: Record<string, string> | undefined;
method?: "GET" | "POST" | undefined;
body?: {
type: "object";
properties: Record<string, {
type: string;
description?: string | undefined;
enum?: string[] | undefined;
items?: any;
properties?: Record<string, any> | undefined;
required?: string[] | undefined;
}>;
required?: string[] | undefined;
} | undefined;
backoffPlan?: {
type?: "fixed" | "exponential" | undefined;
maxRetries?: number | undefined;
baseDelaySeconds?: number | undefined;
} | undefined;
timeoutSeconds?: number | undefined;
} | undefined;
}>;
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;
parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
server: z.ZodObject<{
url: z.ZodString;
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
url: string;
headers?: Record<string, string> | undefined;
}, {
url: string;
headers?: Record<string, string> | undefined;
}>;
}>, "strip", z.ZodTypeAny, {
type: string;
id: string;
createdAt: string;
updatedAt: string;
name: string;
description: string;
parameters: Record<string, any>;
server: {
url: string;
headers?: Record<string, string> | undefined;
};
}, {
type: string;
id: string;
createdAt: string;
updatedAt: string;
name: string;
description: string;
parameters: Record<string, any>;
server: {
url: string;
headers?: Record<string, string> | undefined;
};
}>;
export {};
//# sourceMappingURL=index.d.ts.map