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
@@ -133,6 +133,10 @@ export declare namespace ConversationFlowComponentResponse {
133
133
  */
134
134
  allow_dtmf_interruption?: boolean | null;
135
135
  always_edge?: ConversationNode.AlwaysEdge;
136
+ /**
137
+ * Custom transcription settings. Required when stt_mode is custom.
138
+ */
139
+ custom_stt_config?: ConversationNode.CustomSttConfig | null;
136
140
  /**
137
141
  * Position for frontend display
138
142
  */
@@ -169,6 +173,12 @@ export declare namespace ConversationFlowComponentResponse {
169
173
  reminder_trigger_ms?: number | null;
170
174
  responsiveness?: number | null;
171
175
  skip_response_edge?: ConversationNode.SkipResponseEdge;
176
+ /**
177
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
178
+ * configuration, accurate optimizes for accuracy using the provider configuration,
179
+ * and custom uses custom_stt_config.
180
+ */
181
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
172
182
  voice_speed?: number | null;
173
183
  }
174
184
  namespace ConversationNode {
@@ -242,6 +252,20 @@ export declare namespace ConversationFlowComponentResponse {
242
252
  type: 'prompt';
243
253
  }
244
254
  }
255
+ /**
256
+ * Custom transcription settings. Required when stt_mode is custom.
257
+ */
258
+ interface CustomSttConfig {
259
+ /**
260
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
261
+ * 500 for Soniox, and 100 for AssemblyAI.
262
+ */
263
+ endpointing_ms: number;
264
+ /**
265
+ * ASR provider name.
266
+ */
267
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
268
+ }
245
269
  /**
246
270
  * Position for frontend display
247
271
  */
@@ -601,6 +625,10 @@ export declare namespace ConversationFlowComponentResponse {
601
625
  */
602
626
  allow_dtmf_interruption?: boolean | null;
603
627
  always_edge?: SubagentNode.AlwaysEdge;
628
+ /**
629
+ * Custom transcription settings. Required when stt_mode is custom.
630
+ */
631
+ custom_stt_config?: SubagentNode.CustomSttConfig | null;
604
632
  /**
605
633
  * Position for frontend display
606
634
  */
@@ -637,6 +665,12 @@ export declare namespace ConversationFlowComponentResponse {
637
665
  reminder_trigger_ms?: number | null;
638
666
  responsiveness?: number | null;
639
667
  skip_response_edge?: SubagentNode.SkipResponseEdge;
668
+ /**
669
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
670
+ * configuration, accurate optimizes for accuracy using the provider configuration,
671
+ * and custom uses custom_stt_config.
672
+ */
673
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
640
674
  /**
641
675
  * The tool ids of the tools defined in main conversation flow or component that
642
676
  * can be used in this subagent node.
@@ -710,6 +744,20 @@ export declare namespace ConversationFlowComponentResponse {
710
744
  type: 'prompt';
711
745
  }
712
746
  }
747
+ /**
748
+ * Custom transcription settings. Required when stt_mode is custom.
749
+ */
750
+ interface CustomSttConfig {
751
+ /**
752
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
753
+ * 500 for Soniox, and 100 for AssemblyAI.
754
+ */
755
+ endpointing_ms: number;
756
+ /**
757
+ * ASR provider name.
758
+ */
759
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
760
+ }
713
761
  /**
714
762
  * Position for frontend display
715
763
  */
@@ -1377,6 +1425,9 @@ export declare namespace ConversationFlowComponentResponse {
1377
1425
  }
1378
1426
  }
1379
1427
  }
1428
+ /**
1429
+ * @deprecated
1430
+ */
1380
1431
  interface CheckAvailabilityCalTool {
1381
1432
  /**
1382
1433
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -1411,6 +1462,9 @@ export declare namespace ConversationFlowComponentResponse {
1411
1462
  */
1412
1463
  timezone?: string;
1413
1464
  }
1465
+ /**
1466
+ * @deprecated
1467
+ */
1414
1468
  interface BookAppointmentCalTool {
1415
1469
  /**
1416
1470
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -6053,6 +6107,9 @@ export declare namespace ConversationFlowComponentResponse {
6053
6107
  required?: Array<string>;
6054
6108
  }
6055
6109
  }
6110
+ /**
6111
+ * @deprecated
6112
+ */
6056
6113
  interface CheckAvailabilityCalTool {
6057
6114
  /**
6058
6115
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -6091,6 +6148,9 @@ export declare namespace ConversationFlowComponentResponse {
6091
6148
  */
6092
6149
  tool_id?: string;
6093
6150
  }
6151
+ /**
6152
+ * @deprecated
6153
+ */
6094
6154
  interface BookAppointmentCalTool {
6095
6155
  /**
6096
6156
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -6134,8 +6194,8 @@ export interface ConversationFlowComponentListResponse {
6134
6194
  /**
6135
6195
  * Whether more results are available.
6136
6196
  */
6137
- has_more?: boolean;
6138
- items?: Array<ConversationFlowComponentResponse>;
6197
+ has_more: boolean;
6198
+ items: Array<ConversationFlowComponentResponse>;
6139
6199
  /**
6140
6200
  * Pagination key for the next page.
6141
6201
  */
@@ -6191,6 +6251,10 @@ export declare namespace ConversationFlowComponentCreateParams {
6191
6251
  */
6192
6252
  allow_dtmf_interruption?: boolean | null;
6193
6253
  always_edge?: ConversationNode.AlwaysEdge;
6254
+ /**
6255
+ * Custom transcription settings. Required when stt_mode is custom.
6256
+ */
6257
+ custom_stt_config?: ConversationNode.CustomSttConfig | null;
6194
6258
  /**
6195
6259
  * Position for frontend display
6196
6260
  */
@@ -6227,6 +6291,12 @@ export declare namespace ConversationFlowComponentCreateParams {
6227
6291
  reminder_trigger_ms?: number | null;
6228
6292
  responsiveness?: number | null;
6229
6293
  skip_response_edge?: ConversationNode.SkipResponseEdge;
6294
+ /**
6295
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
6296
+ * configuration, accurate optimizes for accuracy using the provider configuration,
6297
+ * and custom uses custom_stt_config.
6298
+ */
6299
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
6230
6300
  voice_speed?: number | null;
6231
6301
  }
6232
6302
  namespace ConversationNode {
@@ -6300,6 +6370,20 @@ export declare namespace ConversationFlowComponentCreateParams {
6300
6370
  type: 'prompt';
6301
6371
  }
6302
6372
  }
6373
+ /**
6374
+ * Custom transcription settings. Required when stt_mode is custom.
6375
+ */
6376
+ interface CustomSttConfig {
6377
+ /**
6378
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
6379
+ * 500 for Soniox, and 100 for AssemblyAI.
6380
+ */
6381
+ endpointing_ms: number;
6382
+ /**
6383
+ * ASR provider name.
6384
+ */
6385
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
6386
+ }
6303
6387
  /**
6304
6388
  * Position for frontend display
6305
6389
  */
@@ -6659,6 +6743,10 @@ export declare namespace ConversationFlowComponentCreateParams {
6659
6743
  */
6660
6744
  allow_dtmf_interruption?: boolean | null;
6661
6745
  always_edge?: SubagentNode.AlwaysEdge;
6746
+ /**
6747
+ * Custom transcription settings. Required when stt_mode is custom.
6748
+ */
6749
+ custom_stt_config?: SubagentNode.CustomSttConfig | null;
6662
6750
  /**
6663
6751
  * Position for frontend display
6664
6752
  */
@@ -6695,6 +6783,12 @@ export declare namespace ConversationFlowComponentCreateParams {
6695
6783
  reminder_trigger_ms?: number | null;
6696
6784
  responsiveness?: number | null;
6697
6785
  skip_response_edge?: SubagentNode.SkipResponseEdge;
6786
+ /**
6787
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
6788
+ * configuration, accurate optimizes for accuracy using the provider configuration,
6789
+ * and custom uses custom_stt_config.
6790
+ */
6791
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
6698
6792
  /**
6699
6793
  * The tool ids of the tools defined in main conversation flow or component that
6700
6794
  * can be used in this subagent node.
@@ -6768,6 +6862,20 @@ export declare namespace ConversationFlowComponentCreateParams {
6768
6862
  type: 'prompt';
6769
6863
  }
6770
6864
  }
6865
+ /**
6866
+ * Custom transcription settings. Required when stt_mode is custom.
6867
+ */
6868
+ interface CustomSttConfig {
6869
+ /**
6870
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
6871
+ * 500 for Soniox, and 100 for AssemblyAI.
6872
+ */
6873
+ endpointing_ms: number;
6874
+ /**
6875
+ * ASR provider name.
6876
+ */
6877
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
6878
+ }
6771
6879
  /**
6772
6880
  * Position for frontend display
6773
6881
  */
@@ -7435,6 +7543,9 @@ export declare namespace ConversationFlowComponentCreateParams {
7435
7543
  }
7436
7544
  }
7437
7545
  }
7546
+ /**
7547
+ * @deprecated
7548
+ */
7438
7549
  interface CheckAvailabilityCalTool {
7439
7550
  /**
7440
7551
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -7469,6 +7580,9 @@ export declare namespace ConversationFlowComponentCreateParams {
7469
7580
  */
7470
7581
  timezone?: string;
7471
7582
  }
7583
+ /**
7584
+ * @deprecated
7585
+ */
7472
7586
  interface BookAppointmentCalTool {
7473
7587
  /**
7474
7588
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -12111,6 +12225,9 @@ export declare namespace ConversationFlowComponentCreateParams {
12111
12225
  required?: Array<string>;
12112
12226
  }
12113
12227
  }
12228
+ /**
12229
+ * @deprecated
12230
+ */
12114
12231
  interface CheckAvailabilityCalTool {
12115
12232
  /**
12116
12233
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -12149,6 +12266,9 @@ export declare namespace ConversationFlowComponentCreateParams {
12149
12266
  */
12150
12267
  tool_id?: string;
12151
12268
  }
12269
+ /**
12270
+ * @deprecated
12271
+ */
12152
12272
  interface BookAppointmentCalTool {
12153
12273
  /**
12154
12274
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -12269,6 +12389,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
12269
12389
  */
12270
12390
  allow_dtmf_interruption?: boolean | null;
12271
12391
  always_edge?: ConversationNode.AlwaysEdge;
12392
+ /**
12393
+ * Custom transcription settings. Required when stt_mode is custom.
12394
+ */
12395
+ custom_stt_config?: ConversationNode.CustomSttConfig | null;
12272
12396
  /**
12273
12397
  * Position for frontend display
12274
12398
  */
@@ -12305,6 +12429,12 @@ export declare namespace ConversationFlowComponentUpdateParams {
12305
12429
  reminder_trigger_ms?: number | null;
12306
12430
  responsiveness?: number | null;
12307
12431
  skip_response_edge?: ConversationNode.SkipResponseEdge;
12432
+ /**
12433
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
12434
+ * configuration, accurate optimizes for accuracy using the provider configuration,
12435
+ * and custom uses custom_stt_config.
12436
+ */
12437
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
12308
12438
  voice_speed?: number | null;
12309
12439
  }
12310
12440
  namespace ConversationNode {
@@ -12378,6 +12508,20 @@ export declare namespace ConversationFlowComponentUpdateParams {
12378
12508
  type: 'prompt';
12379
12509
  }
12380
12510
  }
12511
+ /**
12512
+ * Custom transcription settings. Required when stt_mode is custom.
12513
+ */
12514
+ interface CustomSttConfig {
12515
+ /**
12516
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
12517
+ * 500 for Soniox, and 100 for AssemblyAI.
12518
+ */
12519
+ endpointing_ms: number;
12520
+ /**
12521
+ * ASR provider name.
12522
+ */
12523
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
12524
+ }
12381
12525
  /**
12382
12526
  * Position for frontend display
12383
12527
  */
@@ -12737,6 +12881,10 @@ export declare namespace ConversationFlowComponentUpdateParams {
12737
12881
  */
12738
12882
  allow_dtmf_interruption?: boolean | null;
12739
12883
  always_edge?: SubagentNode.AlwaysEdge;
12884
+ /**
12885
+ * Custom transcription settings. Required when stt_mode is custom.
12886
+ */
12887
+ custom_stt_config?: SubagentNode.CustomSttConfig | null;
12740
12888
  /**
12741
12889
  * Position for frontend display
12742
12890
  */
@@ -12773,6 +12921,12 @@ export declare namespace ConversationFlowComponentUpdateParams {
12773
12921
  reminder_trigger_ms?: number | null;
12774
12922
  responsiveness?: number | null;
12775
12923
  skip_response_edge?: SubagentNode.SkipResponseEdge;
12924
+ /**
12925
+ * Balance between speed and accuracy. Fast optimizes for speed using the provider
12926
+ * configuration, accurate optimizes for accuracy using the provider configuration,
12927
+ * and custom uses custom_stt_config.
12928
+ */
12929
+ stt_mode?: 'fast' | 'accurate' | 'custom' | null;
12776
12930
  /**
12777
12931
  * The tool ids of the tools defined in main conversation flow or component that
12778
12932
  * can be used in this subagent node.
@@ -12846,6 +13000,20 @@ export declare namespace ConversationFlowComponentUpdateParams {
12846
13000
  type: 'prompt';
12847
13001
  }
12848
13002
  }
13003
+ /**
13004
+ * Custom transcription settings. Required when stt_mode is custom.
13005
+ */
13006
+ interface CustomSttConfig {
13007
+ /**
13008
+ * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
13009
+ * 500 for Soniox, and 100 for AssemblyAI.
13010
+ */
13011
+ endpointing_ms: number;
13012
+ /**
13013
+ * ASR provider name.
13014
+ */
13015
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
13016
+ }
12849
13017
  /**
12850
13018
  * Position for frontend display
12851
13019
  */
@@ -13513,6 +13681,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
13513
13681
  }
13514
13682
  }
13515
13683
  }
13684
+ /**
13685
+ * @deprecated
13686
+ */
13516
13687
  interface CheckAvailabilityCalTool {
13517
13688
  /**
13518
13689
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -13547,6 +13718,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
13547
13718
  */
13548
13719
  timezone?: string;
13549
13720
  }
13721
+ /**
13722
+ * @deprecated
13723
+ */
13550
13724
  interface BookAppointmentCalTool {
13551
13725
  /**
13552
13726
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -18158,6 +18332,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
18158
18332
  required?: Array<string>;
18159
18333
  }
18160
18334
  }
18335
+ /**
18336
+ * @deprecated
18337
+ */
18161
18338
  interface CheckAvailabilityCalTool {
18162
18339
  /**
18163
18340
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -18196,6 +18373,9 @@ export declare namespace ConversationFlowComponentUpdateParams {
18196
18373
  */
18197
18374
  tool_id?: string;
18198
18375
  }
18376
+ /**
18377
+ * @deprecated
18378
+ */
18199
18379
  interface BookAppointmentCalTool {
18200
18380
  /**
18201
18381
  * Cal.com Api key that have access to the cal.com event you want to book