diff --git a/api.ts b/api.ts index 1de2736..d9bae1a 100644 --- a/api.ts +++ b/api.ts @@ -3398,6 +3398,13 @@ export interface Call { * @maxLength 40 */ name?: string; + + /** + * This is the URL of the call that the assistant will join. + * + * Only relevant for `webCall` type. + */ + webCallUrl?: string; } export interface PaginationMeta { diff --git a/vapi.ts b/vapi.ts index 650c20a..4004ee4 100644 --- a/vapi.ts +++ b/vapi.ts @@ -1,4 +1,4 @@ -import { Call, CreateAssistantDTO, CreateSquadDTO, OverrideAssistantDTO } from './api'; +import { Call, CreateAssistantDTO, CreateSquadDTO, AssistantOverrides } from './api'; import DailyIframe, { DailyCall, DailyEventObjectAppMessage, @@ -124,7 +124,7 @@ export default class Vapi extends VapiEventEmitter { async start( assistant?: CreateAssistantDTO | string, - assistantOverrides?: OverrideAssistantDTO, + assistantOverrides?: AssistantOverrides, squad?: CreateSquadDTO | string, ): Promise { if (!assistant && !squad) {