retell-sdk 5.7.0 → 5.8.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 (59) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts.map +1 -1
  4. package/client.js +6 -5
  5. package/client.js.map +1 -1
  6. package/client.mjs +6 -5
  7. package/client.mjs.map +1 -1
  8. package/internal/uploads.js +12 -2
  9. package/internal/uploads.js.map +1 -1
  10. package/internal/uploads.mjs +12 -2
  11. package/internal/uploads.mjs.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/agent.d.mts +72 -12
  14. package/resources/agent.d.mts.map +1 -1
  15. package/resources/agent.d.ts +72 -12
  16. package/resources/agent.d.ts.map +1 -1
  17. package/resources/batch-call.d.mts +26 -6
  18. package/resources/batch-call.d.mts.map +1 -1
  19. package/resources/batch-call.d.ts +26 -6
  20. package/resources/batch-call.d.ts.map +1 -1
  21. package/resources/call.d.mts +78 -18
  22. package/resources/call.d.mts.map +1 -1
  23. package/resources/call.d.ts +78 -18
  24. package/resources/call.d.ts.map +1 -1
  25. package/resources/chat-agent.d.mts +66 -6
  26. package/resources/chat-agent.d.mts.map +1 -1
  27. package/resources/chat-agent.d.ts +66 -6
  28. package/resources/chat-agent.d.ts.map +1 -1
  29. package/resources/conversation-flow-component.d.mts +225 -15
  30. package/resources/conversation-flow-component.d.mts.map +1 -1
  31. package/resources/conversation-flow-component.d.ts +225 -15
  32. package/resources/conversation-flow-component.d.ts.map +1 -1
  33. package/resources/conversation-flow.d.mts +453 -33
  34. package/resources/conversation-flow.d.mts.map +1 -1
  35. package/resources/conversation-flow.d.ts +453 -33
  36. package/resources/conversation-flow.d.ts.map +1 -1
  37. package/resources/llm.d.mts +213 -3
  38. package/resources/llm.d.mts.map +1 -1
  39. package/resources/llm.d.ts +213 -3
  40. package/resources/llm.d.ts.map +1 -1
  41. package/resources/tests.d.mts +3 -3
  42. package/resources/tests.d.mts.map +1 -1
  43. package/resources/tests.d.ts +3 -3
  44. package/resources/tests.d.ts.map +1 -1
  45. package/src/client.ts +6 -5
  46. package/src/internal/uploads.ts +12 -4
  47. package/src/resources/agent.ts +84 -6
  48. package/src/resources/batch-call.ts +30 -2
  49. package/src/resources/call.ts +90 -6
  50. package/src/resources/chat-agent.ts +78 -3
  51. package/src/resources/conversation-flow-component.ts +267 -0
  52. package/src/resources/conversation-flow.ts +537 -0
  53. package/src/resources/llm.ts +255 -0
  54. package/src/resources/tests.ts +3 -0
  55. package/src/version.ts +1 -1
  56. package/version.d.mts +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.js +1 -1
  59. package/version.mjs +1 -1
@@ -686,6 +686,7 @@ export namespace ConversationFlowComponentResponse {
686
686
  | 'gpt-5-mini'
687
687
  | 'gpt-5-nano'
688
688
  | 'claude-4.5-sonnet'
689
+ | 'claude-4.6-sonnet'
689
690
  | 'claude-4.5-haiku'
690
691
  | 'gemini-2.5-flash'
691
692
  | 'gemini-2.5-flash-lite'
@@ -929,6 +930,12 @@ export namespace ConversationFlowComponentResponse {
929
930
  * id when using `sip refer` cold transfer mode.
930
931
  */
931
932
  show_transferee_as_caller?: boolean;
933
+
934
+ /**
935
+ * Override the ring duration for this specific transfer, in milliseconds. If not
936
+ * set, falls back to the agent-level `ring_duration_ms`.
937
+ */
938
+ transfer_ring_duration_ms?: number;
932
939
  }
933
940
 
934
941
  export interface TransferOptionWarmTransfer {
@@ -994,6 +1001,12 @@ export namespace ConversationFlowComponentResponse {
994
1001
  * Twilio numbers support this option.
995
1002
  */
996
1003
  show_transferee_as_caller?: boolean;
1004
+
1005
+ /**
1006
+ * Override the ring duration for this specific transfer, in milliseconds. If not
1007
+ * set, falls back to the agent-level `ring_duration_ms`.
1008
+ */
1009
+ transfer_ring_duration_ms?: number;
997
1010
  }
998
1011
 
999
1012
  export namespace TransferOptionWarmTransfer {
@@ -1083,6 +1096,12 @@ export namespace ConversationFlowComponentResponse {
1083
1096
  * Twilio numbers support this option.
1084
1097
  */
1085
1098
  show_transferee_as_caller?: boolean;
1099
+
1100
+ /**
1101
+ * Override the ring duration for this specific transfer, in milliseconds. If not
1102
+ * set, falls back to the agent-level `ring_duration_ms`.
1103
+ */
1104
+ transfer_ring_duration_ms?: number;
1086
1105
  }
1087
1106
 
1088
1107
  export namespace TransferOptionAgenticWarmTransfer {
@@ -1524,6 +1543,12 @@ export namespace ConversationFlowComponentResponse {
1524
1543
  * Examples of the variable value to teach model the style and syntax.
1525
1544
  */
1526
1545
  examples?: Array<string>;
1546
+
1547
+ /**
1548
+ * Whether this data is required. If true and the data is not extracted, the call
1549
+ * will be marked as unsuccessful.
1550
+ */
1551
+ required?: boolean;
1527
1552
  }
1528
1553
 
1529
1554
  export interface EnumAnalysisData {
@@ -1546,6 +1571,12 @@ export namespace ConversationFlowComponentResponse {
1546
1571
  * Type of the variable to extract.
1547
1572
  */
1548
1573
  type: 'enum';
1574
+
1575
+ /**
1576
+ * Whether this data is required. If true and the data is not extracted, the call
1577
+ * will be marked as unsuccessful.
1578
+ */
1579
+ required?: boolean;
1549
1580
  }
1550
1581
 
1551
1582
  export interface BooleanAnalysisData {
@@ -1563,6 +1594,12 @@ export namespace ConversationFlowComponentResponse {
1563
1594
  * Type of the variable to extract.
1564
1595
  */
1565
1596
  type: 'boolean';
1597
+
1598
+ /**
1599
+ * Whether this data is required. If true and the data is not extracted, the call
1600
+ * will be marked as unsuccessful.
1601
+ */
1602
+ required?: boolean;
1566
1603
  }
1567
1604
 
1568
1605
  export interface NumberAnalysisData {
@@ -1580,6 +1617,12 @@ export namespace ConversationFlowComponentResponse {
1580
1617
  * Type of the variable to extract.
1581
1618
  */
1582
1619
  type: 'number';
1620
+
1621
+ /**
1622
+ * Whether this data is required. If true and the data is not extracted, the call
1623
+ * will be marked as unsuccessful.
1624
+ */
1625
+ required?: boolean;
1583
1626
  }
1584
1627
  }
1585
1628
 
@@ -2373,6 +2416,7 @@ export namespace ConversationFlowComponentResponse {
2373
2416
  | 'gpt-5-mini'
2374
2417
  | 'gpt-5-nano'
2375
2418
  | 'claude-4.5-sonnet'
2419
+ | 'claude-4.6-sonnet'
2376
2420
  | 'claude-4.5-haiku'
2377
2421
  | 'gemini-2.5-flash'
2378
2422
  | 'gemini-2.5-flash-lite'
@@ -2580,6 +2624,12 @@ export namespace ConversationFlowComponentResponse {
2580
2624
  * id when using `sip refer` cold transfer mode.
2581
2625
  */
2582
2626
  show_transferee_as_caller?: boolean;
2627
+
2628
+ /**
2629
+ * Override the ring duration for this specific transfer, in milliseconds. If not
2630
+ * set, falls back to the agent-level `ring_duration_ms`.
2631
+ */
2632
+ transfer_ring_duration_ms?: number;
2583
2633
  }
2584
2634
 
2585
2635
  export interface TransferOptionWarmTransfer {
@@ -2645,6 +2695,12 @@ export namespace ConversationFlowComponentResponse {
2645
2695
  * Twilio numbers support this option.
2646
2696
  */
2647
2697
  show_transferee_as_caller?: boolean;
2698
+
2699
+ /**
2700
+ * Override the ring duration for this specific transfer, in milliseconds. If not
2701
+ * set, falls back to the agent-level `ring_duration_ms`.
2702
+ */
2703
+ transfer_ring_duration_ms?: number;
2648
2704
  }
2649
2705
 
2650
2706
  export namespace TransferOptionWarmTransfer {
@@ -2734,6 +2790,12 @@ export namespace ConversationFlowComponentResponse {
2734
2790
  * Twilio numbers support this option.
2735
2791
  */
2736
2792
  show_transferee_as_caller?: boolean;
2793
+
2794
+ /**
2795
+ * Override the ring duration for this specific transfer, in milliseconds. If not
2796
+ * set, falls back to the agent-level `ring_duration_ms`.
2797
+ */
2798
+ transfer_ring_duration_ms?: number;
2737
2799
  }
2738
2800
 
2739
2801
  export namespace TransferOptionAgenticWarmTransfer {
@@ -3009,6 +3071,7 @@ export namespace ConversationFlowComponentResponse {
3009
3071
  | 'gpt-5-mini'
3010
3072
  | 'gpt-5-nano'
3011
3073
  | 'claude-4.5-sonnet'
3074
+ | 'claude-4.6-sonnet'
3012
3075
  | 'claude-4.5-haiku'
3013
3076
  | 'gemini-2.5-flash'
3014
3077
  | 'gemini-2.5-flash-lite'
@@ -3371,6 +3434,7 @@ export namespace ConversationFlowComponentResponse {
3371
3434
  | 'gpt-5-mini'
3372
3435
  | 'gpt-5-nano'
3373
3436
  | 'claude-4.5-sonnet'
3437
+ | 'claude-4.6-sonnet'
3374
3438
  | 'claude-4.5-haiku'
3375
3439
  | 'gemini-2.5-flash'
3376
3440
  | 'gemini-2.5-flash-lite'
@@ -4219,6 +4283,12 @@ export namespace ConversationFlowComponentResponse {
4219
4283
  * Examples of the variable value to teach model the style and syntax.
4220
4284
  */
4221
4285
  examples?: Array<string>;
4286
+
4287
+ /**
4288
+ * Whether this data is required. If true and the data is not extracted, the call
4289
+ * will be marked as unsuccessful.
4290
+ */
4291
+ required?: boolean;
4222
4292
  }
4223
4293
 
4224
4294
  export interface EnumAnalysisData {
@@ -4241,6 +4311,12 @@ export namespace ConversationFlowComponentResponse {
4241
4311
  * Type of the variable to extract.
4242
4312
  */
4243
4313
  type: 'enum';
4314
+
4315
+ /**
4316
+ * Whether this data is required. If true and the data is not extracted, the call
4317
+ * will be marked as unsuccessful.
4318
+ */
4319
+ required?: boolean;
4244
4320
  }
4245
4321
 
4246
4322
  export interface BooleanAnalysisData {
@@ -4258,6 +4334,12 @@ export namespace ConversationFlowComponentResponse {
4258
4334
  * Type of the variable to extract.
4259
4335
  */
4260
4336
  type: 'boolean';
4337
+
4338
+ /**
4339
+ * Whether this data is required. If true and the data is not extracted, the call
4340
+ * will be marked as unsuccessful.
4341
+ */
4342
+ required?: boolean;
4261
4343
  }
4262
4344
 
4263
4345
  export interface NumberAnalysisData {
@@ -4275,6 +4357,12 @@ export namespace ConversationFlowComponentResponse {
4275
4357
  * Type of the variable to extract.
4276
4358
  */
4277
4359
  type: 'number';
4360
+
4361
+ /**
4362
+ * Whether this data is required. If true and the data is not extracted, the call
4363
+ * will be marked as unsuccessful.
4364
+ */
4365
+ required?: boolean;
4278
4366
  }
4279
4367
 
4280
4368
  /**
@@ -4646,6 +4734,7 @@ export namespace ConversationFlowComponentResponse {
4646
4734
  | 'gpt-5-mini'
4647
4735
  | 'gpt-5-nano'
4648
4736
  | 'claude-4.5-sonnet'
4737
+ | 'claude-4.6-sonnet'
4649
4738
  | 'claude-4.5-haiku'
4650
4739
  | 'gemini-2.5-flash'
4651
4740
  | 'gemini-2.5-flash-lite'
@@ -7035,6 +7124,7 @@ export namespace ConversationFlowComponentCreateParams {
7035
7124
  | 'gpt-5-mini'
7036
7125
  | 'gpt-5-nano'
7037
7126
  | 'claude-4.5-sonnet'
7127
+ | 'claude-4.6-sonnet'
7038
7128
  | 'claude-4.5-haiku'
7039
7129
  | 'gemini-2.5-flash'
7040
7130
  | 'gemini-2.5-flash-lite'
@@ -7278,6 +7368,12 @@ export namespace ConversationFlowComponentCreateParams {
7278
7368
  * id when using `sip refer` cold transfer mode.
7279
7369
  */
7280
7370
  show_transferee_as_caller?: boolean;
7371
+
7372
+ /**
7373
+ * Override the ring duration for this specific transfer, in milliseconds. If not
7374
+ * set, falls back to the agent-level `ring_duration_ms`.
7375
+ */
7376
+ transfer_ring_duration_ms?: number;
7281
7377
  }
7282
7378
 
7283
7379
  export interface TransferOptionWarmTransfer {
@@ -7343,6 +7439,12 @@ export namespace ConversationFlowComponentCreateParams {
7343
7439
  * Twilio numbers support this option.
7344
7440
  */
7345
7441
  show_transferee_as_caller?: boolean;
7442
+
7443
+ /**
7444
+ * Override the ring duration for this specific transfer, in milliseconds. If not
7445
+ * set, falls back to the agent-level `ring_duration_ms`.
7446
+ */
7447
+ transfer_ring_duration_ms?: number;
7346
7448
  }
7347
7449
 
7348
7450
  export namespace TransferOptionWarmTransfer {
@@ -7432,6 +7534,12 @@ export namespace ConversationFlowComponentCreateParams {
7432
7534
  * Twilio numbers support this option.
7433
7535
  */
7434
7536
  show_transferee_as_caller?: boolean;
7537
+
7538
+ /**
7539
+ * Override the ring duration for this specific transfer, in milliseconds. If not
7540
+ * set, falls back to the agent-level `ring_duration_ms`.
7541
+ */
7542
+ transfer_ring_duration_ms?: number;
7435
7543
  }
7436
7544
 
7437
7545
  export namespace TransferOptionAgenticWarmTransfer {
@@ -7873,6 +7981,12 @@ export namespace ConversationFlowComponentCreateParams {
7873
7981
  * Examples of the variable value to teach model the style and syntax.
7874
7982
  */
7875
7983
  examples?: Array<string>;
7984
+
7985
+ /**
7986
+ * Whether this data is required. If true and the data is not extracted, the call
7987
+ * will be marked as unsuccessful.
7988
+ */
7989
+ required?: boolean;
7876
7990
  }
7877
7991
 
7878
7992
  export interface EnumAnalysisData {
@@ -7895,6 +8009,12 @@ export namespace ConversationFlowComponentCreateParams {
7895
8009
  * Type of the variable to extract.
7896
8010
  */
7897
8011
  type: 'enum';
8012
+
8013
+ /**
8014
+ * Whether this data is required. If true and the data is not extracted, the call
8015
+ * will be marked as unsuccessful.
8016
+ */
8017
+ required?: boolean;
7898
8018
  }
7899
8019
 
7900
8020
  export interface BooleanAnalysisData {
@@ -7912,6 +8032,12 @@ export namespace ConversationFlowComponentCreateParams {
7912
8032
  * Type of the variable to extract.
7913
8033
  */
7914
8034
  type: 'boolean';
8035
+
8036
+ /**
8037
+ * Whether this data is required. If true and the data is not extracted, the call
8038
+ * will be marked as unsuccessful.
8039
+ */
8040
+ required?: boolean;
7915
8041
  }
7916
8042
 
7917
8043
  export interface NumberAnalysisData {
@@ -7929,6 +8055,12 @@ export namespace ConversationFlowComponentCreateParams {
7929
8055
  * Type of the variable to extract.
7930
8056
  */
7931
8057
  type: 'number';
8058
+
8059
+ /**
8060
+ * Whether this data is required. If true and the data is not extracted, the call
8061
+ * will be marked as unsuccessful.
8062
+ */
8063
+ required?: boolean;
7932
8064
  }
7933
8065
  }
7934
8066
 
@@ -8722,6 +8854,7 @@ export namespace ConversationFlowComponentCreateParams {
8722
8854
  | 'gpt-5-mini'
8723
8855
  | 'gpt-5-nano'
8724
8856
  | 'claude-4.5-sonnet'
8857
+ | 'claude-4.6-sonnet'
8725
8858
  | 'claude-4.5-haiku'
8726
8859
  | 'gemini-2.5-flash'
8727
8860
  | 'gemini-2.5-flash-lite'
@@ -8929,6 +9062,12 @@ export namespace ConversationFlowComponentCreateParams {
8929
9062
  * id when using `sip refer` cold transfer mode.
8930
9063
  */
8931
9064
  show_transferee_as_caller?: boolean;
9065
+
9066
+ /**
9067
+ * Override the ring duration for this specific transfer, in milliseconds. If not
9068
+ * set, falls back to the agent-level `ring_duration_ms`.
9069
+ */
9070
+ transfer_ring_duration_ms?: number;
8932
9071
  }
8933
9072
 
8934
9073
  export interface TransferOptionWarmTransfer {
@@ -8994,6 +9133,12 @@ export namespace ConversationFlowComponentCreateParams {
8994
9133
  * Twilio numbers support this option.
8995
9134
  */
8996
9135
  show_transferee_as_caller?: boolean;
9136
+
9137
+ /**
9138
+ * Override the ring duration for this specific transfer, in milliseconds. If not
9139
+ * set, falls back to the agent-level `ring_duration_ms`.
9140
+ */
9141
+ transfer_ring_duration_ms?: number;
8997
9142
  }
8998
9143
 
8999
9144
  export namespace TransferOptionWarmTransfer {
@@ -9083,6 +9228,12 @@ export namespace ConversationFlowComponentCreateParams {
9083
9228
  * Twilio numbers support this option.
9084
9229
  */
9085
9230
  show_transferee_as_caller?: boolean;
9231
+
9232
+ /**
9233
+ * Override the ring duration for this specific transfer, in milliseconds. If not
9234
+ * set, falls back to the agent-level `ring_duration_ms`.
9235
+ */
9236
+ transfer_ring_duration_ms?: number;
9086
9237
  }
9087
9238
 
9088
9239
  export namespace TransferOptionAgenticWarmTransfer {
@@ -9358,6 +9509,7 @@ export namespace ConversationFlowComponentCreateParams {
9358
9509
  | 'gpt-5-mini'
9359
9510
  | 'gpt-5-nano'
9360
9511
  | 'claude-4.5-sonnet'
9512
+ | 'claude-4.6-sonnet'
9361
9513
  | 'claude-4.5-haiku'
9362
9514
  | 'gemini-2.5-flash'
9363
9515
  | 'gemini-2.5-flash-lite'
@@ -9720,6 +9872,7 @@ export namespace ConversationFlowComponentCreateParams {
9720
9872
  | 'gpt-5-mini'
9721
9873
  | 'gpt-5-nano'
9722
9874
  | 'claude-4.5-sonnet'
9875
+ | 'claude-4.6-sonnet'
9723
9876
  | 'claude-4.5-haiku'
9724
9877
  | 'gemini-2.5-flash'
9725
9878
  | 'gemini-2.5-flash-lite'
@@ -10568,6 +10721,12 @@ export namespace ConversationFlowComponentCreateParams {
10568
10721
  * Examples of the variable value to teach model the style and syntax.
10569
10722
  */
10570
10723
  examples?: Array<string>;
10724
+
10725
+ /**
10726
+ * Whether this data is required. If true and the data is not extracted, the call
10727
+ * will be marked as unsuccessful.
10728
+ */
10729
+ required?: boolean;
10571
10730
  }
10572
10731
 
10573
10732
  export interface EnumAnalysisData {
@@ -10590,6 +10749,12 @@ export namespace ConversationFlowComponentCreateParams {
10590
10749
  * Type of the variable to extract.
10591
10750
  */
10592
10751
  type: 'enum';
10752
+
10753
+ /**
10754
+ * Whether this data is required. If true and the data is not extracted, the call
10755
+ * will be marked as unsuccessful.
10756
+ */
10757
+ required?: boolean;
10593
10758
  }
10594
10759
 
10595
10760
  export interface BooleanAnalysisData {
@@ -10607,6 +10772,12 @@ export namespace ConversationFlowComponentCreateParams {
10607
10772
  * Type of the variable to extract.
10608
10773
  */
10609
10774
  type: 'boolean';
10775
+
10776
+ /**
10777
+ * Whether this data is required. If true and the data is not extracted, the call
10778
+ * will be marked as unsuccessful.
10779
+ */
10780
+ required?: boolean;
10610
10781
  }
10611
10782
 
10612
10783
  export interface NumberAnalysisData {
@@ -10624,6 +10795,12 @@ export namespace ConversationFlowComponentCreateParams {
10624
10795
  * Type of the variable to extract.
10625
10796
  */
10626
10797
  type: 'number';
10798
+
10799
+ /**
10800
+ * Whether this data is required. If true and the data is not extracted, the call
10801
+ * will be marked as unsuccessful.
10802
+ */
10803
+ required?: boolean;
10627
10804
  }
10628
10805
 
10629
10806
  /**
@@ -10995,6 +11172,7 @@ export namespace ConversationFlowComponentCreateParams {
10995
11172
  | 'gpt-5-mini'
10996
11173
  | 'gpt-5-nano'
10997
11174
  | 'claude-4.5-sonnet'
11175
+ | 'claude-4.6-sonnet'
10998
11176
  | 'claude-4.5-haiku'
10999
11177
  | 'gemini-2.5-flash'
11000
11178
  | 'gemini-2.5-flash-lite'
@@ -13416,6 +13594,7 @@ export namespace ConversationFlowComponentUpdateParams {
13416
13594
  | 'gpt-5-mini'
13417
13595
  | 'gpt-5-nano'
13418
13596
  | 'claude-4.5-sonnet'
13597
+ | 'claude-4.6-sonnet'
13419
13598
  | 'claude-4.5-haiku'
13420
13599
  | 'gemini-2.5-flash'
13421
13600
  | 'gemini-2.5-flash-lite'
@@ -13659,6 +13838,12 @@ export namespace ConversationFlowComponentUpdateParams {
13659
13838
  * id when using `sip refer` cold transfer mode.
13660
13839
  */
13661
13840
  show_transferee_as_caller?: boolean;
13841
+
13842
+ /**
13843
+ * Override the ring duration for this specific transfer, in milliseconds. If not
13844
+ * set, falls back to the agent-level `ring_duration_ms`.
13845
+ */
13846
+ transfer_ring_duration_ms?: number;
13662
13847
  }
13663
13848
 
13664
13849
  export interface TransferOptionWarmTransfer {
@@ -13724,6 +13909,12 @@ export namespace ConversationFlowComponentUpdateParams {
13724
13909
  * Twilio numbers support this option.
13725
13910
  */
13726
13911
  show_transferee_as_caller?: boolean;
13912
+
13913
+ /**
13914
+ * Override the ring duration for this specific transfer, in milliseconds. If not
13915
+ * set, falls back to the agent-level `ring_duration_ms`.
13916
+ */
13917
+ transfer_ring_duration_ms?: number;
13727
13918
  }
13728
13919
 
13729
13920
  export namespace TransferOptionWarmTransfer {
@@ -13813,6 +14004,12 @@ export namespace ConversationFlowComponentUpdateParams {
13813
14004
  * Twilio numbers support this option.
13814
14005
  */
13815
14006
  show_transferee_as_caller?: boolean;
14007
+
14008
+ /**
14009
+ * Override the ring duration for this specific transfer, in milliseconds. If not
14010
+ * set, falls back to the agent-level `ring_duration_ms`.
14011
+ */
14012
+ transfer_ring_duration_ms?: number;
13816
14013
  }
13817
14014
 
13818
14015
  export namespace TransferOptionAgenticWarmTransfer {
@@ -14254,6 +14451,12 @@ export namespace ConversationFlowComponentUpdateParams {
14254
14451
  * Examples of the variable value to teach model the style and syntax.
14255
14452
  */
14256
14453
  examples?: Array<string>;
14454
+
14455
+ /**
14456
+ * Whether this data is required. If true and the data is not extracted, the call
14457
+ * will be marked as unsuccessful.
14458
+ */
14459
+ required?: boolean;
14257
14460
  }
14258
14461
 
14259
14462
  export interface EnumAnalysisData {
@@ -14276,6 +14479,12 @@ export namespace ConversationFlowComponentUpdateParams {
14276
14479
  * Type of the variable to extract.
14277
14480
  */
14278
14481
  type: 'enum';
14482
+
14483
+ /**
14484
+ * Whether this data is required. If true and the data is not extracted, the call
14485
+ * will be marked as unsuccessful.
14486
+ */
14487
+ required?: boolean;
14279
14488
  }
14280
14489
 
14281
14490
  export interface BooleanAnalysisData {
@@ -14293,6 +14502,12 @@ export namespace ConversationFlowComponentUpdateParams {
14293
14502
  * Type of the variable to extract.
14294
14503
  */
14295
14504
  type: 'boolean';
14505
+
14506
+ /**
14507
+ * Whether this data is required. If true and the data is not extracted, the call
14508
+ * will be marked as unsuccessful.
14509
+ */
14510
+ required?: boolean;
14296
14511
  }
14297
14512
 
14298
14513
  export interface NumberAnalysisData {
@@ -14310,6 +14525,12 @@ export namespace ConversationFlowComponentUpdateParams {
14310
14525
  * Type of the variable to extract.
14311
14526
  */
14312
14527
  type: 'number';
14528
+
14529
+ /**
14530
+ * Whether this data is required. If true and the data is not extracted, the call
14531
+ * will be marked as unsuccessful.
14532
+ */
14533
+ required?: boolean;
14313
14534
  }
14314
14535
  }
14315
14536
 
@@ -15103,6 +15324,7 @@ export namespace ConversationFlowComponentUpdateParams {
15103
15324
  | 'gpt-5-mini'
15104
15325
  | 'gpt-5-nano'
15105
15326
  | 'claude-4.5-sonnet'
15327
+ | 'claude-4.6-sonnet'
15106
15328
  | 'claude-4.5-haiku'
15107
15329
  | 'gemini-2.5-flash'
15108
15330
  | 'gemini-2.5-flash-lite'
@@ -15310,6 +15532,12 @@ export namespace ConversationFlowComponentUpdateParams {
15310
15532
  * id when using `sip refer` cold transfer mode.
15311
15533
  */
15312
15534
  show_transferee_as_caller?: boolean;
15535
+
15536
+ /**
15537
+ * Override the ring duration for this specific transfer, in milliseconds. If not
15538
+ * set, falls back to the agent-level `ring_duration_ms`.
15539
+ */
15540
+ transfer_ring_duration_ms?: number;
15313
15541
  }
15314
15542
 
15315
15543
  export interface TransferOptionWarmTransfer {
@@ -15375,6 +15603,12 @@ export namespace ConversationFlowComponentUpdateParams {
15375
15603
  * Twilio numbers support this option.
15376
15604
  */
15377
15605
  show_transferee_as_caller?: boolean;
15606
+
15607
+ /**
15608
+ * Override the ring duration for this specific transfer, in milliseconds. If not
15609
+ * set, falls back to the agent-level `ring_duration_ms`.
15610
+ */
15611
+ transfer_ring_duration_ms?: number;
15378
15612
  }
15379
15613
 
15380
15614
  export namespace TransferOptionWarmTransfer {
@@ -15464,6 +15698,12 @@ export namespace ConversationFlowComponentUpdateParams {
15464
15698
  * Twilio numbers support this option.
15465
15699
  */
15466
15700
  show_transferee_as_caller?: boolean;
15701
+
15702
+ /**
15703
+ * Override the ring duration for this specific transfer, in milliseconds. If not
15704
+ * set, falls back to the agent-level `ring_duration_ms`.
15705
+ */
15706
+ transfer_ring_duration_ms?: number;
15467
15707
  }
15468
15708
 
15469
15709
  export namespace TransferOptionAgenticWarmTransfer {
@@ -15739,6 +15979,7 @@ export namespace ConversationFlowComponentUpdateParams {
15739
15979
  | 'gpt-5-mini'
15740
15980
  | 'gpt-5-nano'
15741
15981
  | 'claude-4.5-sonnet'
15982
+ | 'claude-4.6-sonnet'
15742
15983
  | 'claude-4.5-haiku'
15743
15984
  | 'gemini-2.5-flash'
15744
15985
  | 'gemini-2.5-flash-lite'
@@ -16101,6 +16342,7 @@ export namespace ConversationFlowComponentUpdateParams {
16101
16342
  | 'gpt-5-mini'
16102
16343
  | 'gpt-5-nano'
16103
16344
  | 'claude-4.5-sonnet'
16345
+ | 'claude-4.6-sonnet'
16104
16346
  | 'claude-4.5-haiku'
16105
16347
  | 'gemini-2.5-flash'
16106
16348
  | 'gemini-2.5-flash-lite'
@@ -16949,6 +17191,12 @@ export namespace ConversationFlowComponentUpdateParams {
16949
17191
  * Examples of the variable value to teach model the style and syntax.
16950
17192
  */
16951
17193
  examples?: Array<string>;
17194
+
17195
+ /**
17196
+ * Whether this data is required. If true and the data is not extracted, the call
17197
+ * will be marked as unsuccessful.
17198
+ */
17199
+ required?: boolean;
16952
17200
  }
16953
17201
 
16954
17202
  export interface EnumAnalysisData {
@@ -16971,6 +17219,12 @@ export namespace ConversationFlowComponentUpdateParams {
16971
17219
  * Type of the variable to extract.
16972
17220
  */
16973
17221
  type: 'enum';
17222
+
17223
+ /**
17224
+ * Whether this data is required. If true and the data is not extracted, the call
17225
+ * will be marked as unsuccessful.
17226
+ */
17227
+ required?: boolean;
16974
17228
  }
16975
17229
 
16976
17230
  export interface BooleanAnalysisData {
@@ -16988,6 +17242,12 @@ export namespace ConversationFlowComponentUpdateParams {
16988
17242
  * Type of the variable to extract.
16989
17243
  */
16990
17244
  type: 'boolean';
17245
+
17246
+ /**
17247
+ * Whether this data is required. If true and the data is not extracted, the call
17248
+ * will be marked as unsuccessful.
17249
+ */
17250
+ required?: boolean;
16991
17251
  }
16992
17252
 
16993
17253
  export interface NumberAnalysisData {
@@ -17005,6 +17265,12 @@ export namespace ConversationFlowComponentUpdateParams {
17005
17265
  * Type of the variable to extract.
17006
17266
  */
17007
17267
  type: 'number';
17268
+
17269
+ /**
17270
+ * Whether this data is required. If true and the data is not extracted, the call
17271
+ * will be marked as unsuccessful.
17272
+ */
17273
+ required?: boolean;
17008
17274
  }
17009
17275
 
17010
17276
  /**
@@ -17376,6 +17642,7 @@ export namespace ConversationFlowComponentUpdateParams {
17376
17642
  | 'gpt-5-mini'
17377
17643
  | 'gpt-5-nano'
17378
17644
  | 'claude-4.5-sonnet'
17645
+ | 'claude-4.6-sonnet'
17379
17646
  | 'claude-4.5-haiku'
17380
17647
  | 'gemini-2.5-flash'
17381
17648
  | 'gemini-2.5-flash-lite'