From 43e8b1e4830ccdfb4278e2148ccbe301e4bbd799 Mon Sep 17 00:00:00 2001 From: Kaustubh Agrawal Date: Wed, 3 Jul 2024 21:47:24 +0530 Subject: [PATCH] fix: handle hidden properties in swagger generation --- api.ts | 7 +++++++ vapi.ts | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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) {