BuckAMayzing
07/09/2025, 3:18 PM@vapi-ai/server-sdk/api, and now they're at @vapi-ai/server-sdk/dist/cjs/api. Neither are really standard. I shouldn't need to know your internal paths in order to determine where to import things. I'm going to go ahead and downgrade for now, but this is very busted.Kings_big💫
07/09/2025, 4:48 PMBuckAMayzing
07/09/2025, 8:06 PMCall type; you'll see what I'm talking about.Yuko
07/10/2025, 2:01 PMVapi, this is staying consisent across versions, switch to that, as /api seems to be also internalBuckAMayzing
07/10/2025, 5:38 PMYuko
07/10/2025, 5:43 PMimport { Vapi } from '@vapi-ai/server-sdk
and then
const call: Vapi.Call = {}BuckAMayzing
07/10/2025, 5:50 PMinterface CallPatches {
summary?: string;
artifact?: {
messages?: Array<{
role: "user" | "bot" | "system";
message: string;
time: number;
}>;
messagesOpenAIFormatted?: unknown[];
} & Record<string, unknown>;
}
declare module "@vapi-ai/server-sdk" {
namespace Vapi { // <---- declare the same namespace
interface Call extends CallPatches {}
interface QuestionAnswer {
question: string;
answer: string;
}
}
}Yuko
07/10/2025, 5:54 PMBuckAMayzing
07/10/2025, 5:56 PMBuckAMayzing
07/10/2025, 5:56 PMYuko
07/10/2025, 6:36 PMChiranjeet Mishra
07/11/2025, 5:59 AM