retell-sdk 5.12.0 → 5.13.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 (66) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/internal/utils/env.js +2 -2
  3. package/internal/utils/env.js.map +1 -1
  4. package/internal/utils/env.mjs +2 -2
  5. package/internal/utils/env.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/agent.d.mts +22 -45
  8. package/resources/agent.d.mts.map +1 -1
  9. package/resources/agent.d.ts +22 -45
  10. package/resources/agent.d.ts.map +1 -1
  11. package/resources/batch-call.d.mts +8 -17
  12. package/resources/batch-call.d.mts.map +1 -1
  13. package/resources/batch-call.d.ts +8 -17
  14. package/resources/batch-call.d.ts.map +1 -1
  15. package/resources/call.d.mts +55 -54
  16. package/resources/call.d.mts.map +1 -1
  17. package/resources/call.d.ts +55 -54
  18. package/resources/call.d.ts.map +1 -1
  19. package/resources/chat-agent.d.mts +10 -6
  20. package/resources/chat-agent.d.mts.map +1 -1
  21. package/resources/chat-agent.d.ts +10 -6
  22. package/resources/chat-agent.d.ts.map +1 -1
  23. package/resources/chat.d.mts +90 -76
  24. package/resources/chat.d.mts.map +1 -1
  25. package/resources/chat.d.ts +90 -76
  26. package/resources/chat.d.ts.map +1 -1
  27. package/resources/conversation-flow-component.d.mts +207 -48
  28. package/resources/conversation-flow-component.d.mts.map +1 -1
  29. package/resources/conversation-flow-component.d.ts +207 -48
  30. package/resources/conversation-flow-component.d.ts.map +1 -1
  31. package/resources/conversation-flow.d.mts +417 -99
  32. package/resources/conversation-flow.d.mts.map +1 -1
  33. package/resources/conversation-flow.d.ts +417 -99
  34. package/resources/conversation-flow.d.ts.map +1 -1
  35. package/resources/llm.d.mts +153 -9
  36. package/resources/llm.d.mts.map +1 -1
  37. package/resources/llm.d.ts +153 -9
  38. package/resources/llm.d.ts.map +1 -1
  39. package/resources/phone-number.d.mts +22 -125
  40. package/resources/phone-number.d.mts.map +1 -1
  41. package/resources/phone-number.d.ts +22 -125
  42. package/resources/phone-number.d.ts.map +1 -1
  43. package/resources/phone-number.js +14 -2
  44. package/resources/phone-number.js.map +1 -1
  45. package/resources/phone-number.mjs +14 -2
  46. package/resources/phone-number.mjs.map +1 -1
  47. package/resources/tests.d.mts +4 -8
  48. package/resources/tests.d.mts.map +1 -1
  49. package/resources/tests.d.ts +4 -8
  50. package/resources/tests.d.ts.map +1 -1
  51. package/src/internal/utils/env.ts +2 -2
  52. package/src/resources/agent.ts +23 -42
  53. package/src/resources/batch-call.ts +9 -15
  54. package/src/resources/call.ts +64 -47
  55. package/src/resources/chat-agent.ts +11 -3
  56. package/src/resources/chat.ts +106 -90
  57. package/src/resources/conversation-flow-component.ts +300 -48
  58. package/src/resources/conversation-flow.ts +606 -99
  59. package/src/resources/llm.ts +201 -6
  60. package/src/resources/phone-number.ts +22 -141
  61. package/src/resources/tests.ts +7 -9
  62. package/src/version.ts +1 -1
  63. package/version.d.mts +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. package/version.mjs +1 -1
@@ -675,7 +675,8 @@ export namespace ConversationFlowComponentResponse {
675
675
  | 'claude-4.5-haiku'
676
676
  | 'gemini-2.5-flash'
677
677
  | 'gemini-2.5-flash-lite'
678
- | 'gemini-3.0-flash';
678
+ | 'gemini-3.0-flash'
679
+ | 'gemini-3.1-flash-lite';
679
680
 
680
681
  /**
681
682
  * Type of model choice
@@ -1275,7 +1276,8 @@ export namespace ConversationFlowComponentResponse {
1275
1276
  | 'claude-4.5-haiku'
1276
1277
  | 'gemini-2.5-flash'
1277
1278
  | 'gemini-2.5-flash-lite'
1278
- | 'gemini-3.0-flash';
1279
+ | 'gemini-3.0-flash'
1280
+ | 'gemini-3.1-flash-lite';
1279
1281
 
1280
1282
  /**
1281
1283
  * Type of model choice
@@ -1919,7 +1921,10 @@ export namespace ConversationFlowComponentResponse {
1919
1921
  */
1920
1922
  name: string;
1921
1923
 
1922
- sms_content: SendSMSTool.SMSContentPredefined | SendSMSTool.SMSContentInferred;
1924
+ sms_content:
1925
+ | SendSMSTool.SMSContentPredefined
1926
+ | SendSMSTool.SMSContentInferred
1927
+ | SendSMSTool.SMSContentTemplate;
1923
1928
 
1924
1929
  type: 'send_sms';
1925
1930
 
@@ -1970,6 +1975,16 @@ export namespace ConversationFlowComponentResponse {
1970
1975
 
1971
1976
  type?: 'inferred';
1972
1977
  }
1978
+
1979
+ export interface SMSContentTemplate {
1980
+ /**
1981
+ * The template to use for the SMS content. "info_collection" sends a predefined
1982
+ * message requesting information from the user.
1983
+ */
1984
+ template: 'info_collection';
1985
+
1986
+ type: 'template';
1987
+ }
1973
1988
  }
1974
1989
 
1975
1990
  export interface CustomTool {
@@ -2000,6 +2015,13 @@ export namespace ConversationFlowComponentResponse {
2000
2015
  */
2001
2016
  description?: string;
2002
2017
 
2018
+ /**
2019
+ * If true, play a typing sound on the agent audio track while this tool is
2020
+ * executing. Useful when the tool takes a noticeable amount of time to prevent
2021
+ * silence on the call.
2022
+ */
2023
+ enable_typing_sound?: boolean;
2024
+
2003
2025
  /**
2004
2026
  * The description for the sentence agent say during execution. Only applicable
2005
2027
  * when speak_during_execution is true. Can write what to say or even provide
@@ -2119,6 +2141,12 @@ export namespace ConversationFlowComponentResponse {
2119
2141
  */
2120
2142
  description?: string;
2121
2143
 
2144
+ /**
2145
+ * If true, play a typing sound on the agent audio track while this tool is
2146
+ * executing.
2147
+ */
2148
+ enable_typing_sound?: boolean;
2149
+
2122
2150
  /**
2123
2151
  * The description for the sentence agent say during execution. Only applicable
2124
2152
  * when speak_during_execution is true.
@@ -2409,6 +2437,12 @@ export namespace ConversationFlowComponentResponse {
2409
2437
 
2410
2438
  type: 'mcp';
2411
2439
 
2440
+ /**
2441
+ * If true, play a typing sound on the agent audio track while this MCP tool is
2442
+ * executing.
2443
+ */
2444
+ enable_typing_sound?: boolean;
2445
+
2412
2446
  /**
2413
2447
  * The description for the sentence agent say during execution. Only applicable
2414
2448
  * when speak_during_execution is true. Can write what to say or even provide
@@ -2714,7 +2748,8 @@ export namespace ConversationFlowComponentResponse {
2714
2748
  | 'claude-4.5-haiku'
2715
2749
  | 'gemini-2.5-flash'
2716
2750
  | 'gemini-2.5-flash-lite'
2717
- | 'gemini-3.0-flash';
2751
+ | 'gemini-3.0-flash'
2752
+ | 'gemini-3.1-flash-lite';
2718
2753
 
2719
2754
  /**
2720
2755
  * Type of model choice
@@ -2763,6 +2798,11 @@ export namespace ConversationFlowComponentResponse {
2763
2798
 
2764
2799
  else_edge?: FunctionNode.ElseEdge;
2765
2800
 
2801
+ /**
2802
+ * If true, play a typing sound while this function executes.
2803
+ */
2804
+ enable_typing_sound?: boolean;
2805
+
2766
2806
  finetune_transition_examples?: Array<FunctionNode.FinetuneTransitionExample>;
2767
2807
 
2768
2808
  global_node_setting?: FunctionNode.GlobalNodeSetting;
@@ -3183,7 +3223,8 @@ export namespace ConversationFlowComponentResponse {
3183
3223
  | 'claude-4.5-haiku'
3184
3224
  | 'gemini-2.5-flash'
3185
3225
  | 'gemini-2.5-flash-lite'
3186
- | 'gemini-3.0-flash';
3226
+ | 'gemini-3.0-flash'
3227
+ | 'gemini-3.1-flash-lite';
3187
3228
 
3188
3229
  /**
3189
3230
  * Type of model choice
@@ -3227,6 +3268,11 @@ export namespace ConversationFlowComponentResponse {
3227
3268
 
3228
3269
  else_edge?: CodeNode.ElseEdge;
3229
3270
 
3271
+ /**
3272
+ * If true, play a typing sound while code executes.
3273
+ */
3274
+ enable_typing_sound?: boolean;
3275
+
3230
3276
  finetune_transition_examples?: Array<CodeNode.FinetuneTransitionExample>;
3231
3277
 
3232
3278
  global_node_setting?: CodeNode.GlobalNodeSetting;
@@ -3659,7 +3705,8 @@ export namespace ConversationFlowComponentResponse {
3659
3705
  | 'claude-4.5-haiku'
3660
3706
  | 'gemini-2.5-flash'
3661
3707
  | 'gemini-2.5-flash-lite'
3662
- | 'gemini-3.0-flash';
3708
+ | 'gemini-3.0-flash'
3709
+ | 'gemini-3.1-flash-lite';
3663
3710
 
3664
3711
  /**
3665
3712
  * Type of model choice
@@ -4311,7 +4358,8 @@ export namespace ConversationFlowComponentResponse {
4311
4358
  | 'claude-4.5-haiku'
4312
4359
  | 'gemini-2.5-flash'
4313
4360
  | 'gemini-2.5-flash-lite'
4314
- | 'gemini-3.0-flash';
4361
+ | 'gemini-3.0-flash'
4362
+ | 'gemini-3.1-flash-lite';
4315
4363
 
4316
4364
  /**
4317
4365
  * Type of model choice
@@ -4677,7 +4725,8 @@ export namespace ConversationFlowComponentResponse {
4677
4725
  | 'claude-4.5-haiku'
4678
4726
  | 'gemini-2.5-flash'
4679
4727
  | 'gemini-2.5-flash-lite'
4680
- | 'gemini-3.0-flash';
4728
+ | 'gemini-3.0-flash'
4729
+ | 'gemini-3.1-flash-lite';
4681
4730
 
4682
4731
  /**
4683
4732
  * Type of model choice
@@ -5100,7 +5149,8 @@ export namespace ConversationFlowComponentResponse {
5100
5149
  | 'claude-4.5-haiku'
5101
5150
  | 'gemini-2.5-flash'
5102
5151
  | 'gemini-2.5-flash-lite'
5103
- | 'gemini-3.0-flash';
5152
+ | 'gemini-3.0-flash'
5153
+ | 'gemini-3.1-flash-lite';
5104
5154
 
5105
5155
  /**
5106
5156
  * Type of model choice
@@ -5122,7 +5172,10 @@ export namespace ConversationFlowComponentResponse {
5122
5172
 
5123
5173
  failed_edge: SMSNode.FailedEdge;
5124
5174
 
5125
- instruction: SMSNode.NodeInstructionPrompt | SMSNode.NodeInstructionStaticText;
5175
+ instruction:
5176
+ | SMSNode.NodeInstructionPrompt
5177
+ | SMSNode.NodeInstructionStaticText
5178
+ | SMSNode.SMSInstructionTemplate;
5126
5179
 
5127
5180
  success_edge: SMSNode.SuccessEdge;
5128
5181
 
@@ -5248,6 +5301,19 @@ export namespace ConversationFlowComponentResponse {
5248
5301
  type: 'static_text';
5249
5302
  }
5250
5303
 
5304
+ export interface SMSInstructionTemplate {
5305
+ /**
5306
+ * The template to use for the instruction. "info_collection" sends a predefined
5307
+ * message requesting information from the user.
5308
+ */
5309
+ template: 'info_collection';
5310
+
5311
+ /**
5312
+ * Type of instruction
5313
+ */
5314
+ type: 'template';
5315
+ }
5316
+
5251
5317
  export interface SuccessEdge {
5252
5318
  /**
5253
5319
  * Unique identifier for the edge
@@ -5520,7 +5586,8 @@ export namespace ConversationFlowComponentResponse {
5520
5586
  | 'claude-4.5-haiku'
5521
5587
  | 'gemini-2.5-flash'
5522
5588
  | 'gemini-2.5-flash-lite'
5523
- | 'gemini-3.0-flash';
5589
+ | 'gemini-3.0-flash'
5590
+ | 'gemini-3.1-flash-lite';
5524
5591
 
5525
5592
  /**
5526
5593
  * Type of model choice
@@ -6080,7 +6147,8 @@ export namespace ConversationFlowComponentResponse {
6080
6147
  | 'claude-4.5-haiku'
6081
6148
  | 'gemini-2.5-flash'
6082
6149
  | 'gemini-2.5-flash-lite'
6083
- | 'gemini-3.0-flash';
6150
+ | 'gemini-3.0-flash'
6151
+ | 'gemini-3.1-flash-lite';
6084
6152
 
6085
6153
  /**
6086
6154
  * Type of model choice
@@ -6463,7 +6531,8 @@ export namespace ConversationFlowComponentResponse {
6463
6531
  | 'claude-4.5-haiku'
6464
6532
  | 'gemini-2.5-flash'
6465
6533
  | 'gemini-2.5-flash-lite'
6466
- | 'gemini-3.0-flash';
6534
+ | 'gemini-3.0-flash'
6535
+ | 'gemini-3.1-flash-lite';
6467
6536
 
6468
6537
  /**
6469
6538
  * Type of model choice
@@ -6512,6 +6581,11 @@ export namespace ConversationFlowComponentResponse {
6512
6581
 
6513
6582
  else_edge?: McpNode.ElseEdge;
6514
6583
 
6584
+ /**
6585
+ * If true, play a typing sound while MCP tool executes.
6586
+ */
6587
+ enable_typing_sound?: boolean;
6588
+
6515
6589
  finetune_transition_examples?: Array<McpNode.FinetuneTransitionExample>;
6516
6590
 
6517
6591
  global_node_setting?: McpNode.GlobalNodeSetting;
@@ -6941,7 +7015,8 @@ export namespace ConversationFlowComponentResponse {
6941
7015
  | 'claude-4.5-haiku'
6942
7016
  | 'gemini-2.5-flash'
6943
7017
  | 'gemini-2.5-flash-lite'
6944
- | 'gemini-3.0-flash';
7018
+ | 'gemini-3.0-flash'
7019
+ | 'gemini-3.1-flash-lite';
6945
7020
 
6946
7021
  /**
6947
7022
  * Type of model choice
@@ -7621,7 +7696,8 @@ export namespace ConversationFlowComponentResponse {
7621
7696
  | 'claude-4.5-haiku'
7622
7697
  | 'gemini-2.5-flash'
7623
7698
  | 'gemini-2.5-flash-lite'
7624
- | 'gemini-3.0-flash';
7699
+ | 'gemini-3.0-flash'
7700
+ | 'gemini-3.1-flash-lite';
7625
7701
 
7626
7702
  /**
7627
7703
  * Type of model choice
@@ -7892,7 +7968,8 @@ export namespace ConversationFlowComponentResponse {
7892
7968
  | 'claude-4.5-haiku'
7893
7969
  | 'gemini-2.5-flash'
7894
7970
  | 'gemini-2.5-flash-lite'
7895
- | 'gemini-3.0-flash';
7971
+ | 'gemini-3.0-flash'
7972
+ | 'gemini-3.1-flash-lite';
7896
7973
 
7897
7974
  /**
7898
7975
  * Type of model choice
@@ -8011,6 +8088,13 @@ export namespace ConversationFlowComponentResponse {
8011
8088
  */
8012
8089
  description?: string;
8013
8090
 
8091
+ /**
8092
+ * If true, play a typing sound on the agent audio track while this tool is
8093
+ * executing. Useful when the tool takes a noticeable amount of time to prevent
8094
+ * silence on the call.
8095
+ */
8096
+ enable_typing_sound?: boolean;
8097
+
8014
8098
  /**
8015
8099
  * The description for the sentence agent say during execution. Only applicable
8016
8100
  * when speak_during_execution is true. Can write what to say or even provide
@@ -8760,7 +8844,8 @@ export namespace ConversationFlowComponentCreateParams {
8760
8844
  | 'claude-4.5-haiku'
8761
8845
  | 'gemini-2.5-flash'
8762
8846
  | 'gemini-2.5-flash-lite'
8763
- | 'gemini-3.0-flash';
8847
+ | 'gemini-3.0-flash'
8848
+ | 'gemini-3.1-flash-lite';
8764
8849
 
8765
8850
  /**
8766
8851
  * Type of model choice
@@ -9360,7 +9445,8 @@ export namespace ConversationFlowComponentCreateParams {
9360
9445
  | 'claude-4.5-haiku'
9361
9446
  | 'gemini-2.5-flash'
9362
9447
  | 'gemini-2.5-flash-lite'
9363
- | 'gemini-3.0-flash';
9448
+ | 'gemini-3.0-flash'
9449
+ | 'gemini-3.1-flash-lite';
9364
9450
 
9365
9451
  /**
9366
9452
  * Type of model choice
@@ -10004,7 +10090,10 @@ export namespace ConversationFlowComponentCreateParams {
10004
10090
  */
10005
10091
  name: string;
10006
10092
 
10007
- sms_content: SendSMSTool.SMSContentPredefined | SendSMSTool.SMSContentInferred;
10093
+ sms_content:
10094
+ | SendSMSTool.SMSContentPredefined
10095
+ | SendSMSTool.SMSContentInferred
10096
+ | SendSMSTool.SMSContentTemplate;
10008
10097
 
10009
10098
  type: 'send_sms';
10010
10099
 
@@ -10055,6 +10144,16 @@ export namespace ConversationFlowComponentCreateParams {
10055
10144
 
10056
10145
  type?: 'inferred';
10057
10146
  }
10147
+
10148
+ export interface SMSContentTemplate {
10149
+ /**
10150
+ * The template to use for the SMS content. "info_collection" sends a predefined
10151
+ * message requesting information from the user.
10152
+ */
10153
+ template: 'info_collection';
10154
+
10155
+ type: 'template';
10156
+ }
10058
10157
  }
10059
10158
 
10060
10159
  export interface CustomTool {
@@ -10085,6 +10184,13 @@ export namespace ConversationFlowComponentCreateParams {
10085
10184
  */
10086
10185
  description?: string;
10087
10186
 
10187
+ /**
10188
+ * If true, play a typing sound on the agent audio track while this tool is
10189
+ * executing. Useful when the tool takes a noticeable amount of time to prevent
10190
+ * silence on the call.
10191
+ */
10192
+ enable_typing_sound?: boolean;
10193
+
10088
10194
  /**
10089
10195
  * The description for the sentence agent say during execution. Only applicable
10090
10196
  * when speak_during_execution is true. Can write what to say or even provide
@@ -10204,6 +10310,12 @@ export namespace ConversationFlowComponentCreateParams {
10204
10310
  */
10205
10311
  description?: string;
10206
10312
 
10313
+ /**
10314
+ * If true, play a typing sound on the agent audio track while this tool is
10315
+ * executing.
10316
+ */
10317
+ enable_typing_sound?: boolean;
10318
+
10207
10319
  /**
10208
10320
  * The description for the sentence agent say during execution. Only applicable
10209
10321
  * when speak_during_execution is true.
@@ -10494,6 +10606,12 @@ export namespace ConversationFlowComponentCreateParams {
10494
10606
 
10495
10607
  type: 'mcp';
10496
10608
 
10609
+ /**
10610
+ * If true, play a typing sound on the agent audio track while this MCP tool is
10611
+ * executing.
10612
+ */
10613
+ enable_typing_sound?: boolean;
10614
+
10497
10615
  /**
10498
10616
  * The description for the sentence agent say during execution. Only applicable
10499
10617
  * when speak_during_execution is true. Can write what to say or even provide
@@ -10799,7 +10917,8 @@ export namespace ConversationFlowComponentCreateParams {
10799
10917
  | 'claude-4.5-haiku'
10800
10918
  | 'gemini-2.5-flash'
10801
10919
  | 'gemini-2.5-flash-lite'
10802
- | 'gemini-3.0-flash';
10920
+ | 'gemini-3.0-flash'
10921
+ | 'gemini-3.1-flash-lite';
10803
10922
 
10804
10923
  /**
10805
10924
  * Type of model choice
@@ -10848,6 +10967,11 @@ export namespace ConversationFlowComponentCreateParams {
10848
10967
 
10849
10968
  else_edge?: FunctionNode.ElseEdge;
10850
10969
 
10970
+ /**
10971
+ * If true, play a typing sound while this function executes.
10972
+ */
10973
+ enable_typing_sound?: boolean;
10974
+
10851
10975
  finetune_transition_examples?: Array<FunctionNode.FinetuneTransitionExample>;
10852
10976
 
10853
10977
  global_node_setting?: FunctionNode.GlobalNodeSetting;
@@ -11268,7 +11392,8 @@ export namespace ConversationFlowComponentCreateParams {
11268
11392
  | 'claude-4.5-haiku'
11269
11393
  | 'gemini-2.5-flash'
11270
11394
  | 'gemini-2.5-flash-lite'
11271
- | 'gemini-3.0-flash';
11395
+ | 'gemini-3.0-flash'
11396
+ | 'gemini-3.1-flash-lite';
11272
11397
 
11273
11398
  /**
11274
11399
  * Type of model choice
@@ -11312,6 +11437,11 @@ export namespace ConversationFlowComponentCreateParams {
11312
11437
 
11313
11438
  else_edge?: CodeNode.ElseEdge;
11314
11439
 
11440
+ /**
11441
+ * If true, play a typing sound while code executes.
11442
+ */
11443
+ enable_typing_sound?: boolean;
11444
+
11315
11445
  finetune_transition_examples?: Array<CodeNode.FinetuneTransitionExample>;
11316
11446
 
11317
11447
  global_node_setting?: CodeNode.GlobalNodeSetting;
@@ -11744,7 +11874,8 @@ export namespace ConversationFlowComponentCreateParams {
11744
11874
  | 'claude-4.5-haiku'
11745
11875
  | 'gemini-2.5-flash'
11746
11876
  | 'gemini-2.5-flash-lite'
11747
- | 'gemini-3.0-flash';
11877
+ | 'gemini-3.0-flash'
11878
+ | 'gemini-3.1-flash-lite';
11748
11879
 
11749
11880
  /**
11750
11881
  * Type of model choice
@@ -12396,7 +12527,8 @@ export namespace ConversationFlowComponentCreateParams {
12396
12527
  | 'claude-4.5-haiku'
12397
12528
  | 'gemini-2.5-flash'
12398
12529
  | 'gemini-2.5-flash-lite'
12399
- | 'gemini-3.0-flash';
12530
+ | 'gemini-3.0-flash'
12531
+ | 'gemini-3.1-flash-lite';
12400
12532
 
12401
12533
  /**
12402
12534
  * Type of model choice
@@ -12762,7 +12894,8 @@ export namespace ConversationFlowComponentCreateParams {
12762
12894
  | 'claude-4.5-haiku'
12763
12895
  | 'gemini-2.5-flash'
12764
12896
  | 'gemini-2.5-flash-lite'
12765
- | 'gemini-3.0-flash';
12897
+ | 'gemini-3.0-flash'
12898
+ | 'gemini-3.1-flash-lite';
12766
12899
 
12767
12900
  /**
12768
12901
  * Type of model choice
@@ -13185,7 +13318,8 @@ export namespace ConversationFlowComponentCreateParams {
13185
13318
  | 'claude-4.5-haiku'
13186
13319
  | 'gemini-2.5-flash'
13187
13320
  | 'gemini-2.5-flash-lite'
13188
- | 'gemini-3.0-flash';
13321
+ | 'gemini-3.0-flash'
13322
+ | 'gemini-3.1-flash-lite';
13189
13323
 
13190
13324
  /**
13191
13325
  * Type of model choice
@@ -13207,7 +13341,10 @@ export namespace ConversationFlowComponentCreateParams {
13207
13341
 
13208
13342
  failed_edge: SMSNode.FailedEdge;
13209
13343
 
13210
- instruction: SMSNode.NodeInstructionPrompt | SMSNode.NodeInstructionStaticText;
13344
+ instruction:
13345
+ | SMSNode.NodeInstructionPrompt
13346
+ | SMSNode.NodeInstructionStaticText
13347
+ | SMSNode.SMSInstructionTemplate;
13211
13348
 
13212
13349
  success_edge: SMSNode.SuccessEdge;
13213
13350
 
@@ -13333,6 +13470,19 @@ export namespace ConversationFlowComponentCreateParams {
13333
13470
  type: 'static_text';
13334
13471
  }
13335
13472
 
13473
+ export interface SMSInstructionTemplate {
13474
+ /**
13475
+ * The template to use for the instruction. "info_collection" sends a predefined
13476
+ * message requesting information from the user.
13477
+ */
13478
+ template: 'info_collection';
13479
+
13480
+ /**
13481
+ * Type of instruction
13482
+ */
13483
+ type: 'template';
13484
+ }
13485
+
13336
13486
  export interface SuccessEdge {
13337
13487
  /**
13338
13488
  * Unique identifier for the edge
@@ -13605,7 +13755,8 @@ export namespace ConversationFlowComponentCreateParams {
13605
13755
  | 'claude-4.5-haiku'
13606
13756
  | 'gemini-2.5-flash'
13607
13757
  | 'gemini-2.5-flash-lite'
13608
- | 'gemini-3.0-flash';
13758
+ | 'gemini-3.0-flash'
13759
+ | 'gemini-3.1-flash-lite';
13609
13760
 
13610
13761
  /**
13611
13762
  * Type of model choice
@@ -14165,7 +14316,8 @@ export namespace ConversationFlowComponentCreateParams {
14165
14316
  | 'claude-4.5-haiku'
14166
14317
  | 'gemini-2.5-flash'
14167
14318
  | 'gemini-2.5-flash-lite'
14168
- | 'gemini-3.0-flash';
14319
+ | 'gemini-3.0-flash'
14320
+ | 'gemini-3.1-flash-lite';
14169
14321
 
14170
14322
  /**
14171
14323
  * Type of model choice
@@ -14548,7 +14700,8 @@ export namespace ConversationFlowComponentCreateParams {
14548
14700
  | 'claude-4.5-haiku'
14549
14701
  | 'gemini-2.5-flash'
14550
14702
  | 'gemini-2.5-flash-lite'
14551
- | 'gemini-3.0-flash';
14703
+ | 'gemini-3.0-flash'
14704
+ | 'gemini-3.1-flash-lite';
14552
14705
 
14553
14706
  /**
14554
14707
  * Type of model choice
@@ -14597,6 +14750,11 @@ export namespace ConversationFlowComponentCreateParams {
14597
14750
 
14598
14751
  else_edge?: McpNode.ElseEdge;
14599
14752
 
14753
+ /**
14754
+ * If true, play a typing sound while MCP tool executes.
14755
+ */
14756
+ enable_typing_sound?: boolean;
14757
+
14600
14758
  finetune_transition_examples?: Array<McpNode.FinetuneTransitionExample>;
14601
14759
 
14602
14760
  global_node_setting?: McpNode.GlobalNodeSetting;
@@ -15026,7 +15184,8 @@ export namespace ConversationFlowComponentCreateParams {
15026
15184
  | 'claude-4.5-haiku'
15027
15185
  | 'gemini-2.5-flash'
15028
15186
  | 'gemini-2.5-flash-lite'
15029
- | 'gemini-3.0-flash';
15187
+ | 'gemini-3.0-flash'
15188
+ | 'gemini-3.1-flash-lite';
15030
15189
 
15031
15190
  /**
15032
15191
  * Type of model choice
@@ -15706,7 +15865,8 @@ export namespace ConversationFlowComponentCreateParams {
15706
15865
  | 'claude-4.5-haiku'
15707
15866
  | 'gemini-2.5-flash'
15708
15867
  | 'gemini-2.5-flash-lite'
15709
- | 'gemini-3.0-flash';
15868
+ | 'gemini-3.0-flash'
15869
+ | 'gemini-3.1-flash-lite';
15710
15870
 
15711
15871
  /**
15712
15872
  * Type of model choice
@@ -15977,7 +16137,8 @@ export namespace ConversationFlowComponentCreateParams {
15977
16137
  | 'claude-4.5-haiku'
15978
16138
  | 'gemini-2.5-flash'
15979
16139
  | 'gemini-2.5-flash-lite'
15980
- | 'gemini-3.0-flash';
16140
+ | 'gemini-3.0-flash'
16141
+ | 'gemini-3.1-flash-lite';
15981
16142
 
15982
16143
  /**
15983
16144
  * Type of model choice
@@ -16096,6 +16257,13 @@ export namespace ConversationFlowComponentCreateParams {
16096
16257
  */
16097
16258
  description?: string;
16098
16259
 
16260
+ /**
16261
+ * If true, play a typing sound on the agent audio track while this tool is
16262
+ * executing. Useful when the tool takes a noticeable amount of time to prevent
16263
+ * silence on the call.
16264
+ */
16265
+ enable_typing_sound?: boolean;
16266
+
16099
16267
  /**
16100
16268
  * The description for the sentence agent say during execution. Only applicable
16101
16269
  * when speak_during_execution is true. Can write what to say or even provide
@@ -16877,7 +17045,8 @@ export namespace ConversationFlowComponentUpdateParams {
16877
17045
  | 'claude-4.5-haiku'
16878
17046
  | 'gemini-2.5-flash'
16879
17047
  | 'gemini-2.5-flash-lite'
16880
- | 'gemini-3.0-flash';
17048
+ | 'gemini-3.0-flash'
17049
+ | 'gemini-3.1-flash-lite';
16881
17050
 
16882
17051
  /**
16883
17052
  * Type of model choice
@@ -17477,7 +17646,8 @@ export namespace ConversationFlowComponentUpdateParams {
17477
17646
  | 'claude-4.5-haiku'
17478
17647
  | 'gemini-2.5-flash'
17479
17648
  | 'gemini-2.5-flash-lite'
17480
- | 'gemini-3.0-flash';
17649
+ | 'gemini-3.0-flash'
17650
+ | 'gemini-3.1-flash-lite';
17481
17651
 
17482
17652
  /**
17483
17653
  * Type of model choice
@@ -18121,7 +18291,10 @@ export namespace ConversationFlowComponentUpdateParams {
18121
18291
  */
18122
18292
  name: string;
18123
18293
 
18124
- sms_content: SendSMSTool.SMSContentPredefined | SendSMSTool.SMSContentInferred;
18294
+ sms_content:
18295
+ | SendSMSTool.SMSContentPredefined
18296
+ | SendSMSTool.SMSContentInferred
18297
+ | SendSMSTool.SMSContentTemplate;
18125
18298
 
18126
18299
  type: 'send_sms';
18127
18300
 
@@ -18172,6 +18345,16 @@ export namespace ConversationFlowComponentUpdateParams {
18172
18345
 
18173
18346
  type?: 'inferred';
18174
18347
  }
18348
+
18349
+ export interface SMSContentTemplate {
18350
+ /**
18351
+ * The template to use for the SMS content. "info_collection" sends a predefined
18352
+ * message requesting information from the user.
18353
+ */
18354
+ template: 'info_collection';
18355
+
18356
+ type: 'template';
18357
+ }
18175
18358
  }
18176
18359
 
18177
18360
  export interface CustomTool {
@@ -18202,6 +18385,13 @@ export namespace ConversationFlowComponentUpdateParams {
18202
18385
  */
18203
18386
  description?: string;
18204
18387
 
18388
+ /**
18389
+ * If true, play a typing sound on the agent audio track while this tool is
18390
+ * executing. Useful when the tool takes a noticeable amount of time to prevent
18391
+ * silence on the call.
18392
+ */
18393
+ enable_typing_sound?: boolean;
18394
+
18205
18395
  /**
18206
18396
  * The description for the sentence agent say during execution. Only applicable
18207
18397
  * when speak_during_execution is true. Can write what to say or even provide
@@ -18321,6 +18511,12 @@ export namespace ConversationFlowComponentUpdateParams {
18321
18511
  */
18322
18512
  description?: string;
18323
18513
 
18514
+ /**
18515
+ * If true, play a typing sound on the agent audio track while this tool is
18516
+ * executing.
18517
+ */
18518
+ enable_typing_sound?: boolean;
18519
+
18324
18520
  /**
18325
18521
  * The description for the sentence agent say during execution. Only applicable
18326
18522
  * when speak_during_execution is true.
@@ -18611,6 +18807,12 @@ export namespace ConversationFlowComponentUpdateParams {
18611
18807
 
18612
18808
  type: 'mcp';
18613
18809
 
18810
+ /**
18811
+ * If true, play a typing sound on the agent audio track while this MCP tool is
18812
+ * executing.
18813
+ */
18814
+ enable_typing_sound?: boolean;
18815
+
18614
18816
  /**
18615
18817
  * The description for the sentence agent say during execution. Only applicable
18616
18818
  * when speak_during_execution is true. Can write what to say or even provide
@@ -18916,7 +19118,8 @@ export namespace ConversationFlowComponentUpdateParams {
18916
19118
  | 'claude-4.5-haiku'
18917
19119
  | 'gemini-2.5-flash'
18918
19120
  | 'gemini-2.5-flash-lite'
18919
- | 'gemini-3.0-flash';
19121
+ | 'gemini-3.0-flash'
19122
+ | 'gemini-3.1-flash-lite';
18920
19123
 
18921
19124
  /**
18922
19125
  * Type of model choice
@@ -18965,6 +19168,11 @@ export namespace ConversationFlowComponentUpdateParams {
18965
19168
 
18966
19169
  else_edge?: FunctionNode.ElseEdge;
18967
19170
 
19171
+ /**
19172
+ * If true, play a typing sound while this function executes.
19173
+ */
19174
+ enable_typing_sound?: boolean;
19175
+
18968
19176
  finetune_transition_examples?: Array<FunctionNode.FinetuneTransitionExample>;
18969
19177
 
18970
19178
  global_node_setting?: FunctionNode.GlobalNodeSetting;
@@ -19385,7 +19593,8 @@ export namespace ConversationFlowComponentUpdateParams {
19385
19593
  | 'claude-4.5-haiku'
19386
19594
  | 'gemini-2.5-flash'
19387
19595
  | 'gemini-2.5-flash-lite'
19388
- | 'gemini-3.0-flash';
19596
+ | 'gemini-3.0-flash'
19597
+ | 'gemini-3.1-flash-lite';
19389
19598
 
19390
19599
  /**
19391
19600
  * Type of model choice
@@ -19429,6 +19638,11 @@ export namespace ConversationFlowComponentUpdateParams {
19429
19638
 
19430
19639
  else_edge?: CodeNode.ElseEdge;
19431
19640
 
19641
+ /**
19642
+ * If true, play a typing sound while code executes.
19643
+ */
19644
+ enable_typing_sound?: boolean;
19645
+
19432
19646
  finetune_transition_examples?: Array<CodeNode.FinetuneTransitionExample>;
19433
19647
 
19434
19648
  global_node_setting?: CodeNode.GlobalNodeSetting;
@@ -19861,7 +20075,8 @@ export namespace ConversationFlowComponentUpdateParams {
19861
20075
  | 'claude-4.5-haiku'
19862
20076
  | 'gemini-2.5-flash'
19863
20077
  | 'gemini-2.5-flash-lite'
19864
- | 'gemini-3.0-flash';
20078
+ | 'gemini-3.0-flash'
20079
+ | 'gemini-3.1-flash-lite';
19865
20080
 
19866
20081
  /**
19867
20082
  * Type of model choice
@@ -20513,7 +20728,8 @@ export namespace ConversationFlowComponentUpdateParams {
20513
20728
  | 'claude-4.5-haiku'
20514
20729
  | 'gemini-2.5-flash'
20515
20730
  | 'gemini-2.5-flash-lite'
20516
- | 'gemini-3.0-flash';
20731
+ | 'gemini-3.0-flash'
20732
+ | 'gemini-3.1-flash-lite';
20517
20733
 
20518
20734
  /**
20519
20735
  * Type of model choice
@@ -20879,7 +21095,8 @@ export namespace ConversationFlowComponentUpdateParams {
20879
21095
  | 'claude-4.5-haiku'
20880
21096
  | 'gemini-2.5-flash'
20881
21097
  | 'gemini-2.5-flash-lite'
20882
- | 'gemini-3.0-flash';
21098
+ | 'gemini-3.0-flash'
21099
+ | 'gemini-3.1-flash-lite';
20883
21100
 
20884
21101
  /**
20885
21102
  * Type of model choice
@@ -21302,7 +21519,8 @@ export namespace ConversationFlowComponentUpdateParams {
21302
21519
  | 'claude-4.5-haiku'
21303
21520
  | 'gemini-2.5-flash'
21304
21521
  | 'gemini-2.5-flash-lite'
21305
- | 'gemini-3.0-flash';
21522
+ | 'gemini-3.0-flash'
21523
+ | 'gemini-3.1-flash-lite';
21306
21524
 
21307
21525
  /**
21308
21526
  * Type of model choice
@@ -21324,7 +21542,10 @@ export namespace ConversationFlowComponentUpdateParams {
21324
21542
 
21325
21543
  failed_edge: SMSNode.FailedEdge;
21326
21544
 
21327
- instruction: SMSNode.NodeInstructionPrompt | SMSNode.NodeInstructionStaticText;
21545
+ instruction:
21546
+ | SMSNode.NodeInstructionPrompt
21547
+ | SMSNode.NodeInstructionStaticText
21548
+ | SMSNode.SMSInstructionTemplate;
21328
21549
 
21329
21550
  success_edge: SMSNode.SuccessEdge;
21330
21551
 
@@ -21450,6 +21671,19 @@ export namespace ConversationFlowComponentUpdateParams {
21450
21671
  type: 'static_text';
21451
21672
  }
21452
21673
 
21674
+ export interface SMSInstructionTemplate {
21675
+ /**
21676
+ * The template to use for the instruction. "info_collection" sends a predefined
21677
+ * message requesting information from the user.
21678
+ */
21679
+ template: 'info_collection';
21680
+
21681
+ /**
21682
+ * Type of instruction
21683
+ */
21684
+ type: 'template';
21685
+ }
21686
+
21453
21687
  export interface SuccessEdge {
21454
21688
  /**
21455
21689
  * Unique identifier for the edge
@@ -21722,7 +21956,8 @@ export namespace ConversationFlowComponentUpdateParams {
21722
21956
  | 'claude-4.5-haiku'
21723
21957
  | 'gemini-2.5-flash'
21724
21958
  | 'gemini-2.5-flash-lite'
21725
- | 'gemini-3.0-flash';
21959
+ | 'gemini-3.0-flash'
21960
+ | 'gemini-3.1-flash-lite';
21726
21961
 
21727
21962
  /**
21728
21963
  * Type of model choice
@@ -22282,7 +22517,8 @@ export namespace ConversationFlowComponentUpdateParams {
22282
22517
  | 'claude-4.5-haiku'
22283
22518
  | 'gemini-2.5-flash'
22284
22519
  | 'gemini-2.5-flash-lite'
22285
- | 'gemini-3.0-flash';
22520
+ | 'gemini-3.0-flash'
22521
+ | 'gemini-3.1-flash-lite';
22286
22522
 
22287
22523
  /**
22288
22524
  * Type of model choice
@@ -22665,7 +22901,8 @@ export namespace ConversationFlowComponentUpdateParams {
22665
22901
  | 'claude-4.5-haiku'
22666
22902
  | 'gemini-2.5-flash'
22667
22903
  | 'gemini-2.5-flash-lite'
22668
- | 'gemini-3.0-flash';
22904
+ | 'gemini-3.0-flash'
22905
+ | 'gemini-3.1-flash-lite';
22669
22906
 
22670
22907
  /**
22671
22908
  * Type of model choice
@@ -22714,6 +22951,11 @@ export namespace ConversationFlowComponentUpdateParams {
22714
22951
 
22715
22952
  else_edge?: McpNode.ElseEdge;
22716
22953
 
22954
+ /**
22955
+ * If true, play a typing sound while MCP tool executes.
22956
+ */
22957
+ enable_typing_sound?: boolean;
22958
+
22717
22959
  finetune_transition_examples?: Array<McpNode.FinetuneTransitionExample>;
22718
22960
 
22719
22961
  global_node_setting?: McpNode.GlobalNodeSetting;
@@ -23143,7 +23385,8 @@ export namespace ConversationFlowComponentUpdateParams {
23143
23385
  | 'claude-4.5-haiku'
23144
23386
  | 'gemini-2.5-flash'
23145
23387
  | 'gemini-2.5-flash-lite'
23146
- | 'gemini-3.0-flash';
23388
+ | 'gemini-3.0-flash'
23389
+ | 'gemini-3.1-flash-lite';
23147
23390
 
23148
23391
  /**
23149
23392
  * Type of model choice
@@ -23823,7 +24066,8 @@ export namespace ConversationFlowComponentUpdateParams {
23823
24066
  | 'claude-4.5-haiku'
23824
24067
  | 'gemini-2.5-flash'
23825
24068
  | 'gemini-2.5-flash-lite'
23826
- | 'gemini-3.0-flash';
24069
+ | 'gemini-3.0-flash'
24070
+ | 'gemini-3.1-flash-lite';
23827
24071
 
23828
24072
  /**
23829
24073
  * Type of model choice
@@ -24094,7 +24338,8 @@ export namespace ConversationFlowComponentUpdateParams {
24094
24338
  | 'claude-4.5-haiku'
24095
24339
  | 'gemini-2.5-flash'
24096
24340
  | 'gemini-2.5-flash-lite'
24097
- | 'gemini-3.0-flash';
24341
+ | 'gemini-3.0-flash'
24342
+ | 'gemini-3.1-flash-lite';
24098
24343
 
24099
24344
  /**
24100
24345
  * Type of model choice
@@ -24179,6 +24424,13 @@ export namespace ConversationFlowComponentUpdateParams {
24179
24424
  */
24180
24425
  description?: string;
24181
24426
 
24427
+ /**
24428
+ * If true, play a typing sound on the agent audio track while this tool is
24429
+ * executing. Useful when the tool takes a noticeable amount of time to prevent
24430
+ * silence on the call.
24431
+ */
24432
+ enable_typing_sound?: boolean;
24433
+
24182
24434
  /**
24183
24435
  * The description for the sentence agent say during execution. Only applicable
24184
24436
  * when speak_during_execution is true. Can write what to say or even provide