VAPI types are wrong for ServerMessageEndOfCallRep...
# support
i
The TS type and what actually gets sent are different. ServerMessageEndOfCallReport.d.ts: https://github.com/VapiAI/server-sdk-typescript/blob/d6ef2f8ad892b8c1f90ae83cfa720a48cc438ccf/src/api/types/ServerMessageEndOfCallReport.ts#L7 Actual webhook includes a number of fields not mentioned here: -
transcript
-
messages
-
summary
and quite a few more. Is there a reason these are left out?
Moved to Github issue, but I had Claude write up a type delta given what we receive and what's actually in the type: https://github.com/VapiAI/server-sdk-typescript/issues/20#issuecomment-2974055159
c
Hey Ian! The server message and the end of call report extend the base server message. That's why it include the messages, call artifacts and more. You can check out the API for the base server message schema.
3 Views