retell-sdk 5.10.3 → 5.11.0

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 (42) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +316 -3
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +316 -3
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +105 -1
  8. package/resources/batch-call.d.mts.map +1 -1
  9. package/resources/batch-call.d.ts +105 -1
  10. package/resources/batch-call.d.ts.map +1 -1
  11. package/resources/call.d.mts +315 -3
  12. package/resources/call.d.mts.map +1 -1
  13. package/resources/call.d.ts +315 -3
  14. package/resources/call.d.ts.map +1 -1
  15. package/resources/chat-agent.d.mts +255 -3
  16. package/resources/chat-agent.d.mts.map +1 -1
  17. package/resources/chat-agent.d.ts +255 -3
  18. package/resources/chat-agent.d.ts.map +1 -1
  19. package/resources/conversation-flow-component.d.mts +2164 -730
  20. package/resources/conversation-flow-component.d.mts.map +1 -1
  21. package/resources/conversation-flow-component.d.ts +2164 -730
  22. package/resources/conversation-flow-component.d.ts.map +1 -1
  23. package/resources/conversation-flow.d.mts +13562 -10694
  24. package/resources/conversation-flow.d.mts.map +1 -1
  25. package/resources/conversation-flow.d.ts +13562 -10694
  26. package/resources/conversation-flow.d.ts.map +1 -1
  27. package/resources/llm.d.mts +246 -0
  28. package/resources/llm.d.mts.map +1 -1
  29. package/resources/llm.d.ts +246 -0
  30. package/resources/llm.d.ts.map +1 -1
  31. package/src/resources/agent.ts +376 -0
  32. package/src/resources/batch-call.ts +125 -0
  33. package/src/resources/call.ts +375 -0
  34. package/src/resources/chat-agent.ts +300 -0
  35. package/src/resources/conversation-flow-component.ts +8295 -6198
  36. package/src/resources/conversation-flow.ts +9667 -5473
  37. package/src/resources/llm.ts +288 -0
  38. package/src/version.ts +1 -1
  39. package/version.d.mts +1 -1
  40. package/version.d.ts +1 -1
  41. package/version.js +1 -1
  42. package/version.mjs +1 -1
@@ -814,6 +814,26 @@ export namespace LlmResponse {
814
814
  * to call the tool.
815
815
  */
816
816
  description?: string;
817
+
818
+ /**
819
+ * Describes what to say before sending the SMS. Only applicable when
820
+ * speak_during_execution is true.
821
+ */
822
+ execution_message_description?: string;
823
+
824
+ /**
825
+ * Type of execution message. "prompt" means the agent will use
826
+ * execution_message_description as a prompt to generate the message. "static_text"
827
+ * means the agent will speak the execution_message_description directly. Defaults
828
+ * to "prompt".
829
+ */
830
+ execution_message_type?: 'prompt' | 'static_text';
831
+
832
+ /**
833
+ * If true, the agent will speak a short line before sending the SMS. If omitted,
834
+ * defaults to true (same as end_call / transfer_call tools).
835
+ */
836
+ speak_during_execution?: boolean;
817
837
  }
818
838
 
819
839
  export namespace SendSMSTool {
@@ -1069,6 +1089,13 @@ export namespace LlmResponse {
1069
1089
  */
1070
1090
  type: 'string';
1071
1091
 
1092
+ /**
1093
+ * Optional instruction to help decide whether this field needs to be populated in
1094
+ * the analysis. If not set, the field is always included. If required is true,
1095
+ * this is ignored.
1096
+ */
1097
+ conditional_prompt?: string;
1098
+
1072
1099
  /**
1073
1100
  * Examples of the variable value to teach model the style and syntax.
1074
1101
  */
@@ -1102,6 +1129,13 @@ export namespace LlmResponse {
1102
1129
  */
1103
1130
  type: 'enum';
1104
1131
 
1132
+ /**
1133
+ * Optional instruction to help decide whether this field needs to be populated in
1134
+ * the analysis. If not set, the field is always included. If required is true,
1135
+ * this is ignored.
1136
+ */
1137
+ conditional_prompt?: string;
1138
+
1105
1139
  /**
1106
1140
  * Whether this data is required. If true and the data is not extracted, the call
1107
1141
  * will be marked as unsuccessful.
@@ -1125,6 +1159,13 @@ export namespace LlmResponse {
1125
1159
  */
1126
1160
  type: 'boolean';
1127
1161
 
1162
+ /**
1163
+ * Optional instruction to help decide whether this field needs to be populated in
1164
+ * the analysis. If not set, the field is always included. If required is true,
1165
+ * this is ignored.
1166
+ */
1167
+ conditional_prompt?: string;
1168
+
1128
1169
  /**
1129
1170
  * Whether this data is required. If true and the data is not extracted, the call
1130
1171
  * will be marked as unsuccessful.
@@ -1148,6 +1189,13 @@ export namespace LlmResponse {
1148
1189
  */
1149
1190
  type: 'number';
1150
1191
 
1192
+ /**
1193
+ * Optional instruction to help decide whether this field needs to be populated in
1194
+ * the analysis. If not set, the field is always included. If required is true,
1195
+ * this is ignored.
1196
+ */
1197
+ conditional_prompt?: string;
1198
+
1151
1199
  /**
1152
1200
  * Whether this data is required. If true and the data is not extracted, the call
1153
1201
  * will be marked as unsuccessful.
@@ -2000,6 +2048,26 @@ export namespace LlmResponse {
2000
2048
  * to call the tool.
2001
2049
  */
2002
2050
  description?: string;
2051
+
2052
+ /**
2053
+ * Describes what to say before sending the SMS. Only applicable when
2054
+ * speak_during_execution is true.
2055
+ */
2056
+ execution_message_description?: string;
2057
+
2058
+ /**
2059
+ * Type of execution message. "prompt" means the agent will use
2060
+ * execution_message_description as a prompt to generate the message. "static_text"
2061
+ * means the agent will speak the execution_message_description directly. Defaults
2062
+ * to "prompt".
2063
+ */
2064
+ execution_message_type?: 'prompt' | 'static_text';
2065
+
2066
+ /**
2067
+ * If true, the agent will speak a short line before sending the SMS. If omitted,
2068
+ * defaults to true (same as end_call / transfer_call tools).
2069
+ */
2070
+ speak_during_execution?: boolean;
2003
2071
  }
2004
2072
 
2005
2073
  export namespace SendSMSTool {
@@ -2255,6 +2323,13 @@ export namespace LlmResponse {
2255
2323
  */
2256
2324
  type: 'string';
2257
2325
 
2326
+ /**
2327
+ * Optional instruction to help decide whether this field needs to be populated in
2328
+ * the analysis. If not set, the field is always included. If required is true,
2329
+ * this is ignored.
2330
+ */
2331
+ conditional_prompt?: string;
2332
+
2258
2333
  /**
2259
2334
  * Examples of the variable value to teach model the style and syntax.
2260
2335
  */
@@ -2288,6 +2363,13 @@ export namespace LlmResponse {
2288
2363
  */
2289
2364
  type: 'enum';
2290
2365
 
2366
+ /**
2367
+ * Optional instruction to help decide whether this field needs to be populated in
2368
+ * the analysis. If not set, the field is always included. If required is true,
2369
+ * this is ignored.
2370
+ */
2371
+ conditional_prompt?: string;
2372
+
2291
2373
  /**
2292
2374
  * Whether this data is required. If true and the data is not extracted, the call
2293
2375
  * will be marked as unsuccessful.
@@ -2311,6 +2393,13 @@ export namespace LlmResponse {
2311
2393
  */
2312
2394
  type: 'boolean';
2313
2395
 
2396
+ /**
2397
+ * Optional instruction to help decide whether this field needs to be populated in
2398
+ * the analysis. If not set, the field is always included. If required is true,
2399
+ * this is ignored.
2400
+ */
2401
+ conditional_prompt?: string;
2402
+
2314
2403
  /**
2315
2404
  * Whether this data is required. If true and the data is not extracted, the call
2316
2405
  * will be marked as unsuccessful.
@@ -2334,6 +2423,13 @@ export namespace LlmResponse {
2334
2423
  */
2335
2424
  type: 'number';
2336
2425
 
2426
+ /**
2427
+ * Optional instruction to help decide whether this field needs to be populated in
2428
+ * the analysis. If not set, the field is always included. If required is true,
2429
+ * this is ignored.
2430
+ */
2431
+ conditional_prompt?: string;
2432
+
2337
2433
  /**
2338
2434
  * Whether this data is required. If true and the data is not extracted, the call
2339
2435
  * will be marked as unsuccessful.
@@ -3194,6 +3290,26 @@ export namespace LlmCreateParams {
3194
3290
  * to call the tool.
3195
3291
  */
3196
3292
  description?: string;
3293
+
3294
+ /**
3295
+ * Describes what to say before sending the SMS. Only applicable when
3296
+ * speak_during_execution is true.
3297
+ */
3298
+ execution_message_description?: string;
3299
+
3300
+ /**
3301
+ * Type of execution message. "prompt" means the agent will use
3302
+ * execution_message_description as a prompt to generate the message. "static_text"
3303
+ * means the agent will speak the execution_message_description directly. Defaults
3304
+ * to "prompt".
3305
+ */
3306
+ execution_message_type?: 'prompt' | 'static_text';
3307
+
3308
+ /**
3309
+ * If true, the agent will speak a short line before sending the SMS. If omitted,
3310
+ * defaults to true (same as end_call / transfer_call tools).
3311
+ */
3312
+ speak_during_execution?: boolean;
3197
3313
  }
3198
3314
 
3199
3315
  export namespace SendSMSTool {
@@ -3449,6 +3565,13 @@ export namespace LlmCreateParams {
3449
3565
  */
3450
3566
  type: 'string';
3451
3567
 
3568
+ /**
3569
+ * Optional instruction to help decide whether this field needs to be populated in
3570
+ * the analysis. If not set, the field is always included. If required is true,
3571
+ * this is ignored.
3572
+ */
3573
+ conditional_prompt?: string;
3574
+
3452
3575
  /**
3453
3576
  * Examples of the variable value to teach model the style and syntax.
3454
3577
  */
@@ -3482,6 +3605,13 @@ export namespace LlmCreateParams {
3482
3605
  */
3483
3606
  type: 'enum';
3484
3607
 
3608
+ /**
3609
+ * Optional instruction to help decide whether this field needs to be populated in
3610
+ * the analysis. If not set, the field is always included. If required is true,
3611
+ * this is ignored.
3612
+ */
3613
+ conditional_prompt?: string;
3614
+
3485
3615
  /**
3486
3616
  * Whether this data is required. If true and the data is not extracted, the call
3487
3617
  * will be marked as unsuccessful.
@@ -3505,6 +3635,13 @@ export namespace LlmCreateParams {
3505
3635
  */
3506
3636
  type: 'boolean';
3507
3637
 
3638
+ /**
3639
+ * Optional instruction to help decide whether this field needs to be populated in
3640
+ * the analysis. If not set, the field is always included. If required is true,
3641
+ * this is ignored.
3642
+ */
3643
+ conditional_prompt?: string;
3644
+
3508
3645
  /**
3509
3646
  * Whether this data is required. If true and the data is not extracted, the call
3510
3647
  * will be marked as unsuccessful.
@@ -3528,6 +3665,13 @@ export namespace LlmCreateParams {
3528
3665
  */
3529
3666
  type: 'number';
3530
3667
 
3668
+ /**
3669
+ * Optional instruction to help decide whether this field needs to be populated in
3670
+ * the analysis. If not set, the field is always included. If required is true,
3671
+ * this is ignored.
3672
+ */
3673
+ conditional_prompt?: string;
3674
+
3531
3675
  /**
3532
3676
  * Whether this data is required. If true and the data is not extracted, the call
3533
3677
  * will be marked as unsuccessful.
@@ -4380,6 +4524,26 @@ export namespace LlmCreateParams {
4380
4524
  * to call the tool.
4381
4525
  */
4382
4526
  description?: string;
4527
+
4528
+ /**
4529
+ * Describes what to say before sending the SMS. Only applicable when
4530
+ * speak_during_execution is true.
4531
+ */
4532
+ execution_message_description?: string;
4533
+
4534
+ /**
4535
+ * Type of execution message. "prompt" means the agent will use
4536
+ * execution_message_description as a prompt to generate the message. "static_text"
4537
+ * means the agent will speak the execution_message_description directly. Defaults
4538
+ * to "prompt".
4539
+ */
4540
+ execution_message_type?: 'prompt' | 'static_text';
4541
+
4542
+ /**
4543
+ * If true, the agent will speak a short line before sending the SMS. If omitted,
4544
+ * defaults to true (same as end_call / transfer_call tools).
4545
+ */
4546
+ speak_during_execution?: boolean;
4383
4547
  }
4384
4548
 
4385
4549
  export namespace SendSMSTool {
@@ -4635,6 +4799,13 @@ export namespace LlmCreateParams {
4635
4799
  */
4636
4800
  type: 'string';
4637
4801
 
4802
+ /**
4803
+ * Optional instruction to help decide whether this field needs to be populated in
4804
+ * the analysis. If not set, the field is always included. If required is true,
4805
+ * this is ignored.
4806
+ */
4807
+ conditional_prompt?: string;
4808
+
4638
4809
  /**
4639
4810
  * Examples of the variable value to teach model the style and syntax.
4640
4811
  */
@@ -4668,6 +4839,13 @@ export namespace LlmCreateParams {
4668
4839
  */
4669
4840
  type: 'enum';
4670
4841
 
4842
+ /**
4843
+ * Optional instruction to help decide whether this field needs to be populated in
4844
+ * the analysis. If not set, the field is always included. If required is true,
4845
+ * this is ignored.
4846
+ */
4847
+ conditional_prompt?: string;
4848
+
4671
4849
  /**
4672
4850
  * Whether this data is required. If true and the data is not extracted, the call
4673
4851
  * will be marked as unsuccessful.
@@ -4691,6 +4869,13 @@ export namespace LlmCreateParams {
4691
4869
  */
4692
4870
  type: 'boolean';
4693
4871
 
4872
+ /**
4873
+ * Optional instruction to help decide whether this field needs to be populated in
4874
+ * the analysis. If not set, the field is always included. If required is true,
4875
+ * this is ignored.
4876
+ */
4877
+ conditional_prompt?: string;
4878
+
4694
4879
  /**
4695
4880
  * Whether this data is required. If true and the data is not extracted, the call
4696
4881
  * will be marked as unsuccessful.
@@ -4714,6 +4899,13 @@ export namespace LlmCreateParams {
4714
4899
  */
4715
4900
  type: 'number';
4716
4901
 
4902
+ /**
4903
+ * Optional instruction to help decide whether this field needs to be populated in
4904
+ * the analysis. If not set, the field is always included. If required is true,
4905
+ * this is ignored.
4906
+ */
4907
+ conditional_prompt?: string;
4908
+
4717
4909
  /**
4718
4910
  * Whether this data is required. If true and the data is not extracted, the call
4719
4911
  * will be marked as unsuccessful.
@@ -5588,6 +5780,26 @@ export namespace LlmUpdateParams {
5588
5780
  * to call the tool.
5589
5781
  */
5590
5782
  description?: string;
5783
+
5784
+ /**
5785
+ * Describes what to say before sending the SMS. Only applicable when
5786
+ * speak_during_execution is true.
5787
+ */
5788
+ execution_message_description?: string;
5789
+
5790
+ /**
5791
+ * Type of execution message. "prompt" means the agent will use
5792
+ * execution_message_description as a prompt to generate the message. "static_text"
5793
+ * means the agent will speak the execution_message_description directly. Defaults
5794
+ * to "prompt".
5795
+ */
5796
+ execution_message_type?: 'prompt' | 'static_text';
5797
+
5798
+ /**
5799
+ * If true, the agent will speak a short line before sending the SMS. If omitted,
5800
+ * defaults to true (same as end_call / transfer_call tools).
5801
+ */
5802
+ speak_during_execution?: boolean;
5591
5803
  }
5592
5804
 
5593
5805
  export namespace SendSMSTool {
@@ -5843,6 +6055,13 @@ export namespace LlmUpdateParams {
5843
6055
  */
5844
6056
  type: 'string';
5845
6057
 
6058
+ /**
6059
+ * Optional instruction to help decide whether this field needs to be populated in
6060
+ * the analysis. If not set, the field is always included. If required is true,
6061
+ * this is ignored.
6062
+ */
6063
+ conditional_prompt?: string;
6064
+
5846
6065
  /**
5847
6066
  * Examples of the variable value to teach model the style and syntax.
5848
6067
  */
@@ -5876,6 +6095,13 @@ export namespace LlmUpdateParams {
5876
6095
  */
5877
6096
  type: 'enum';
5878
6097
 
6098
+ /**
6099
+ * Optional instruction to help decide whether this field needs to be populated in
6100
+ * the analysis. If not set, the field is always included. If required is true,
6101
+ * this is ignored.
6102
+ */
6103
+ conditional_prompt?: string;
6104
+
5879
6105
  /**
5880
6106
  * Whether this data is required. If true and the data is not extracted, the call
5881
6107
  * will be marked as unsuccessful.
@@ -5899,6 +6125,13 @@ export namespace LlmUpdateParams {
5899
6125
  */
5900
6126
  type: 'boolean';
5901
6127
 
6128
+ /**
6129
+ * Optional instruction to help decide whether this field needs to be populated in
6130
+ * the analysis. If not set, the field is always included. If required is true,
6131
+ * this is ignored.
6132
+ */
6133
+ conditional_prompt?: string;
6134
+
5902
6135
  /**
5903
6136
  * Whether this data is required. If true and the data is not extracted, the call
5904
6137
  * will be marked as unsuccessful.
@@ -5922,6 +6155,13 @@ export namespace LlmUpdateParams {
5922
6155
  */
5923
6156
  type: 'number';
5924
6157
 
6158
+ /**
6159
+ * Optional instruction to help decide whether this field needs to be populated in
6160
+ * the analysis. If not set, the field is always included. If required is true,
6161
+ * this is ignored.
6162
+ */
6163
+ conditional_prompt?: string;
6164
+
5925
6165
  /**
5926
6166
  * Whether this data is required. If true and the data is not extracted, the call
5927
6167
  * will be marked as unsuccessful.
@@ -6774,6 +7014,26 @@ export namespace LlmUpdateParams {
6774
7014
  * to call the tool.
6775
7015
  */
6776
7016
  description?: string;
7017
+
7018
+ /**
7019
+ * Describes what to say before sending the SMS. Only applicable when
7020
+ * speak_during_execution is true.
7021
+ */
7022
+ execution_message_description?: string;
7023
+
7024
+ /**
7025
+ * Type of execution message. "prompt" means the agent will use
7026
+ * execution_message_description as a prompt to generate the message. "static_text"
7027
+ * means the agent will speak the execution_message_description directly. Defaults
7028
+ * to "prompt".
7029
+ */
7030
+ execution_message_type?: 'prompt' | 'static_text';
7031
+
7032
+ /**
7033
+ * If true, the agent will speak a short line before sending the SMS. If omitted,
7034
+ * defaults to true (same as end_call / transfer_call tools).
7035
+ */
7036
+ speak_during_execution?: boolean;
6777
7037
  }
6778
7038
 
6779
7039
  export namespace SendSMSTool {
@@ -7029,6 +7289,13 @@ export namespace LlmUpdateParams {
7029
7289
  */
7030
7290
  type: 'string';
7031
7291
 
7292
+ /**
7293
+ * Optional instruction to help decide whether this field needs to be populated in
7294
+ * the analysis. If not set, the field is always included. If required is true,
7295
+ * this is ignored.
7296
+ */
7297
+ conditional_prompt?: string;
7298
+
7032
7299
  /**
7033
7300
  * Examples of the variable value to teach model the style and syntax.
7034
7301
  */
@@ -7062,6 +7329,13 @@ export namespace LlmUpdateParams {
7062
7329
  */
7063
7330
  type: 'enum';
7064
7331
 
7332
+ /**
7333
+ * Optional instruction to help decide whether this field needs to be populated in
7334
+ * the analysis. If not set, the field is always included. If required is true,
7335
+ * this is ignored.
7336
+ */
7337
+ conditional_prompt?: string;
7338
+
7065
7339
  /**
7066
7340
  * Whether this data is required. If true and the data is not extracted, the call
7067
7341
  * will be marked as unsuccessful.
@@ -7085,6 +7359,13 @@ export namespace LlmUpdateParams {
7085
7359
  */
7086
7360
  type: 'boolean';
7087
7361
 
7362
+ /**
7363
+ * Optional instruction to help decide whether this field needs to be populated in
7364
+ * the analysis. If not set, the field is always included. If required is true,
7365
+ * this is ignored.
7366
+ */
7367
+ conditional_prompt?: string;
7368
+
7088
7369
  /**
7089
7370
  * Whether this data is required. If true and the data is not extracted, the call
7090
7371
  * will be marked as unsuccessful.
@@ -7108,6 +7389,13 @@ export namespace LlmUpdateParams {
7108
7389
  */
7109
7390
  type: 'number';
7110
7391
 
7392
+ /**
7393
+ * Optional instruction to help decide whether this field needs to be populated in
7394
+ * the analysis. If not set, the field is always included. If required is true,
7395
+ * this is ignored.
7396
+ */
7397
+ conditional_prompt?: string;
7398
+
7111
7399
  /**
7112
7400
  * Whether this data is required. If true and the data is not extracted, the call
7113
7401
  * will be marked as unsuccessful.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.10.3'; // x-release-please-version
1
+ export const VERSION = '5.11.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.10.3";
1
+ export declare const VERSION = "5.11.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.10.3";
1
+ export declare const VERSION = "5.11.0";
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 = '5.10.3'; // x-release-please-version
4
+ exports.VERSION = '5.11.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.10.3'; // x-release-please-version
1
+ export const VERSION = '5.11.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map