nearLucid
11/20/2024, 8:50 PMartifactPlan: {
transcriptPlan: {
enabled: true,
assistantName: agentName,
}
},
But transcriptPlan is missing from the ArtifactPlan interface and it's giving me an error. This is the interface in my api.d.ts
export interface ArtifactPlan {
/** This determines whether the video is recorded during the call. Default is false. Only relevant for `webCall` type. */
videoRecordingEnabled?: boolean;
}
What am I missing? It says in the API that transcriptPlan should be a valid parameter.Vapi
11/20/2024, 8:53 PMapi.d.ts interface file you have. The ArtifactPlan interface should indeed include the transcriptPlan if it's mentioned in the API documentation.
To resolve this issue, please ensure that you are using the latest version of the API and its type definitions. If you are using the latest version and the transcriptPlan is still missing from the ArtifactPlan interface, it could be an oversight in the type definitions.
In this case, you might want to reach out to the API support team to report this discrepancy. They can provide you with the correct type definitions or update the API documentation accordingly.
For now, you can extend the ArtifactPlan interface locally to include the transcriptPlan as a workaround:
typescript
interface ExtendedArtifactPlan extends ArtifactPlan {
transcriptPlan?: {
enabled: boolean;
assistantName: string;
};
}
Then use ExtendedArtifactPlan in your code where you need to include the transcriptPlan. However, please note that this is a temporary solution and you should seek an official update from the API provider.
If you need further assistance or have more questions, feel free to ask!Vapi
11/20/2024, 8:53 PMShubham Bajaj
11/22/2024, 8:35 AMnearLucid
11/22/2024, 8:43 AM