@vapi-ai/web 1.0.224 → 1.0.225
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 +66 -0
- package/dist/api.d.ts +21 -0
- 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,8 @@ 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;
|
|
131
153
|
}
|
|
132
154
|
|
|
133
155
|
export interface CreateCustomerDTO {
|
|
@@ -327,6 +349,26 @@ export interface Assistant {
|
|
|
327
349
|
| "daphne-rimeai"
|
|
328
350
|
| "aurora-rimeai"
|
|
329
351
|
| "nova-rimeai";
|
|
352
|
+
/**
|
|
353
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
354
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
355
|
+
*/
|
|
356
|
+
language?:
|
|
357
|
+
| "en"
|
|
358
|
+
| "en-US"
|
|
359
|
+
| "en-AU"
|
|
360
|
+
| "en-GB"
|
|
361
|
+
| "en-NZ"
|
|
362
|
+
| "en-IN"
|
|
363
|
+
| "fr"
|
|
364
|
+
| "fr-CA"
|
|
365
|
+
| "de"
|
|
366
|
+
| "hi"
|
|
367
|
+
| "hi-Latn"
|
|
368
|
+
| "pt"
|
|
369
|
+
| "pt-BR"
|
|
370
|
+
| "es"
|
|
371
|
+
| "es-419";
|
|
330
372
|
/**
|
|
331
373
|
* This is the name of the assistant. This is just for your own reference.
|
|
332
374
|
* @maxLength 40
|
|
@@ -372,6 +414,8 @@ export interface Assistant {
|
|
|
372
414
|
interruptionsEnabled?: boolean;
|
|
373
415
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
374
416
|
recordingEnabled?: boolean;
|
|
417
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
418
|
+
endCallFunctionEnabled?: boolean;
|
|
375
419
|
/** This is the unique identifier for the assistant. */
|
|
376
420
|
id: string;
|
|
377
421
|
/** This is the unique identifier for the org that this assistant belongs to. */
|
|
@@ -428,6 +472,26 @@ export interface UpdateAssistantDTO {
|
|
|
428
472
|
| "daphne-rimeai"
|
|
429
473
|
| "aurora-rimeai"
|
|
430
474
|
| "nova-rimeai";
|
|
475
|
+
/**
|
|
476
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
477
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
478
|
+
*/
|
|
479
|
+
language?:
|
|
480
|
+
| "en"
|
|
481
|
+
| "en-US"
|
|
482
|
+
| "en-AU"
|
|
483
|
+
| "en-GB"
|
|
484
|
+
| "en-NZ"
|
|
485
|
+
| "en-IN"
|
|
486
|
+
| "fr"
|
|
487
|
+
| "fr-CA"
|
|
488
|
+
| "de"
|
|
489
|
+
| "hi"
|
|
490
|
+
| "hi-Latn"
|
|
491
|
+
| "pt"
|
|
492
|
+
| "pt-BR"
|
|
493
|
+
| "es"
|
|
494
|
+
| "es-419";
|
|
431
495
|
/**
|
|
432
496
|
* This is the name of the assistant. This is just for your own reference.
|
|
433
497
|
* @maxLength 40
|
|
@@ -473,6 +537,8 @@ export interface UpdateAssistantDTO {
|
|
|
473
537
|
interruptionsEnabled?: boolean;
|
|
474
538
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
475
539
|
recordingEnabled?: boolean;
|
|
540
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
541
|
+
endCallFunctionEnabled?: boolean;
|
|
476
542
|
}
|
|
477
543
|
|
|
478
544
|
export interface BuyPhoneNumberDTO {
|
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,8 @@ 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;
|
|
88
95
|
}
|
|
89
96
|
export interface CreateCustomerDTO {
|
|
90
97
|
/** This is the number of the customer. */
|
|
@@ -249,6 +256,11 @@ export interface Assistant {
|
|
|
249
256
|
* Basic Voices: `*-rimeai`
|
|
250
257
|
*/
|
|
251
258
|
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";
|
|
259
|
+
/**
|
|
260
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
261
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
262
|
+
*/
|
|
263
|
+
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
264
|
/**
|
|
253
265
|
* This is the name of the assistant. This is just for your own reference.
|
|
254
266
|
* @maxLength 40
|
|
@@ -294,6 +306,8 @@ export interface Assistant {
|
|
|
294
306
|
interruptionsEnabled?: boolean;
|
|
295
307
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
296
308
|
recordingEnabled?: boolean;
|
|
309
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
310
|
+
endCallFunctionEnabled?: boolean;
|
|
297
311
|
/** This is the unique identifier for the assistant. */
|
|
298
312
|
id: string;
|
|
299
313
|
/** This is the unique identifier for the org that this assistant belongs to. */
|
|
@@ -320,6 +334,11 @@ export interface UpdateAssistantDTO {
|
|
|
320
334
|
* Basic Voices: `*-rimeai`
|
|
321
335
|
*/
|
|
322
336
|
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";
|
|
337
|
+
/**
|
|
338
|
+
* This sets the spoken language of the user. The assistant will do its best to respond in the same language.
|
|
339
|
+
* When using a language other than `en-*`, only `*-11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
|
|
340
|
+
*/
|
|
341
|
+
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
342
|
/**
|
|
324
343
|
* This is the name of the assistant. This is just for your own reference.
|
|
325
344
|
* @maxLength 40
|
|
@@ -365,6 +384,8 @@ export interface UpdateAssistantDTO {
|
|
|
365
384
|
interruptionsEnabled?: boolean;
|
|
366
385
|
/** This sets whether calls are recorded for the assistant. Defaults to true. */
|
|
367
386
|
recordingEnabled?: boolean;
|
|
387
|
+
/** This sets whether the assistant will be able to hang up the call. Defaults to false. */
|
|
388
|
+
endCallFunctionEnabled?: boolean;
|
|
368
389
|
}
|
|
369
390
|
export interface BuyPhoneNumberDTO {
|
|
370
391
|
/**
|