Skip to content

Commit

Permalink
fix: handle hidden properties in swagger generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhkagrawal committed Jul 3, 2024
1 parent ac8b619 commit 43e8b1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions vapi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Call, CreateAssistantDTO, CreateSquadDTO, OverrideAssistantDTO } from './api';
import { Call, CreateAssistantDTO, CreateSquadDTO, AssistantOverrides } from './api';
import DailyIframe, {
DailyCall,
DailyEventObjectAppMessage,
Expand Down Expand Up @@ -124,7 +124,7 @@ export default class Vapi extends VapiEventEmitter {

async start(
assistant?: CreateAssistantDTO | string,
assistantOverrides?: OverrideAssistantDTO,
assistantOverrides?: AssistantOverrides,
squad?: CreateSquadDTO | string,
): Promise<Call | null> {
if (!assistant && !squad) {
Expand Down

0 comments on commit 43e8b1e

Please sign in to comment.