Join Discord
Powered by
VAPI types are wrong for ServerMessageEndOfCallRep...
# support
i
ian
06/15/2025, 3:11 PM
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?
ian
06/15/2025, 3:17 PM
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
Chiranjeet Mishra
06/17/2025, 12:49 AM
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
Previous
Next