@vapi-ai/web 1.0.224 → 1.0.226
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 +76 -1
- package/dist/api.d.ts +31 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -83,6 +83,26 @@ export interface CreateAssistantDTO {
|
|
|
83
83
|
| "daphne-rimeai"
|
|
84
84
|
| "aurora-rimeai"
|
|
85
85
|
| "nova-rimeai";
|
|
86
|
+
/**
|
|
87
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
88
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
89
|
+
*/
|
|
90
|
+
language?:
|
|
91
|
+
| "en"
|
|
92
|
+
| "en-US"
|
|
93
|
+
| "en-AU"
|
|
94
|
+
| "en-GB"
|
|
95
|
+
| "en-NZ"
|
|
96
|
+
| "en-IN"
|
|
97
|
+
| "fr"
|
|
98
|
+
| "fr-CA"
|
|
99
|
+
| "de"
|
|
100
|
+
| "hi"
|
|
101
|
+
| "hi-Latn"
|
|
102
|
+
| "pt"
|
|
103
|
+
| "pt-BR"
|
|
104
|
+
| "es"
|
|
105
|
+
| "es-419";
|
|
86
106
|
/**
|
|
87
107
|
* This is the name of the assistant. This is just for your own reference.
|
|
88
108
|
* @maxLength 40
|
|
@@ -128,6 +148,10 @@ export interface CreateAssistantDTO {
|
|
|
128
148
|
interruptionsEnabled?: boolean;
|
|
129
149
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
130
150
|
recordingEnabled?: boolean;
|
|
151
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
152
|
+
endCallFunctionEnabled?: boolean;
|
|
153
|
+
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. */
|
|
154
|
+
fillersEnabled?: boolean;
|
|
131
155
|
}
|
|
132
156
|
|
|
133
157
|
export interface CreateCustomerDTO {
|
|
@@ -327,6 +351,26 @@ export interface Assistant {
|
|
|
327
351
|
| "daphne-rimeai"
|
|
328
352
|
| "aurora-rimeai"
|
|
329
353
|
| "nova-rimeai";
|
|
354
|
+
/**
|
|
355
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
356
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
357
|
+
*/
|
|
358
|
+
language?:
|
|
359
|
+
| "en"
|
|
360
|
+
| "en-US"
|
|
361
|
+
| "en-AU"
|
|
362
|
+
| "en-GB"
|
|
363
|
+
| "en-NZ"
|
|
364
|
+
| "en-IN"
|
|
365
|
+
| "fr"
|
|
366
|
+
| "fr-CA"
|
|
367
|
+
| "de"
|
|
368
|
+
| "hi"
|
|
369
|
+
| "hi-Latn"
|
|
370
|
+
| "pt"
|
|
371
|
+
| "pt-BR"
|
|
372
|
+
| "es"
|
|
373
|
+
| "es-419";
|
|
330
374
|
/**
|
|
331
375
|
* This is the name of the assistant. This is just for your own reference.
|
|
332
376
|
* @maxLength 40
|
|
@@ -372,6 +416,10 @@ export interface Assistant {
|
|
|
372
416
|
interruptionsEnabled?: boolean;
|
|
373
417
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
374
418
|
recordingEnabled?: boolean;
|
|
419
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
420
|
+
endCallFunctionEnabled?: boolean;
|
|
421
|
+
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. */
|
|
422
|
+
fillersEnabled?: boolean;
|
|
375
423
|
/** This is the unique identifier for the assistant. */
|
|
376
424
|
id: string;
|
|
377
425
|
/** This is the unique identifier for the org that this assistant belongs to. */
|
|
@@ -428,6 +476,26 @@ export interface UpdateAssistantDTO {
|
|
|
428
476
|
| "daphne-rimeai"
|
|
429
477
|
| "aurora-rimeai"
|
|
430
478
|
| "nova-rimeai";
|
|
479
|
+
/**
|
|
480
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
481
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
482
|
+
*/
|
|
483
|
+
language?:
|
|
484
|
+
| "en"
|
|
485
|
+
| "en-US"
|
|
486
|
+
| "en-AU"
|
|
487
|
+
| "en-GB"
|
|
488
|
+
| "en-NZ"
|
|
489
|
+
| "en-IN"
|
|
490
|
+
| "fr"
|
|
491
|
+
| "fr-CA"
|
|
492
|
+
| "de"
|
|
493
|
+
| "hi"
|
|
494
|
+
| "hi-Latn"
|
|
495
|
+
| "pt"
|
|
496
|
+
| "pt-BR"
|
|
497
|
+
| "es"
|
|
498
|
+
| "es-419";
|
|
431
499
|
/**
|
|
432
500
|
* This is the name of the assistant. This is just for your own reference.
|
|
433
501
|
* @maxLength 40
|
|
@@ -473,6 +541,10 @@ export interface UpdateAssistantDTO {
|
|
|
473
541
|
interruptionsEnabled?: boolean;
|
|
474
542
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
475
543
|
recordingEnabled?: boolean;
|
|
544
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
545
|
+
endCallFunctionEnabled?: boolean;
|
|
546
|
+
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. */
|
|
547
|
+
fillersEnabled?: boolean;
|
|
476
548
|
}
|
|
477
549
|
|
|
478
550
|
export interface BuyPhoneNumberDTO {
|
|
@@ -514,7 +586,10 @@ export interface PhoneNumber {
|
|
|
514
586
|
stripeSubscriptionId?: string;
|
|
515
587
|
/** This is the subscription's status. */
|
|
516
588
|
stripeSubscriptionStatus?: string;
|
|
517
|
-
/**
|
|
589
|
+
/**
|
|
590
|
+
* This is the subscription's current period start.
|
|
591
|
+
* @format date-time
|
|
592
|
+
*/
|
|
518
593
|
stripeSubscriptionCurrentPeriodStart?: string;
|
|
519
594
|
/** These are the digits of the phone number. */
|
|
520
595
|
number: string;
|
package/dist/api.d.ts
CHANGED
|
@@ -40,6 +40,11 @@ export interface CreateAssistantDTO {
|
|
|
40
40
|
* Basic Voices: `*-rimeai`
|
|
41
41
|
*/
|
|
42
42
|
voice?: "jennifer-playht" | "melissa-playht" | "will-playht" | "jack-playht" | "ruby-playht" | "davis-playht" | "donna-playht" | "burt-11labs" | "andrea-11labs" | "phillip-11labs" | "steve-11labs" | "joseph-11labs" | "myra-11labs" | "paula-11labs" | "ryan-11labs" | "drew-11labs" | "paul-11labs" | "mrb-11labs" | "matilda-11labs" | "kai-rimeai" | "zion-rimeai" | "xavier-rimeai" | "marty-rimeai" | "hudson-rimeai" | "savannah-rimeai" | "colette-rimeai" | "daphne-rimeai" | "aurora-rimeai" | "nova-rimeai";
|
|
43
|
+
/**
|
|
44
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
45
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
46
|
+
*/
|
|
47
|
+
language?: "en" | "en-US" | "en-AU" | "en-GB" | "en-NZ" | "en-IN" | "fr" | "fr-CA" | "de" | "hi" | "hi-Latn" | "pt" | "pt-BR" | "es" | "es-419";
|
|
43
48
|
/**
|
|
44
49
|
* This is the name of the assistant. This is just for your own reference.
|
|
45
50
|
* @maxLength 40
|
|
@@ -85,6 +90,10 @@ export interface CreateAssistantDTO {
|
|
|
85
90
|
interruptionsEnabled?: boolean;
|
|
86
91
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
87
92
|
recordingEnabled?: boolean;
|
|
93
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
94
|
+
endCallFunctionEnabled?: boolean;
|
|
95
|
+
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. */
|
|
96
|
+
fillersEnabled?: boolean;
|
|
88
97
|
}
|
|
89
98
|
export interface CreateCustomerDTO {
|
|
90
99
|
/** This is the number of the customer. */
|
|
@@ -249,6 +258,11 @@ export interface Assistant {
|
|
|
249
258
|
* Basic Voices: `*-rimeai`
|
|
250
259
|
*/
|
|
251
260
|
voice?: "jennifer-playht" | "melissa-playht" | "will-playht" | "jack-playht" | "ruby-playht" | "davis-playht" | "donna-playht" | "burt-11labs" | "andrea-11labs" | "phillip-11labs" | "steve-11labs" | "joseph-11labs" | "myra-11labs" | "paula-11labs" | "ryan-11labs" | "drew-11labs" | "paul-11labs" | "mrb-11labs" | "matilda-11labs" | "kai-rimeai" | "zion-rimeai" | "xavier-rimeai" | "marty-rimeai" | "hudson-rimeai" | "savannah-rimeai" | "colette-rimeai" | "daphne-rimeai" | "aurora-rimeai" | "nova-rimeai";
|
|
261
|
+
/**
|
|
262
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
263
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
264
|
+
*/
|
|
265
|
+
language?: "en" | "en-US" | "en-AU" | "en-GB" | "en-NZ" | "en-IN" | "fr" | "fr-CA" | "de" | "hi" | "hi-Latn" | "pt" | "pt-BR" | "es" | "es-419";
|
|
252
266
|
/**
|
|
253
267
|
* This is the name of the assistant. This is just for your own reference.
|
|
254
268
|
* @maxLength 40
|
|
@@ -294,6 +308,10 @@ export interface Assistant {
|
|
|
294
308
|
interruptionsEnabled?: boolean;
|
|
295
309
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
296
310
|
recordingEnabled?: boolean;
|
|
311
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
312
|
+
endCallFunctionEnabled?: boolean;
|
|
313
|
+
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. */
|
|
314
|
+
fillersEnabled?: boolean;
|
|
297
315
|
/** This is the unique identifier for the assistant. */
|
|
298
316
|
id: string;
|
|
299
317
|
/** This is the unique identifier for the org that this assistant belongs to. */
|
|
@@ -320,6 +338,11 @@ export interface UpdateAssistantDTO {
|
|
|
320
338
|
* Basic Voices: `*-rimeai`
|
|
321
339
|
*/
|
|
322
340
|
voice?: "jennifer-playht" | "melissa-playht" | "will-playht" | "jack-playht" | "ruby-playht" | "davis-playht" | "donna-playht" | "burt-11labs" | "andrea-11labs" | "phillip-11labs" | "steve-11labs" | "joseph-11labs" | "myra-11labs" | "paula-11labs" | "ryan-11labs" | "drew-11labs" | "paul-11labs" | "mrb-11labs" | "matilda-11labs" | "kai-rimeai" | "zion-rimeai" | "xavier-rimeai" | "marty-rimeai" | "hudson-rimeai" | "savannah-rimeai" | "colette-rimeai" | "daphne-rimeai" | "aurora-rimeai" | "nova-rimeai";
|
|
341
|
+
/**
|
|
342
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
343
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
344
|
+
*/
|
|
345
|
+
language?: "en" | "en-US" | "en-AU" | "en-GB" | "en-NZ" | "en-IN" | "fr" | "fr-CA" | "de" | "hi" | "hi-Latn" | "pt" | "pt-BR" | "es" | "es-419";
|
|
323
346
|
/**
|
|
324
347
|
* This is the name of the assistant. This is just for your own reference.
|
|
325
348
|
* @maxLength 40
|
|
@@ -365,6 +388,10 @@ export interface UpdateAssistantDTO {
|
|
|
365
388
|
interruptionsEnabled?: boolean;
|
|
366
389
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
367
390
|
recordingEnabled?: boolean;
|
|
391
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
392
|
+
endCallFunctionEnabled?: boolean;
|
|
393
|
+
/** This sets whether the assistant will use fillers like Well..., Okay cool..., etc. Defaults to true when using gpt-4. */
|
|
394
|
+
fillersEnabled?: boolean;
|
|
368
395
|
}
|
|
369
396
|
export interface BuyPhoneNumberDTO {
|
|
370
397
|
/**
|
|
@@ -404,7 +431,10 @@ export interface PhoneNumber {
|
|
|
404
431
|
stripeSubscriptionId?: string;
|
|
405
432
|
/** This is the subscription's status. */
|
|
406
433
|
stripeSubscriptionStatus?: string;
|
|
407
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* This is the subscription's current period start.
|
|
436
|
+
* @format date-time
|
|
437
|
+
*/
|
|
408
438
|
stripeSubscriptionCurrentPeriodStart?: string;
|
|
409
439
|
/** These are the digits of the phone number. */
|
|
410
440
|
number: string;
|