Skip to content

Commit b9d657b

Browse files
SDK regeneration
1 parent 620b317 commit b9d657b

File tree

1,013 files changed

+22520
-19918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,013 files changed

+22520
-19918
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vapi-ai/server-sdk",
3-
"version": "0.10.3",
3+
"version": "0.10.4",
44
"private": false,
55
"repository": "github:VapiAI/server-sdk-typescript",
66
"type": "commonjs",

src/Client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export declare namespace VapiClient {
2626
baseUrl?: core.Supplier<string>;
2727
token: core.Supplier<core.BearerToken>;
2828
/** Additional headers to include in requests. */
29-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
3030
fetcher?: core.FetchFunction;
3131
}
3232

@@ -40,7 +40,7 @@ export declare namespace VapiClient {
4040
/** Additional query string parameters to include in the request. */
4141
queryParams?: Record<string, unknown>;
4242
/** Additional headers to include in the request. */
43-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
43+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
4444
}
4545
}
4646

@@ -67,8 +67,8 @@ export class VapiClient {
6767
{
6868
"X-Fern-Language": "JavaScript",
6969
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
70-
"X-Fern-SDK-Version": "0.10.3",
71-
"User-Agent": "@vapi-ai/server-sdk/0.10.3",
70+
"X-Fern-SDK-Version": "0.10.4",
71+
"User-Agent": "@vapi-ai/server-sdk/0.10.4",
7272
"X-Fern-Runtime": core.RUNTIME.type,
7373
"X-Fern-Runtime-Version": core.RUNTIME.version,
7474
},

src/api/resources/analytics/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export declare namespace Analytics {
1515
baseUrl?: core.Supplier<string>;
1616
token: core.Supplier<core.BearerToken>;
1717
/** Additional headers to include in requests. */
18-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
18+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
1919
fetcher?: core.FetchFunction;
2020
}
2121

@@ -29,7 +29,7 @@ export declare namespace Analytics {
2929
/** Additional query string parameters to include in the request. */
3030
queryParams?: Record<string, unknown>;
3131
/** Additional headers to include in the request. */
32-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
32+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
3333
}
3434
}
3535

src/api/resources/assistants/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export declare namespace Assistants {
1515
baseUrl?: core.Supplier<string>;
1616
token: core.Supplier<core.BearerToken>;
1717
/** Additional headers to include in requests. */
18-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
18+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
1919
fetcher?: core.FetchFunction;
2020
}
2121

@@ -29,7 +29,7 @@ export declare namespace Assistants {
2929
/** Additional query string parameters to include in the request. */
3030
queryParams?: Record<string, unknown>;
3131
/** Additional headers to include in the request. */
32-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
32+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
3333
}
3434
}
3535

src/api/resources/assistants/client/requests/UpdateAssistantDto.ts

Lines changed: 10 additions & 267 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import * as Vapi from "../../../../index.js";
1010
*/
1111
export interface UpdateAssistantDto {
1212
/** These are the options for the assistant's transcriber. */
13-
transcriber?: UpdateAssistantDto.Transcriber;
13+
transcriber?: Vapi.UpdateAssistantDtoTranscriber;
1414
/** These are the options for the assistant's LLM. */
15-
model?: UpdateAssistantDto.Model;
15+
model?: Vapi.UpdateAssistantDtoModel;
1616
/** These are the options for the assistant's voice. */
17-
voice?: UpdateAssistantDto.Voice;
17+
voice?: Vapi.UpdateAssistantDtoVoice;
1818
/**
1919
* This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
2020
*
@@ -32,17 +32,17 @@ export interface UpdateAssistantDto {
3232
*
3333
* @default 'assistant-speaks-first'
3434
*/
35-
firstMessageMode?: UpdateAssistantDto.FirstMessageMode;
35+
firstMessageMode?: Vapi.UpdateAssistantDtoFirstMessageMode;
3636
/**
3737
* These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].
3838
* This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.
3939
* You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.
4040
*/
41-
voicemailDetection?: UpdateAssistantDto.VoicemailDetection;
41+
voicemailDetection?: Vapi.UpdateAssistantDtoVoicemailDetection;
4242
/** 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. */
43-
clientMessages?: UpdateAssistantDto.ClientMessages.Item[];
43+
clientMessages?: Vapi.UpdateAssistantDtoClientMessagesItem[];
4444
/** 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,handoff-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema. */
45-
serverMessages?: UpdateAssistantDto.ServerMessages.Item[];
45+
serverMessages?: Vapi.UpdateAssistantDtoServerMessagesItem[];
4646
/**
4747
* This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.
4848
*
@@ -53,7 +53,7 @@ export interface UpdateAssistantDto {
5353
* This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.
5454
* You can also provide a custom sound by providing a URL to an audio file.
5555
*/
56-
backgroundSound?: UpdateAssistantDto.BackgroundSound;
56+
backgroundSound?: Vapi.UpdateAssistantDtoBackgroundSound;
5757
/**
5858
* This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.
5959
*
@@ -71,9 +71,9 @@ export interface UpdateAssistantDto {
7171
*/
7272
observabilityPlan?: Vapi.LangfuseObservabilityPlan;
7373
/** These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. */
74-
credentials?: UpdateAssistantDto.Credentials.Item[];
74+
credentials?: Vapi.UpdateAssistantDtoCredentialsItem[];
7575
/** This is a set of actions that will be performed on certain events. */
76-
hooks?: UpdateAssistantDto.Hooks.Item[];
76+
hooks?: Vapi.UpdateAssistantDtoHooksItem[];
7777
/**
7878
* This is the name of the assistant.
7979
*
@@ -157,260 +157,3 @@ export interface UpdateAssistantDto {
157157
server?: Vapi.Server;
158158
keypadInputPlan?: Vapi.KeypadInputPlan;
159159
}
160-
161-
export namespace UpdateAssistantDto {
162-
/**
163-
* These are the options for the assistant's transcriber.
164-
*/
165-
export type Transcriber =
166-
| Vapi.AssemblyAiTranscriber
167-
| Vapi.AzureSpeechTranscriber
168-
| Vapi.CustomTranscriber
169-
| Vapi.DeepgramTranscriber
170-
| Vapi.ElevenLabsTranscriber
171-
| Vapi.GladiaTranscriber
172-
| Vapi.GoogleTranscriber
173-
| Vapi.SpeechmaticsTranscriber
174-
| Vapi.TalkscriberTranscriber
175-
| Vapi.OpenAiTranscriber
176-
| Vapi.CartesiaTranscriber;
177-
/**
178-
* These are the options for the assistant's LLM.
179-
*/
180-
export type Model =
181-
| Vapi.AnthropicModel
182-
| Vapi.AnyscaleModel
183-
| Vapi.CerebrasModel
184-
| Vapi.CustomLlmModel
185-
| Vapi.DeepInfraModel
186-
| Vapi.DeepSeekModel
187-
| Vapi.GoogleModel
188-
| Vapi.GroqModel
189-
| Vapi.InflectionAiModel
190-
| Vapi.OpenAiModel
191-
| Vapi.OpenRouterModel
192-
| Vapi.PerplexityAiModel
193-
| Vapi.TogetherAiModel
194-
| Vapi.XaiModel;
195-
/**
196-
* These are the options for the assistant's voice.
197-
*/
198-
export type Voice =
199-
| Vapi.AzureVoice
200-
| Vapi.CartesiaVoice
201-
| Vapi.CustomVoice
202-
| Vapi.DeepgramVoice
203-
| Vapi.ElevenLabsVoice
204-
| Vapi.HumeVoice
205-
| Vapi.LmntVoice
206-
| Vapi.NeuphonicVoice
207-
| Vapi.OpenAiVoice
208-
| Vapi.PlayHtVoice
209-
| Vapi.RimeAiVoice
210-
| Vapi.SmallestAiVoice
211-
| Vapi.TavusVoice
212-
| Vapi.VapiVoice
213-
| Vapi.SesameVoice
214-
| Vapi.InworldVoice
215-
| Vapi.MinimaxVoice;
216-
/**
217-
* This is the mode for the first message. Default is 'assistant-speaks-first'.
218-
*
219-
* Use:
220-
* - 'assistant-speaks-first' to have the assistant speak first.
221-
* - 'assistant-waits-for-user' to have the assistant wait for the user to speak first.
222-
* - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).
223-
*
224-
* @default 'assistant-speaks-first'
225-
*/
226-
export type FirstMessageMode =
227-
| "assistant-speaks-first"
228-
| "assistant-speaks-first-with-model-generated-message"
229-
| "assistant-waits-for-user";
230-
export const FirstMessageMode = {
231-
AssistantSpeaksFirst: "assistant-speaks-first",
232-
AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message",
233-
AssistantWaitsForUser: "assistant-waits-for-user",
234-
} as const;
235-
/**
236-
* These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].
237-
* This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached.
238-
* You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not.
239-
*/
240-
export type VoicemailDetection =
241-
| Vapi.GoogleVoicemailDetectionPlan
242-
| Vapi.OpenAiVoicemailDetectionPlan
243-
| Vapi.TwilioVoicemailDetectionPlan
244-
| Vapi.VapiVoicemailDetectionPlan;
245-
export type ClientMessages = ClientMessages.Item[];
246-
247-
export namespace ClientMessages {
248-
export type Item =
249-
| "conversation-update"
250-
| "function-call"
251-
| "function-call-result"
252-
| "hang"
253-
| "language-changed"
254-
| "metadata"
255-
| "model-output"
256-
| "speech-update"
257-
| "status-update"
258-
| "transcript"
259-
| "tool-calls"
260-
| "tool-calls-result"
261-
| "tool.completed"
262-
| "transfer-update"
263-
| "user-interrupted"
264-
| "voice-input"
265-
| "workflow.node.started";
266-
export const Item = {
267-
ConversationUpdate: "conversation-update",
268-
FunctionCall: "function-call",
269-
FunctionCallResult: "function-call-result",
270-
Hang: "hang",
271-
LanguageChanged: "language-changed",
272-
Metadata: "metadata",
273-
ModelOutput: "model-output",
274-
SpeechUpdate: "speech-update",
275-
StatusUpdate: "status-update",
276-
Transcript: "transcript",
277-
ToolCalls: "tool-calls",
278-
ToolCallsResult: "tool-calls-result",
279-
ToolCompleted: "tool.completed",
280-
TransferUpdate: "transfer-update",
281-
UserInterrupted: "user-interrupted",
282-
VoiceInput: "voice-input",
283-
WorkflowNodeStarted: "workflow.node.started",
284-
} as const;
285-
}
286-
287-
export type ServerMessages = ServerMessages.Item[];
288-
289-
export namespace ServerMessages {
290-
export type Item =
291-
| "conversation-update"
292-
| "end-of-call-report"
293-
| "function-call"
294-
| "hang"
295-
| "language-changed"
296-
| "language-change-detected"
297-
| "model-output"
298-
| "phone-call-control"
299-
| "speech-update"
300-
| "status-update"
301-
| "transcript"
302-
| 'transcript[transcriptType="final"]'
303-
| "tool-calls"
304-
| "transfer-destination-request"
305-
| "handoff-destination-request"
306-
| "transfer-update"
307-
| "user-interrupted"
308-
| "voice-input"
309-
| "chat.created"
310-
| "chat.deleted"
311-
| "session.created"
312-
| "session.updated"
313-
| "session.deleted"
314-
| "call.deleted"
315-
| "call.delete.failed";
316-
export const Item = {
317-
ConversationUpdate: "conversation-update",
318-
EndOfCallReport: "end-of-call-report",
319-
FunctionCall: "function-call",
320-
Hang: "hang",
321-
LanguageChanged: "language-changed",
322-
LanguageChangeDetected: "language-change-detected",
323-
ModelOutput: "model-output",
324-
PhoneCallControl: "phone-call-control",
325-
SpeechUpdate: "speech-update",
326-
StatusUpdate: "status-update",
327-
Transcript: "transcript",
328-
TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]',
329-
ToolCalls: "tool-calls",
330-
TransferDestinationRequest: "transfer-destination-request",
331-
HandoffDestinationRequest: "handoff-destination-request",
332-
TransferUpdate: "transfer-update",
333-
UserInterrupted: "user-interrupted",
334-
VoiceInput: "voice-input",
335-
ChatCreated: "chat.created",
336-
ChatDeleted: "chat.deleted",
337-
SessionCreated: "session.created",
338-
SessionUpdated: "session.updated",
339-
SessionDeleted: "session.deleted",
340-
CallDeleted: "call.deleted",
341-
CallDeleteFailed: "call.delete.failed",
342-
} as const;
343-
}
344-
345-
/**
346-
* This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.
347-
* You can also provide a custom sound by providing a URL to an audio file.
348-
*/
349-
export type BackgroundSound = ("off" | "office") | string;
350-
export type Credentials = Credentials.Item[];
351-
352-
export namespace Credentials {
353-
export type Item =
354-
| Vapi.CreateElevenLabsCredentialDto
355-
| Vapi.CreateAnthropicCredentialDto
356-
| Vapi.CreateAnyscaleCredentialDto
357-
| Vapi.CreateAssemblyAiCredentialDto
358-
| Vapi.CreateAzureOpenAiCredentialDto
359-
| Vapi.CreateAzureCredentialDto
360-
| Vapi.CreateByoSipTrunkCredentialDto
361-
| Vapi.CreateCartesiaCredentialDto
362-
| Vapi.CreateCerebrasCredentialDto
363-
| Vapi.CreateCloudflareCredentialDto
364-
| Vapi.CreateCustomLlmCredentialDto
365-
| Vapi.CreateDeepgramCredentialDto
366-
| Vapi.CreateDeepInfraCredentialDto
367-
| Vapi.CreateDeepSeekCredentialDto
368-
| Vapi.CreateGcpCredentialDto
369-
| Vapi.CreateGladiaCredentialDto
370-
| Vapi.CreateGoHighLevelCredentialDto
371-
| Vapi.CreateGoogleCredentialDto
372-
| Vapi.CreateGroqCredentialDto
373-
| Vapi.CreateInflectionAiCredentialDto
374-
| Vapi.CreateLangfuseCredentialDto
375-
| Vapi.CreateLmntCredentialDto
376-
| Vapi.CreateMakeCredentialDto
377-
| Vapi.CreateOpenAiCredentialDto
378-
| Vapi.CreateOpenRouterCredentialDto
379-
| Vapi.CreatePerplexityAiCredentialDto
380-
| Vapi.CreatePlayHtCredentialDto
381-
| Vapi.CreateRimeAiCredentialDto
382-
| Vapi.CreateRunpodCredentialDto
383-
| Vapi.CreateS3CredentialDto
384-
| Vapi.CreateSupabaseCredentialDto
385-
| Vapi.CreateSmallestAiCredentialDto
386-
| Vapi.CreateTavusCredentialDto
387-
| Vapi.CreateTogetherAiCredentialDto
388-
| Vapi.CreateTwilioCredentialDto
389-
| Vapi.CreateVonageCredentialDto
390-
| Vapi.CreateWebhookCredentialDto
391-
| Vapi.CreateCustomCredentialDto
392-
| Vapi.CreateXAiCredentialDto
393-
| Vapi.CreateNeuphonicCredentialDto
394-
| Vapi.CreateHumeCredentialDto
395-
| Vapi.CreateMistralCredentialDto
396-
| Vapi.CreateSpeechmaticsCredentialDto
397-
| Vapi.CreateTrieveCredentialDto
398-
| Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto
399-
| Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto
400-
| Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto
401-
| Vapi.CreateSlackOAuth2AuthorizationCredentialDto
402-
| Vapi.CreateGoHighLevelMcpCredentialDto
403-
| Vapi.CreateInworldCredentialDto
404-
| Vapi.CreateMinimaxCredentialDto;
405-
}
406-
407-
export type Hooks = Hooks.Item[];
408-
409-
export namespace Hooks {
410-
export type Item =
411-
| Vapi.CallHookCallEnding
412-
| Vapi.CallHookAssistantSpeechInterrupted
413-
| Vapi.CallHookCustomerSpeechInterrupted
414-
| Vapi.CallHookCustomerSpeechTimeout;
415-
}
416-
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export * from "./types/index.js";
12
export * from "./client/index.js";

0 commit comments

Comments
 (0)