Skip to content

Commit f5b4af8

Browse files
committed
Release 0.0.0-alpha2
1 parent 6142388 commit f5b4af8

File tree

258 files changed

+959
-3290
lines changed

Some content is hidden

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

258 files changed

+959
-3290
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",
3-
"version": "0.0.0-alpha0",
3+
"version": "0.0.0-alpha2",
44
"private": false,
55
"repository": "https://github.com/fern-demo/vapi-typescript-sdk",
66
"main": "./index.js",

reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ await client.phoneNumbers.list();
564564

565565
```typescript
566566
await client.phoneNumbers.create({
567-
provider: "vapi",
568-
sipUri: "string",
567+
provider: "byo-phone-number",
568+
credentialId: "credentialId",
569569
});
570570
```
571571

@@ -1071,7 +1071,8 @@ await client.blocks.list();
10711071

10721072
```typescript
10731073
await client.blocks.create({
1074-
type: "workflow",
1074+
type: "conversation",
1075+
instruction: "instruction",
10751076
});
10761077
```
10771078

@@ -1323,8 +1324,7 @@ await client.tools.list();
13231324

13241325
```typescript
13251326
await client.tools.create({
1326-
type: "output",
1327-
async: false,
1327+
type: "dtmf",
13281328
});
13291329
```
13301330

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class Analytics {
5858
Authorization: await this._getAuthorizationHeader(),
5959
"X-Fern-Language": "JavaScript",
6060
"X-Fern-SDK-Name": "vapi",
61-
"X-Fern-SDK-Version": "0.0.0-alpha0",
62-
"User-Agent": "vapi/0.0.0-alpha0",
61+
"X-Fern-SDK-Version": "0.0.0-alpha2",
62+
"User-Agent": "vapi/0.0.0-alpha2",
6363
"X-Fern-Runtime": core.RUNTIME.type,
6464
"X-Fern-Runtime-Version": core.RUNTIME.version,
6565
},

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export class Assistants {
9797
Authorization: await this._getAuthorizationHeader(),
9898
"X-Fern-Language": "JavaScript",
9999
"X-Fern-SDK-Name": "vapi",
100-
"X-Fern-SDK-Version": "0.0.0-alpha0",
101-
"User-Agent": "vapi/0.0.0-alpha0",
100+
"X-Fern-SDK-Version": "0.0.0-alpha2",
101+
"User-Agent": "vapi/0.0.0-alpha2",
102102
"X-Fern-Runtime": core.RUNTIME.type,
103103
"X-Fern-Runtime-Version": core.RUNTIME.version,
104104
},
@@ -156,8 +156,8 @@ export class Assistants {
156156
Authorization: await this._getAuthorizationHeader(),
157157
"X-Fern-Language": "JavaScript",
158158
"X-Fern-SDK-Name": "vapi",
159-
"X-Fern-SDK-Version": "0.0.0-alpha0",
160-
"User-Agent": "vapi/0.0.0-alpha0",
159+
"X-Fern-SDK-Version": "0.0.0-alpha2",
160+
"User-Agent": "vapi/0.0.0-alpha2",
161161
"X-Fern-Runtime": core.RUNTIME.type,
162162
"X-Fern-Runtime-Version": core.RUNTIME.version,
163163
},
@@ -212,8 +212,8 @@ export class Assistants {
212212
Authorization: await this._getAuthorizationHeader(),
213213
"X-Fern-Language": "JavaScript",
214214
"X-Fern-SDK-Name": "vapi",
215-
"X-Fern-SDK-Version": "0.0.0-alpha0",
216-
"User-Agent": "vapi/0.0.0-alpha0",
215+
"X-Fern-SDK-Version": "0.0.0-alpha2",
216+
"User-Agent": "vapi/0.0.0-alpha2",
217217
"X-Fern-Runtime": core.RUNTIME.type,
218218
"X-Fern-Runtime-Version": core.RUNTIME.version,
219219
},
@@ -267,8 +267,8 @@ export class Assistants {
267267
Authorization: await this._getAuthorizationHeader(),
268268
"X-Fern-Language": "JavaScript",
269269
"X-Fern-SDK-Name": "vapi",
270-
"X-Fern-SDK-Version": "0.0.0-alpha0",
271-
"User-Agent": "vapi/0.0.0-alpha0",
270+
"X-Fern-SDK-Version": "0.0.0-alpha2",
271+
"User-Agent": "vapi/0.0.0-alpha2",
272272
"X-Fern-Runtime": core.RUNTIME.type,
273273
"X-Fern-Runtime-Version": core.RUNTIME.version,
274274
},
@@ -327,8 +327,8 @@ export class Assistants {
327327
Authorization: await this._getAuthorizationHeader(),
328328
"X-Fern-Language": "JavaScript",
329329
"X-Fern-SDK-Name": "vapi",
330-
"X-Fern-SDK-Version": "0.0.0-alpha0",
331-
"User-Agent": "vapi/0.0.0-alpha0",
330+
"X-Fern-SDK-Version": "0.0.0-alpha2",
331+
"User-Agent": "vapi/0.0.0-alpha2",
332332
"X-Fern-Runtime": core.RUNTIME.type,
333333
"X-Fern-Runtime-Version": core.RUNTIME.version,
334334
},

src/api/resources/assistants/types/UpdateAssistantDtoModel.ts

Lines changed: 10 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -8,55 +8,13 @@ import * as Vapi from "../../../index";
88
* These are the options for the assistant's LLM.
99
*/
1010
export type UpdateAssistantDtoModel =
11-
| Vapi.UpdateAssistantDtoModel.Anyscale
12-
| Vapi.UpdateAssistantDtoModel.Anthropic
13-
| Vapi.UpdateAssistantDtoModel.CustomLlm
14-
| Vapi.UpdateAssistantDtoModel.Deepinfra
15-
| Vapi.UpdateAssistantDtoModel.Groq
16-
| Vapi.UpdateAssistantDtoModel.Openai
17-
| Vapi.UpdateAssistantDtoModel.Openrouter
18-
| Vapi.UpdateAssistantDtoModel.PerplexityAi
19-
| Vapi.UpdateAssistantDtoModel.TogetherAi
20-
| Vapi.UpdateAssistantDtoModel.Vapi;
21-
22-
export declare namespace UpdateAssistantDtoModel {
23-
interface Anyscale extends Vapi.AnyscaleModel {
24-
provider: "anyscale";
25-
}
26-
27-
interface Anthropic extends Vapi.AnthropicModel {
28-
provider: "anthropic";
29-
}
30-
31-
interface CustomLlm extends Vapi.CustomLlmModel {
32-
provider: "custom-llm";
33-
}
34-
35-
interface Deepinfra extends Vapi.DeepInfraModel {
36-
provider: "deepinfra";
37-
}
38-
39-
interface Groq extends Vapi.GroqModel {
40-
provider: "groq";
41-
}
42-
43-
interface Openai extends Vapi.OpenAiModel {
44-
provider: "openai";
45-
}
46-
47-
interface Openrouter extends Vapi.OpenRouterModel {
48-
provider: "openrouter";
49-
}
50-
51-
interface PerplexityAi extends Vapi.PerplexityAiModel {
52-
provider: "perplexity-ai";
53-
}
54-
55-
interface TogetherAi extends Vapi.TogetherAiModel {
56-
provider: "together-ai";
57-
}
58-
59-
interface Vapi extends Vapi.VapiModel {
60-
provider: "vapi";
61-
}
62-
}
11+
| Vapi.AnyscaleModel
12+
| Vapi.AnthropicModel
13+
| Vapi.CustomLlmModel
14+
| Vapi.DeepInfraModel
15+
| Vapi.GroqModel
16+
| Vapi.OpenAiModel
17+
| Vapi.OpenRouterModel
18+
| Vapi.PerplexityAiModel
19+
| Vapi.TogetherAiModel
20+
| Vapi.VapiModel;

src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@ import * as Vapi from "../../../index";
88
* These are the options for the assistant's transcriber.
99
*/
1010
export type UpdateAssistantDtoTranscriber =
11-
| Vapi.UpdateAssistantDtoTranscriber.Deepgram
12-
| Vapi.UpdateAssistantDtoTranscriber.Gladia
13-
| Vapi.UpdateAssistantDtoTranscriber.Talkscriber;
14-
15-
export declare namespace UpdateAssistantDtoTranscriber {
16-
interface Deepgram extends Vapi.DeepgramTranscriber {
17-
provider: "deepgram";
18-
}
19-
20-
interface Gladia extends Vapi.GladiaTranscriber {
21-
provider: "gladia";
22-
}
23-
24-
interface Talkscriber extends Vapi.TalkscriberTranscriber {
25-
provider: "talkscriber";
26-
}
27-
}
11+
| Vapi.DeepgramTranscriber
12+
| Vapi.GladiaTranscriber
13+
| Vapi.TalkscriberTranscriber;

src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts

Lines changed: 9 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,12 @@ import * as Vapi from "../../../index";
88
* These are the options for the assistant's voice.
99
*/
1010
export type UpdateAssistantDtoVoice =
11-
| Vapi.UpdateAssistantDtoVoice.Azure
12-
| Vapi.UpdateAssistantDtoVoice.Cartesia
13-
| Vapi.UpdateAssistantDtoVoice.Deepgram
14-
| Vapi.UpdateAssistantDtoVoice._11Labs
15-
| Vapi.UpdateAssistantDtoVoice.Lmnt
16-
| Vapi.UpdateAssistantDtoVoice.Neets
17-
| Vapi.UpdateAssistantDtoVoice.Openai
18-
| Vapi.UpdateAssistantDtoVoice.Playht
19-
| Vapi.UpdateAssistantDtoVoice.RimeAi;
20-
21-
export declare namespace UpdateAssistantDtoVoice {
22-
interface Azure extends Vapi.AzureVoice {
23-
provider: "azure";
24-
}
25-
26-
interface Cartesia extends Vapi.CartesiaVoice {
27-
provider: "cartesia";
28-
}
29-
30-
interface Deepgram extends Vapi.DeepgramVoice {
31-
provider: "deepgram";
32-
}
33-
34-
interface _11Labs extends Vapi.ElevenLabsVoice {
35-
provider: "11labs";
36-
}
37-
38-
interface Lmnt extends Vapi.LmntVoice {
39-
provider: "lmnt";
40-
}
41-
42-
interface Neets extends Vapi.NeetsVoice {
43-
provider: "neets";
44-
}
45-
46-
interface Openai extends Vapi.OpenAiVoice {
47-
provider: "openai";
48-
}
49-
50-
interface Playht extends Vapi.PlayHtVoice {
51-
provider: "playht";
52-
}
53-
54-
interface RimeAi extends Vapi.RimeAiVoice {
55-
provider: "rime-ai";
56-
}
57-
}
11+
| Vapi.AzureVoice
12+
| Vapi.CartesiaVoice
13+
| Vapi.DeepgramVoice
14+
| Vapi.ElevenLabsVoice
15+
| Vapi.LmntVoice
16+
| Vapi.NeetsVoice
17+
| Vapi.OpenAiVoice
18+
| Vapi.PlayHtVoice
19+
| Vapi.RimeAiVoice;

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export class Blocks {
9797
Authorization: await this._getAuthorizationHeader(),
9898
"X-Fern-Language": "JavaScript",
9999
"X-Fern-SDK-Name": "vapi",
100-
"X-Fern-SDK-Version": "0.0.0-alpha0",
101-
"User-Agent": "vapi/0.0.0-alpha0",
100+
"X-Fern-SDK-Version": "0.0.0-alpha2",
101+
"User-Agent": "vapi/0.0.0-alpha2",
102102
"X-Fern-Runtime": core.RUNTIME.type,
103103
"X-Fern-Runtime-Version": core.RUNTIME.version,
104104
},
@@ -141,7 +141,8 @@ export class Blocks {
141141
*
142142
* @example
143143
* await client.blocks.create({
144-
* type: "workflow"
144+
* type: "conversation",
145+
* instruction: "instruction"
145146
* })
146147
*/
147148
public async create(
@@ -158,8 +159,8 @@ export class Blocks {
158159
Authorization: await this._getAuthorizationHeader(),
159160
"X-Fern-Language": "JavaScript",
160161
"X-Fern-SDK-Name": "vapi",
161-
"X-Fern-SDK-Version": "0.0.0-alpha0",
162-
"User-Agent": "vapi/0.0.0-alpha0",
162+
"X-Fern-SDK-Version": "0.0.0-alpha2",
163+
"User-Agent": "vapi/0.0.0-alpha2",
163164
"X-Fern-Runtime": core.RUNTIME.type,
164165
"X-Fern-Runtime-Version": core.RUNTIME.version,
165166
},
@@ -214,8 +215,8 @@ export class Blocks {
214215
Authorization: await this._getAuthorizationHeader(),
215216
"X-Fern-Language": "JavaScript",
216217
"X-Fern-SDK-Name": "vapi",
217-
"X-Fern-SDK-Version": "0.0.0-alpha0",
218-
"User-Agent": "vapi/0.0.0-alpha0",
218+
"X-Fern-SDK-Version": "0.0.0-alpha2",
219+
"User-Agent": "vapi/0.0.0-alpha2",
219220
"X-Fern-Runtime": core.RUNTIME.type,
220221
"X-Fern-Runtime-Version": core.RUNTIME.version,
221222
},
@@ -269,8 +270,8 @@ export class Blocks {
269270
Authorization: await this._getAuthorizationHeader(),
270271
"X-Fern-Language": "JavaScript",
271272
"X-Fern-SDK-Name": "vapi",
272-
"X-Fern-SDK-Version": "0.0.0-alpha0",
273-
"User-Agent": "vapi/0.0.0-alpha0",
273+
"X-Fern-SDK-Version": "0.0.0-alpha2",
274+
"User-Agent": "vapi/0.0.0-alpha2",
274275
"X-Fern-Runtime": core.RUNTIME.type,
275276
"X-Fern-Runtime-Version": core.RUNTIME.version,
276277
},
@@ -329,8 +330,8 @@ export class Blocks {
329330
Authorization: await this._getAuthorizationHeader(),
330331
"X-Fern-Language": "JavaScript",
331332
"X-Fern-SDK-Name": "vapi",
332-
"X-Fern-SDK-Version": "0.0.0-alpha0",
333-
"User-Agent": "vapi/0.0.0-alpha0",
333+
"X-Fern-SDK-Version": "0.0.0-alpha2",
334+
"User-Agent": "vapi/0.0.0-alpha2",
334335
"X-Fern-Runtime": core.RUNTIME.type,
335336
"X-Fern-Runtime-Version": core.RUNTIME.version,
336337
},

src/api/resources/blocks/types/BlocksCreateRequest.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
import * as Vapi from "../../../index";
66

77
export type BlocksCreateRequest =
8-
| Vapi.BlocksCreateRequest.Conversation
9-
| Vapi.BlocksCreateRequest.ToolCall
10-
| Vapi.BlocksCreateRequest.Workflow;
11-
12-
export declare namespace BlocksCreateRequest {
13-
interface Conversation extends Vapi.CreateConversationBlockDto {
14-
type: "conversation";
15-
}
16-
17-
interface ToolCall extends Vapi.CreateToolCallBlockDto {
18-
type: "tool-call";
19-
}
20-
21-
interface Workflow extends Vapi.CreateWorkflowBlockDto {
22-
type: "workflow";
23-
}
24-
}
8+
| Vapi.CreateConversationBlockDto
9+
| Vapi.CreateToolCallBlockDto
10+
| Vapi.CreateWorkflowBlockDto;

src/api/resources/blocks/types/BlocksCreateResponse.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,4 @@
44

55
import * as Vapi from "../../../index";
66

7-
export type BlocksCreateResponse =
8-
| Vapi.BlocksCreateResponse.Conversation
9-
| Vapi.BlocksCreateResponse.ToolCall
10-
| Vapi.BlocksCreateResponse.Workflow;
11-
12-
export declare namespace BlocksCreateResponse {
13-
interface Conversation extends Vapi.ConversationBlock {
14-
type: "conversation";
15-
}
16-
17-
interface ToolCall extends Vapi.ToolCallBlock {
18-
type: "tool-call";
19-
}
20-
21-
interface Workflow extends Vapi.WorkflowBlock {
22-
type: "workflow";
23-
}
24-
}
7+
export type BlocksCreateResponse = Vapi.ConversationBlock | Vapi.ToolCallBlock | Vapi.WorkflowBlock;

src/api/resources/blocks/types/BlocksDeleteResponse.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,4 @@
44

55
import * as Vapi from "../../../index";
66

7-
export type BlocksDeleteResponse =
8-
| Vapi.BlocksDeleteResponse.Conversation
9-
| Vapi.BlocksDeleteResponse.ToolCall
10-
| Vapi.BlocksDeleteResponse.Workflow;
11-
12-
export declare namespace BlocksDeleteResponse {
13-
interface Conversation extends Vapi.ConversationBlock {
14-
type: "conversation";
15-
}
16-
17-
interface ToolCall extends Vapi.ToolCallBlock {
18-
type: "tool-call";
19-
}
20-
21-
interface Workflow extends Vapi.WorkflowBlock {
22-
type: "workflow";
23-
}
24-
}
7+
export type BlocksDeleteResponse = Vapi.ConversationBlock | Vapi.ToolCallBlock | Vapi.WorkflowBlock;

0 commit comments

Comments
 (0)