@vapi-ai/web 1.0.229 → 1.0.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +26 -5
- package/dist/api.d.ts +25 -4
- package/dist/api.js +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -155,6 +155,13 @@ export interface CreateAssistantDTO {
|
|
|
155
155
|
* @maxLength 400
|
|
156
156
|
*/
|
|
157
157
|
voicemailMessage?: string;
|
|
158
|
+
/**
|
|
159
|
+
* This is the message that the assistant will say if it ends the call.
|
|
160
|
+
*
|
|
161
|
+
* If unspecified, it will hang up without saying anything.
|
|
162
|
+
* @maxLength 400
|
|
163
|
+
*/
|
|
164
|
+
endCallMessage?: string;
|
|
158
165
|
/** This sets whether the user can interrupt the assistant while it's speaking. Defaults to true. */
|
|
159
166
|
interruptionsEnabled?: boolean;
|
|
160
167
|
/** This sets whether the assistant's calls are recorded. Defaults to true. */
|
|
@@ -163,7 +170,7 @@ export interface CreateAssistantDTO {
|
|
|
163
170
|
endCallFunctionEnabled?: boolean;
|
|
164
171
|
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. Else, defaults to false. */
|
|
165
172
|
fillersEnabled?: boolean;
|
|
166
|
-
/** These keywords are passed to the transcription model to help it pick up use-case specific words. */
|
|
173
|
+
/** These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here. */
|
|
167
174
|
keywords?: string[];
|
|
168
175
|
}
|
|
169
176
|
|
|
@@ -436,6 +443,13 @@ export interface Assistant {
|
|
|
436
443
|
* @maxLength 400
|
|
437
444
|
*/
|
|
438
445
|
voicemailMessage?: string;
|
|
446
|
+
/**
|
|
447
|
+
* This is the message that the assistant will say if it ends the call.
|
|
448
|
+
*
|
|
449
|
+
* If unspecified, it will hang up without saying anything.
|
|
450
|
+
* @maxLength 400
|
|
451
|
+
*/
|
|
452
|
+
endCallMessage?: string;
|
|
439
453
|
/** This sets whether the user can interrupt the assistant while it's speaking. Defaults to true. */
|
|
440
454
|
interruptionsEnabled?: boolean;
|
|
441
455
|
/** This sets whether the assistant's calls are recorded. Defaults to true. */
|
|
@@ -444,7 +458,7 @@ export interface Assistant {
|
|
|
444
458
|
endCallFunctionEnabled?: boolean;
|
|
445
459
|
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. Else, defaults to false. */
|
|
446
460
|
fillersEnabled?: boolean;
|
|
447
|
-
/** These keywords are passed to the transcription model to help it pick up use-case specific words. */
|
|
461
|
+
/** These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here. */
|
|
448
462
|
keywords?: string[];
|
|
449
463
|
/** This is the unique identifier for the assistant. */
|
|
450
464
|
id: string;
|
|
@@ -574,6 +588,13 @@ export interface UpdateAssistantDTO {
|
|
|
574
588
|
* @maxLength 400
|
|
575
589
|
*/
|
|
576
590
|
voicemailMessage?: string;
|
|
591
|
+
/**
|
|
592
|
+
* This is the message that the assistant will say if it ends the call.
|
|
593
|
+
*
|
|
594
|
+
* If unspecified, it will hang up without saying anything.
|
|
595
|
+
* @maxLength 400
|
|
596
|
+
*/
|
|
597
|
+
endCallMessage?: string;
|
|
577
598
|
/** This sets whether the user can interrupt the assistant while it's speaking. Defaults to true. */
|
|
578
599
|
interruptionsEnabled?: boolean;
|
|
579
600
|
/** This sets whether the assistant's calls are recorded. Defaults to true. */
|
|
@@ -582,7 +603,7 @@ export interface UpdateAssistantDTO {
|
|
|
582
603
|
endCallFunctionEnabled?: boolean;
|
|
583
604
|
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. Else, defaults to false. */
|
|
584
605
|
fillersEnabled?: boolean;
|
|
585
|
-
/** These keywords are passed to the transcription model to help it pick up use-case specific words. */
|
|
606
|
+
/** These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here. */
|
|
586
607
|
keywords?: string[];
|
|
587
608
|
}
|
|
588
609
|
|
|
@@ -717,7 +738,7 @@ export enum ContentType {
|
|
|
717
738
|
}
|
|
718
739
|
|
|
719
740
|
export class HttpClient<SecurityDataType = unknown> {
|
|
720
|
-
public baseUrl: string = "https://
|
|
741
|
+
public baseUrl: string = "https://api.vapi.ai";
|
|
721
742
|
private securityData: SecurityDataType | null = null;
|
|
722
743
|
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
723
744
|
private abortControllers = new Map<CancelToken, AbortController>();
|
|
@@ -884,7 +905,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
884
905
|
/**
|
|
885
906
|
* @title Vapi API
|
|
886
907
|
* @version 1.0
|
|
887
|
-
* @baseUrl https://
|
|
908
|
+
* @baseUrl https://api.vapi.ai
|
|
888
909
|
* @contact
|
|
889
910
|
*
|
|
890
911
|
* API for building voice assistants
|
package/dist/api.d.ts
CHANGED
|
@@ -86,6 +86,13 @@ export interface CreateAssistantDTO {
|
|
|
86
86
|
* @maxLength 400
|
|
87
87
|
*/
|
|
88
88
|
voicemailMessage?: string;
|
|
89
|
+
/**
|
|
90
|
+
* This is the message that the assistant will say if it ends the call.
|
|
91
|
+
*
|
|
92
|
+
* If unspecified, it will hang up without saying anything.
|
|
93
|
+
* @maxLength 400
|
|
94
|
+
*/
|
|
95
|
+
endCallMessage?: string;
|
|
89
96
|
/** This sets whether the user can interrupt the assistant while it's speaking. Defaults to true. */
|
|
90
97
|
interruptionsEnabled?: boolean;
|
|
91
98
|
/** This sets whether the assistant's calls are recorded. Defaults to true. */
|
|
@@ -94,7 +101,7 @@ export interface CreateAssistantDTO {
|
|
|
94
101
|
endCallFunctionEnabled?: boolean;
|
|
95
102
|
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. Else, defaults to false. */
|
|
96
103
|
fillersEnabled?: boolean;
|
|
97
|
-
/** These keywords are passed to the transcription model to help it pick up use-case specific words. */
|
|
104
|
+
/** These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here. */
|
|
98
105
|
keywords?: string[];
|
|
99
106
|
}
|
|
100
107
|
export interface CreateCustomerDTO {
|
|
@@ -306,6 +313,13 @@ export interface Assistant {
|
|
|
306
313
|
* @maxLength 400
|
|
307
314
|
*/
|
|
308
315
|
voicemailMessage?: string;
|
|
316
|
+
/**
|
|
317
|
+
* This is the message that the assistant will say if it ends the call.
|
|
318
|
+
*
|
|
319
|
+
* If unspecified, it will hang up without saying anything.
|
|
320
|
+
* @maxLength 400
|
|
321
|
+
*/
|
|
322
|
+
endCallMessage?: string;
|
|
309
323
|
/** This sets whether the user can interrupt the assistant while it's speaking. Defaults to true. */
|
|
310
324
|
interruptionsEnabled?: boolean;
|
|
311
325
|
/** This sets whether the assistant's calls are recorded. Defaults to true. */
|
|
@@ -314,7 +328,7 @@ export interface Assistant {
|
|
|
314
328
|
endCallFunctionEnabled?: boolean;
|
|
315
329
|
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. Else, defaults to false. */
|
|
316
330
|
fillersEnabled?: boolean;
|
|
317
|
-
/** These keywords are passed to the transcription model to help it pick up use-case specific words. */
|
|
331
|
+
/** These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here. */
|
|
318
332
|
keywords?: string[];
|
|
319
333
|
/** This is the unique identifier for the assistant. */
|
|
320
334
|
id: string;
|
|
@@ -388,6 +402,13 @@ export interface UpdateAssistantDTO {
|
|
|
388
402
|
* @maxLength 400
|
|
389
403
|
*/
|
|
390
404
|
voicemailMessage?: string;
|
|
405
|
+
/**
|
|
406
|
+
* This is the message that the assistant will say if it ends the call.
|
|
407
|
+
*
|
|
408
|
+
* If unspecified, it will hang up without saying anything.
|
|
409
|
+
* @maxLength 400
|
|
410
|
+
*/
|
|
411
|
+
endCallMessage?: string;
|
|
391
412
|
/** This sets whether the user can interrupt the assistant while it's speaking. Defaults to true. */
|
|
392
413
|
interruptionsEnabled?: boolean;
|
|
393
414
|
/** This sets whether the assistant's calls are recorded. Defaults to true. */
|
|
@@ -396,7 +417,7 @@ export interface UpdateAssistantDTO {
|
|
|
396
417
|
endCallFunctionEnabled?: boolean;
|
|
397
418
|
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. Else, defaults to false. */
|
|
398
419
|
fillersEnabled?: boolean;
|
|
399
|
-
/** These keywords are passed to the transcription model to help it pick up use-case specific words. */
|
|
420
|
+
/** These keywords are passed to the transcription model to help it pick up use-case specific words. Anything that may not be a common word, like your company name, should be added here. */
|
|
400
421
|
keywords?: string[];
|
|
401
422
|
}
|
|
402
423
|
export interface BuyPhoneNumberDTO {
|
|
@@ -542,7 +563,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
542
563
|
/**
|
|
543
564
|
* @title Vapi API
|
|
544
565
|
* @version 1.0
|
|
545
|
-
* @baseUrl https://
|
|
566
|
+
* @baseUrl https://api.vapi.ai
|
|
546
567
|
* @contact
|
|
547
568
|
*
|
|
548
569
|
* API for building voice assistants
|
package/dist/api.js
CHANGED
|
@@ -40,7 +40,7 @@ var ContentType;
|
|
|
40
40
|
})(ContentType || (exports.ContentType = ContentType = {}));
|
|
41
41
|
class HttpClient {
|
|
42
42
|
constructor(apiConfig = {}) {
|
|
43
|
-
this.baseUrl = "https://
|
|
43
|
+
this.baseUrl = "https://api.vapi.ai";
|
|
44
44
|
this.securityData = null;
|
|
45
45
|
this.abortControllers = new Map();
|
|
46
46
|
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
@@ -156,7 +156,7 @@ exports.HttpClient = HttpClient;
|
|
|
156
156
|
/**
|
|
157
157
|
* @title Vapi API
|
|
158
158
|
* @version 1.0
|
|
159
|
-
* @baseUrl https://
|
|
159
|
+
* @baseUrl https://api.vapi.ai
|
|
160
160
|
* @contact
|
|
161
161
|
*
|
|
162
162
|
* API for building voice assistants
|