retell-sdk 5.38.0 → 5.40.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 (54) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts.map +1 -1
  4. package/client.js +9 -1
  5. package/client.js.map +1 -1
  6. package/client.mjs +9 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent.d.mts +3 -3
  10. package/resources/agent.d.mts.map +1 -1
  11. package/resources/agent.d.ts +3 -3
  12. package/resources/agent.d.ts.map +1 -1
  13. package/resources/batch-call.d.mts +3 -3
  14. package/resources/batch-call.d.mts.map +1 -1
  15. package/resources/batch-call.d.ts +3 -3
  16. package/resources/batch-call.d.ts.map +1 -1
  17. package/resources/call.d.mts +9 -9
  18. package/resources/call.d.mts.map +1 -1
  19. package/resources/call.d.ts +9 -9
  20. package/resources/call.d.ts.map +1 -1
  21. package/resources/chat-agent.d.mts +3 -3
  22. package/resources/chat-agent.d.mts.map +1 -1
  23. package/resources/chat-agent.d.ts +3 -3
  24. package/resources/chat-agent.d.ts.map +1 -1
  25. package/resources/conversation-flow-component.d.mts +192 -66
  26. package/resources/conversation-flow-component.d.mts.map +1 -1
  27. package/resources/conversation-flow-component.d.ts +192 -66
  28. package/resources/conversation-flow-component.d.ts.map +1 -1
  29. package/resources/conversation-flow.d.mts +392 -135
  30. package/resources/conversation-flow.d.mts.map +1 -1
  31. package/resources/conversation-flow.d.ts +392 -135
  32. package/resources/conversation-flow.d.ts.map +1 -1
  33. package/resources/llm.d.mts +153 -27
  34. package/resources/llm.d.mts.map +1 -1
  35. package/resources/llm.d.ts +153 -27
  36. package/resources/llm.d.ts.map +1 -1
  37. package/resources/tests.d.mts +3 -3
  38. package/resources/tests.d.mts.map +1 -1
  39. package/resources/tests.d.ts +3 -3
  40. package/resources/tests.d.ts.map +1 -1
  41. package/src/client.ts +9 -1
  42. package/src/resources/agent.ts +0 -3
  43. package/src/resources/batch-call.ts +0 -3
  44. package/src/resources/call.ts +0 -9
  45. package/src/resources/chat-agent.ts +0 -3
  46. package/src/resources/conversation-flow-component.ts +168 -66
  47. package/src/resources/conversation-flow.ts +342 -135
  48. package/src/resources/llm.ts +168 -27
  49. package/src/resources/tests.ts +0 -3
  50. package/src/version.ts +1 -1
  51. package/version.d.mts +1 -1
  52. package/version.d.ts +1 -1
  53. package/version.js +1 -1
  54. package/version.mjs +1 -1
@@ -785,7 +785,6 @@ export namespace ConversationFlowComponentResponse {
785
785
  | 'claude-4.5-sonnet'
786
786
  | 'claude-4.6-sonnet'
787
787
  | 'claude-4.5-haiku'
788
- | 'gemini-2.5-flash-lite'
789
788
  | 'gemini-3.0-flash'
790
789
  | 'gemini-3.1-flash-lite';
791
790
 
@@ -1489,7 +1488,6 @@ export namespace ConversationFlowComponentResponse {
1489
1488
  | 'claude-4.5-sonnet'
1490
1489
  | 'claude-4.6-sonnet'
1491
1490
  | 'claude-4.5-haiku'
1492
- | 'gemini-2.5-flash-lite'
1493
1491
  | 'gemini-3.0-flash'
1494
1492
  | 'gemini-3.1-flash-lite';
1495
1493
 
@@ -1750,6 +1748,13 @@ export namespace ConversationFlowComponentResponse {
1750
1748
  */
1751
1749
  agent_detection_timeout_ms?: number;
1752
1750
 
1751
+ /**
1752
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
1753
+ * `custom`. Must reference an audio asset owned by the organization (see
1754
+ * create-asset).
1755
+ */
1756
+ custom_on_hold_music_asset_id?: string;
1757
+
1753
1758
  /**
1754
1759
  * Whether to play an audio cue when bridging the call. Defaults to true.
1755
1760
  */
@@ -1762,9 +1767,10 @@ export namespace ConversationFlowComponentResponse {
1762
1767
  ivr_option?: TransferOptionWarmTransfer.IvrOption;
1763
1768
 
1764
1769
  /**
1765
- * The music to play while the caller is being transferred.
1770
+ * The music to play while the caller is being transferred. Use `custom` together
1771
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
1766
1772
  */
1767
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
1773
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
1768
1774
 
1769
1775
  /**
1770
1776
  * If set to true, will not perform human detection for the transfer. Default to
@@ -1866,15 +1872,23 @@ export namespace ConversationFlowComponentResponse {
1866
1872
  */
1867
1873
  type: 'agentic_warm_transfer';
1868
1874
 
1875
+ /**
1876
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
1877
+ * `custom`. Must reference an audio asset owned by the organization (see
1878
+ * create-asset).
1879
+ */
1880
+ custom_on_hold_music_asset_id?: string;
1881
+
1869
1882
  /**
1870
1883
  * Whether to play an audio cue when bridging the call. Defaults to true.
1871
1884
  */
1872
1885
  enable_bridge_audio_cue?: boolean;
1873
1886
 
1874
1887
  /**
1875
- * The music to play while the caller is being transferred.
1888
+ * The music to play while the caller is being transferred. Use `custom` together
1889
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
1876
1890
  */
1877
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
1891
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
1878
1892
 
1879
1893
  /**
1880
1894
  * If set, when transfer is successful, will say the handoff message to both the
@@ -2262,6 +2276,14 @@ export namespace ConversationFlowComponentResponse {
2262
2276
  */
2263
2277
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2264
2278
 
2279
+ /**
2280
+ * How the tool's `parameters` are authored and shown in the dashboard editor —
2281
+ * "form" for the visual parameter builder, "json" for a raw JSON Schema. Both
2282
+ * produce the same `parameters` schema; this does not change how the request body
2283
+ * is encoded (see `args_at_root`).
2284
+ */
2285
+ parameter_type?: 'json' | 'form';
2286
+
2265
2287
  /**
2266
2288
  * The parameters the functions accepts, described as a JSON Schema object. See
2267
2289
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -2967,7 +2989,6 @@ export namespace ConversationFlowComponentResponse {
2967
2989
  | 'claude-4.5-sonnet'
2968
2990
  | 'claude-4.6-sonnet'
2969
2991
  | 'claude-4.5-haiku'
2970
- | 'gemini-2.5-flash-lite'
2971
2992
  | 'gemini-3.0-flash'
2972
2993
  | 'gemini-3.1-flash-lite';
2973
2994
 
@@ -3442,7 +3463,6 @@ export namespace ConversationFlowComponentResponse {
3442
3463
  | 'claude-4.5-sonnet'
3443
3464
  | 'claude-4.6-sonnet'
3444
3465
  | 'claude-4.5-haiku'
3445
- | 'gemini-2.5-flash-lite'
3446
3466
  | 'gemini-3.0-flash'
3447
3467
  | 'gemini-3.1-flash-lite';
3448
3468
 
@@ -3924,7 +3944,6 @@ export namespace ConversationFlowComponentResponse {
3924
3944
  | 'claude-4.5-sonnet'
3925
3945
  | 'claude-4.6-sonnet'
3926
3946
  | 'claude-4.5-haiku'
3927
- | 'gemini-2.5-flash-lite'
3928
3947
  | 'gemini-3.0-flash'
3929
3948
  | 'gemini-3.1-flash-lite';
3930
3949
 
@@ -4149,6 +4168,13 @@ export namespace ConversationFlowComponentResponse {
4149
4168
  */
4150
4169
  agent_detection_timeout_ms?: number;
4151
4170
 
4171
+ /**
4172
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
4173
+ * `custom`. Must reference an audio asset owned by the organization (see
4174
+ * create-asset).
4175
+ */
4176
+ custom_on_hold_music_asset_id?: string;
4177
+
4152
4178
  /**
4153
4179
  * Whether to play an audio cue when bridging the call. Defaults to true.
4154
4180
  */
@@ -4161,9 +4187,10 @@ export namespace ConversationFlowComponentResponse {
4161
4187
  ivr_option?: TransferOptionWarmTransfer.IvrOption;
4162
4188
 
4163
4189
  /**
4164
- * The music to play while the caller is being transferred.
4190
+ * The music to play while the caller is being transferred. Use `custom` together
4191
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
4165
4192
  */
4166
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
4193
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
4167
4194
 
4168
4195
  /**
4169
4196
  * If set to true, will not perform human detection for the transfer. Default to
@@ -4265,15 +4292,23 @@ export namespace ConversationFlowComponentResponse {
4265
4292
  */
4266
4293
  type: 'agentic_warm_transfer';
4267
4294
 
4295
+ /**
4296
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
4297
+ * `custom`. Must reference an audio asset owned by the organization (see
4298
+ * create-asset).
4299
+ */
4300
+ custom_on_hold_music_asset_id?: string;
4301
+
4268
4302
  /**
4269
4303
  * Whether to play an audio cue when bridging the call. Defaults to true.
4270
4304
  */
4271
4305
  enable_bridge_audio_cue?: boolean;
4272
4306
 
4273
4307
  /**
4274
- * The music to play while the caller is being transferred.
4308
+ * The music to play while the caller is being transferred. Use `custom` together
4309
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
4275
4310
  */
4276
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
4311
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
4277
4312
 
4278
4313
  /**
4279
4314
  * If set, when transfer is successful, will say the handoff message to both the
@@ -4577,7 +4612,6 @@ export namespace ConversationFlowComponentResponse {
4577
4612
  | 'claude-4.5-sonnet'
4578
4613
  | 'claude-4.6-sonnet'
4579
4614
  | 'claude-4.5-haiku'
4580
- | 'gemini-2.5-flash-lite'
4581
4615
  | 'gemini-3.0-flash'
4582
4616
  | 'gemini-3.1-flash-lite';
4583
4617
 
@@ -5020,7 +5054,6 @@ export namespace ConversationFlowComponentResponse {
5020
5054
  | 'claude-4.5-sonnet'
5021
5055
  | 'claude-4.6-sonnet'
5022
5056
  | 'claude-4.5-haiku'
5023
- | 'gemini-2.5-flash-lite'
5024
5057
  | 'gemini-3.0-flash'
5025
5058
  | 'gemini-3.1-flash-lite';
5026
5059
 
@@ -5444,7 +5477,6 @@ export namespace ConversationFlowComponentResponse {
5444
5477
  | 'claude-4.5-sonnet'
5445
5478
  | 'claude-4.6-sonnet'
5446
5479
  | 'claude-4.5-haiku'
5447
- | 'gemini-2.5-flash-lite'
5448
5480
  | 'gemini-3.0-flash'
5449
5481
  | 'gemini-3.1-flash-lite';
5450
5482
 
@@ -5881,7 +5913,6 @@ export namespace ConversationFlowComponentResponse {
5881
5913
  | 'claude-4.5-sonnet'
5882
5914
  | 'claude-4.6-sonnet'
5883
5915
  | 'claude-4.5-haiku'
5884
- | 'gemini-2.5-flash-lite'
5885
5916
  | 'gemini-3.0-flash'
5886
5917
  | 'gemini-3.1-flash-lite';
5887
5918
 
@@ -6447,7 +6478,6 @@ export namespace ConversationFlowComponentResponse {
6447
6478
  | 'claude-4.5-sonnet'
6448
6479
  | 'claude-4.6-sonnet'
6449
6480
  | 'claude-4.5-haiku'
6450
- | 'gemini-2.5-flash-lite'
6451
6481
  | 'gemini-3.0-flash'
6452
6482
  | 'gemini-3.1-flash-lite';
6453
6483
 
@@ -6831,7 +6861,6 @@ export namespace ConversationFlowComponentResponse {
6831
6861
  | 'claude-4.5-sonnet'
6832
6862
  | 'claude-4.6-sonnet'
6833
6863
  | 'claude-4.5-haiku'
6834
- | 'gemini-2.5-flash-lite'
6835
6864
  | 'gemini-3.0-flash'
6836
6865
  | 'gemini-3.1-flash-lite';
6837
6866
 
@@ -7315,7 +7344,6 @@ export namespace ConversationFlowComponentResponse {
7315
7344
  | 'claude-4.5-sonnet'
7316
7345
  | 'claude-4.6-sonnet'
7317
7346
  | 'claude-4.5-haiku'
7318
- | 'gemini-2.5-flash-lite'
7319
7347
  | 'gemini-3.0-flash'
7320
7348
  | 'gemini-3.1-flash-lite';
7321
7349
 
@@ -7996,7 +8024,6 @@ export namespace ConversationFlowComponentResponse {
7996
8024
  | 'claude-4.5-sonnet'
7997
8025
  | 'claude-4.6-sonnet'
7998
8026
  | 'claude-4.5-haiku'
7999
- | 'gemini-2.5-flash-lite'
8000
8027
  | 'gemini-3.0-flash'
8001
8028
  | 'gemini-3.1-flash-lite';
8002
8029
 
@@ -8268,7 +8295,6 @@ export namespace ConversationFlowComponentResponse {
8268
8295
  | 'claude-4.5-sonnet'
8269
8296
  | 'claude-4.6-sonnet'
8270
8297
  | 'claude-4.5-haiku'
8271
- | 'gemini-2.5-flash-lite'
8272
8298
  | 'gemini-3.0-flash'
8273
8299
  | 'gemini-3.1-flash-lite';
8274
8300
 
@@ -8422,6 +8448,14 @@ export namespace ConversationFlowComponentResponse {
8422
8448
  */
8423
8449
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
8424
8450
 
8451
+ /**
8452
+ * How the tool's `parameters` are authored and shown in the dashboard editor —
8453
+ * "form" for the visual parameter builder, "json" for a raw JSON Schema. Both
8454
+ * produce the same `parameters` schema; this does not change how the request body
8455
+ * is encoded (see `args_at_root`).
8456
+ */
8457
+ parameter_type?: 'json' | 'form';
8458
+
8425
8459
  /**
8426
8460
  * The parameters the functions accepts, described as a JSON Schema object. See
8427
8461
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -9264,7 +9298,6 @@ export namespace ConversationFlowComponentCreateParams {
9264
9298
  | 'claude-4.5-sonnet'
9265
9299
  | 'claude-4.6-sonnet'
9266
9300
  | 'claude-4.5-haiku'
9267
- | 'gemini-2.5-flash-lite'
9268
9301
  | 'gemini-3.0-flash'
9269
9302
  | 'gemini-3.1-flash-lite';
9270
9303
 
@@ -9968,7 +10001,6 @@ export namespace ConversationFlowComponentCreateParams {
9968
10001
  | 'claude-4.5-sonnet'
9969
10002
  | 'claude-4.6-sonnet'
9970
10003
  | 'claude-4.5-haiku'
9971
- | 'gemini-2.5-flash-lite'
9972
10004
  | 'gemini-3.0-flash'
9973
10005
  | 'gemini-3.1-flash-lite';
9974
10006
 
@@ -10229,6 +10261,13 @@ export namespace ConversationFlowComponentCreateParams {
10229
10261
  */
10230
10262
  agent_detection_timeout_ms?: number;
10231
10263
 
10264
+ /**
10265
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
10266
+ * `custom`. Must reference an audio asset owned by the organization (see
10267
+ * create-asset).
10268
+ */
10269
+ custom_on_hold_music_asset_id?: string;
10270
+
10232
10271
  /**
10233
10272
  * Whether to play an audio cue when bridging the call. Defaults to true.
10234
10273
  */
@@ -10241,9 +10280,10 @@ export namespace ConversationFlowComponentCreateParams {
10241
10280
  ivr_option?: TransferOptionWarmTransfer.IvrOption;
10242
10281
 
10243
10282
  /**
10244
- * The music to play while the caller is being transferred.
10283
+ * The music to play while the caller is being transferred. Use `custom` together
10284
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
10245
10285
  */
10246
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
10286
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
10247
10287
 
10248
10288
  /**
10249
10289
  * If set to true, will not perform human detection for the transfer. Default to
@@ -10345,15 +10385,23 @@ export namespace ConversationFlowComponentCreateParams {
10345
10385
  */
10346
10386
  type: 'agentic_warm_transfer';
10347
10387
 
10388
+ /**
10389
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
10390
+ * `custom`. Must reference an audio asset owned by the organization (see
10391
+ * create-asset).
10392
+ */
10393
+ custom_on_hold_music_asset_id?: string;
10394
+
10348
10395
  /**
10349
10396
  * Whether to play an audio cue when bridging the call. Defaults to true.
10350
10397
  */
10351
10398
  enable_bridge_audio_cue?: boolean;
10352
10399
 
10353
10400
  /**
10354
- * The music to play while the caller is being transferred.
10401
+ * The music to play while the caller is being transferred. Use `custom` together
10402
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
10355
10403
  */
10356
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
10404
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
10357
10405
 
10358
10406
  /**
10359
10407
  * If set, when transfer is successful, will say the handoff message to both the
@@ -10741,6 +10789,14 @@ export namespace ConversationFlowComponentCreateParams {
10741
10789
  */
10742
10790
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
10743
10791
 
10792
+ /**
10793
+ * How the tool's `parameters` are authored and shown in the dashboard editor —
10794
+ * "form" for the visual parameter builder, "json" for a raw JSON Schema. Both
10795
+ * produce the same `parameters` schema; this does not change how the request body
10796
+ * is encoded (see `args_at_root`).
10797
+ */
10798
+ parameter_type?: 'json' | 'form';
10799
+
10744
10800
  /**
10745
10801
  * The parameters the functions accepts, described as a JSON Schema object. See
10746
10802
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -11446,7 +11502,6 @@ export namespace ConversationFlowComponentCreateParams {
11446
11502
  | 'claude-4.5-sonnet'
11447
11503
  | 'claude-4.6-sonnet'
11448
11504
  | 'claude-4.5-haiku'
11449
- | 'gemini-2.5-flash-lite'
11450
11505
  | 'gemini-3.0-flash'
11451
11506
  | 'gemini-3.1-flash-lite';
11452
11507
 
@@ -11921,7 +11976,6 @@ export namespace ConversationFlowComponentCreateParams {
11921
11976
  | 'claude-4.5-sonnet'
11922
11977
  | 'claude-4.6-sonnet'
11923
11978
  | 'claude-4.5-haiku'
11924
- | 'gemini-2.5-flash-lite'
11925
11979
  | 'gemini-3.0-flash'
11926
11980
  | 'gemini-3.1-flash-lite';
11927
11981
 
@@ -12403,7 +12457,6 @@ export namespace ConversationFlowComponentCreateParams {
12403
12457
  | 'claude-4.5-sonnet'
12404
12458
  | 'claude-4.6-sonnet'
12405
12459
  | 'claude-4.5-haiku'
12406
- | 'gemini-2.5-flash-lite'
12407
12460
  | 'gemini-3.0-flash'
12408
12461
  | 'gemini-3.1-flash-lite';
12409
12462
 
@@ -12628,6 +12681,13 @@ export namespace ConversationFlowComponentCreateParams {
12628
12681
  */
12629
12682
  agent_detection_timeout_ms?: number;
12630
12683
 
12684
+ /**
12685
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
12686
+ * `custom`. Must reference an audio asset owned by the organization (see
12687
+ * create-asset).
12688
+ */
12689
+ custom_on_hold_music_asset_id?: string;
12690
+
12631
12691
  /**
12632
12692
  * Whether to play an audio cue when bridging the call. Defaults to true.
12633
12693
  */
@@ -12640,9 +12700,10 @@ export namespace ConversationFlowComponentCreateParams {
12640
12700
  ivr_option?: TransferOptionWarmTransfer.IvrOption;
12641
12701
 
12642
12702
  /**
12643
- * The music to play while the caller is being transferred.
12703
+ * The music to play while the caller is being transferred. Use `custom` together
12704
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
12644
12705
  */
12645
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
12706
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
12646
12707
 
12647
12708
  /**
12648
12709
  * If set to true, will not perform human detection for the transfer. Default to
@@ -12744,15 +12805,23 @@ export namespace ConversationFlowComponentCreateParams {
12744
12805
  */
12745
12806
  type: 'agentic_warm_transfer';
12746
12807
 
12808
+ /**
12809
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
12810
+ * `custom`. Must reference an audio asset owned by the organization (see
12811
+ * create-asset).
12812
+ */
12813
+ custom_on_hold_music_asset_id?: string;
12814
+
12747
12815
  /**
12748
12816
  * Whether to play an audio cue when bridging the call. Defaults to true.
12749
12817
  */
12750
12818
  enable_bridge_audio_cue?: boolean;
12751
12819
 
12752
12820
  /**
12753
- * The music to play while the caller is being transferred.
12821
+ * The music to play while the caller is being transferred. Use `custom` together
12822
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
12754
12823
  */
12755
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
12824
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
12756
12825
 
12757
12826
  /**
12758
12827
  * If set, when transfer is successful, will say the handoff message to both the
@@ -13056,7 +13125,6 @@ export namespace ConversationFlowComponentCreateParams {
13056
13125
  | 'claude-4.5-sonnet'
13057
13126
  | 'claude-4.6-sonnet'
13058
13127
  | 'claude-4.5-haiku'
13059
- | 'gemini-2.5-flash-lite'
13060
13128
  | 'gemini-3.0-flash'
13061
13129
  | 'gemini-3.1-flash-lite';
13062
13130
 
@@ -13499,7 +13567,6 @@ export namespace ConversationFlowComponentCreateParams {
13499
13567
  | 'claude-4.5-sonnet'
13500
13568
  | 'claude-4.6-sonnet'
13501
13569
  | 'claude-4.5-haiku'
13502
- | 'gemini-2.5-flash-lite'
13503
13570
  | 'gemini-3.0-flash'
13504
13571
  | 'gemini-3.1-flash-lite';
13505
13572
 
@@ -13923,7 +13990,6 @@ export namespace ConversationFlowComponentCreateParams {
13923
13990
  | 'claude-4.5-sonnet'
13924
13991
  | 'claude-4.6-sonnet'
13925
13992
  | 'claude-4.5-haiku'
13926
- | 'gemini-2.5-flash-lite'
13927
13993
  | 'gemini-3.0-flash'
13928
13994
  | 'gemini-3.1-flash-lite';
13929
13995
 
@@ -14360,7 +14426,6 @@ export namespace ConversationFlowComponentCreateParams {
14360
14426
  | 'claude-4.5-sonnet'
14361
14427
  | 'claude-4.6-sonnet'
14362
14428
  | 'claude-4.5-haiku'
14363
- | 'gemini-2.5-flash-lite'
14364
14429
  | 'gemini-3.0-flash'
14365
14430
  | 'gemini-3.1-flash-lite';
14366
14431
 
@@ -14926,7 +14991,6 @@ export namespace ConversationFlowComponentCreateParams {
14926
14991
  | 'claude-4.5-sonnet'
14927
14992
  | 'claude-4.6-sonnet'
14928
14993
  | 'claude-4.5-haiku'
14929
- | 'gemini-2.5-flash-lite'
14930
14994
  | 'gemini-3.0-flash'
14931
14995
  | 'gemini-3.1-flash-lite';
14932
14996
 
@@ -15310,7 +15374,6 @@ export namespace ConversationFlowComponentCreateParams {
15310
15374
  | 'claude-4.5-sonnet'
15311
15375
  | 'claude-4.6-sonnet'
15312
15376
  | 'claude-4.5-haiku'
15313
- | 'gemini-2.5-flash-lite'
15314
15377
  | 'gemini-3.0-flash'
15315
15378
  | 'gemini-3.1-flash-lite';
15316
15379
 
@@ -15794,7 +15857,6 @@ export namespace ConversationFlowComponentCreateParams {
15794
15857
  | 'claude-4.5-sonnet'
15795
15858
  | 'claude-4.6-sonnet'
15796
15859
  | 'claude-4.5-haiku'
15797
- | 'gemini-2.5-flash-lite'
15798
15860
  | 'gemini-3.0-flash'
15799
15861
  | 'gemini-3.1-flash-lite';
15800
15862
 
@@ -16475,7 +16537,6 @@ export namespace ConversationFlowComponentCreateParams {
16475
16537
  | 'claude-4.5-sonnet'
16476
16538
  | 'claude-4.6-sonnet'
16477
16539
  | 'claude-4.5-haiku'
16478
- | 'gemini-2.5-flash-lite'
16479
16540
  | 'gemini-3.0-flash'
16480
16541
  | 'gemini-3.1-flash-lite';
16481
16542
 
@@ -16747,7 +16808,6 @@ export namespace ConversationFlowComponentCreateParams {
16747
16808
  | 'claude-4.5-sonnet'
16748
16809
  | 'claude-4.6-sonnet'
16749
16810
  | 'claude-4.5-haiku'
16750
- | 'gemini-2.5-flash-lite'
16751
16811
  | 'gemini-3.0-flash'
16752
16812
  | 'gemini-3.1-flash-lite';
16753
16813
 
@@ -16901,6 +16961,14 @@ export namespace ConversationFlowComponentCreateParams {
16901
16961
  */
16902
16962
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
16903
16963
 
16964
+ /**
16965
+ * How the tool's `parameters` are authored and shown in the dashboard editor —
16966
+ * "form" for the visual parameter builder, "json" for a raw JSON Schema. Both
16967
+ * produce the same `parameters` schema; this does not change how the request body
16968
+ * is encoded (see `args_at_root`).
16969
+ */
16970
+ parameter_type?: 'json' | 'form';
16971
+
16904
16972
  /**
16905
16973
  * The parameters the functions accepts, described as a JSON Schema object. See
16906
16974
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -17780,7 +17848,6 @@ export namespace ConversationFlowComponentUpdateParams {
17780
17848
  | 'claude-4.5-sonnet'
17781
17849
  | 'claude-4.6-sonnet'
17782
17850
  | 'claude-4.5-haiku'
17783
- | 'gemini-2.5-flash-lite'
17784
17851
  | 'gemini-3.0-flash'
17785
17852
  | 'gemini-3.1-flash-lite';
17786
17853
 
@@ -18484,7 +18551,6 @@ export namespace ConversationFlowComponentUpdateParams {
18484
18551
  | 'claude-4.5-sonnet'
18485
18552
  | 'claude-4.6-sonnet'
18486
18553
  | 'claude-4.5-haiku'
18487
- | 'gemini-2.5-flash-lite'
18488
18554
  | 'gemini-3.0-flash'
18489
18555
  | 'gemini-3.1-flash-lite';
18490
18556
 
@@ -18745,6 +18811,13 @@ export namespace ConversationFlowComponentUpdateParams {
18745
18811
  */
18746
18812
  agent_detection_timeout_ms?: number;
18747
18813
 
18814
+ /**
18815
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
18816
+ * `custom`. Must reference an audio asset owned by the organization (see
18817
+ * create-asset).
18818
+ */
18819
+ custom_on_hold_music_asset_id?: string;
18820
+
18748
18821
  /**
18749
18822
  * Whether to play an audio cue when bridging the call. Defaults to true.
18750
18823
  */
@@ -18757,9 +18830,10 @@ export namespace ConversationFlowComponentUpdateParams {
18757
18830
  ivr_option?: TransferOptionWarmTransfer.IvrOption;
18758
18831
 
18759
18832
  /**
18760
- * The music to play while the caller is being transferred.
18833
+ * The music to play while the caller is being transferred. Use `custom` together
18834
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
18761
18835
  */
18762
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
18836
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
18763
18837
 
18764
18838
  /**
18765
18839
  * If set to true, will not perform human detection for the transfer. Default to
@@ -18861,15 +18935,23 @@ export namespace ConversationFlowComponentUpdateParams {
18861
18935
  */
18862
18936
  type: 'agentic_warm_transfer';
18863
18937
 
18938
+ /**
18939
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
18940
+ * `custom`. Must reference an audio asset owned by the organization (see
18941
+ * create-asset).
18942
+ */
18943
+ custom_on_hold_music_asset_id?: string;
18944
+
18864
18945
  /**
18865
18946
  * Whether to play an audio cue when bridging the call. Defaults to true.
18866
18947
  */
18867
18948
  enable_bridge_audio_cue?: boolean;
18868
18949
 
18869
18950
  /**
18870
- * The music to play while the caller is being transferred.
18951
+ * The music to play while the caller is being transferred. Use `custom` together
18952
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
18871
18953
  */
18872
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
18954
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
18873
18955
 
18874
18956
  /**
18875
18957
  * If set, when transfer is successful, will say the handoff message to both the
@@ -19257,6 +19339,14 @@ export namespace ConversationFlowComponentUpdateParams {
19257
19339
  */
19258
19340
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
19259
19341
 
19342
+ /**
19343
+ * How the tool's `parameters` are authored and shown in the dashboard editor —
19344
+ * "form" for the visual parameter builder, "json" for a raw JSON Schema. Both
19345
+ * produce the same `parameters` schema; this does not change how the request body
19346
+ * is encoded (see `args_at_root`).
19347
+ */
19348
+ parameter_type?: 'json' | 'form';
19349
+
19260
19350
  /**
19261
19351
  * The parameters the functions accepts, described as a JSON Schema object. See
19262
19352
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -19962,7 +20052,6 @@ export namespace ConversationFlowComponentUpdateParams {
19962
20052
  | 'claude-4.5-sonnet'
19963
20053
  | 'claude-4.6-sonnet'
19964
20054
  | 'claude-4.5-haiku'
19965
- | 'gemini-2.5-flash-lite'
19966
20055
  | 'gemini-3.0-flash'
19967
20056
  | 'gemini-3.1-flash-lite';
19968
20057
 
@@ -20437,7 +20526,6 @@ export namespace ConversationFlowComponentUpdateParams {
20437
20526
  | 'claude-4.5-sonnet'
20438
20527
  | 'claude-4.6-sonnet'
20439
20528
  | 'claude-4.5-haiku'
20440
- | 'gemini-2.5-flash-lite'
20441
20529
  | 'gemini-3.0-flash'
20442
20530
  | 'gemini-3.1-flash-lite';
20443
20531
 
@@ -20919,7 +21007,6 @@ export namespace ConversationFlowComponentUpdateParams {
20919
21007
  | 'claude-4.5-sonnet'
20920
21008
  | 'claude-4.6-sonnet'
20921
21009
  | 'claude-4.5-haiku'
20922
- | 'gemini-2.5-flash-lite'
20923
21010
  | 'gemini-3.0-flash'
20924
21011
  | 'gemini-3.1-flash-lite';
20925
21012
 
@@ -21144,6 +21231,13 @@ export namespace ConversationFlowComponentUpdateParams {
21144
21231
  */
21145
21232
  agent_detection_timeout_ms?: number;
21146
21233
 
21234
+ /**
21235
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
21236
+ * `custom`. Must reference an audio asset owned by the organization (see
21237
+ * create-asset).
21238
+ */
21239
+ custom_on_hold_music_asset_id?: string;
21240
+
21147
21241
  /**
21148
21242
  * Whether to play an audio cue when bridging the call. Defaults to true.
21149
21243
  */
@@ -21156,9 +21250,10 @@ export namespace ConversationFlowComponentUpdateParams {
21156
21250
  ivr_option?: TransferOptionWarmTransfer.IvrOption;
21157
21251
 
21158
21252
  /**
21159
- * The music to play while the caller is being transferred.
21253
+ * The music to play while the caller is being transferred. Use `custom` together
21254
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
21160
21255
  */
21161
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
21256
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
21162
21257
 
21163
21258
  /**
21164
21259
  * If set to true, will not perform human detection for the transfer. Default to
@@ -21260,15 +21355,23 @@ export namespace ConversationFlowComponentUpdateParams {
21260
21355
  */
21261
21356
  type: 'agentic_warm_transfer';
21262
21357
 
21358
+ /**
21359
+ * Asset ID of the uploaded hold music to play. Required when `on_hold_music` is
21360
+ * `custom`. Must reference an audio asset owned by the organization (see
21361
+ * create-asset).
21362
+ */
21363
+ custom_on_hold_music_asset_id?: string;
21364
+
21263
21365
  /**
21264
21366
  * Whether to play an audio cue when bridging the call. Defaults to true.
21265
21367
  */
21266
21368
  enable_bridge_audio_cue?: boolean;
21267
21369
 
21268
21370
  /**
21269
- * The music to play while the caller is being transferred.
21371
+ * The music to play while the caller is being transferred. Use `custom` together
21372
+ * with `custom_on_hold_music_asset_id` to play an uploaded audio asset.
21270
21373
  */
21271
- on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
21374
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone' | 'custom';
21272
21375
 
21273
21376
  /**
21274
21377
  * If set, when transfer is successful, will say the handoff message to both the
@@ -21572,7 +21675,6 @@ export namespace ConversationFlowComponentUpdateParams {
21572
21675
  | 'claude-4.5-sonnet'
21573
21676
  | 'claude-4.6-sonnet'
21574
21677
  | 'claude-4.5-haiku'
21575
- | 'gemini-2.5-flash-lite'
21576
21678
  | 'gemini-3.0-flash'
21577
21679
  | 'gemini-3.1-flash-lite';
21578
21680
 
@@ -22015,7 +22117,6 @@ export namespace ConversationFlowComponentUpdateParams {
22015
22117
  | 'claude-4.5-sonnet'
22016
22118
  | 'claude-4.6-sonnet'
22017
22119
  | 'claude-4.5-haiku'
22018
- | 'gemini-2.5-flash-lite'
22019
22120
  | 'gemini-3.0-flash'
22020
22121
  | 'gemini-3.1-flash-lite';
22021
22122
 
@@ -22439,7 +22540,6 @@ export namespace ConversationFlowComponentUpdateParams {
22439
22540
  | 'claude-4.5-sonnet'
22440
22541
  | 'claude-4.6-sonnet'
22441
22542
  | 'claude-4.5-haiku'
22442
- | 'gemini-2.5-flash-lite'
22443
22543
  | 'gemini-3.0-flash'
22444
22544
  | 'gemini-3.1-flash-lite';
22445
22545
 
@@ -22876,7 +22976,6 @@ export namespace ConversationFlowComponentUpdateParams {
22876
22976
  | 'claude-4.5-sonnet'
22877
22977
  | 'claude-4.6-sonnet'
22878
22978
  | 'claude-4.5-haiku'
22879
- | 'gemini-2.5-flash-lite'
22880
22979
  | 'gemini-3.0-flash'
22881
22980
  | 'gemini-3.1-flash-lite';
22882
22981
 
@@ -23442,7 +23541,6 @@ export namespace ConversationFlowComponentUpdateParams {
23442
23541
  | 'claude-4.5-sonnet'
23443
23542
  | 'claude-4.6-sonnet'
23444
23543
  | 'claude-4.5-haiku'
23445
- | 'gemini-2.5-flash-lite'
23446
23544
  | 'gemini-3.0-flash'
23447
23545
  | 'gemini-3.1-flash-lite';
23448
23546
 
@@ -23826,7 +23924,6 @@ export namespace ConversationFlowComponentUpdateParams {
23826
23924
  | 'claude-4.5-sonnet'
23827
23925
  | 'claude-4.6-sonnet'
23828
23926
  | 'claude-4.5-haiku'
23829
- | 'gemini-2.5-flash-lite'
23830
23927
  | 'gemini-3.0-flash'
23831
23928
  | 'gemini-3.1-flash-lite';
23832
23929
 
@@ -24310,7 +24407,6 @@ export namespace ConversationFlowComponentUpdateParams {
24310
24407
  | 'claude-4.5-sonnet'
24311
24408
  | 'claude-4.6-sonnet'
24312
24409
  | 'claude-4.5-haiku'
24313
- | 'gemini-2.5-flash-lite'
24314
24410
  | 'gemini-3.0-flash'
24315
24411
  | 'gemini-3.1-flash-lite';
24316
24412
 
@@ -24991,7 +25087,6 @@ export namespace ConversationFlowComponentUpdateParams {
24991
25087
  | 'claude-4.5-sonnet'
24992
25088
  | 'claude-4.6-sonnet'
24993
25089
  | 'claude-4.5-haiku'
24994
- | 'gemini-2.5-flash-lite'
24995
25090
  | 'gemini-3.0-flash'
24996
25091
  | 'gemini-3.1-flash-lite';
24997
25092
 
@@ -25263,7 +25358,6 @@ export namespace ConversationFlowComponentUpdateParams {
25263
25358
  | 'claude-4.5-sonnet'
25264
25359
  | 'claude-4.6-sonnet'
25265
25360
  | 'claude-4.5-haiku'
25266
- | 'gemini-2.5-flash-lite'
25267
25361
  | 'gemini-3.0-flash'
25268
25362
  | 'gemini-3.1-flash-lite';
25269
25363
 
@@ -25383,6 +25477,14 @@ export namespace ConversationFlowComponentUpdateParams {
25383
25477
  */
25384
25478
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
25385
25479
 
25480
+ /**
25481
+ * How the tool's `parameters` are authored and shown in the dashboard editor —
25482
+ * "form" for the visual parameter builder, "json" for a raw JSON Schema. Both
25483
+ * produce the same `parameters` schema; this does not change how the request body
25484
+ * is encoded (see `args_at_root`).
25485
+ */
25486
+ parameter_type?: 'json' | 'form';
25487
+
25386
25488
  /**
25387
25489
  * The parameters the functions accepts, described as a JSON Schema object. See
25388
25490
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for