@vapi-ai/web 1.0.255 → 1.0.256

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 CHANGED
@@ -10,16 +10,94 @@
10
10
  */
11
11
 
12
12
  export interface DeepgramVoice {
13
- /**
14
- * This is the voice provider that will be used.
15
- *
16
- * Pro Voices: `11labs`, `playht`, `openai`
17
- *
18
- * Basic Voices: `rime-ai`, `deepgram`
19
- */
13
+ /** This is the voice provider that will be used. */
20
14
  provider: "deepgram";
21
15
  /** This is the provider-specific ID that will be used. */
22
- voiceId: "aurora" | "asteria" | "artemis" | "andromeda" | "stella" | "orion" | "atlas" | string;
16
+ voiceId: "asteria" | "luna" | "hera" | "athena" | "varun" | "leo" | "perseus" | "helios" | "angus" | string;
17
+ }
18
+
19
+ export interface JsonSchema {
20
+ type: "string" | "number" | "integer" | "boolean" | "array" | "object";
21
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
22
+ items?: object;
23
+ /** This is an array of type JsonSchema. However, Swagger doesn't support circular references. */
24
+ prefixItems?: object;
25
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
26
+ contains?: object;
27
+ /** This is a map of string to JsonSchema. However, Swagger doesn't support circular references. */
28
+ properties?: object;
29
+ /** This is a map of string to JsonSchema objects. However, Swagger doesn't support circular references. */
30
+ patternProperties?: object;
31
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
32
+ additionalProperties?: object;
33
+ /** This is a map of string to JsonSchema objects. However, Swagger doesn't support circular references. */
34
+ dependentSchemas?: object;
35
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
36
+ propertyNames?: object;
37
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
38
+ unevaluatedProperties?: object;
39
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
40
+ const?: object;
41
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
42
+ not?: object;
43
+ /** This is an array of type JsonSchema. However, Swagger doesn't support circular references. */
44
+ oneOf?: object;
45
+ /** This is an array of type JsonSchema. However, Swagger doesn't support circular references. */
46
+ anyOf?: object;
47
+ /** This is an array of type JsonSchema. However, Swagger doesn't support circular references. */
48
+ allOf?: object;
49
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
50
+ if?: object;
51
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
52
+ then?: object;
53
+ /** This is of type JsonSchema. However, Swagger doesn't support circular references. */
54
+ else?: object;
55
+ title?: string;
56
+ description?: string;
57
+ multipleOf?: number;
58
+ maximum?: number;
59
+ exclusiveMaximum?: number;
60
+ minimum?: number;
61
+ exclusiveMinimum?: number;
62
+ maxLength?: number;
63
+ /** @min 0 */
64
+ minLength?: number;
65
+ pattern?: string;
66
+ format?: string;
67
+ maxItems?: number;
68
+ /** @min 0 */
69
+ minItems?: number;
70
+ minContains?: number;
71
+ maxContains?: number;
72
+ maxProperties?: number;
73
+ /** @min 0 */
74
+ minProperties?: number;
75
+ required?: object[];
76
+ dependentRequired?: object;
77
+ enum?: object[];
78
+ $id?: string;
79
+ $ref?: string;
80
+ $schema?: string;
81
+ $comment?: string;
82
+ default?: object;
83
+ examples?: object[];
84
+ readOnly?: boolean;
85
+ writeOnly?: boolean;
86
+ contentEncoding?: string;
87
+ contentMediaType?: string;
88
+ }
89
+
90
+ export interface OpenAIFunctionParameters {
91
+ /** This must be set to 'object'. It instructs the model to return a JSON object containing the function call properties. */
92
+ type: "object";
93
+ /**
94
+ * This provides a description of the properties required by the function.
95
+ * JSON Schema can be used to specify expectations for each property.
96
+ * Refer to [this doc](https://ajv.js.org/json-schema.html#json-data-type) for a comprehensive guide on JSON Schema.
97
+ */
98
+ properties: Record<string, JsonSchema>;
99
+ /** This specifies the properties that are required by the function. */
100
+ required?: string[];
23
101
  }
24
102
 
25
103
  export interface OpenAIFunction {
@@ -28,6 +106,7 @@ export interface OpenAIFunction {
28
106
  *
29
107
  * Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
30
108
  * @maxLength 64
109
+ * @pattern /^[a-zA-Z0-9_-]{1,64}$/
31
110
  */
32
111
  name: string;
33
112
  /** Setting async: true will cause the function to be called asynchronously, meaning that the Assistant will not wait for the function to return before continuing. */
@@ -37,91 +116,121 @@ export interface OpenAIFunction {
37
116
  /**
38
117
  * These are the parameters the functions accepts, described as a JSON Schema object.
39
118
  *
40
- * See the [OpenAI guide](https://platform.openai.com/docs/guides/gpt/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema) for documentation about the format.
119
+ * See the [OpenAI guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema) for documentation about the format.
41
120
  *
42
- * To describe a function that accepts no parameters, provide the value {"type": "object", "properties": {}}.
121
+ * Omitting parameters defines a function with an empty parameter list.
43
122
  */
44
- parameters: object;
123
+ parameters?: OpenAIFunctionParameters;
45
124
  }
46
125
 
47
126
  export interface TogetherAIModel {
48
127
  provider: "together-ai";
49
128
  /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
50
129
  model: string;
51
- /** This sets the objective and understanding for the assistant. */
52
- systemPrompt?: string;
53
130
  /**
54
131
  * This is the temperature that will be used for calls. Default is 1.
55
132
  * @min 0
56
133
  * @max 2
57
134
  */
58
135
  temperature?: number;
136
+ /** This is the starting state for the conversation. */
137
+ messages: object[];
59
138
  /** These are the functions that the assistant can execute during the call. */
60
139
  functions?: OpenAIFunction[];
140
+ /**
141
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
142
+ * @min 50
143
+ * @max 1000
144
+ */
145
+ maxTokens?: number;
61
146
  }
62
147
 
63
148
  export interface AnyscaleModel {
64
149
  provider: "anyscale";
65
150
  /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
66
151
  model: string;
67
- /** This sets the objective and understanding for the assistant. */
68
- systemPrompt?: string;
69
152
  /**
70
153
  * This is the temperature that will be used for calls. Default is 1.
71
154
  * @min 0
72
155
  * @max 2
73
156
  */
74
157
  temperature?: number;
158
+ /** This is the starting state for the conversation. */
159
+ messages: object[];
75
160
  /** These are the functions that the assistant can execute during the call. */
76
161
  functions?: OpenAIFunction[];
162
+ /**
163
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
164
+ * @min 50
165
+ * @max 1000
166
+ */
167
+ maxTokens?: number;
77
168
  }
78
169
 
79
170
  export interface OpenRouterModel {
80
171
  provider: "openrouter";
81
172
  /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
82
173
  model: string;
83
- /** This sets the objective and understanding for the assistant. */
84
- systemPrompt?: string;
85
174
  /**
86
175
  * This is the temperature that will be used for calls. Default is 1.
87
176
  * @min 0
88
177
  * @max 2
89
178
  */
90
179
  temperature?: number;
180
+ /** This is the starting state for the conversation. */
181
+ messages: object[];
91
182
  /** These are the functions that the assistant can execute during the call. */
92
183
  functions?: OpenAIFunction[];
184
+ /**
185
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
186
+ * @min 50
187
+ * @max 1000
188
+ */
189
+ maxTokens?: number;
93
190
  }
94
191
 
95
192
  export interface PerplexityAIModel {
96
193
  provider: "perplexity-ai";
97
194
  /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
98
195
  model: string;
99
- /** This sets the objective and understanding for the assistant. */
100
- systemPrompt?: string;
101
196
  /**
102
197
  * This is the temperature that will be used for calls. Default is 1.
103
198
  * @min 0
104
199
  * @max 2
105
200
  */
106
201
  temperature?: number;
202
+ /** This is the starting state for the conversation. */
203
+ messages: object[];
107
204
  /** These are the functions that the assistant can execute during the call. */
108
205
  functions?: OpenAIFunction[];
206
+ /**
207
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
208
+ * @min 50
209
+ * @max 1000
210
+ */
211
+ maxTokens?: number;
109
212
  }
110
213
 
111
214
  export interface DeepInfraModel {
112
215
  provider: "deepinfra";
113
216
  /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
114
217
  model: string;
115
- /** This sets the objective and understanding for the assistant. */
116
- systemPrompt?: string;
117
218
  /**
118
219
  * This is the temperature that will be used for calls. Default is 1.
119
220
  * @min 0
120
221
  * @max 2
121
222
  */
122
223
  temperature?: number;
224
+ /** This is the starting state for the conversation. */
225
+ messages: object[];
123
226
  /** These are the functions that the assistant can execute during the call. */
124
227
  functions?: OpenAIFunction[];
228
+ /**
229
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
230
+ * @min 50
231
+ * @max 1000
232
+ */
233
+ maxTokens?: number;
125
234
  }
126
235
 
127
236
  export interface CustomLLMModel {
@@ -131,16 +240,44 @@ export interface CustomLLMModel {
131
240
  url: string;
132
241
  /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
133
242
  model: string;
134
- /** This sets the objective and understanding for the assistant. */
135
- systemPrompt?: string;
136
243
  /**
137
244
  * This is the temperature that will be used for calls. Default is 1.
138
245
  * @min 0
139
246
  * @max 2
140
247
  */
141
248
  temperature?: number;
249
+ /** This is the starting state for the conversation. */
250
+ messages: object[];
142
251
  /** These are the functions that the assistant can execute during the call. */
143
252
  functions?: OpenAIFunction[];
253
+ /**
254
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
255
+ * @min 50
256
+ * @max 1000
257
+ */
258
+ maxTokens?: number;
259
+ }
260
+
261
+ export interface GroqModel {
262
+ /** The key of the model from the custom provider. Ex. cognitivecomputations/dolphin-mixtral-8x7b */
263
+ model: "mixtral-8x7b-32768";
264
+ provider: "groq";
265
+ /**
266
+ * This is the temperature that will be used for calls. Default is 1.
267
+ * @min 0
268
+ * @max 2
269
+ */
270
+ temperature?: number;
271
+ /** This is the starting state for the conversation. */
272
+ messages: object[];
273
+ /** These are the functions that the assistant can execute during the call. */
274
+ functions?: OpenAIFunction[];
275
+ /**
276
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
277
+ * @min 50
278
+ * @max 1000
279
+ */
280
+ maxTokens?: number;
144
281
  }
145
282
 
146
283
  export interface DeepgramTranscriber {
@@ -166,17 +303,12 @@ export interface DeepgramTranscriber {
166
303
  }
167
304
 
168
305
  export interface ElevenLabsVoice {
169
- /**
170
- * This is the voice provider that will be used.
171
- *
172
- * Pro Voices: `11labs`, `playht`
173
- *
174
- * Basic Voices: `rime-ai`, `deepgram`
175
- */
306
+ /** This is the voice provider that will be used. */
176
307
  provider: "11labs";
177
308
  /** This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. */
178
309
  voiceId:
179
310
  | "burt"
311
+ | "marissa"
180
312
  | "andrea"
181
313
  | "phillip"
182
314
  | "steve"
@@ -194,24 +326,26 @@ export interface ElevenLabsVoice {
194
326
  * Defines the stability for voice settings.
195
327
  * @min 0
196
328
  * @max 1
197
- * @default null
329
+ * @example 0.5
198
330
  */
199
331
  stability?: number;
200
332
  /**
201
333
  * Defines the similarity boost for voice settings.
202
334
  * @min 0
203
335
  * @max 1
204
- * @default null
336
+ * @example 0.75
205
337
  */
206
338
  similarityBoost?: number;
207
339
  /**
208
340
  * Defines the style for voice settings.
209
- * @default null
341
+ * @min 0
342
+ * @max 1
343
+ * @example 0
210
344
  */
211
- style?: boolean;
345
+ style?: number;
212
346
  /**
213
347
  * Defines the use speaker boost for voice settings.
214
- * @default null
348
+ * @example false
215
349
  */
216
350
  useSpeakerBoost?: boolean;
217
351
  }
@@ -221,26 +355,26 @@ export interface OpenAIModel {
221
355
  provider: "openai";
222
356
  /** This is the OpenAI model that will be used. */
223
357
  model: "gpt-4" | "gpt-3.5-turbo";
224
- /** This sets the objective and understanding for the assistant. */
225
- systemPrompt?: string;
226
358
  /**
227
359
  * This is the temperature that will be used for calls. Default is 1.
228
360
  * @min 0
229
361
  * @max 2
230
362
  */
231
363
  temperature?: number;
364
+ /** This is the starting state for the conversation. */
365
+ messages: object[];
232
366
  /** These are the functions that the assistant can execute during the call. */
233
367
  functions?: OpenAIFunction[];
368
+ /**
369
+ * This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250.
370
+ * @min 50
371
+ * @max 1000
372
+ */
373
+ maxTokens?: number;
234
374
  }
235
375
 
236
376
  export interface PlayHTVoice {
237
- /**
238
- * This is the voice provider that will be used.
239
- *
240
- * Pro Voices: `11labs`, `playht`, `openai`
241
- *
242
- * Basic Voices: `rime-ai`, `deepgram`
243
- */
377
+ /** This is the voice provider that will be used. */
244
378
  provider: "playht";
245
379
  /** This is the provider-specific ID that will be used. */
246
380
  voiceId:
@@ -259,52 +393,46 @@ export interface PlayHTVoice {
259
393
  * This is the speed multiplier that will be used.
260
394
  * @min 0
261
395
  * @max 5
262
- * @default null
396
+ * @example null
263
397
  */
264
398
  speed?: number;
265
399
  /**
266
- * A floating point number between 0, inclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.
400
+ * A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.
267
401
  * @min 0.1
268
402
  * @max 2
269
- * @default null
403
+ * @example null
270
404
  */
271
405
  temperature?: number;
272
406
  /**
273
407
  * An emotion to be applied to the speech.
274
- * @default null
408
+ * @example null
275
409
  */
276
410
  emotion?: "female_happy" | "female_sad" | "female_angry" | "female_fearful" | "female_disgust" | "female_surprised";
277
411
  /**
278
412
  * A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices.
279
413
  * @min 1
280
414
  * @max 6
281
- * @default null
415
+ * @example null
282
416
  */
283
417
  voiceGuidance?: number;
284
418
  /**
285
419
  * A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance.
286
420
  * @min 1
287
421
  * @max 30
288
- * @default null
422
+ * @example null
289
423
  */
290
424
  styleGuidance?: number;
291
425
  /**
292
426
  * A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text.
293
427
  * @min 1
294
428
  * @max 2
295
- * @default null
429
+ * @example null
296
430
  */
297
431
  textGuidance?: number;
298
432
  }
299
433
 
300
434
  export interface RimeAIVoice {
301
- /**
302
- * This is the voice provider that will be used.
303
- *
304
- * Pro Voices: `11labs`, `playht`, `openai`
305
- *
306
- * Basic Voices: `rime-ai`, `deepgram`
307
- */
435
+ /** This is the voice provider that will be used. */
308
436
  provider: "rime-ai";
309
437
  /** This is the provider-specific ID that will be used. */
310
438
  voiceId:
@@ -322,19 +450,13 @@ export interface RimeAIVoice {
322
450
  /**
323
451
  * This is the speed multiplier that will be used.
324
452
  * @min 0
325
- * @default null
453
+ * @example null
326
454
  */
327
455
  speed?: number;
328
456
  }
329
457
 
330
458
  export interface OpenAIVoice {
331
- /**
332
- * This is the voice provider that will be used.
333
- *
334
- * Pro Voices: `11labs`, `playht`, `openai`
335
- *
336
- * Basic Voices: `rime-ai`, `deepgram`
337
- */
459
+ /** This is the voice provider that will be used. */
338
460
  provider: "openai";
339
461
  /** This is the provider-specific ID that will be used. */
340
462
  voiceId: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | string;
@@ -342,23 +464,19 @@ export interface OpenAIVoice {
342
464
  * This is the speed multiplier that will be used.
343
465
  * @min 0.25
344
466
  * @max 4
345
- * @default null
467
+ * @example null
346
468
  */
347
469
  speed?: number;
348
470
  }
349
471
 
472
+ export interface AzureVoice {
473
+ /** This is the voice provider that will be used. */
474
+ provider: "azure";
475
+ /** This is the provider-specific ID that will be used. */
476
+ voiceId: "andrew" | "brian" | "emma" | string;
477
+ }
478
+
350
479
  export interface CreateAssistantDTO {
351
- /**
352
- * This is the name of the assistant. This is just for your own reference.
353
- * @maxLength 100
354
- * @default null
355
- */
356
- name?: string;
357
- /**
358
- * These are the options for the assistant's transcriber.
359
- * @default null
360
- */
361
- transcriber?: DeepgramTranscriber;
362
480
  /** These are the options for the assistant's LLM. */
363
481
  model?:
364
482
  | OpenAIModel
@@ -367,16 +485,16 @@ export interface CreateAssistantDTO {
367
485
  | OpenRouterModel
368
486
  | PerplexityAIModel
369
487
  | DeepInfraModel
488
+ | GroqModel
370
489
  | CustomLLMModel;
371
490
  /**
372
491
  * These are the options for the assistant's voice.
373
492
  * @default {"provider":"playht","voiceId":"jennifer"}
374
493
  */
375
- voice?: ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice;
494
+ voice?: AzureVoice | ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice;
376
495
  /**
377
496
  * This sets the spoken language of the user. The assistant will do its best to respond in the same language.
378
497
  * When using a language other than `en-*`, only `11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
379
- * @default null
380
498
  */
381
499
  language?:
382
500
  | "en"
@@ -394,84 +512,115 @@ export interface CreateAssistantDTO {
394
512
  | "pt-BR"
395
513
  | "es"
396
514
  | "es-419";
397
- /** This is the number to forward to if assistant runs into issues. */
398
- forwardingPhoneNumber?: string;
399
- /**
400
- * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
401
- *
402
- * If unspecified, it will wait for the user to speak.
403
- * @maxLength 1000
404
- * @default "Hey there!"
405
- */
406
- firstMessage?: string;
407
515
  /**
408
- * This is the message that the assistant will say if the call is forwarded to voicemail.
409
- *
410
- * If unspecified, it will hang up.
411
- * @maxLength 1000
412
- * @default null
516
+ * This is the number to forward to if assistant runs into issues.
517
+ * @example null
413
518
  */
414
- voicemailMessage?: string;
415
- /**
416
- * This is the message that the assistant will say if it ends the call.
417
- *
418
- * If unspecified, it will hang up without saying anything.
419
- * @maxLength 400
420
- * @default null
421
- */
422
- endCallMessage?: string;
519
+ forwardingPhoneNumber?: string;
423
520
  /**
424
521
  * This sets whether the user can interrupt the assistant while it's speaking. Defaults to true.
425
- * @default null
522
+ * @example true
426
523
  */
427
524
  interruptionsEnabled?: boolean;
428
525
  /**
429
526
  * This sets whether the assistant's calls are recorded. Defaults to true.
430
- * @default null
527
+ * @example true
431
528
  */
432
529
  recordingEnabled?: boolean;
433
530
  /**
434
531
  * This sets whether the assistant will be able to hang up the call. Defaults to false.
435
- * @default null
532
+ * @example false
436
533
  */
437
534
  endCallFunctionEnabled?: boolean;
438
535
  /**
439
- * This sets whether the assistant will use fillers like Well..., Okay cool..., etc. This will modify your prompt slightly, which could result in differing completions. Defaults to false.
536
+ * This sets whether the assistant can dial digits on the keypad. Defaults to false.
440
537
  * @default null
441
538
  */
442
- fillersEnabled?: boolean;
443
- /** These are the messages that will be sent to the Client SDKs. Default is ['transcript', 'hang', 'function-call'] */
444
- clientMessages?: "function-call" | "transcript" | "hang";
445
- /** These are the messages that will be sent to your Server URL. Default is ['end-of-call-report', 'status-update', 'hang', 'function-call'] */
446
- serverMessages?: "end-of-call-report" | "function-call" | "status-update" | "transcript" | "hang";
539
+ dialKeypadFunctionEnabled?: boolean;
540
+ /**
541
+ * These are the messages that will be sent to the Client SDKs. Default is ['transcript', 'hang', 'function-call', 'speech-update', 'metadata', 'conversation-update']
542
+ * @example ["transcript","hang","function-call","speech-update","metadata","conversation-update"]
543
+ */
544
+ clientMessages?:
545
+ | "status-update"
546
+ | "speech-update"
547
+ | "transcript"
548
+ | "hang"
549
+ | "function-call"
550
+ | "metadata"
551
+ | "conversation-update";
552
+ /**
553
+ * These are the messages that will be sent to your Server URL. Default is ['end-of-call-report', 'status-update', 'hang', 'function-call']
554
+ * @example ["end-of-call-report","status-update","hang","function-call"]
555
+ */
556
+ serverMessages?:
557
+ | "status-update"
558
+ | "transcript"
559
+ | "hang"
560
+ | "function-call"
561
+ | "end-of-call-report"
562
+ | "conversation-update";
447
563
  /**
448
564
  * How many seconds of silence to wait before ending the call. Defaults to 30.
449
565
  * @min 10
450
566
  * @max 600
451
- * @default null
567
+ * @example 30
452
568
  */
453
569
  silenceTimeoutSeconds?: number;
454
570
  /**
455
571
  * The minimum number of seconds after user speech to wait before the assistant starts speaking. Defaults to 0.4.
456
572
  * @min 0
457
- * @max 10
458
- * @default null
573
+ * @max 2
574
+ * @example 0.4
459
575
  */
460
576
  responseDelaySeconds?: number;
461
- }
462
-
463
- export interface Assistant {
464
577
  /**
465
578
  * This is the name of the assistant. This is just for your own reference.
466
579
  * @maxLength 100
467
- * @default null
468
580
  */
469
581
  name?: string;
582
+ /** These are the options for the assistant's transcriber. */
583
+ transcriber?: DeepgramTranscriber;
470
584
  /**
471
- * These are the options for the assistant's transcriber.
472
- * @default null
585
+ * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
586
+ *
587
+ * If unspecified, it will wait for the user to speak.
588
+ * @maxLength 1000
473
589
  */
474
- transcriber?: DeepgramTranscriber;
590
+ firstMessage?: string;
591
+ /**
592
+ * This is the message that the assistant will say if the call is forwarded to voicemail.
593
+ *
594
+ * If unspecified, it will hang up.
595
+ * @maxLength 1000
596
+ */
597
+ voicemailMessage?: string;
598
+ /**
599
+ * This is the message that the assistant will say if it ends the call.
600
+ *
601
+ * If unspecified, it will hang up without saying anything.
602
+ * @maxLength 400
603
+ */
604
+ endCallMessage?: string;
605
+ /** This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. */
606
+ endCallPhrases?: string[];
607
+ /**
608
+ * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports.
609
+ *
610
+ * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation.
611
+ *
612
+ * This overrides the serverUrl set on the org.
613
+ */
614
+ serverUrl?: string;
615
+ /**
616
+ * This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
617
+ *
618
+ * This overrides the serverUrlSecret set on the org.
619
+ */
620
+ serverUrlSecret?: string;
621
+ }
622
+
623
+ export interface Assistant {
475
624
  /** These are the options for the assistant's LLM. */
476
625
  model?:
477
626
  | OpenAIModel
@@ -480,16 +629,16 @@ export interface Assistant {
480
629
  | OpenRouterModel
481
630
  | PerplexityAIModel
482
631
  | DeepInfraModel
632
+ | GroqModel
483
633
  | CustomLLMModel;
484
634
  /**
485
635
  * These are the options for the assistant's voice.
486
636
  * @default {"provider":"playht","voiceId":"jennifer"}
487
637
  */
488
- voice?: ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice;
638
+ voice?: AzureVoice | ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice;
489
639
  /**
490
640
  * This sets the spoken language of the user. The assistant will do its best to respond in the same language.
491
641
  * When using a language other than `en-*`, only `11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
492
- * @default null
493
642
  */
494
643
  language?:
495
644
  | "en"
@@ -507,70 +656,112 @@ export interface Assistant {
507
656
  | "pt-BR"
508
657
  | "es"
509
658
  | "es-419";
510
- /** This is the number to forward to if assistant runs into issues. */
511
- forwardingPhoneNumber?: string;
512
- /**
513
- * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
514
- *
515
- * If unspecified, it will wait for the user to speak.
516
- * @maxLength 1000
517
- * @default "Hey there!"
518
- */
519
- firstMessage?: string;
520
659
  /**
521
- * This is the message that the assistant will say if the call is forwarded to voicemail.
522
- *
523
- * If unspecified, it will hang up.
524
- * @maxLength 1000
525
- * @default null
526
- */
527
- voicemailMessage?: string;
528
- /**
529
- * This is the message that the assistant will say if it ends the call.
530
- *
531
- * If unspecified, it will hang up without saying anything.
532
- * @maxLength 400
533
- * @default null
660
+ * This is the number to forward to if assistant runs into issues.
661
+ * @example null
534
662
  */
535
- endCallMessage?: string;
663
+ forwardingPhoneNumber?: string;
536
664
  /**
537
665
  * This sets whether the user can interrupt the assistant while it's speaking. Defaults to true.
538
- * @default null
666
+ * @example true
539
667
  */
540
668
  interruptionsEnabled?: boolean;
541
669
  /**
542
670
  * This sets whether the assistant's calls are recorded. Defaults to true.
543
- * @default null
671
+ * @example true
544
672
  */
545
673
  recordingEnabled?: boolean;
546
674
  /**
547
675
  * This sets whether the assistant will be able to hang up the call. Defaults to false.
548
- * @default null
676
+ * @example false
549
677
  */
550
678
  endCallFunctionEnabled?: boolean;
551
679
  /**
552
- * This sets whether the assistant will use fillers like Well..., Okay cool..., etc. This will modify your prompt slightly, which could result in differing completions. Defaults to false.
680
+ * This sets whether the assistant can dial digits on the keypad. Defaults to false.
553
681
  * @default null
554
682
  */
555
- fillersEnabled?: boolean;
556
- /** These are the messages that will be sent to the Client SDKs. Default is ['transcript', 'hang', 'function-call'] */
557
- clientMessages?: "function-call" | "transcript" | "hang";
558
- /** These are the messages that will be sent to your Server URL. Default is ['end-of-call-report', 'status-update', 'hang', 'function-call'] */
559
- serverMessages?: "end-of-call-report" | "function-call" | "status-update" | "transcript" | "hang";
683
+ dialKeypadFunctionEnabled?: boolean;
684
+ /**
685
+ * These are the messages that will be sent to the Client SDKs. Default is ['transcript', 'hang', 'function-call', 'speech-update', 'metadata', 'conversation-update']
686
+ * @example ["transcript","hang","function-call","speech-update","metadata","conversation-update"]
687
+ */
688
+ clientMessages?:
689
+ | "status-update"
690
+ | "speech-update"
691
+ | "transcript"
692
+ | "hang"
693
+ | "function-call"
694
+ | "metadata"
695
+ | "conversation-update";
696
+ /**
697
+ * These are the messages that will be sent to your Server URL. Default is ['end-of-call-report', 'status-update', 'hang', 'function-call']
698
+ * @example ["end-of-call-report","status-update","hang","function-call"]
699
+ */
700
+ serverMessages?:
701
+ | "status-update"
702
+ | "transcript"
703
+ | "hang"
704
+ | "function-call"
705
+ | "end-of-call-report"
706
+ | "conversation-update";
560
707
  /**
561
708
  * How many seconds of silence to wait before ending the call. Defaults to 30.
562
709
  * @min 10
563
710
  * @max 600
564
- * @default null
711
+ * @example 30
565
712
  */
566
713
  silenceTimeoutSeconds?: number;
567
714
  /**
568
715
  * The minimum number of seconds after user speech to wait before the assistant starts speaking. Defaults to 0.4.
569
716
  * @min 0
570
- * @max 10
571
- * @default null
717
+ * @max 2
718
+ * @example 0.4
572
719
  */
573
720
  responseDelaySeconds?: number;
721
+ /**
722
+ * This is the name of the assistant. This is just for your own reference.
723
+ * @maxLength 100
724
+ */
725
+ name?: string;
726
+ /** These are the options for the assistant's transcriber. */
727
+ transcriber?: DeepgramTranscriber;
728
+ /**
729
+ * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
730
+ *
731
+ * If unspecified, it will wait for the user to speak.
732
+ * @maxLength 1000
733
+ */
734
+ firstMessage?: string;
735
+ /**
736
+ * This is the message that the assistant will say if the call is forwarded to voicemail.
737
+ *
738
+ * If unspecified, it will hang up.
739
+ * @maxLength 1000
740
+ */
741
+ voicemailMessage?: string;
742
+ /**
743
+ * This is the message that the assistant will say if it ends the call.
744
+ *
745
+ * If unspecified, it will hang up without saying anything.
746
+ * @maxLength 400
747
+ */
748
+ endCallMessage?: string;
749
+ /** This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. */
750
+ endCallPhrases?: string[];
751
+ /**
752
+ * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports.
753
+ *
754
+ * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation.
755
+ *
756
+ * This overrides the serverUrl set on the org.
757
+ */
758
+ serverUrl?: string;
759
+ /**
760
+ * This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
761
+ *
762
+ * This overrides the serverUrlSecret set on the org.
763
+ */
764
+ serverUrlSecret?: string;
574
765
  /** This is the unique identifier for the assistant. */
575
766
  id: string;
576
767
  /** This is the unique identifier for the org that this assistant belongs to. */
@@ -588,17 +779,6 @@ export interface Assistant {
588
779
  }
589
780
 
590
781
  export interface UpdateAssistantDTO {
591
- /**
592
- * This is the name of the assistant. This is just for your own reference.
593
- * @maxLength 100
594
- * @default null
595
- */
596
- name?: string;
597
- /**
598
- * These are the options for the assistant's transcriber.
599
- * @default null
600
- */
601
- transcriber?: DeepgramTranscriber;
602
782
  /** These are the options for the assistant's LLM. */
603
783
  model?:
604
784
  | OpenAIModel
@@ -607,16 +787,16 @@ export interface UpdateAssistantDTO {
607
787
  | OpenRouterModel
608
788
  | PerplexityAIModel
609
789
  | DeepInfraModel
790
+ | GroqModel
610
791
  | CustomLLMModel;
611
792
  /**
612
793
  * These are the options for the assistant's voice.
613
794
  * @default {"provider":"playht","voiceId":"jennifer"}
614
795
  */
615
- voice?: ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice;
796
+ voice?: AzureVoice | ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice;
616
797
  /**
617
798
  * This sets the spoken language of the user. The assistant will do its best to respond in the same language.
618
799
  * When using a language other than `en-*`, only `11labs` voices will pronounce the words correctly. There will also be ~1sec of additional latency.
619
- * @default null
620
800
  */
621
801
  language?:
622
802
  | "en"
@@ -634,70 +814,112 @@ export interface UpdateAssistantDTO {
634
814
  | "pt-BR"
635
815
  | "es"
636
816
  | "es-419";
637
- /** This is the number to forward to if assistant runs into issues. */
638
- forwardingPhoneNumber?: string;
639
817
  /**
640
- * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
641
- *
642
- * If unspecified, it will wait for the user to speak.
643
- * @maxLength 1000
644
- * @default "Hey there!"
645
- */
646
- firstMessage?: string;
647
- /**
648
- * This is the message that the assistant will say if the call is forwarded to voicemail.
649
- *
650
- * If unspecified, it will hang up.
651
- * @maxLength 1000
652
- * @default null
653
- */
654
- voicemailMessage?: string;
655
- /**
656
- * This is the message that the assistant will say if it ends the call.
657
- *
658
- * If unspecified, it will hang up without saying anything.
659
- * @maxLength 400
660
- * @default null
818
+ * This is the number to forward to if assistant runs into issues.
819
+ * @example null
661
820
  */
662
- endCallMessage?: string;
821
+ forwardingPhoneNumber?: string;
663
822
  /**
664
823
  * This sets whether the user can interrupt the assistant while it's speaking. Defaults to true.
665
- * @default null
824
+ * @example true
666
825
  */
667
826
  interruptionsEnabled?: boolean;
668
827
  /**
669
828
  * This sets whether the assistant's calls are recorded. Defaults to true.
670
- * @default null
829
+ * @example true
671
830
  */
672
831
  recordingEnabled?: boolean;
673
832
  /**
674
833
  * This sets whether the assistant will be able to hang up the call. Defaults to false.
675
- * @default null
834
+ * @example false
676
835
  */
677
836
  endCallFunctionEnabled?: boolean;
678
837
  /**
679
- * This sets whether the assistant will use fillers like Well..., Okay cool..., etc. This will modify your prompt slightly, which could result in differing completions. Defaults to false.
838
+ * This sets whether the assistant can dial digits on the keypad. Defaults to false.
680
839
  * @default null
681
840
  */
682
- fillersEnabled?: boolean;
683
- /** These are the messages that will be sent to the Client SDKs. Default is ['transcript', 'hang', 'function-call'] */
684
- clientMessages?: "function-call" | "transcript" | "hang";
685
- /** These are the messages that will be sent to your Server URL. Default is ['end-of-call-report', 'status-update', 'hang', 'function-call'] */
686
- serverMessages?: "end-of-call-report" | "function-call" | "status-update" | "transcript" | "hang";
841
+ dialKeypadFunctionEnabled?: boolean;
842
+ /**
843
+ * These are the messages that will be sent to the Client SDKs. Default is ['transcript', 'hang', 'function-call', 'speech-update', 'metadata', 'conversation-update']
844
+ * @example ["transcript","hang","function-call","speech-update","metadata","conversation-update"]
845
+ */
846
+ clientMessages?:
847
+ | "status-update"
848
+ | "speech-update"
849
+ | "transcript"
850
+ | "hang"
851
+ | "function-call"
852
+ | "metadata"
853
+ | "conversation-update";
854
+ /**
855
+ * These are the messages that will be sent to your Server URL. Default is ['end-of-call-report', 'status-update', 'hang', 'function-call']
856
+ * @example ["end-of-call-report","status-update","hang","function-call"]
857
+ */
858
+ serverMessages?:
859
+ | "status-update"
860
+ | "transcript"
861
+ | "hang"
862
+ | "function-call"
863
+ | "end-of-call-report"
864
+ | "conversation-update";
687
865
  /**
688
866
  * How many seconds of silence to wait before ending the call. Defaults to 30.
689
867
  * @min 10
690
868
  * @max 600
691
- * @default null
869
+ * @example 30
692
870
  */
693
871
  silenceTimeoutSeconds?: number;
694
872
  /**
695
873
  * The minimum number of seconds after user speech to wait before the assistant starts speaking. Defaults to 0.4.
696
874
  * @min 0
697
- * @max 10
698
- * @default null
875
+ * @max 2
876
+ * @example 0.4
699
877
  */
700
878
  responseDelaySeconds?: number;
879
+ /**
880
+ * This is the name of the assistant. This is just for your own reference.
881
+ * @maxLength 100
882
+ */
883
+ name?: string;
884
+ /** These are the options for the assistant's transcriber. */
885
+ transcriber?: DeepgramTranscriber;
886
+ /**
887
+ * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).
888
+ *
889
+ * If unspecified, it will wait for the user to speak.
890
+ * @maxLength 1000
891
+ */
892
+ firstMessage?: string;
893
+ /**
894
+ * This is the message that the assistant will say if the call is forwarded to voicemail.
895
+ *
896
+ * If unspecified, it will hang up.
897
+ * @maxLength 1000
898
+ */
899
+ voicemailMessage?: string;
900
+ /**
901
+ * This is the message that the assistant will say if it ends the call.
902
+ *
903
+ * If unspecified, it will hang up without saying anything.
904
+ * @maxLength 400
905
+ */
906
+ endCallMessage?: string;
907
+ /** This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. */
908
+ endCallPhrases?: string[];
909
+ /**
910
+ * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports.
911
+ *
912
+ * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation.
913
+ *
914
+ * This overrides the serverUrl set on the org.
915
+ */
916
+ serverUrl?: string;
917
+ /**
918
+ * This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret.
919
+ *
920
+ * This overrides the serverUrlSecret set on the org.
921
+ */
922
+ serverUrlSecret?: string;
701
923
  }
702
924
 
703
925
  export interface CreateCustomerDTO {
@@ -708,6 +930,11 @@ export interface CreateCustomerDTO {
708
930
  * @maxLength 40
709
931
  */
710
932
  name?: string;
933
+ /**
934
+ * This is the extension that will be dialed after the call is answered.
935
+ * @maxLength 30
936
+ */
937
+ extension?: string;
711
938
  }
712
939
 
713
940
  export interface ImportTwilioPhoneNumberDTO {
@@ -737,43 +964,54 @@ export interface Call {
737
964
  status?: "queued" | "ringing" | "in-progress" | "forwarding" | "ended";
738
965
  /** This is the explanation for how the call ended. */
739
966
  endedReason?:
740
- | "assistant-ended-call"
741
967
  | "assistant-error"
742
- | "assistant-forwarded-call"
743
- | "assistant-join-timed-out"
744
968
  | "assistant-not-found"
745
- | "customer-busy"
746
- | "customer-ended-call"
747
- | "customer-did-not-answer"
748
969
  | "db-error"
749
- | "exceeded-max-duration"
750
- | "manually-canceled"
751
970
  | "no-server-available"
752
- | "pipeline-error-custom-llm-response-was-invalid"
753
- | "pipeline-error-custom-llm-request-failed"
754
971
  | "pipeline-error-extra-function-failed"
755
972
  | "pipeline-error-first-message-failed"
756
973
  | "pipeline-error-function-filler-failed"
757
974
  | "pipeline-error-function-failed"
758
- | "pipeline-error-llm-failed"
975
+ | "pipeline-error-openai-llm-failed"
976
+ | "pipeline-error-azure-openai-llm-failed"
977
+ | "pipeline-error-together-ai-llm-failed"
978
+ | "pipeline-error-anyscale-llm-failed"
979
+ | "pipeline-error-openrouter-llm-failed"
980
+ | "pipeline-error-perplexity-ai-llm-failed"
981
+ | "pipeline-error-deepinfra-llm-failed"
982
+ | "pipeline-error-runpod-llm-failed"
983
+ | "pipeline-error-groq-llm-failed"
759
984
  | "pipeline-error-openai-voice-failed"
760
985
  | "pipeline-error-deepgram-transcriber-failed"
761
986
  | "pipeline-error-deepgram-voice-failed"
762
987
  | "pipeline-error-eleven-labs-voice-failed"
763
988
  | "pipeline-error-eleven-labs-voice-not-found"
989
+ | "pipeline-error-eleven-labs-quota-exceeded"
764
990
  | "pipeline-error-playht-voice-failed"
991
+ | "pipeline-error-azure-voice-failed"
765
992
  | "pipeline-error-rime-ai-voice-failed"
766
993
  | "server-shutdown"
767
- | "silence-timed-out"
768
- | "twilio-failed-to-connect-call"
769
994
  | "twilio-closed-websocket"
995
+ | "twilio-failed-to-connect-call"
770
996
  | "unknown-error"
997
+ | "assistant-ended-call"
998
+ | "assistant-said-end-call-phrase"
999
+ | "assistant-forwarded-call"
1000
+ | "assistant-join-timed-out"
1001
+ | "customer-busy"
1002
+ | "customer-ended-call"
1003
+ | "customer-did-not-answer"
1004
+ | "customer-did-not-give-microphone-permission"
1005
+ | "exceeded-max-duration"
1006
+ | "manually-canceled"
1007
+ | "pipeline-error-custom-llm-llm-failed"
1008
+ | "silence-timed-out"
771
1009
  | "voicemail";
772
1010
  /**
773
1011
  * This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.
774
1012
  * @min 10
775
1013
  * @max 3600
776
- * @default null
1014
+ * @example 1800
777
1015
  */
778
1016
  maxDurationSeconds?: number;
779
1017
  /** This is the unique identifier for the call. */
@@ -802,10 +1040,14 @@ export interface Call {
802
1040
  endedAt?: string;
803
1041
  /** This is the cost of the call in USD. */
804
1042
  cost?: number;
1043
+ /** This is the cost of the call in USD. */
1044
+ costBreakdown?: object;
805
1045
  /** This is the transcript of the call. */
806
1046
  transcript?: string;
807
1047
  /** This is the URL of the recording of the call. */
808
1048
  recordingUrl?: string;
1049
+ /** This is the URL of the recording of the call in two channels. */
1050
+ stereoRecordingUrl?: string;
809
1051
  /** This is the summary of the call. */
810
1052
  summary?: string;
811
1053
  /** These are the messages that were spoken during the call. */
@@ -850,6 +1092,8 @@ export interface Call {
850
1092
  * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type.
851
1093
  */
852
1094
  phoneNumber?: ImportTwilioPhoneNumberDTO;
1095
+ /** This is the metadata associated with the call. */
1096
+ metadata?: object;
853
1097
  }
854
1098
 
855
1099
  export interface CreateOutboundCallDTO {
@@ -857,7 +1101,7 @@ export interface CreateOutboundCallDTO {
857
1101
  * This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.
858
1102
  * @min 10
859
1103
  * @max 3600
860
- * @default null
1104
+ * @example 1800
861
1105
  */
862
1106
  maxDurationSeconds?: number;
863
1107
  /** This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead. */
@@ -888,6 +1132,8 @@ export interface CreateOutboundCallDTO {
888
1132
  * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type.
889
1133
  */
890
1134
  phoneNumber?: ImportTwilioPhoneNumberDTO;
1135
+ /** This is the metadata associated with the call. */
1136
+ metadata?: object;
891
1137
  }
892
1138
 
893
1139
  export interface CreateWebCallDTO {
@@ -895,6 +1141,8 @@ export interface CreateWebCallDTO {
895
1141
  assistantId?: string;
896
1142
  /** This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. */
897
1143
  assistant?: CreateAssistantDTO;
1144
+ /** This is the metadata associated with the call. */
1145
+ metadata?: object;
898
1146
  }
899
1147
 
900
1148
  export interface TwilioCredential {
@@ -1653,10 +1901,61 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1653
1901
  * @request GET:/assistant
1654
1902
  * @secure
1655
1903
  */
1656
- assistantControllerFindAll: (params: RequestParams = {}) =>
1904
+ assistantControllerFindAll: (
1905
+ query?: {
1906
+ /**
1907
+ * This is the maximum number of items to return. Defaults to 100.
1908
+ * @min 0
1909
+ * @max 1000
1910
+ */
1911
+ limit?: number;
1912
+ /**
1913
+ * This will return items where the createdAt is greater than the specified value.
1914
+ * @format date-time
1915
+ */
1916
+ createdAtGt?: string;
1917
+ /**
1918
+ * This will return items where the createdAt is less than the specified value.
1919
+ * @format date-time
1920
+ */
1921
+ createdAtLt?: string;
1922
+ /**
1923
+ * This will return items where the createdAt is greater than or equal to the specified value.
1924
+ * @format date-time
1925
+ */
1926
+ createdAtGe?: string;
1927
+ /**
1928
+ * This will return items where the createdAt is less than or equal to the specified value.
1929
+ * @format date-time
1930
+ */
1931
+ createdAtLe?: string;
1932
+ /**
1933
+ * This will return items where the updatedAt is greater than the specified value.
1934
+ * @format date-time
1935
+ */
1936
+ updatedAtGt?: string;
1937
+ /**
1938
+ * This will return items where the updatedAt is less than the specified value.
1939
+ * @format date-time
1940
+ */
1941
+ updatedAtLt?: string;
1942
+ /**
1943
+ * This will return items where the updatedAt is greater than or equal to the specified value.
1944
+ * @format date-time
1945
+ */
1946
+ updatedAtGe?: string;
1947
+ /**
1948
+ * This will return items where the updatedAt is less than or equal to the specified value.
1949
+ * @format date-time
1950
+ */
1951
+ updatedAtLe?: string;
1952
+ },
1953
+ params: RequestParams = {},
1954
+ ) =>
1657
1955
  this.request<Assistant[], any>({
1658
1956
  path: `/assistant`,
1659
1957
  method: "GET",
1958
+ query: query,
1660
1959
  secure: true,
1661
1960
  format: "json",
1662
1961
  ...params,
@@ -1748,10 +2047,61 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1748
2047
  * @request GET:/call
1749
2048
  * @secure
1750
2049
  */
1751
- callControllerFindAll: (params: RequestParams = {}) =>
2050
+ callControllerFindAll: (
2051
+ query?: {
2052
+ /**
2053
+ * This is the maximum number of items to return. Defaults to 100.
2054
+ * @min 0
2055
+ * @max 1000
2056
+ */
2057
+ limit?: number;
2058
+ /**
2059
+ * This will return items where the createdAt is greater than the specified value.
2060
+ * @format date-time
2061
+ */
2062
+ createdAtGt?: string;
2063
+ /**
2064
+ * This will return items where the createdAt is less than the specified value.
2065
+ * @format date-time
2066
+ */
2067
+ createdAtLt?: string;
2068
+ /**
2069
+ * This will return items where the createdAt is greater than or equal to the specified value.
2070
+ * @format date-time
2071
+ */
2072
+ createdAtGe?: string;
2073
+ /**
2074
+ * This will return items where the createdAt is less than or equal to the specified value.
2075
+ * @format date-time
2076
+ */
2077
+ createdAtLe?: string;
2078
+ /**
2079
+ * This will return items where the updatedAt is greater than the specified value.
2080
+ * @format date-time
2081
+ */
2082
+ updatedAtGt?: string;
2083
+ /**
2084
+ * This will return items where the updatedAt is less than the specified value.
2085
+ * @format date-time
2086
+ */
2087
+ updatedAtLt?: string;
2088
+ /**
2089
+ * This will return items where the updatedAt is greater than or equal to the specified value.
2090
+ * @format date-time
2091
+ */
2092
+ updatedAtGe?: string;
2093
+ /**
2094
+ * This will return items where the updatedAt is less than or equal to the specified value.
2095
+ * @format date-time
2096
+ */
2097
+ updatedAtLe?: string;
2098
+ },
2099
+ params: RequestParams = {},
2100
+ ) =>
1752
2101
  this.request<Call[], any>({
1753
2102
  path: `/call`,
1754
2103
  method: "GET",
2104
+ query: query,
1755
2105
  secure: true,
1756
2106
  format: "json",
1757
2107
  ...params,
@@ -1928,7 +2278,57 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1928
2278
  * @request GET:/credential
1929
2279
  * @secure
1930
2280
  */
1931
- credentialControllerFindAll: (params: RequestParams = {}) =>
2281
+ credentialControllerFindAll: (
2282
+ query?: {
2283
+ /**
2284
+ * This is the maximum number of items to return. Defaults to 100.
2285
+ * @min 0
2286
+ * @max 1000
2287
+ */
2288
+ limit?: number;
2289
+ /**
2290
+ * This will return items where the createdAt is greater than the specified value.
2291
+ * @format date-time
2292
+ */
2293
+ createdAtGt?: string;
2294
+ /**
2295
+ * This will return items where the createdAt is less than the specified value.
2296
+ * @format date-time
2297
+ */
2298
+ createdAtLt?: string;
2299
+ /**
2300
+ * This will return items where the createdAt is greater than or equal to the specified value.
2301
+ * @format date-time
2302
+ */
2303
+ createdAtGe?: string;
2304
+ /**
2305
+ * This will return items where the createdAt is less than or equal to the specified value.
2306
+ * @format date-time
2307
+ */
2308
+ createdAtLe?: string;
2309
+ /**
2310
+ * This will return items where the updatedAt is greater than the specified value.
2311
+ * @format date-time
2312
+ */
2313
+ updatedAtGt?: string;
2314
+ /**
2315
+ * This will return items where the updatedAt is less than the specified value.
2316
+ * @format date-time
2317
+ */
2318
+ updatedAtLt?: string;
2319
+ /**
2320
+ * This will return items where the updatedAt is greater than or equal to the specified value.
2321
+ * @format date-time
2322
+ */
2323
+ updatedAtGe?: string;
2324
+ /**
2325
+ * This will return items where the updatedAt is less than or equal to the specified value.
2326
+ * @format date-time
2327
+ */
2328
+ updatedAtLe?: string;
2329
+ },
2330
+ params: RequestParams = {},
2331
+ ) =>
1932
2332
  this.request<
1933
2333
  (
1934
2334
  | ({
@@ -1975,6 +2375,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1975
2375
  >({
1976
2376
  path: `/credential`,
1977
2377
  method: "GET",
2378
+ query: query,
1978
2379
  secure: true,
1979
2380
  format: "json",
1980
2381
  ...params,
@@ -2252,10 +2653,61 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2252
2653
  * @request GET:/phone-number
2253
2654
  * @secure
2254
2655
  */
2255
- phoneNumberControllerFindAll: (params: RequestParams = {}) =>
2656
+ phoneNumberControllerFindAll: (
2657
+ query?: {
2658
+ /**
2659
+ * This is the maximum number of items to return. Defaults to 100.
2660
+ * @min 0
2661
+ * @max 1000
2662
+ */
2663
+ limit?: number;
2664
+ /**
2665
+ * This will return items where the createdAt is greater than the specified value.
2666
+ * @format date-time
2667
+ */
2668
+ createdAtGt?: string;
2669
+ /**
2670
+ * This will return items where the createdAt is less than the specified value.
2671
+ * @format date-time
2672
+ */
2673
+ createdAtLt?: string;
2674
+ /**
2675
+ * This will return items where the createdAt is greater than or equal to the specified value.
2676
+ * @format date-time
2677
+ */
2678
+ createdAtGe?: string;
2679
+ /**
2680
+ * This will return items where the createdAt is less than or equal to the specified value.
2681
+ * @format date-time
2682
+ */
2683
+ createdAtLe?: string;
2684
+ /**
2685
+ * This will return items where the updatedAt is greater than the specified value.
2686
+ * @format date-time
2687
+ */
2688
+ updatedAtGt?: string;
2689
+ /**
2690
+ * This will return items where the updatedAt is less than the specified value.
2691
+ * @format date-time
2692
+ */
2693
+ updatedAtLt?: string;
2694
+ /**
2695
+ * This will return items where the updatedAt is greater than or equal to the specified value.
2696
+ * @format date-time
2697
+ */
2698
+ updatedAtGe?: string;
2699
+ /**
2700
+ * This will return items where the updatedAt is less than or equal to the specified value.
2701
+ * @format date-time
2702
+ */
2703
+ updatedAtLe?: string;
2704
+ },
2705
+ params: RequestParams = {},
2706
+ ) =>
2256
2707
  this.request<PhoneNumber[], any>({
2257
2708
  path: `/phone-number`,
2258
2709
  method: "GET",
2710
+ query: query,
2259
2711
  secure: true,
2260
2712
  format: "json",
2261
2713
  ...params,