Alberto
05/28/2025, 1:38 AM/**
* These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema.
* @example ["conversation-update","function-call","hang","model-output","speech-update","status-update","transfer-update","transcript","tool-calls","user-interrupted","voice-input","workflow.node.started"]
*/
clientMessages?: 'conversation-update' | 'function-call' | 'function-call-result' | 'hang' | 'language-changed' | 'metadata' | 'model-output' | 'speech-update' | 'status-update' | 'transcript' | 'tool-calls' | 'tool-calls-result' | 'tool.completed' | 'transfer-update' | 'user-interrupted' | 'voice-input' | 'workflow.node.started';
/**
* These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema.
* @example ["conversation-update","end-of-call-report","function-call","hang","speech-update","status-update","tool-calls","transfer-destination-request","user-interrupted"]
*/
serverMessages?: 'conversation-update' | 'end-of-call-report' | 'function-call' | 'hang' | 'language-changed' | 'language-change-detected' | 'model-output' | 'phone-call-control' | 'speech-update' | 'status-update' | 'transcript' | "transcript[transcriptType='final']" | 'tool-calls' | 'transfer-destination-request' | 'transfer-update' | 'user-interrupted' | 'voice-input';
You can see that the example state you can pass an array, however the type is only a OR configuration.Vapi Support Bot
05/28/2025, 1:40 AMclientMessages
and serverMessages
should accept an array of message types, not just a single value. The SDK's type should look like:
ts
clientMessages?: (
| 'conversation-update'
| 'function-call'
// ...other types
)[];
Action: Report this to the SDK maintainers or patch your local types to accept arrays as shown above.
[See Vapi docs for reference](https://docs.vapi.ai/api-reference/assistants/create?explorer=true)
Sources:
- [Vapi API Reference: Create Assistant](https://docs.vapi.ai/api-reference/assistants/create?explorer=true)
- [Vapi Changelog May 8, 2025](https://docs.vapi.ai/changelog/2025/5/8)Alberto
05/28/2025, 1:40 AMVapi Support Bot
05/28/2025, 1:42 AMserverMessages
and clientMessages
accept arrays of unique message types, as required by the Vapi API:
ts
serverMessages?: (
| 'conversation-update'
| 'end-of-call-report'
| 'function-call'
// ...other types
)[];
Patch your SDK types as above, and ensure you only pass arrays with unique values.
[See Vapi docs for reference](https://docs.vapi.ai/api-reference/assistants/create?explorer=true)
Sources:
- [Vapi API Reference: Create Assistant](https://docs.vapi.ai/api-reference/assistants/create?explorer=true)
- [Vapi Changelog May 8, 2025](https://docs.vapi.ai/changelog/2025/5/8)Vapi Support Bot
05/28/2025, 1:42 AMclientMessages
and serverMessages
are arrays of unique message types, not single values. For example:
ts
clientMessages?: (
| 'conversation-update'
| 'function-call'
// ...other types
)[];
serverMessages?: (
| 'conversation-update'
| 'end-of-call-report'
// ...other types
)[];
Patch your local SDK types or report this to the maintainers to ensure compliance with the Vapi API requirements.
[See Vapi API Reference for details](https://docs.vapi.ai/api-reference/assistants/create?explorer=true)
Sources:
- [Vapi API Reference: Create Assistant](https://docs.vapi.ai/api-reference/assistants/create?explorer=true)
- [Vapi Changelog May 8, 2025](https://docs.vapi.ai/changelog/2025/5/8)Kings Big
05/28/2025, 11:21 PMAlberto
05/29/2025, 6:22 AMAlberto
05/29/2025, 6:27 AM