retell-sdk 5.63.0 → 5.65.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 (147) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +29 -0
  3. package/client.d.mts +20 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +20 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent.d.mts +102 -12
  13. package/resources/agent.d.mts.map +1 -1
  14. package/resources/agent.d.ts +102 -12
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +32 -4
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +32 -4
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/app.d.mts +439 -0
  21. package/resources/app.d.mts.map +1 -0
  22. package/resources/app.d.ts +439 -0
  23. package/resources/app.d.ts.map +1 -0
  24. package/resources/app.js +69 -0
  25. package/resources/app.js.map +1 -0
  26. package/resources/app.mjs +65 -0
  27. package/resources/app.mjs.map +1 -0
  28. package/resources/asset.d.mts +53 -0
  29. package/resources/asset.d.mts.map +1 -0
  30. package/resources/asset.d.ts +53 -0
  31. package/resources/asset.d.ts.map +1 -0
  32. package/resources/asset.js +20 -0
  33. package/resources/asset.js.map +1 -0
  34. package/resources/asset.mjs +16 -0
  35. package/resources/asset.mjs.map +1 -0
  36. package/resources/batch-call.d.mts +4 -2
  37. package/resources/batch-call.d.mts.map +1 -1
  38. package/resources/batch-call.d.ts +4 -2
  39. package/resources/batch-call.d.ts.map +1 -1
  40. package/resources/call.d.mts +221 -27
  41. package/resources/call.d.mts.map +1 -1
  42. package/resources/call.d.ts +221 -27
  43. package/resources/call.d.ts.map +1 -1
  44. package/resources/call.js +37 -5
  45. package/resources/call.js.map +1 -1
  46. package/resources/call.mjs +37 -5
  47. package/resources/call.mjs.map +1 -1
  48. package/resources/chat-agent.d.mts +4 -10
  49. package/resources/chat-agent.d.mts.map +1 -1
  50. package/resources/chat-agent.d.ts +4 -10
  51. package/resources/chat-agent.d.ts.map +1 -1
  52. package/resources/chat-agent.js +2 -8
  53. package/resources/chat-agent.js.map +1 -1
  54. package/resources/chat-agent.mjs +2 -8
  55. package/resources/chat-agent.mjs.map +1 -1
  56. package/resources/chat.d.mts +24 -11
  57. package/resources/chat.d.mts.map +1 -1
  58. package/resources/chat.d.ts +24 -11
  59. package/resources/chat.d.ts.map +1 -1
  60. package/resources/contact.d.mts +669 -0
  61. package/resources/contact.d.mts.map +1 -0
  62. package/resources/contact.d.ts +669 -0
  63. package/resources/contact.d.ts.map +1 -0
  64. package/resources/contact.js +100 -0
  65. package/resources/contact.js.map +1 -0
  66. package/resources/contact.mjs +96 -0
  67. package/resources/contact.mjs.map +1 -0
  68. package/resources/conversation-flow-component.d.mts +56 -8
  69. package/resources/conversation-flow-component.d.mts.map +1 -1
  70. package/resources/conversation-flow-component.d.ts +56 -8
  71. package/resources/conversation-flow-component.d.ts.map +1 -1
  72. package/resources/conversation-flow.d.mts +120 -16
  73. package/resources/conversation-flow.d.mts.map +1 -1
  74. package/resources/conversation-flow.d.ts +120 -16
  75. package/resources/conversation-flow.d.ts.map +1 -1
  76. package/resources/conversation-flow.js +3 -1
  77. package/resources/conversation-flow.js.map +1 -1
  78. package/resources/conversation-flow.mjs +3 -1
  79. package/resources/conversation-flow.mjs.map +1 -1
  80. package/resources/crm.d.mts +226 -0
  81. package/resources/crm.d.mts.map +1 -0
  82. package/resources/crm.d.ts +226 -0
  83. package/resources/crm.d.ts.map +1 -0
  84. package/resources/crm.js +46 -0
  85. package/resources/crm.js.map +1 -0
  86. package/resources/crm.mjs +42 -0
  87. package/resources/crm.mjs.map +1 -0
  88. package/resources/export-request.d.mts +2 -2
  89. package/resources/export-request.d.mts.map +1 -1
  90. package/resources/export-request.d.ts +2 -2
  91. package/resources/export-request.d.ts.map +1 -1
  92. package/resources/index.d.mts +8 -4
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +8 -4
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/knowledge-base.d.mts +16 -8
  101. package/resources/knowledge-base.d.mts.map +1 -1
  102. package/resources/knowledge-base.d.ts +16 -8
  103. package/resources/knowledge-base.d.ts.map +1 -1
  104. package/resources/llm.d.mts +66 -10
  105. package/resources/llm.d.mts.map +1 -1
  106. package/resources/llm.d.ts +66 -10
  107. package/resources/llm.d.ts.map +1 -1
  108. package/resources/llm.js +3 -1
  109. package/resources/llm.js.map +1 -1
  110. package/resources/llm.mjs +3 -1
  111. package/resources/llm.mjs.map +1 -1
  112. package/resources/phone-number.d.mts +14 -8
  113. package/resources/phone-number.d.mts.map +1 -1
  114. package/resources/phone-number.d.ts +14 -8
  115. package/resources/phone-number.d.ts.map +1 -1
  116. package/resources/tests.d.mts +6 -6
  117. package/resources/tests.d.mts.map +1 -1
  118. package/resources/tests.d.ts +6 -6
  119. package/resources/tests.d.ts.map +1 -1
  120. package/resources/voice.d.mts +4 -4
  121. package/resources/voice.d.mts.map +1 -1
  122. package/resources/voice.d.ts +4 -4
  123. package/resources/voice.d.ts.map +1 -1
  124. package/src/client.ts +116 -0
  125. package/src/resources/agent.ts +141 -9
  126. package/src/resources/app.ts +593 -0
  127. package/src/resources/asset.ts +69 -0
  128. package/src/resources/batch-call.ts +6 -1
  129. package/src/resources/call.ts +289 -25
  130. package/src/resources/chat-agent.ts +4 -10
  131. package/src/resources/chat.ts +28 -11
  132. package/src/resources/contact.ts +910 -0
  133. package/src/resources/conversation-flow-component.ts +56 -8
  134. package/src/resources/conversation-flow.ts +127 -15
  135. package/src/resources/crm.ts +298 -0
  136. package/src/resources/export-request.ts +2 -2
  137. package/src/resources/index.ts +50 -0
  138. package/src/resources/knowledge-base.ts +16 -8
  139. package/src/resources/llm.ts +73 -9
  140. package/src/resources/phone-number.ts +14 -8
  141. package/src/resources/tests.ts +6 -6
  142. package/src/resources/voice.ts +4 -4
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -2011,6 +2011,9 @@ export namespace ConversationFlowComponentResponse {
2011
2011
  }
2012
2012
  }
2013
2013
 
2014
+ /**
2015
+ * @deprecated
2016
+ */
2014
2017
  export interface CheckAvailabilityCalTool {
2015
2018
  /**
2016
2019
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -2051,6 +2054,9 @@ export namespace ConversationFlowComponentResponse {
2051
2054
  timezone?: string;
2052
2055
  }
2053
2056
 
2057
+ /**
2058
+ * @deprecated
2059
+ */
2054
2060
  export interface BookAppointmentCalTool {
2055
2061
  /**
2056
2062
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -2141,7 +2147,9 @@ export namespace ConversationFlowComponentResponse {
2141
2147
  keep_current_language?: boolean;
2142
2148
 
2143
2149
  /**
2144
- * If true, keep the current voice when swapping agents. Defaults to false.
2150
+ * If true, keep the current voice and ambient sound settings when swapping agents.
2151
+ * Otherwise, use the destination agent's voice and ambient sound settings.
2152
+ * Defaults to false.
2145
2153
  */
2146
2154
  keep_current_voice?: boolean;
2147
2155
 
@@ -6641,7 +6649,9 @@ export namespace ConversationFlowComponentResponse {
6641
6649
  keep_current_language?: boolean;
6642
6650
 
6643
6651
  /**
6644
- * If true, keep the current voice when swapping agents. Defaults to false.
6652
+ * If true, keep the current voice and ambient sound settings when swapping agents.
6653
+ * Otherwise, use the destination agent's voice and ambient sound settings.
6654
+ * Defaults to false.
6645
6655
  */
6646
6656
  keep_current_voice?: boolean;
6647
6657
 
@@ -8669,6 +8679,9 @@ export namespace ConversationFlowComponentResponse {
8669
8679
  }
8670
8680
  }
8671
8681
 
8682
+ /**
8683
+ * @deprecated
8684
+ */
8672
8685
  export interface CheckAvailabilityCalTool {
8673
8686
  /**
8674
8687
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -8714,6 +8727,9 @@ export namespace ConversationFlowComponentResponse {
8714
8727
  tool_id?: string;
8715
8728
  }
8716
8729
 
8730
+ /**
8731
+ * @deprecated
8732
+ */
8717
8733
  export interface BookAppointmentCalTool {
8718
8734
  /**
8719
8735
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -8764,9 +8780,9 @@ export interface ConversationFlowComponentListResponse {
8764
8780
  /**
8765
8781
  * Whether more results are available.
8766
8782
  */
8767
- has_more?: boolean;
8783
+ has_more: boolean;
8768
8784
 
8769
- items?: Array<ConversationFlowComponentResponse>;
8785
+ items: Array<ConversationFlowComponentResponse>;
8770
8786
 
8771
8787
  /**
8772
8788
  * Pagination key for the next page.
@@ -10660,6 +10676,9 @@ export namespace ConversationFlowComponentCreateParams {
10660
10676
  }
10661
10677
  }
10662
10678
 
10679
+ /**
10680
+ * @deprecated
10681
+ */
10663
10682
  export interface CheckAvailabilityCalTool {
10664
10683
  /**
10665
10684
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -10700,6 +10719,9 @@ export namespace ConversationFlowComponentCreateParams {
10700
10719
  timezone?: string;
10701
10720
  }
10702
10721
 
10722
+ /**
10723
+ * @deprecated
10724
+ */
10703
10725
  export interface BookAppointmentCalTool {
10704
10726
  /**
10705
10727
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -10790,7 +10812,9 @@ export namespace ConversationFlowComponentCreateParams {
10790
10812
  keep_current_language?: boolean;
10791
10813
 
10792
10814
  /**
10793
- * If true, keep the current voice when swapping agents. Defaults to false.
10815
+ * If true, keep the current voice and ambient sound settings when swapping agents.
10816
+ * Otherwise, use the destination agent's voice and ambient sound settings.
10817
+ * Defaults to false.
10794
10818
  */
10795
10819
  keep_current_voice?: boolean;
10796
10820
 
@@ -15290,7 +15314,9 @@ export namespace ConversationFlowComponentCreateParams {
15290
15314
  keep_current_language?: boolean;
15291
15315
 
15292
15316
  /**
15293
- * If true, keep the current voice when swapping agents. Defaults to false.
15317
+ * If true, keep the current voice and ambient sound settings when swapping agents.
15318
+ * Otherwise, use the destination agent's voice and ambient sound settings.
15319
+ * Defaults to false.
15294
15320
  */
15295
15321
  keep_current_voice?: boolean;
15296
15322
 
@@ -17318,6 +17344,9 @@ export namespace ConversationFlowComponentCreateParams {
17318
17344
  }
17319
17345
  }
17320
17346
 
17347
+ /**
17348
+ * @deprecated
17349
+ */
17321
17350
  export interface CheckAvailabilityCalTool {
17322
17351
  /**
17323
17352
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -17363,6 +17392,9 @@ export namespace ConversationFlowComponentCreateParams {
17363
17392
  tool_id?: string;
17364
17393
  }
17365
17394
 
17395
+ /**
17396
+ * @deprecated
17397
+ */
17366
17398
  export interface BookAppointmentCalTool {
17367
17399
  /**
17368
17400
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -19329,6 +19361,9 @@ export namespace ConversationFlowComponentUpdateParams {
19329
19361
  }
19330
19362
  }
19331
19363
 
19364
+ /**
19365
+ * @deprecated
19366
+ */
19332
19367
  export interface CheckAvailabilityCalTool {
19333
19368
  /**
19334
19369
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -19369,6 +19404,9 @@ export namespace ConversationFlowComponentUpdateParams {
19369
19404
  timezone?: string;
19370
19405
  }
19371
19406
 
19407
+ /**
19408
+ * @deprecated
19409
+ */
19372
19410
  export interface BookAppointmentCalTool {
19373
19411
  /**
19374
19412
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -19459,7 +19497,9 @@ export namespace ConversationFlowComponentUpdateParams {
19459
19497
  keep_current_language?: boolean;
19460
19498
 
19461
19499
  /**
19462
- * If true, keep the current voice when swapping agents. Defaults to false.
19500
+ * If true, keep the current voice and ambient sound settings when swapping agents.
19501
+ * Otherwise, use the destination agent's voice and ambient sound settings.
19502
+ * Defaults to false.
19463
19503
  */
19464
19504
  keep_current_voice?: boolean;
19465
19505
 
@@ -23959,7 +23999,9 @@ export namespace ConversationFlowComponentUpdateParams {
23959
23999
  keep_current_language?: boolean;
23960
24000
 
23961
24001
  /**
23962
- * If true, keep the current voice when swapping agents. Defaults to false.
24002
+ * If true, keep the current voice and ambient sound settings when swapping agents.
24003
+ * Otherwise, use the destination agent's voice and ambient sound settings.
24004
+ * Defaults to false.
23963
24005
  */
23964
24006
  keep_current_voice?: boolean;
23965
24007
 
@@ -25953,6 +25995,9 @@ export namespace ConversationFlowComponentUpdateParams {
25953
25995
  }
25954
25996
  }
25955
25997
 
25998
+ /**
25999
+ * @deprecated
26000
+ */
25956
26001
  export interface CheckAvailabilityCalTool {
25957
26002
  /**
25958
26003
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -25998,6 +26043,9 @@ export namespace ConversationFlowComponentUpdateParams {
25998
26043
  tool_id?: string;
25999
26044
  }
26000
26045
 
26046
+ /**
26047
+ * @deprecated
26048
+ */
26001
26049
  export interface BookAppointmentCalTool {
26002
26050
  /**
26003
26051
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -103,8 +103,14 @@ export class ConversationFlow extends APIResource {
103
103
  * );
104
104
  * ```
105
105
  */
106
- delete(conversationFlowID: string, options?: RequestOptions): APIPromise<void> {
106
+ delete(
107
+ conversationFlowID: string,
108
+ params: ConversationFlowDeleteParams | null | undefined = {},
109
+ options?: RequestOptions,
110
+ ): APIPromise<void> {
111
+ const { force_delete } = params ?? {};
107
112
  return this._client.delete(path`/delete-conversation-flow/${conversationFlowID}`, {
113
+ query: { force_delete },
108
114
  ...options,
109
115
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
110
116
  });
@@ -2141,6 +2147,9 @@ export namespace ConversationFlowResponse {
2141
2147
  }
2142
2148
  }
2143
2149
 
2150
+ /**
2151
+ * @deprecated
2152
+ */
2144
2153
  export interface CheckAvailabilityCalTool {
2145
2154
  /**
2146
2155
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -2181,6 +2190,9 @@ export namespace ConversationFlowResponse {
2181
2190
  timezone?: string;
2182
2191
  }
2183
2192
 
2193
+ /**
2194
+ * @deprecated
2195
+ */
2184
2196
  export interface BookAppointmentCalTool {
2185
2197
  /**
2186
2198
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -2271,7 +2283,9 @@ export namespace ConversationFlowResponse {
2271
2283
  keep_current_language?: boolean;
2272
2284
 
2273
2285
  /**
2274
- * If true, keep the current voice when swapping agents. Defaults to false.
2286
+ * If true, keep the current voice and ambient sound settings when swapping agents.
2287
+ * Otherwise, use the destination agent's voice and ambient sound settings.
2288
+ * Defaults to false.
2275
2289
  */
2276
2290
  keep_current_voice?: boolean;
2277
2291
 
@@ -6771,7 +6785,9 @@ export namespace ConversationFlowResponse {
6771
6785
  keep_current_language?: boolean;
6772
6786
 
6773
6787
  /**
6774
- * If true, keep the current voice when swapping agents. Defaults to false.
6788
+ * If true, keep the current voice and ambient sound settings when swapping agents.
6789
+ * Otherwise, use the destination agent's voice and ambient sound settings.
6790
+ * Defaults to false.
6775
6791
  */
6776
6792
  keep_current_voice?: boolean;
6777
6793
 
@@ -8799,6 +8815,9 @@ export namespace ConversationFlowResponse {
8799
8815
  }
8800
8816
  }
8801
8817
 
8818
+ /**
8819
+ * @deprecated
8820
+ */
8802
8821
  export interface CheckAvailabilityCalTool {
8803
8822
  /**
8804
8823
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -8844,6 +8863,9 @@ export namespace ConversationFlowResponse {
8844
8863
  tool_id?: string;
8845
8864
  }
8846
8865
 
8866
+ /**
8867
+ * @deprecated
8868
+ */
8847
8869
  export interface BookAppointmentCalTool {
8848
8870
  /**
8849
8871
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -10796,6 +10818,9 @@ export namespace ConversationFlowResponse {
10796
10818
  }
10797
10819
  }
10798
10820
 
10821
+ /**
10822
+ * @deprecated
10823
+ */
10799
10824
  export interface CheckAvailabilityCalTool {
10800
10825
  /**
10801
10826
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -10836,6 +10861,9 @@ export namespace ConversationFlowResponse {
10836
10861
  timezone?: string;
10837
10862
  }
10838
10863
 
10864
+ /**
10865
+ * @deprecated
10866
+ */
10839
10867
  export interface BookAppointmentCalTool {
10840
10868
  /**
10841
10869
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -10926,7 +10954,9 @@ export namespace ConversationFlowResponse {
10926
10954
  keep_current_language?: boolean;
10927
10955
 
10928
10956
  /**
10929
- * If true, keep the current voice when swapping agents. Defaults to false.
10957
+ * If true, keep the current voice and ambient sound settings when swapping agents.
10958
+ * Otherwise, use the destination agent's voice and ambient sound settings.
10959
+ * Defaults to false.
10930
10960
  */
10931
10961
  keep_current_voice?: boolean;
10932
10962
 
@@ -15426,7 +15456,9 @@ export namespace ConversationFlowResponse {
15426
15456
  keep_current_language?: boolean;
15427
15457
 
15428
15458
  /**
15429
- * If true, keep the current voice when swapping agents. Defaults to false.
15459
+ * If true, keep the current voice and ambient sound settings when swapping agents.
15460
+ * Otherwise, use the destination agent's voice and ambient sound settings.
15461
+ * Defaults to false.
15430
15462
  */
15431
15463
  keep_current_voice?: boolean;
15432
15464
 
@@ -17420,6 +17452,9 @@ export namespace ConversationFlowResponse {
17420
17452
  }
17421
17453
  }
17422
17454
 
17455
+ /**
17456
+ * @deprecated
17457
+ */
17423
17458
  export interface CheckAvailabilityCalTool {
17424
17459
  /**
17425
17460
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -17465,6 +17500,9 @@ export namespace ConversationFlowResponse {
17465
17500
  tool_id?: string;
17466
17501
  }
17467
17502
 
17503
+ /**
17504
+ * @deprecated
17505
+ */
17468
17506
  export interface BookAppointmentCalTool {
17469
17507
  /**
17470
17508
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -17515,9 +17553,9 @@ export interface ConversationFlowListResponse {
17515
17553
  /**
17516
17554
  * Whether more results are available.
17517
17555
  */
17518
- has_more?: boolean;
17556
+ has_more: boolean;
17519
17557
 
17520
- items?: Array<ConversationFlowResponse>;
17558
+ items: Array<ConversationFlowResponse>;
17521
17559
 
17522
17560
  /**
17523
17561
  * Pagination key for the next page.
@@ -19512,6 +19550,9 @@ export namespace ConversationFlowCreateParams {
19512
19550
  }
19513
19551
  }
19514
19552
 
19553
+ /**
19554
+ * @deprecated
19555
+ */
19515
19556
  export interface CheckAvailabilityCalTool {
19516
19557
  /**
19517
19558
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -19552,6 +19593,9 @@ export namespace ConversationFlowCreateParams {
19552
19593
  timezone?: string;
19553
19594
  }
19554
19595
 
19596
+ /**
19597
+ * @deprecated
19598
+ */
19555
19599
  export interface BookAppointmentCalTool {
19556
19600
  /**
19557
19601
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -19642,7 +19686,9 @@ export namespace ConversationFlowCreateParams {
19642
19686
  keep_current_language?: boolean;
19643
19687
 
19644
19688
  /**
19645
- * If true, keep the current voice when swapping agents. Defaults to false.
19689
+ * If true, keep the current voice and ambient sound settings when swapping agents.
19690
+ * Otherwise, use the destination agent's voice and ambient sound settings.
19691
+ * Defaults to false.
19646
19692
  */
19647
19693
  keep_current_voice?: boolean;
19648
19694
 
@@ -24142,7 +24188,9 @@ export namespace ConversationFlowCreateParams {
24142
24188
  keep_current_language?: boolean;
24143
24189
 
24144
24190
  /**
24145
- * If true, keep the current voice when swapping agents. Defaults to false.
24191
+ * If true, keep the current voice and ambient sound settings when swapping agents.
24192
+ * Otherwise, use the destination agent's voice and ambient sound settings.
24193
+ * Defaults to false.
24146
24194
  */
24147
24195
  keep_current_voice?: boolean;
24148
24196
 
@@ -27826,6 +27874,9 @@ export namespace ConversationFlowCreateParams {
27826
27874
  }
27827
27875
  }
27828
27876
 
27877
+ /**
27878
+ * @deprecated
27879
+ */
27829
27880
  export interface CheckAvailabilityCalTool {
27830
27881
  /**
27831
27882
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -27866,6 +27917,9 @@ export namespace ConversationFlowCreateParams {
27866
27917
  timezone?: string;
27867
27918
  }
27868
27919
 
27920
+ /**
27921
+ * @deprecated
27922
+ */
27869
27923
  export interface BookAppointmentCalTool {
27870
27924
  /**
27871
27925
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -27956,7 +28010,9 @@ export namespace ConversationFlowCreateParams {
27956
28010
  keep_current_language?: boolean;
27957
28011
 
27958
28012
  /**
27959
- * If true, keep the current voice when swapping agents. Defaults to false.
28013
+ * If true, keep the current voice and ambient sound settings when swapping agents.
28014
+ * Otherwise, use the destination agent's voice and ambient sound settings.
28015
+ * Defaults to false.
27960
28016
  */
27961
28017
  keep_current_voice?: boolean;
27962
28018
 
@@ -32456,7 +32512,9 @@ export namespace ConversationFlowCreateParams {
32456
32512
  keep_current_language?: boolean;
32457
32513
 
32458
32514
  /**
32459
- * If true, keep the current voice when swapping agents. Defaults to false.
32515
+ * If true, keep the current voice and ambient sound settings when swapping agents.
32516
+ * Otherwise, use the destination agent's voice and ambient sound settings.
32517
+ * Defaults to false.
32460
32518
  */
32461
32519
  keep_current_voice?: boolean;
32462
32520
 
@@ -34484,6 +34542,9 @@ export namespace ConversationFlowCreateParams {
34484
34542
  }
34485
34543
  }
34486
34544
 
34545
+ /**
34546
+ * @deprecated
34547
+ */
34487
34548
  export interface CheckAvailabilityCalTool {
34488
34549
  /**
34489
34550
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -34529,6 +34590,9 @@ export namespace ConversationFlowCreateParams {
34529
34590
  tool_id?: string;
34530
34591
  }
34531
34592
 
34593
+ /**
34594
+ * @deprecated
34595
+ */
34532
34596
  export interface BookAppointmentCalTool {
34533
34597
  /**
34534
34598
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -34818,6 +34882,9 @@ export namespace ConversationFlowCreateParams {
34818
34882
  }
34819
34883
  }
34820
34884
 
34885
+ /**
34886
+ * @deprecated
34887
+ */
34821
34888
  export interface CheckAvailabilityCalTool {
34822
34889
  /**
34823
34890
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -34863,6 +34930,9 @@ export namespace ConversationFlowCreateParams {
34863
34930
  tool_id?: string;
34864
34931
  }
34865
34932
 
34933
+ /**
34934
+ * @deprecated
34935
+ */
34866
34936
  export interface BookAppointmentCalTool {
34867
34937
  /**
34868
34938
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -36938,6 +37008,9 @@ export namespace ConversationFlowUpdateParams {
36938
37008
  }
36939
37009
  }
36940
37010
 
37011
+ /**
37012
+ * @deprecated
37013
+ */
36941
37014
  export interface CheckAvailabilityCalTool {
36942
37015
  /**
36943
37016
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -36978,6 +37051,9 @@ export namespace ConversationFlowUpdateParams {
36978
37051
  timezone?: string;
36979
37052
  }
36980
37053
 
37054
+ /**
37055
+ * @deprecated
37056
+ */
36981
37057
  export interface BookAppointmentCalTool {
36982
37058
  /**
36983
37059
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -37068,7 +37144,9 @@ export namespace ConversationFlowUpdateParams {
37068
37144
  keep_current_language?: boolean;
37069
37145
 
37070
37146
  /**
37071
- * If true, keep the current voice when swapping agents. Defaults to false.
37147
+ * If true, keep the current voice and ambient sound settings when swapping agents.
37148
+ * Otherwise, use the destination agent's voice and ambient sound settings.
37149
+ * Defaults to false.
37072
37150
  */
37073
37151
  keep_current_voice?: boolean;
37074
37152
 
@@ -41568,7 +41646,9 @@ export namespace ConversationFlowUpdateParams {
41568
41646
  keep_current_language?: boolean;
41569
41647
 
41570
41648
  /**
41571
- * If true, keep the current voice when swapping agents. Defaults to false.
41649
+ * If true, keep the current voice and ambient sound settings when swapping agents.
41650
+ * Otherwise, use the destination agent's voice and ambient sound settings.
41651
+ * Defaults to false.
41572
41652
  */
41573
41653
  keep_current_voice?: boolean;
41574
41654
 
@@ -43596,6 +43676,9 @@ export namespace ConversationFlowUpdateParams {
43596
43676
  }
43597
43677
  }
43598
43678
 
43679
+ /**
43680
+ * @deprecated
43681
+ */
43599
43682
  export interface CheckAvailabilityCalTool {
43600
43683
  /**
43601
43684
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -43641,6 +43724,9 @@ export namespace ConversationFlowUpdateParams {
43641
43724
  tool_id?: string;
43642
43725
  }
43643
43726
 
43727
+ /**
43728
+ * @deprecated
43729
+ */
43644
43730
  export interface BookAppointmentCalTool {
43645
43731
  /**
43646
43732
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -45593,6 +45679,9 @@ export namespace ConversationFlowUpdateParams {
45593
45679
  }
45594
45680
  }
45595
45681
 
45682
+ /**
45683
+ * @deprecated
45684
+ */
45596
45685
  export interface CheckAvailabilityCalTool {
45597
45686
  /**
45598
45687
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -45633,6 +45722,9 @@ export namespace ConversationFlowUpdateParams {
45633
45722
  timezone?: string;
45634
45723
  }
45635
45724
 
45725
+ /**
45726
+ * @deprecated
45727
+ */
45636
45728
  export interface BookAppointmentCalTool {
45637
45729
  /**
45638
45730
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -45723,7 +45815,9 @@ export namespace ConversationFlowUpdateParams {
45723
45815
  keep_current_language?: boolean;
45724
45816
 
45725
45817
  /**
45726
- * If true, keep the current voice when swapping agents. Defaults to false.
45818
+ * If true, keep the current voice and ambient sound settings when swapping agents.
45819
+ * Otherwise, use the destination agent's voice and ambient sound settings.
45820
+ * Defaults to false.
45727
45821
  */
45728
45822
  keep_current_voice?: boolean;
45729
45823
 
@@ -50223,7 +50317,9 @@ export namespace ConversationFlowUpdateParams {
50223
50317
  keep_current_language?: boolean;
50224
50318
 
50225
50319
  /**
50226
- * If true, keep the current voice when swapping agents. Defaults to false.
50320
+ * If true, keep the current voice and ambient sound settings when swapping agents.
50321
+ * Otherwise, use the destination agent's voice and ambient sound settings.
50322
+ * Defaults to false.
50227
50323
  */
50228
50324
  keep_current_voice?: boolean;
50229
50325
 
@@ -52217,6 +52313,9 @@ export namespace ConversationFlowUpdateParams {
52217
52313
  }
52218
52314
  }
52219
52315
 
52316
+ /**
52317
+ * @deprecated
52318
+ */
52220
52319
  export interface CheckAvailabilityCalTool {
52221
52320
  /**
52222
52321
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -52262,6 +52361,9 @@ export namespace ConversationFlowUpdateParams {
52262
52361
  tool_id?: string;
52263
52362
  }
52264
52363
 
52364
+ /**
52365
+ * @deprecated
52366
+ */
52265
52367
  export interface BookAppointmentCalTool {
52266
52368
  /**
52267
52369
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -52325,6 +52427,15 @@ export interface ConversationFlowListParams {
52325
52427
  sort_order?: 'ascending' | 'descending';
52326
52428
  }
52327
52429
 
52430
+ export interface ConversationFlowDeleteParams {
52431
+ /**
52432
+ * By default the deletion is rejected with a 400 if any agent still uses this
52433
+ * conversation flow as its response engine. Set to true to delete it anyway, which
52434
+ * leaves those agents pointing at a conversation flow that no longer exists.
52435
+ */
52436
+ force_delete?: boolean;
52437
+ }
52438
+
52328
52439
  export declare namespace ConversationFlow {
52329
52440
  export {
52330
52441
  type ConversationFlowResponse as ConversationFlowResponse,
@@ -52333,5 +52444,6 @@ export declare namespace ConversationFlow {
52333
52444
  type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams,
52334
52445
  type ConversationFlowUpdateParams as ConversationFlowUpdateParams,
52335
52446
  type ConversationFlowListParams as ConversationFlowListParams,
52447
+ type ConversationFlowDeleteParams as ConversationFlowDeleteParams,
52336
52448
  };
52337
52449
  }