retell-sdk 6.2.5 → 6.2.7

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +30 -3
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +30 -3
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +24 -7
  8. package/resources/batch-call.d.mts.map +1 -1
  9. package/resources/batch-call.d.ts +24 -7
  10. package/resources/batch-call.d.ts.map +1 -1
  11. package/resources/call.d.mts +206 -34
  12. package/resources/call.d.mts.map +1 -1
  13. package/resources/call.d.ts +206 -34
  14. package/resources/call.d.ts.map +1 -1
  15. package/resources/call.js +2 -1
  16. package/resources/call.js.map +1 -1
  17. package/resources/call.mjs +2 -1
  18. package/resources/call.mjs.map +1 -1
  19. package/resources/chat-agent.d.mts +19 -3
  20. package/resources/chat-agent.d.mts.map +1 -1
  21. package/resources/chat-agent.d.ts +19 -3
  22. package/resources/chat-agent.d.ts.map +1 -1
  23. package/resources/chat.d.mts +66 -6
  24. package/resources/chat.d.mts.map +1 -1
  25. package/resources/chat.d.ts +66 -6
  26. package/resources/chat.d.ts.map +1 -1
  27. package/resources/conversation-flow-component.d.mts +294 -42
  28. package/resources/conversation-flow-component.d.mts.map +1 -1
  29. package/resources/conversation-flow-component.d.ts +294 -42
  30. package/resources/conversation-flow-component.d.ts.map +1 -1
  31. package/resources/conversation-flow.d.mts +609 -87
  32. package/resources/conversation-flow.d.mts.map +1 -1
  33. package/resources/conversation-flow.d.ts +609 -87
  34. package/resources/conversation-flow.d.ts.map +1 -1
  35. package/resources/llm.d.mts +24 -3
  36. package/resources/llm.d.mts.map +1 -1
  37. package/resources/llm.d.ts +24 -3
  38. package/resources/llm.d.ts.map +1 -1
  39. package/resources/playground.d.mts +22 -2
  40. package/resources/playground.d.mts.map +1 -1
  41. package/resources/playground.d.ts +22 -2
  42. package/resources/playground.d.ts.map +1 -1
  43. package/resources/tests.d.mts +3 -3
  44. package/resources/tests.d.mts.map +1 -1
  45. package/resources/tests.d.ts +3 -3
  46. package/resources/tests.d.ts.map +1 -1
  47. package/src/resources/agent.ts +37 -6
  48. package/src/resources/batch-call.ts +27 -11
  49. package/src/resources/call.ts +227 -46
  50. package/src/resources/chat-agent.ts +24 -6
  51. package/src/resources/chat.ts +72 -6
  52. package/src/resources/conversation-flow-component.ts +378 -126
  53. package/src/resources/conversation-flow.ts +783 -261
  54. package/src/resources/llm.ts +27 -6
  55. package/src/resources/playground.ts +24 -2
  56. package/src/resources/tests.ts +6 -9
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -187,7 +187,6 @@ export interface LlmResponse {
187
187
  model?:
188
188
  | 'gpt-4.1'
189
189
  | 'gpt-4.1-mini'
190
- | 'gpt-4.1-nano'
191
190
  | 'gpt-5'
192
191
  | 'gpt-5-mini'
193
192
  | 'gpt-5-nano'
@@ -203,7 +202,6 @@ export interface LlmResponse {
203
202
  | 'gpt-6-sol'
204
203
  | 'gpt-6.1-sol'
205
204
  | 'gpt-6-luna'
206
- | 'claude-4.5-sonnet'
207
205
  | 'claude-4.6-sonnet'
208
206
  | 'claude-5-opus'
209
207
  | 'claude-5.5-opus'
@@ -218,6 +216,7 @@ export interface LlmResponse {
218
216
  | 'gemini-3.6-flash'
219
217
  | 'gemini-3.7-flash'
220
218
  | 'gemini-3.8-flash'
219
+ | 'gemini-4-argon'
221
220
  | null;
222
221
 
223
222
  /**
@@ -235,6 +234,14 @@ export interface LlmResponse {
235
234
  */
236
235
  model_temperature?: number;
237
236
 
237
+ /**
238
+ * If set to true, will use the ultrafast tier for much faster response generation,
239
+ * default to false. Only supported by gpt-6.1-sol on voice agents; ignored
240
+ * otherwise. Takes precedence over model_high_priority. This feature comes with a
241
+ * higher cost.
242
+ */
243
+ model_ultrafast?: boolean | null;
244
+
238
245
  /**
239
246
  * Select the underlying speech to speech model. Can only set this or model, not
240
247
  * both.
@@ -3028,7 +3035,6 @@ export interface LlmCreateParams {
3028
3035
  model?:
3029
3036
  | 'gpt-4.1'
3030
3037
  | 'gpt-4.1-mini'
3031
- | 'gpt-4.1-nano'
3032
3038
  | 'gpt-5'
3033
3039
  | 'gpt-5-mini'
3034
3040
  | 'gpt-5-nano'
@@ -3044,7 +3050,6 @@ export interface LlmCreateParams {
3044
3050
  | 'gpt-6-sol'
3045
3051
  | 'gpt-6.1-sol'
3046
3052
  | 'gpt-6-luna'
3047
- | 'claude-4.5-sonnet'
3048
3053
  | 'claude-4.6-sonnet'
3049
3054
  | 'claude-5-opus'
3050
3055
  | 'claude-5.5-opus'
@@ -3059,6 +3064,7 @@ export interface LlmCreateParams {
3059
3064
  | 'gemini-3.6-flash'
3060
3065
  | 'gemini-3.7-flash'
3061
3066
  | 'gemini-3.8-flash'
3067
+ | 'gemini-4-argon'
3062
3068
  | null;
3063
3069
 
3064
3070
  /**
@@ -3076,6 +3082,14 @@ export interface LlmCreateParams {
3076
3082
  */
3077
3083
  model_temperature?: number;
3078
3084
 
3085
+ /**
3086
+ * If set to true, will use the ultrafast tier for much faster response generation,
3087
+ * default to false. Only supported by gpt-6.1-sol on voice agents; ignored
3088
+ * otherwise. Takes precedence over model_high_priority. This feature comes with a
3089
+ * higher cost.
3090
+ */
3091
+ model_ultrafast?: boolean | null;
3092
+
3079
3093
  /**
3080
3094
  * Select the underlying speech to speech model. Can only set this or model, not
3081
3095
  * both.
@@ -5866,7 +5880,6 @@ export interface LlmUpdateParams {
5866
5880
  model?:
5867
5881
  | 'gpt-4.1'
5868
5882
  | 'gpt-4.1-mini'
5869
- | 'gpt-4.1-nano'
5870
5883
  | 'gpt-5'
5871
5884
  | 'gpt-5-mini'
5872
5885
  | 'gpt-5-nano'
@@ -5882,7 +5895,6 @@ export interface LlmUpdateParams {
5882
5895
  | 'gpt-6-sol'
5883
5896
  | 'gpt-6.1-sol'
5884
5897
  | 'gpt-6-luna'
5885
- | 'claude-4.5-sonnet'
5886
5898
  | 'claude-4.6-sonnet'
5887
5899
  | 'claude-5-opus'
5888
5900
  | 'claude-5.5-opus'
@@ -5897,6 +5909,7 @@ export interface LlmUpdateParams {
5897
5909
  | 'gemini-3.6-flash'
5898
5910
  | 'gemini-3.7-flash'
5899
5911
  | 'gemini-3.8-flash'
5912
+ | 'gemini-4-argon'
5900
5913
  | null;
5901
5914
 
5902
5915
  /**
@@ -5914,6 +5927,14 @@ export interface LlmUpdateParams {
5914
5927
  */
5915
5928
  model_temperature?: number;
5916
5929
 
5930
+ /**
5931
+ * Body param: If set to true, will use the ultrafast tier for much faster response
5932
+ * generation, default to false. Only supported by gpt-6.1-sol on voice agents;
5933
+ * ignored otherwise. Takes precedence over model_high_priority. This feature comes
5934
+ * with a higher cost.
5935
+ */
5936
+ model_ultrafast?: boolean | null;
5937
+
5917
5938
  /**
5918
5939
  * Body param: Select the underlying speech to speech model. Can only set this or
5919
5940
  * model, not both.
@@ -140,7 +140,9 @@ export namespace PlaygroundCompletionResponse {
140
140
  arguments: string;
141
141
 
142
142
  /**
143
- * Name of the function in this tool call.
143
+ * Name of the tool. This is the configured tool name, or the node name for a
144
+ * built-in conversation flow node, so it can contain spaces and non-ASCII
145
+ * characters. To identify the kind of tool, use `type`.
144
146
  */
145
147
  name: string;
146
148
 
@@ -169,6 +171,15 @@ export namespace PlaygroundCompletionResponse {
169
171
  * internally to maintain reasoning chain in multi-turn function calling.
170
172
  */
171
173
  thought_signature?: string;
174
+
175
+ /**
176
+ * Kind of tool. Known values are `custom`, `code`, `mcp`, `integration_app`,
177
+ * `end_call`, `transfer_call`, `bridge_transfer`, `cancel_transfer`, `agent_swap`,
178
+ * `press_digit`, `send_sms`, `extract_dynamic_variable`, `adjust_voice_speed`,
179
+ * `book_appointment_cal`, and `check_availability_cal`. New values can be added.
180
+ * Absent on tool calls sent by a custom LLM, and on some older calls and chats.
181
+ */
182
+ type?: string;
172
183
  }
173
184
 
174
185
  export interface ToolCallResultMessageBase {
@@ -447,7 +458,9 @@ export namespace PlaygroundCompletionParams {
447
458
  arguments: string;
448
459
 
449
460
  /**
450
- * Name of the function in this tool call.
461
+ * Name of the tool. This is the configured tool name, or the node name for a
462
+ * built-in conversation flow node, so it can contain spaces and non-ASCII
463
+ * characters. To identify the kind of tool, use `type`.
451
464
  */
452
465
  name: string;
453
466
 
@@ -476,6 +489,15 @@ export namespace PlaygroundCompletionParams {
476
489
  * internally to maintain reasoning chain in multi-turn function calling.
477
490
  */
478
491
  thought_signature?: string;
492
+
493
+ /**
494
+ * Kind of tool. Known values are `custom`, `code`, `mcp`, `integration_app`,
495
+ * `end_call`, `transfer_call`, `bridge_transfer`, `cancel_transfer`, `agent_swap`,
496
+ * `press_digit`, `send_sms`, `extract_dynamic_variable`, `adjust_voice_speed`,
497
+ * `book_appointment_cal`, and `check_availability_cal`. New values can be added.
498
+ * Absent on tool calls sent by a custom LLM, and on some older calls and chats.
499
+ */
500
+ type?: string;
479
501
  }
480
502
 
481
503
  export interface ToolCallResultMessageBase {
@@ -213,7 +213,6 @@ export interface TestCaseDefinitionResponse {
213
213
  llm_model:
214
214
  | 'gpt-4.1'
215
215
  | 'gpt-4.1-mini'
216
- | 'gpt-4.1-nano'
217
216
  | 'gpt-5'
218
217
  | 'gpt-5-mini'
219
218
  | 'gpt-5-nano'
@@ -229,7 +228,6 @@ export interface TestCaseDefinitionResponse {
229
228
  | 'gpt-6-sol'
230
229
  | 'gpt-6.1-sol'
231
230
  | 'gpt-6-luna'
232
- | 'claude-4.5-sonnet'
233
231
  | 'claude-4.6-sonnet'
234
232
  | 'claude-5-opus'
235
233
  | 'claude-5.5-opus'
@@ -243,7 +241,8 @@ export interface TestCaseDefinitionResponse {
243
241
  | 'gemini-3.5-flash-lite'
244
242
  | 'gemini-3.6-flash'
245
243
  | 'gemini-3.7-flash'
246
- | 'gemini-3.8-flash';
244
+ | 'gemini-3.8-flash'
245
+ | 'gemini-4-argon';
247
246
 
248
247
  /**
249
248
  * Array of metric names to evaluate
@@ -553,7 +552,6 @@ export interface TestCreateTestCaseDefinitionParams {
553
552
  llm_model?:
554
553
  | 'gpt-4.1'
555
554
  | 'gpt-4.1-mini'
556
- | 'gpt-4.1-nano'
557
555
  | 'gpt-5'
558
556
  | 'gpt-5-mini'
559
557
  | 'gpt-5-nano'
@@ -569,7 +567,6 @@ export interface TestCreateTestCaseDefinitionParams {
569
567
  | 'gpt-6-sol'
570
568
  | 'gpt-6.1-sol'
571
569
  | 'gpt-6-luna'
572
- | 'claude-4.5-sonnet'
573
570
  | 'claude-4.6-sonnet'
574
571
  | 'claude-5-opus'
575
572
  | 'claude-5.5-opus'
@@ -583,7 +580,8 @@ export interface TestCreateTestCaseDefinitionParams {
583
580
  | 'gemini-3.5-flash-lite'
584
581
  | 'gemini-3.6-flash'
585
582
  | 'gemini-3.7-flash'
586
- | 'gemini-3.8-flash';
583
+ | 'gemini-3.8-flash'
584
+ | 'gemini-4-argon';
587
585
 
588
586
  /**
589
587
  * Mock tool calls for testing
@@ -767,7 +765,6 @@ export interface TestUpdateTestCaseDefinitionParams {
767
765
  llm_model?:
768
766
  | 'gpt-4.1'
769
767
  | 'gpt-4.1-mini'
770
- | 'gpt-4.1-nano'
771
768
  | 'gpt-5'
772
769
  | 'gpt-5-mini'
773
770
  | 'gpt-5-nano'
@@ -783,7 +780,6 @@ export interface TestUpdateTestCaseDefinitionParams {
783
780
  | 'gpt-6-sol'
784
781
  | 'gpt-6.1-sol'
785
782
  | 'gpt-6-luna'
786
- | 'claude-4.5-sonnet'
787
783
  | 'claude-4.6-sonnet'
788
784
  | 'claude-5-opus'
789
785
  | 'claude-5.5-opus'
@@ -797,7 +793,8 @@ export interface TestUpdateTestCaseDefinitionParams {
797
793
  | 'gemini-3.5-flash-lite'
798
794
  | 'gemini-3.6-flash'
799
795
  | 'gemini-3.7-flash'
800
- | 'gemini-3.8-flash';
796
+ | 'gemini-3.8-flash'
797
+ | 'gemini-4-argon';
801
798
 
802
799
  /**
803
800
  * Array of metric names to evaluate
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.2.5'; // x-release-please-version
1
+ export const VERSION = '6.2.7'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.2.5";
1
+ export declare const VERSION = "6.2.7";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.2.5";
1
+ export declare const VERSION = "6.2.7";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '6.2.5'; // x-release-please-version
4
+ exports.VERSION = '6.2.7'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.2.5'; // x-release-please-version
1
+ export const VERSION = '6.2.7'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map