retell-sdk 5.64.0 → 5.66.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 (129) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +29 -0
  3. package/client.d.mts +9 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent.d.mts +43 -13
  13. package/resources/agent.d.mts.map +1 -1
  14. package/resources/agent.d.ts +43 -13
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +21 -2
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +21 -2
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/app.d.mts +28 -46
  21. package/resources/app.d.mts.map +1 -1
  22. package/resources/app.d.ts +28 -46
  23. package/resources/app.d.ts.map +1 -1
  24. package/resources/app.js +7 -5
  25. package/resources/app.js.map +1 -1
  26. package/resources/app.mjs +7 -5
  27. package/resources/app.mjs.map +1 -1
  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 +155 -21
  41. package/resources/call.d.mts.map +1 -1
  42. package/resources/call.d.ts +155 -21
  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 +2 -2
  49. package/resources/chat-agent.d.mts.map +1 -1
  50. package/resources/chat-agent.d.ts +2 -2
  51. package/resources/chat-agent.d.ts.map +1 -1
  52. package/resources/chat.d.mts +24 -11
  53. package/resources/chat.d.mts.map +1 -1
  54. package/resources/chat.d.ts +24 -11
  55. package/resources/chat.d.ts.map +1 -1
  56. package/resources/contact.d.mts +137 -26
  57. package/resources/contact.d.mts.map +1 -1
  58. package/resources/contact.d.ts +137 -26
  59. package/resources/contact.d.ts.map +1 -1
  60. package/resources/contact.js +23 -4
  61. package/resources/contact.js.map +1 -1
  62. package/resources/contact.mjs +23 -4
  63. package/resources/contact.mjs.map +1 -1
  64. package/resources/conversation-flow-component.d.mts +182 -2
  65. package/resources/conversation-flow-component.d.mts.map +1 -1
  66. package/resources/conversation-flow-component.d.ts +182 -2
  67. package/resources/conversation-flow-component.d.ts.map +1 -1
  68. package/resources/conversation-flow.d.mts +362 -2
  69. package/resources/conversation-flow.d.mts.map +1 -1
  70. package/resources/conversation-flow.d.ts +362 -2
  71. package/resources/conversation-flow.d.ts.map +1 -1
  72. package/resources/crm.d.mts +4 -0
  73. package/resources/crm.d.mts.map +1 -1
  74. package/resources/crm.d.ts +4 -0
  75. package/resources/crm.d.ts.map +1 -1
  76. package/resources/export-request.d.mts +2 -2
  77. package/resources/export-request.d.mts.map +1 -1
  78. package/resources/export-request.d.ts +2 -2
  79. package/resources/export-request.d.ts.map +1 -1
  80. package/resources/index.d.mts +4 -3
  81. package/resources/index.d.mts.map +1 -1
  82. package/resources/index.d.ts +4 -3
  83. package/resources/index.d.ts.map +1 -1
  84. package/resources/index.js +3 -1
  85. package/resources/index.js.map +1 -1
  86. package/resources/index.mjs +1 -0
  87. package/resources/index.mjs.map +1 -1
  88. package/resources/knowledge-base.d.mts +7 -7
  89. package/resources/knowledge-base.d.ts +7 -7
  90. package/resources/llm.d.mts +38 -2
  91. package/resources/llm.d.mts.map +1 -1
  92. package/resources/llm.d.ts +38 -2
  93. package/resources/llm.d.ts.map +1 -1
  94. package/resources/phone-number.d.mts +14 -8
  95. package/resources/phone-number.d.mts.map +1 -1
  96. package/resources/phone-number.d.ts +14 -8
  97. package/resources/phone-number.d.ts.map +1 -1
  98. package/resources/tests.d.mts +6 -6
  99. package/resources/tests.d.mts.map +1 -1
  100. package/resources/tests.d.ts +6 -6
  101. package/resources/tests.d.ts.map +1 -1
  102. package/resources/voice.d.mts +4 -4
  103. package/resources/voice.d.mts.map +1 -1
  104. package/resources/voice.d.ts +4 -4
  105. package/resources/voice.d.ts.map +1 -1
  106. package/src/client.ts +31 -0
  107. package/src/resources/agent.ts +60 -9
  108. package/src/resources/app.ts +29 -58
  109. package/src/resources/asset.ts +69 -0
  110. package/src/resources/batch-call.ts +6 -1
  111. package/src/resources/call.ts +196 -18
  112. package/src/resources/chat-agent.ts +2 -2
  113. package/src/resources/chat.ts +28 -11
  114. package/src/resources/contact.ts +187 -26
  115. package/src/resources/conversation-flow-component.ts +206 -2
  116. package/src/resources/conversation-flow.ts +410 -2
  117. package/src/resources/crm.ts +5 -0
  118. package/src/resources/export-request.ts +2 -2
  119. package/src/resources/index.ts +12 -0
  120. package/src/resources/knowledge-base.ts +7 -7
  121. package/src/resources/llm.ts +38 -2
  122. package/src/resources/phone-number.ts +14 -8
  123. package/src/resources/tests.ts +6 -6
  124. package/src/resources/voice.ts +4 -4
  125. package/src/version.ts +1 -1
  126. package/version.d.mts +1 -1
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/version.mjs +1 -1
@@ -208,6 +208,11 @@ export namespace ConversationFlowComponentResponse {
208
208
 
209
209
  always_edge?: ConversationNode.AlwaysEdge;
210
210
 
211
+ /**
212
+ * Custom transcription settings. Required when stt_mode is custom.
213
+ */
214
+ custom_stt_config?: ConversationNode.CustomSttConfig | null;
215
+
211
216
  /**
212
217
  * Position for frontend display
213
218
  */
@@ -259,6 +264,13 @@ export namespace ConversationFlowComponentResponse {
259
264
 
260
265
  skip_response_edge?: ConversationNode.SkipResponseEdge;
261
266
 
267
+ /**
268
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
269
+ * configuration, accurate optimizes for accuracy using the provider configuration,
270
+ * and custom uses custom_stt_config.
271
+ */
272
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
273
+
262
274
  voice_speed?: number | null;
263
275
  }
264
276
 
@@ -364,6 +376,22 @@ export namespace ConversationFlowComponentResponse {
364
376
  }
365
377
  }
366
378
 
379
+ /**
380
+ * Custom transcription settings. Required when stt_mode is custom.
381
+ */
382
+ export interface CustomSttConfig {
383
+ /**
384
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
385
+ * 500 for Soniox, and 100 for AssemblyAI.
386
+ */
387
+ endpointing_ms: number;
388
+
389
+ /**
390
+ * ASR provider name.
391
+ */
392
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
393
+ }
394
+
367
395
  /**
368
396
  * Position for frontend display
369
397
  */
@@ -915,6 +943,11 @@ export namespace ConversationFlowComponentResponse {
915
943
 
916
944
  always_edge?: SubagentNode.AlwaysEdge;
917
945
 
946
+ /**
947
+ * Custom transcription settings. Required when stt_mode is custom.
948
+ */
949
+ custom_stt_config?: SubagentNode.CustomSttConfig | null;
950
+
918
951
  /**
919
952
  * Position for frontend display
920
953
  */
@@ -966,6 +999,13 @@ export namespace ConversationFlowComponentResponse {
966
999
 
967
1000
  skip_response_edge?: SubagentNode.SkipResponseEdge;
968
1001
 
1002
+ /**
1003
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
1004
+ * configuration, accurate optimizes for accuracy using the provider configuration,
1005
+ * and custom uses custom_stt_config.
1006
+ */
1007
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
1008
+
969
1009
  /**
970
1010
  * The tool ids of the tools defined in main conversation flow or component that
971
1011
  * can be used in this subagent node.
@@ -1085,6 +1125,22 @@ export namespace ConversationFlowComponentResponse {
1085
1125
  }
1086
1126
  }
1087
1127
 
1128
+ /**
1129
+ * Custom transcription settings. Required when stt_mode is custom.
1130
+ */
1131
+ export interface CustomSttConfig {
1132
+ /**
1133
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
1134
+ * 500 for Soniox, and 100 for AssemblyAI.
1135
+ */
1136
+ endpointing_ms: number;
1137
+
1138
+ /**
1139
+ * ASR provider name.
1140
+ */
1141
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
1142
+ }
1143
+
1088
1144
  /**
1089
1145
  * Position for frontend display
1090
1146
  */
@@ -2011,6 +2067,9 @@ export namespace ConversationFlowComponentResponse {
2011
2067
  }
2012
2068
  }
2013
2069
 
2070
+ /**
2071
+ * @deprecated
2072
+ */
2014
2073
  export interface CheckAvailabilityCalTool {
2015
2074
  /**
2016
2075
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -2051,6 +2110,9 @@ export namespace ConversationFlowComponentResponse {
2051
2110
  timezone?: string;
2052
2111
  }
2053
2112
 
2113
+ /**
2114
+ * @deprecated
2115
+ */
2054
2116
  export interface BookAppointmentCalTool {
2055
2117
  /**
2056
2118
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -8673,6 +8735,9 @@ export namespace ConversationFlowComponentResponse {
8673
8735
  }
8674
8736
  }
8675
8737
 
8738
+ /**
8739
+ * @deprecated
8740
+ */
8676
8741
  export interface CheckAvailabilityCalTool {
8677
8742
  /**
8678
8743
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -8718,6 +8783,9 @@ export namespace ConversationFlowComponentResponse {
8718
8783
  tool_id?: string;
8719
8784
  }
8720
8785
 
8786
+ /**
8787
+ * @deprecated
8788
+ */
8721
8789
  export interface BookAppointmentCalTool {
8722
8790
  /**
8723
8791
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -8768,9 +8836,9 @@ export interface ConversationFlowComponentListResponse {
8768
8836
  /**
8769
8837
  * Whether more results are available.
8770
8838
  */
8771
- has_more?: boolean;
8839
+ has_more: boolean;
8772
8840
 
8773
- items?: Array<ConversationFlowComponentResponse>;
8841
+ items: Array<ConversationFlowComponentResponse>;
8774
8842
 
8775
8843
  /**
8776
8844
  * Pagination key for the next page.
@@ -8861,6 +8929,11 @@ export namespace ConversationFlowComponentCreateParams {
8861
8929
 
8862
8930
  always_edge?: ConversationNode.AlwaysEdge;
8863
8931
 
8932
+ /**
8933
+ * Custom transcription settings. Required when stt_mode is custom.
8934
+ */
8935
+ custom_stt_config?: ConversationNode.CustomSttConfig | null;
8936
+
8864
8937
  /**
8865
8938
  * Position for frontend display
8866
8939
  */
@@ -8912,6 +8985,13 @@ export namespace ConversationFlowComponentCreateParams {
8912
8985
 
8913
8986
  skip_response_edge?: ConversationNode.SkipResponseEdge;
8914
8987
 
8988
+ /**
8989
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
8990
+ * configuration, accurate optimizes for accuracy using the provider configuration,
8991
+ * and custom uses custom_stt_config.
8992
+ */
8993
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
8994
+
8915
8995
  voice_speed?: number | null;
8916
8996
  }
8917
8997
 
@@ -9017,6 +9097,22 @@ export namespace ConversationFlowComponentCreateParams {
9017
9097
  }
9018
9098
  }
9019
9099
 
9100
+ /**
9101
+ * Custom transcription settings. Required when stt_mode is custom.
9102
+ */
9103
+ export interface CustomSttConfig {
9104
+ /**
9105
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
9106
+ * 500 for Soniox, and 100 for AssemblyAI.
9107
+ */
9108
+ endpointing_ms: number;
9109
+
9110
+ /**
9111
+ * ASR provider name.
9112
+ */
9113
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
9114
+ }
9115
+
9020
9116
  /**
9021
9117
  * Position for frontend display
9022
9118
  */
@@ -9568,6 +9664,11 @@ export namespace ConversationFlowComponentCreateParams {
9568
9664
 
9569
9665
  always_edge?: SubagentNode.AlwaysEdge;
9570
9666
 
9667
+ /**
9668
+ * Custom transcription settings. Required when stt_mode is custom.
9669
+ */
9670
+ custom_stt_config?: SubagentNode.CustomSttConfig | null;
9671
+
9571
9672
  /**
9572
9673
  * Position for frontend display
9573
9674
  */
@@ -9619,6 +9720,13 @@ export namespace ConversationFlowComponentCreateParams {
9619
9720
 
9620
9721
  skip_response_edge?: SubagentNode.SkipResponseEdge;
9621
9722
 
9723
+ /**
9724
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
9725
+ * configuration, accurate optimizes for accuracy using the provider configuration,
9726
+ * and custom uses custom_stt_config.
9727
+ */
9728
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
9729
+
9622
9730
  /**
9623
9731
  * The tool ids of the tools defined in main conversation flow or component that
9624
9732
  * can be used in this subagent node.
@@ -9738,6 +9846,22 @@ export namespace ConversationFlowComponentCreateParams {
9738
9846
  }
9739
9847
  }
9740
9848
 
9849
+ /**
9850
+ * Custom transcription settings. Required when stt_mode is custom.
9851
+ */
9852
+ export interface CustomSttConfig {
9853
+ /**
9854
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
9855
+ * 500 for Soniox, and 100 for AssemblyAI.
9856
+ */
9857
+ endpointing_ms: number;
9858
+
9859
+ /**
9860
+ * ASR provider name.
9861
+ */
9862
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
9863
+ }
9864
+
9741
9865
  /**
9742
9866
  * Position for frontend display
9743
9867
  */
@@ -10664,6 +10788,9 @@ export namespace ConversationFlowComponentCreateParams {
10664
10788
  }
10665
10789
  }
10666
10790
 
10791
+ /**
10792
+ * @deprecated
10793
+ */
10667
10794
  export interface CheckAvailabilityCalTool {
10668
10795
  /**
10669
10796
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -10704,6 +10831,9 @@ export namespace ConversationFlowComponentCreateParams {
10704
10831
  timezone?: string;
10705
10832
  }
10706
10833
 
10834
+ /**
10835
+ * @deprecated
10836
+ */
10707
10837
  export interface BookAppointmentCalTool {
10708
10838
  /**
10709
10839
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -17326,6 +17456,9 @@ export namespace ConversationFlowComponentCreateParams {
17326
17456
  }
17327
17457
  }
17328
17458
 
17459
+ /**
17460
+ * @deprecated
17461
+ */
17329
17462
  export interface CheckAvailabilityCalTool {
17330
17463
  /**
17331
17464
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -17371,6 +17504,9 @@ export namespace ConversationFlowComponentCreateParams {
17371
17504
  tool_id?: string;
17372
17505
  }
17373
17506
 
17507
+ /**
17508
+ * @deprecated
17509
+ */
17374
17510
  export interface BookAppointmentCalTool {
17375
17511
  /**
17376
17512
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -17534,6 +17670,11 @@ export namespace ConversationFlowComponentUpdateParams {
17534
17670
 
17535
17671
  always_edge?: ConversationNode.AlwaysEdge;
17536
17672
 
17673
+ /**
17674
+ * Custom transcription settings. Required when stt_mode is custom.
17675
+ */
17676
+ custom_stt_config?: ConversationNode.CustomSttConfig | null;
17677
+
17537
17678
  /**
17538
17679
  * Position for frontend display
17539
17680
  */
@@ -17585,6 +17726,13 @@ export namespace ConversationFlowComponentUpdateParams {
17585
17726
 
17586
17727
  skip_response_edge?: ConversationNode.SkipResponseEdge;
17587
17728
 
17729
+ /**
17730
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
17731
+ * configuration, accurate optimizes for accuracy using the provider configuration,
17732
+ * and custom uses custom_stt_config.
17733
+ */
17734
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
17735
+
17588
17736
  voice_speed?: number | null;
17589
17737
  }
17590
17738
 
@@ -17690,6 +17838,22 @@ export namespace ConversationFlowComponentUpdateParams {
17690
17838
  }
17691
17839
  }
17692
17840
 
17841
+ /**
17842
+ * Custom transcription settings. Required when stt_mode is custom.
17843
+ */
17844
+ export interface CustomSttConfig {
17845
+ /**
17846
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
17847
+ * 500 for Soniox, and 100 for AssemblyAI.
17848
+ */
17849
+ endpointing_ms: number;
17850
+
17851
+ /**
17852
+ * ASR provider name.
17853
+ */
17854
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
17855
+ }
17856
+
17693
17857
  /**
17694
17858
  * Position for frontend display
17695
17859
  */
@@ -18241,6 +18405,11 @@ export namespace ConversationFlowComponentUpdateParams {
18241
18405
 
18242
18406
  always_edge?: SubagentNode.AlwaysEdge;
18243
18407
 
18408
+ /**
18409
+ * Custom transcription settings. Required when stt_mode is custom.
18410
+ */
18411
+ custom_stt_config?: SubagentNode.CustomSttConfig | null;
18412
+
18244
18413
  /**
18245
18414
  * Position for frontend display
18246
18415
  */
@@ -18292,6 +18461,13 @@ export namespace ConversationFlowComponentUpdateParams {
18292
18461
 
18293
18462
  skip_response_edge?: SubagentNode.SkipResponseEdge;
18294
18463
 
18464
+ /**
18465
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
18466
+ * configuration, accurate optimizes for accuracy using the provider configuration,
18467
+ * and custom uses custom_stt_config.
18468
+ */
18469
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
18470
+
18295
18471
  /**
18296
18472
  * The tool ids of the tools defined in main conversation flow or component that
18297
18473
  * can be used in this subagent node.
@@ -18411,6 +18587,22 @@ export namespace ConversationFlowComponentUpdateParams {
18411
18587
  }
18412
18588
  }
18413
18589
 
18590
+ /**
18591
+ * Custom transcription settings. Required when stt_mode is custom.
18592
+ */
18593
+ export interface CustomSttConfig {
18594
+ /**
18595
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
18596
+ * 500 for Soniox, and 100 for AssemblyAI.
18597
+ */
18598
+ endpointing_ms: number;
18599
+
18600
+ /**
18601
+ * ASR provider name.
18602
+ */
18603
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
18604
+ }
18605
+
18414
18606
  /**
18415
18607
  * Position for frontend display
18416
18608
  */
@@ -19337,6 +19529,9 @@ export namespace ConversationFlowComponentUpdateParams {
19337
19529
  }
19338
19530
  }
19339
19531
 
19532
+ /**
19533
+ * @deprecated
19534
+ */
19340
19535
  export interface CheckAvailabilityCalTool {
19341
19536
  /**
19342
19537
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -19377,6 +19572,9 @@ export namespace ConversationFlowComponentUpdateParams {
19377
19572
  timezone?: string;
19378
19573
  }
19379
19574
 
19575
+ /**
19576
+ * @deprecated
19577
+ */
19380
19578
  export interface BookAppointmentCalTool {
19381
19579
  /**
19382
19580
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -25965,6 +26163,9 @@ export namespace ConversationFlowComponentUpdateParams {
25965
26163
  }
25966
26164
  }
25967
26165
 
26166
+ /**
26167
+ * @deprecated
26168
+ */
25968
26169
  export interface CheckAvailabilityCalTool {
25969
26170
  /**
25970
26171
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -26010,6 +26211,9 @@ export namespace ConversationFlowComponentUpdateParams {
26010
26211
  tool_id?: string;
26011
26212
  }
26012
26213
 
26214
+ /**
26215
+ * @deprecated
26216
+ */
26013
26217
  export interface BookAppointmentCalTool {
26014
26218
  /**
26015
26219
  * Cal.com Api key that have access to the cal.com event you want to book