retell-sdk 6.2.6 → 6.2.8

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 (51) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +141 -18
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +141 -18
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +61 -12
  8. package/resources/batch-call.d.mts.map +1 -1
  9. package/resources/batch-call.d.ts +61 -12
  10. package/resources/batch-call.d.ts.map +1 -1
  11. package/resources/call.d.mts +185 -37
  12. package/resources/call.d.mts.map +1 -1
  13. package/resources/call.d.ts +185 -37
  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 +130 -18
  20. package/resources/chat-agent.d.mts.map +1 -1
  21. package/resources/chat-agent.d.ts +130 -18
  22. package/resources/chat-agent.d.ts.map +1 -1
  23. package/resources/conversation-flow-component.d.mts +492 -42
  24. package/resources/conversation-flow-component.d.mts.map +1 -1
  25. package/resources/conversation-flow-component.d.ts +492 -42
  26. package/resources/conversation-flow-component.d.ts.map +1 -1
  27. package/resources/conversation-flow.d.mts +1005 -87
  28. package/resources/conversation-flow.d.mts.map +1 -1
  29. package/resources/conversation-flow.d.ts +1005 -87
  30. package/resources/conversation-flow.d.ts.map +1 -1
  31. package/resources/llm.d.mts +234 -3
  32. package/resources/llm.d.mts.map +1 -1
  33. package/resources/llm.d.ts +234 -3
  34. package/resources/llm.d.ts.map +1 -1
  35. package/resources/tests.d.mts +3 -3
  36. package/resources/tests.d.mts.map +1 -1
  37. package/resources/tests.d.ts +3 -3
  38. package/resources/tests.d.ts.map +1 -1
  39. package/src/resources/agent.ts +172 -15
  40. package/src/resources/batch-call.ts +75 -10
  41. package/src/resources/call.ts +227 -31
  42. package/src/resources/chat-agent.ts +159 -15
  43. package/src/resources/conversation-flow-component.ts +627 -42
  44. package/src/resources/conversation-flow.ts +1290 -87
  45. package/src/resources/llm.ts +291 -0
  46. package/src/resources/tests.ts +6 -3
  47. package/src/version.ts +1 -1
  48. package/version.d.mts +1 -1
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
  51. package/version.mjs +1 -1
@@ -216,6 +216,7 @@ export interface LlmResponse {
216
216
  | 'gemini-3.6-flash'
217
217
  | 'gemini-3.7-flash'
218
218
  | 'gemini-3.8-flash'
219
+ | 'gemini-4-argon'
219
220
  | null;
220
221
 
221
222
  /**
@@ -233,6 +234,14 @@ export interface LlmResponse {
233
234
  */
234
235
  model_temperature?: number;
235
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
+
236
245
  /**
237
246
  * Select the underlying speech to speech model. Can only set this or model, not
238
247
  * both.
@@ -814,6 +823,23 @@ export namespace LlmResponse {
814
823
  */
815
824
  execution_message_type?: 'prompt' | 'static_text';
816
825
 
826
+ /**
827
+ * SMS destination number configuration. If omitted, the message is sent to the
828
+ * customer number on the call.
829
+ */
830
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
831
+
832
+ /**
833
+ * SMS sender number configuration. If omitted, the message is sent from the
834
+ * agent's phone number.
835
+ */
836
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
837
+
838
+ /**
839
+ * Whether the agent should speak after the SMS tool finishes execution.
840
+ */
841
+ speak_after_execution?: boolean;
842
+
817
843
  /**
818
844
  * If true, the agent will speak a short line before sending the SMS. If omitted,
819
845
  * defaults to true (same as end_call / transfer_call tools).
@@ -851,6 +877,33 @@ export namespace LlmResponse {
851
877
 
852
878
  type: 'template';
853
879
  }
880
+
881
+ export interface DestinationCustomerNumber {
882
+ type: 'customer_number';
883
+ }
884
+
885
+ export interface DestinationPhoneNumber {
886
+ /**
887
+ * Destination phone number in E.164 format.
888
+ */
889
+ phone_number: string;
890
+
891
+ type: 'phone_number';
892
+
893
+ /**
894
+ * If true, skip E.164 validation for this phone number (same semantics as
895
+ * transfer_call ignore_e164_validation).
896
+ */
897
+ ignore_e164_validation?: boolean;
898
+ }
899
+
900
+ export interface SenderCurrentNumber {
901
+ type: 'current_number';
902
+ }
903
+
904
+ export interface SenderRetellLongCode {
905
+ type: 'retell_long_code';
906
+ }
854
907
  }
855
908
 
856
909
  export interface CustomTool {
@@ -2210,6 +2263,23 @@ export namespace LlmResponse {
2210
2263
  */
2211
2264
  execution_message_type?: 'prompt' | 'static_text';
2212
2265
 
2266
+ /**
2267
+ * SMS destination number configuration. If omitted, the message is sent to the
2268
+ * customer number on the call.
2269
+ */
2270
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
2271
+
2272
+ /**
2273
+ * SMS sender number configuration. If omitted, the message is sent from the
2274
+ * agent's phone number.
2275
+ */
2276
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
2277
+
2278
+ /**
2279
+ * Whether the agent should speak after the SMS tool finishes execution.
2280
+ */
2281
+ speak_after_execution?: boolean;
2282
+
2213
2283
  /**
2214
2284
  * If true, the agent will speak a short line before sending the SMS. If omitted,
2215
2285
  * defaults to true (same as end_call / transfer_call tools).
@@ -2247,6 +2317,33 @@ export namespace LlmResponse {
2247
2317
 
2248
2318
  type: 'template';
2249
2319
  }
2320
+
2321
+ export interface DestinationCustomerNumber {
2322
+ type: 'customer_number';
2323
+ }
2324
+
2325
+ export interface DestinationPhoneNumber {
2326
+ /**
2327
+ * Destination phone number in E.164 format.
2328
+ */
2329
+ phone_number: string;
2330
+
2331
+ type: 'phone_number';
2332
+
2333
+ /**
2334
+ * If true, skip E.164 validation for this phone number (same semantics as
2335
+ * transfer_call ignore_e164_validation).
2336
+ */
2337
+ ignore_e164_validation?: boolean;
2338
+ }
2339
+
2340
+ export interface SenderCurrentNumber {
2341
+ type: 'current_number';
2342
+ }
2343
+
2344
+ export interface SenderRetellLongCode {
2345
+ type: 'retell_long_code';
2346
+ }
2250
2347
  }
2251
2348
 
2252
2349
  export interface CustomTool {
@@ -3055,6 +3152,7 @@ export interface LlmCreateParams {
3055
3152
  | 'gemini-3.6-flash'
3056
3153
  | 'gemini-3.7-flash'
3057
3154
  | 'gemini-3.8-flash'
3155
+ | 'gemini-4-argon'
3058
3156
  | null;
3059
3157
 
3060
3158
  /**
@@ -3072,6 +3170,14 @@ export interface LlmCreateParams {
3072
3170
  */
3073
3171
  model_temperature?: number;
3074
3172
 
3173
+ /**
3174
+ * If set to true, will use the ultrafast tier for much faster response generation,
3175
+ * default to false. Only supported by gpt-6.1-sol on voice agents; ignored
3176
+ * otherwise. Takes precedence over model_high_priority. This feature comes with a
3177
+ * higher cost.
3178
+ */
3179
+ model_ultrafast?: boolean | null;
3180
+
3075
3181
  /**
3076
3182
  * Select the underlying speech to speech model. Can only set this or model, not
3077
3183
  * both.
@@ -3648,6 +3754,23 @@ export namespace LlmCreateParams {
3648
3754
  */
3649
3755
  execution_message_type?: 'prompt' | 'static_text';
3650
3756
 
3757
+ /**
3758
+ * SMS destination number configuration. If omitted, the message is sent to the
3759
+ * customer number on the call.
3760
+ */
3761
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
3762
+
3763
+ /**
3764
+ * SMS sender number configuration. If omitted, the message is sent from the
3765
+ * agent's phone number.
3766
+ */
3767
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
3768
+
3769
+ /**
3770
+ * Whether the agent should speak after the SMS tool finishes execution.
3771
+ */
3772
+ speak_after_execution?: boolean;
3773
+
3651
3774
  /**
3652
3775
  * If true, the agent will speak a short line before sending the SMS. If omitted,
3653
3776
  * defaults to true (same as end_call / transfer_call tools).
@@ -3685,6 +3808,33 @@ export namespace LlmCreateParams {
3685
3808
 
3686
3809
  type: 'template';
3687
3810
  }
3811
+
3812
+ export interface DestinationCustomerNumber {
3813
+ type: 'customer_number';
3814
+ }
3815
+
3816
+ export interface DestinationPhoneNumber {
3817
+ /**
3818
+ * Destination phone number in E.164 format.
3819
+ */
3820
+ phone_number: string;
3821
+
3822
+ type: 'phone_number';
3823
+
3824
+ /**
3825
+ * If true, skip E.164 validation for this phone number (same semantics as
3826
+ * transfer_call ignore_e164_validation).
3827
+ */
3828
+ ignore_e164_validation?: boolean;
3829
+ }
3830
+
3831
+ export interface SenderCurrentNumber {
3832
+ type: 'current_number';
3833
+ }
3834
+
3835
+ export interface SenderRetellLongCode {
3836
+ type: 'retell_long_code';
3837
+ }
3688
3838
  }
3689
3839
 
3690
3840
  export interface CustomTool {
@@ -5044,6 +5194,23 @@ export namespace LlmCreateParams {
5044
5194
  */
5045
5195
  execution_message_type?: 'prompt' | 'static_text';
5046
5196
 
5197
+ /**
5198
+ * SMS destination number configuration. If omitted, the message is sent to the
5199
+ * customer number on the call.
5200
+ */
5201
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
5202
+
5203
+ /**
5204
+ * SMS sender number configuration. If omitted, the message is sent from the
5205
+ * agent's phone number.
5206
+ */
5207
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
5208
+
5209
+ /**
5210
+ * Whether the agent should speak after the SMS tool finishes execution.
5211
+ */
5212
+ speak_after_execution?: boolean;
5213
+
5047
5214
  /**
5048
5215
  * If true, the agent will speak a short line before sending the SMS. If omitted,
5049
5216
  * defaults to true (same as end_call / transfer_call tools).
@@ -5081,6 +5248,33 @@ export namespace LlmCreateParams {
5081
5248
 
5082
5249
  type: 'template';
5083
5250
  }
5251
+
5252
+ export interface DestinationCustomerNumber {
5253
+ type: 'customer_number';
5254
+ }
5255
+
5256
+ export interface DestinationPhoneNumber {
5257
+ /**
5258
+ * Destination phone number in E.164 format.
5259
+ */
5260
+ phone_number: string;
5261
+
5262
+ type: 'phone_number';
5263
+
5264
+ /**
5265
+ * If true, skip E.164 validation for this phone number (same semantics as
5266
+ * transfer_call ignore_e164_validation).
5267
+ */
5268
+ ignore_e164_validation?: boolean;
5269
+ }
5270
+
5271
+ export interface SenderCurrentNumber {
5272
+ type: 'current_number';
5273
+ }
5274
+
5275
+ export interface SenderRetellLongCode {
5276
+ type: 'retell_long_code';
5277
+ }
5084
5278
  }
5085
5279
 
5086
5280
  export interface CustomTool {
@@ -5891,6 +6085,7 @@ export interface LlmUpdateParams {
5891
6085
  | 'gemini-3.6-flash'
5892
6086
  | 'gemini-3.7-flash'
5893
6087
  | 'gemini-3.8-flash'
6088
+ | 'gemini-4-argon'
5894
6089
  | null;
5895
6090
 
5896
6091
  /**
@@ -5908,6 +6103,14 @@ export interface LlmUpdateParams {
5908
6103
  */
5909
6104
  model_temperature?: number;
5910
6105
 
6106
+ /**
6107
+ * Body param: If set to true, will use the ultrafast tier for much faster response
6108
+ * generation, default to false. Only supported by gpt-6.1-sol on voice agents;
6109
+ * ignored otherwise. Takes precedence over model_high_priority. This feature comes
6110
+ * with a higher cost.
6111
+ */
6112
+ model_ultrafast?: boolean | null;
6113
+
5911
6114
  /**
5912
6115
  * Body param: Select the underlying speech to speech model. Can only set this or
5913
6116
  * model, not both.
@@ -6484,6 +6687,23 @@ export namespace LlmUpdateParams {
6484
6687
  */
6485
6688
  execution_message_type?: 'prompt' | 'static_text';
6486
6689
 
6690
+ /**
6691
+ * SMS destination number configuration. If omitted, the message is sent to the
6692
+ * customer number on the call.
6693
+ */
6694
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
6695
+
6696
+ /**
6697
+ * SMS sender number configuration. If omitted, the message is sent from the
6698
+ * agent's phone number.
6699
+ */
6700
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
6701
+
6702
+ /**
6703
+ * Whether the agent should speak after the SMS tool finishes execution.
6704
+ */
6705
+ speak_after_execution?: boolean;
6706
+
6487
6707
  /**
6488
6708
  * If true, the agent will speak a short line before sending the SMS. If omitted,
6489
6709
  * defaults to true (same as end_call / transfer_call tools).
@@ -6521,6 +6741,33 @@ export namespace LlmUpdateParams {
6521
6741
 
6522
6742
  type: 'template';
6523
6743
  }
6744
+
6745
+ export interface DestinationCustomerNumber {
6746
+ type: 'customer_number';
6747
+ }
6748
+
6749
+ export interface DestinationPhoneNumber {
6750
+ /**
6751
+ * Destination phone number in E.164 format.
6752
+ */
6753
+ phone_number: string;
6754
+
6755
+ type: 'phone_number';
6756
+
6757
+ /**
6758
+ * If true, skip E.164 validation for this phone number (same semantics as
6759
+ * transfer_call ignore_e164_validation).
6760
+ */
6761
+ ignore_e164_validation?: boolean;
6762
+ }
6763
+
6764
+ export interface SenderCurrentNumber {
6765
+ type: 'current_number';
6766
+ }
6767
+
6768
+ export interface SenderRetellLongCode {
6769
+ type: 'retell_long_code';
6770
+ }
6524
6771
  }
6525
6772
 
6526
6773
  export interface CustomTool {
@@ -7880,6 +8127,23 @@ export namespace LlmUpdateParams {
7880
8127
  */
7881
8128
  execution_message_type?: 'prompt' | 'static_text';
7882
8129
 
8130
+ /**
8131
+ * SMS destination number configuration. If omitted, the message is sent to the
8132
+ * customer number on the call.
8133
+ */
8134
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
8135
+
8136
+ /**
8137
+ * SMS sender number configuration. If omitted, the message is sent from the
8138
+ * agent's phone number.
8139
+ */
8140
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
8141
+
8142
+ /**
8143
+ * Whether the agent should speak after the SMS tool finishes execution.
8144
+ */
8145
+ speak_after_execution?: boolean;
8146
+
7883
8147
  /**
7884
8148
  * If true, the agent will speak a short line before sending the SMS. If omitted,
7885
8149
  * defaults to true (same as end_call / transfer_call tools).
@@ -7917,6 +8181,33 @@ export namespace LlmUpdateParams {
7917
8181
 
7918
8182
  type: 'template';
7919
8183
  }
8184
+
8185
+ export interface DestinationCustomerNumber {
8186
+ type: 'customer_number';
8187
+ }
8188
+
8189
+ export interface DestinationPhoneNumber {
8190
+ /**
8191
+ * Destination phone number in E.164 format.
8192
+ */
8193
+ phone_number: string;
8194
+
8195
+ type: 'phone_number';
8196
+
8197
+ /**
8198
+ * If true, skip E.164 validation for this phone number (same semantics as
8199
+ * transfer_call ignore_e164_validation).
8200
+ */
8201
+ ignore_e164_validation?: boolean;
8202
+ }
8203
+
8204
+ export interface SenderCurrentNumber {
8205
+ type: 'current_number';
8206
+ }
8207
+
8208
+ export interface SenderRetellLongCode {
8209
+ type: 'retell_long_code';
8210
+ }
7920
8211
  }
7921
8212
 
7922
8213
  export interface CustomTool {
@@ -241,7 +241,8 @@ export interface TestCaseDefinitionResponse {
241
241
  | 'gemini-3.5-flash-lite'
242
242
  | 'gemini-3.6-flash'
243
243
  | 'gemini-3.7-flash'
244
- | 'gemini-3.8-flash';
244
+ | 'gemini-3.8-flash'
245
+ | 'gemini-4-argon';
245
246
 
246
247
  /**
247
248
  * Array of metric names to evaluate
@@ -579,7 +580,8 @@ export interface TestCreateTestCaseDefinitionParams {
579
580
  | 'gemini-3.5-flash-lite'
580
581
  | 'gemini-3.6-flash'
581
582
  | 'gemini-3.7-flash'
582
- | 'gemini-3.8-flash';
583
+ | 'gemini-3.8-flash'
584
+ | 'gemini-4-argon';
583
585
 
584
586
  /**
585
587
  * Mock tool calls for testing
@@ -791,7 +793,8 @@ export interface TestUpdateTestCaseDefinitionParams {
791
793
  | 'gemini-3.5-flash-lite'
792
794
  | 'gemini-3.6-flash'
793
795
  | 'gemini-3.7-flash'
794
- | 'gemini-3.8-flash';
796
+ | 'gemini-3.8-flash'
797
+ | 'gemini-4-argon';
795
798
 
796
799
  /**
797
800
  * Array of metric names to evaluate
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.2.6'; // x-release-please-version
1
+ export const VERSION = '6.2.8'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.2.6";
1
+ export declare const VERSION = "6.2.8";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.2.6";
1
+ export declare const VERSION = "6.2.8";
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.6'; // x-release-please-version
4
+ exports.VERSION = '6.2.8'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.2.6'; // x-release-please-version
1
+ export const VERSION = '6.2.8'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map