retell-sdk 5.7.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +224 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +6 -5
- package/client.js.map +1 -1
- package/client.mjs +6 -5
- package/client.mjs.map +1 -1
- package/internal/uploads.js +12 -2
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -2
- package/internal/uploads.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +72 -12
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +72 -12
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +26 -6
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +26 -6
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +78 -18
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +78 -18
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +66 -6
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +66 -6
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +225 -15
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +225 -15
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +453 -33
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +453 -33
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +213 -3
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +213 -3
- package/resources/llm.d.ts.map +1 -1
- package/resources/tests.d.mts +3 -3
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +3 -3
- package/resources/tests.d.ts.map +1 -1
- package/src/client.ts +6 -5
- package/src/internal/uploads.ts +12 -4
- package/src/resources/agent.ts +84 -6
- package/src/resources/batch-call.ts +30 -2
- package/src/resources/call.ts +90 -6
- package/src/resources/chat-agent.ts +78 -3
- package/src/resources/conversation-flow-component.ts +267 -0
- package/src/resources/conversation-flow.ts +537 -0
- package/src/resources/llm.ts +255 -0
- package/src/resources/tests.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/agent.ts
CHANGED
|
@@ -259,7 +259,7 @@ export interface AgentResponse {
|
|
|
259
259
|
/**
|
|
260
260
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
261
261
|
*/
|
|
262
|
-
custom_stt_config?: AgentResponse.CustomSttConfig;
|
|
262
|
+
custom_stt_config?: AgentResponse.CustomSttConfig | null;
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
265
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
@@ -489,6 +489,7 @@ export interface AgentResponse {
|
|
|
489
489
|
| 'gpt-5-mini'
|
|
490
490
|
| 'gpt-5-nano'
|
|
491
491
|
| 'claude-4.5-sonnet'
|
|
492
|
+
| 'claude-4.6-sonnet'
|
|
492
493
|
| 'claude-4.5-haiku'
|
|
493
494
|
| 'gemini-2.5-flash'
|
|
494
495
|
| 'gemini-2.5-flash-lite'
|
|
@@ -528,7 +529,7 @@ export interface AgentResponse {
|
|
|
528
529
|
/**
|
|
529
530
|
* If set, the phone ringing will last for the specified amount of milliseconds.
|
|
530
531
|
* This applies for both outbound call ringtime, and call transfer ringtime.
|
|
531
|
-
* Default to 30000 (30 s). Valid range is [5000,
|
|
532
|
+
* Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
532
533
|
*/
|
|
533
534
|
ring_duration_ms?: number;
|
|
534
535
|
|
|
@@ -577,6 +578,7 @@ export interface AgentResponse {
|
|
|
577
578
|
| 'eleven_turbo_v2_5'
|
|
578
579
|
| 'eleven_flash_v2_5'
|
|
579
580
|
| 'eleven_multilingual_v2'
|
|
581
|
+
| 'eleven_v3'
|
|
580
582
|
| 'sonic-2'
|
|
581
583
|
| 'sonic-3'
|
|
582
584
|
| 'sonic-3-latest'
|
|
@@ -819,6 +821,12 @@ export namespace AgentResponse {
|
|
|
819
821
|
* Examples of the variable value to teach model the style and syntax.
|
|
820
822
|
*/
|
|
821
823
|
examples?: Array<string>;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
827
|
+
* will be marked as unsuccessful.
|
|
828
|
+
*/
|
|
829
|
+
required?: boolean;
|
|
822
830
|
}
|
|
823
831
|
|
|
824
832
|
export interface EnumAnalysisData {
|
|
@@ -841,6 +849,12 @@ export namespace AgentResponse {
|
|
|
841
849
|
* Type of the variable to extract.
|
|
842
850
|
*/
|
|
843
851
|
type: 'enum';
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
855
|
+
* will be marked as unsuccessful.
|
|
856
|
+
*/
|
|
857
|
+
required?: boolean;
|
|
844
858
|
}
|
|
845
859
|
|
|
846
860
|
export interface BooleanAnalysisData {
|
|
@@ -858,6 +872,12 @@ export namespace AgentResponse {
|
|
|
858
872
|
* Type of the variable to extract.
|
|
859
873
|
*/
|
|
860
874
|
type: 'boolean';
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
878
|
+
* will be marked as unsuccessful.
|
|
879
|
+
*/
|
|
880
|
+
required?: boolean;
|
|
861
881
|
}
|
|
862
882
|
|
|
863
883
|
export interface NumberAnalysisData {
|
|
@@ -875,6 +895,12 @@ export namespace AgentResponse {
|
|
|
875
895
|
* Type of the variable to extract.
|
|
876
896
|
*/
|
|
877
897
|
type: 'number';
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
901
|
+
* will be marked as unsuccessful.
|
|
902
|
+
*/
|
|
903
|
+
required?: boolean;
|
|
878
904
|
}
|
|
879
905
|
|
|
880
906
|
export interface PronunciationDictionary {
|
|
@@ -1082,7 +1108,7 @@ export interface AgentCreateParams {
|
|
|
1082
1108
|
/**
|
|
1083
1109
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
1084
1110
|
*/
|
|
1085
|
-
custom_stt_config?: AgentCreateParams.CustomSttConfig;
|
|
1111
|
+
custom_stt_config?: AgentCreateParams.CustomSttConfig | null;
|
|
1086
1112
|
|
|
1087
1113
|
/**
|
|
1088
1114
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
@@ -1307,6 +1333,7 @@ export interface AgentCreateParams {
|
|
|
1307
1333
|
| 'gpt-5-mini'
|
|
1308
1334
|
| 'gpt-5-nano'
|
|
1309
1335
|
| 'claude-4.5-sonnet'
|
|
1336
|
+
| 'claude-4.6-sonnet'
|
|
1310
1337
|
| 'claude-4.5-haiku'
|
|
1311
1338
|
| 'gemini-2.5-flash'
|
|
1312
1339
|
| 'gemini-2.5-flash-lite'
|
|
@@ -1346,7 +1373,7 @@ export interface AgentCreateParams {
|
|
|
1346
1373
|
/**
|
|
1347
1374
|
* If set, the phone ringing will last for the specified amount of milliseconds.
|
|
1348
1375
|
* This applies for both outbound call ringtime, and call transfer ringtime.
|
|
1349
|
-
* Default to 30000 (30 s). Valid range is [5000,
|
|
1376
|
+
* Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
1350
1377
|
*/
|
|
1351
1378
|
ring_duration_ms?: number;
|
|
1352
1379
|
|
|
@@ -1395,6 +1422,7 @@ export interface AgentCreateParams {
|
|
|
1395
1422
|
| 'eleven_turbo_v2_5'
|
|
1396
1423
|
| 'eleven_flash_v2_5'
|
|
1397
1424
|
| 'eleven_multilingual_v2'
|
|
1425
|
+
| 'eleven_v3'
|
|
1398
1426
|
| 'sonic-2'
|
|
1399
1427
|
| 'sonic-3'
|
|
1400
1428
|
| 'sonic-3-latest'
|
|
@@ -1637,6 +1665,12 @@ export namespace AgentCreateParams {
|
|
|
1637
1665
|
* Examples of the variable value to teach model the style and syntax.
|
|
1638
1666
|
*/
|
|
1639
1667
|
examples?: Array<string>;
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1671
|
+
* will be marked as unsuccessful.
|
|
1672
|
+
*/
|
|
1673
|
+
required?: boolean;
|
|
1640
1674
|
}
|
|
1641
1675
|
|
|
1642
1676
|
export interface EnumAnalysisData {
|
|
@@ -1659,6 +1693,12 @@ export namespace AgentCreateParams {
|
|
|
1659
1693
|
* Type of the variable to extract.
|
|
1660
1694
|
*/
|
|
1661
1695
|
type: 'enum';
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1699
|
+
* will be marked as unsuccessful.
|
|
1700
|
+
*/
|
|
1701
|
+
required?: boolean;
|
|
1662
1702
|
}
|
|
1663
1703
|
|
|
1664
1704
|
export interface BooleanAnalysisData {
|
|
@@ -1676,6 +1716,12 @@ export namespace AgentCreateParams {
|
|
|
1676
1716
|
* Type of the variable to extract.
|
|
1677
1717
|
*/
|
|
1678
1718
|
type: 'boolean';
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1722
|
+
* will be marked as unsuccessful.
|
|
1723
|
+
*/
|
|
1724
|
+
required?: boolean;
|
|
1679
1725
|
}
|
|
1680
1726
|
|
|
1681
1727
|
export interface NumberAnalysisData {
|
|
@@ -1693,6 +1739,12 @@ export namespace AgentCreateParams {
|
|
|
1693
1739
|
* Type of the variable to extract.
|
|
1694
1740
|
*/
|
|
1695
1741
|
type: 'number';
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1745
|
+
* will be marked as unsuccessful.
|
|
1746
|
+
*/
|
|
1747
|
+
required?: boolean;
|
|
1696
1748
|
}
|
|
1697
1749
|
|
|
1698
1750
|
export interface PronunciationDictionary {
|
|
@@ -1894,7 +1946,7 @@ export interface AgentUpdateParams {
|
|
|
1894
1946
|
/**
|
|
1895
1947
|
* Body param: Custom STT configuration. Only used when stt_mode is set to custom.
|
|
1896
1948
|
*/
|
|
1897
|
-
custom_stt_config?: AgentUpdateParams.CustomSttConfig;
|
|
1949
|
+
custom_stt_config?: AgentUpdateParams.CustomSttConfig | null;
|
|
1898
1950
|
|
|
1899
1951
|
/**
|
|
1900
1952
|
* Body param: Number of days to retain call/chat data before automatic deletion.
|
|
@@ -2121,6 +2173,7 @@ export interface AgentUpdateParams {
|
|
|
2121
2173
|
| 'gpt-5-mini'
|
|
2122
2174
|
| 'gpt-5-nano'
|
|
2123
2175
|
| 'claude-4.5-sonnet'
|
|
2176
|
+
| 'claude-4.6-sonnet'
|
|
2124
2177
|
| 'claude-4.5-haiku'
|
|
2125
2178
|
| 'gemini-2.5-flash'
|
|
2126
2179
|
| 'gemini-2.5-flash-lite'
|
|
@@ -2171,7 +2224,7 @@ export interface AgentUpdateParams {
|
|
|
2171
2224
|
/**
|
|
2172
2225
|
* Body param: If set, the phone ringing will last for the specified amount of
|
|
2173
2226
|
* milliseconds. This applies for both outbound call ringtime, and call transfer
|
|
2174
|
-
* ringtime. Default to 30000 (30 s). Valid range is [5000,
|
|
2227
|
+
* ringtime. Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
2175
2228
|
*/
|
|
2176
2229
|
ring_duration_ms?: number;
|
|
2177
2230
|
|
|
@@ -2232,6 +2285,7 @@ export interface AgentUpdateParams {
|
|
|
2232
2285
|
| 'eleven_turbo_v2_5'
|
|
2233
2286
|
| 'eleven_flash_v2_5'
|
|
2234
2287
|
| 'eleven_multilingual_v2'
|
|
2288
|
+
| 'eleven_v3'
|
|
2235
2289
|
| 'sonic-2'
|
|
2236
2290
|
| 'sonic-3'
|
|
2237
2291
|
| 'sonic-3-latest'
|
|
@@ -2428,6 +2482,12 @@ export namespace AgentUpdateParams {
|
|
|
2428
2482
|
* Examples of the variable value to teach model the style and syntax.
|
|
2429
2483
|
*/
|
|
2430
2484
|
examples?: Array<string>;
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
2488
|
+
* will be marked as unsuccessful.
|
|
2489
|
+
*/
|
|
2490
|
+
required?: boolean;
|
|
2431
2491
|
}
|
|
2432
2492
|
|
|
2433
2493
|
export interface EnumAnalysisData {
|
|
@@ -2450,6 +2510,12 @@ export namespace AgentUpdateParams {
|
|
|
2450
2510
|
* Type of the variable to extract.
|
|
2451
2511
|
*/
|
|
2452
2512
|
type: 'enum';
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
2516
|
+
* will be marked as unsuccessful.
|
|
2517
|
+
*/
|
|
2518
|
+
required?: boolean;
|
|
2453
2519
|
}
|
|
2454
2520
|
|
|
2455
2521
|
export interface BooleanAnalysisData {
|
|
@@ -2467,6 +2533,12 @@ export namespace AgentUpdateParams {
|
|
|
2467
2533
|
* Type of the variable to extract.
|
|
2468
2534
|
*/
|
|
2469
2535
|
type: 'boolean';
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
2539
|
+
* will be marked as unsuccessful.
|
|
2540
|
+
*/
|
|
2541
|
+
required?: boolean;
|
|
2470
2542
|
}
|
|
2471
2543
|
|
|
2472
2544
|
export interface NumberAnalysisData {
|
|
@@ -2484,6 +2556,12 @@ export namespace AgentUpdateParams {
|
|
|
2484
2556
|
* Type of the variable to extract.
|
|
2485
2557
|
*/
|
|
2486
2558
|
type: 'number';
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
2562
|
+
* will be marked as unsuccessful.
|
|
2563
|
+
*/
|
|
2564
|
+
required?: boolean;
|
|
2487
2565
|
}
|
|
2488
2566
|
|
|
2489
2567
|
export interface PronunciationDictionary {
|
|
@@ -329,7 +329,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
329
329
|
/**
|
|
330
330
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
331
331
|
*/
|
|
332
|
-
custom_stt_config?: Agent.CustomSttConfig;
|
|
332
|
+
custom_stt_config?: Agent.CustomSttConfig | null;
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
@@ -554,6 +554,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
554
554
|
| 'gpt-5-mini'
|
|
555
555
|
| 'gpt-5-nano'
|
|
556
556
|
| 'claude-4.5-sonnet'
|
|
557
|
+
| 'claude-4.6-sonnet'
|
|
557
558
|
| 'claude-4.5-haiku'
|
|
558
559
|
| 'gemini-2.5-flash'
|
|
559
560
|
| 'gemini-2.5-flash-lite'
|
|
@@ -603,7 +604,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
603
604
|
/**
|
|
604
605
|
* If set, the phone ringing will last for the specified amount of milliseconds.
|
|
605
606
|
* This applies for both outbound call ringtime, and call transfer ringtime.
|
|
606
|
-
* Default to 30000 (30 s). Valid range is [5000,
|
|
607
|
+
* Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
607
608
|
*/
|
|
608
609
|
ring_duration_ms?: number;
|
|
609
610
|
|
|
@@ -658,6 +659,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
658
659
|
| 'eleven_turbo_v2_5'
|
|
659
660
|
| 'eleven_flash_v2_5'
|
|
660
661
|
| 'eleven_multilingual_v2'
|
|
662
|
+
| 'eleven_v3'
|
|
661
663
|
| 'sonic-2'
|
|
662
664
|
| 'sonic-3'
|
|
663
665
|
| 'sonic-3-latest'
|
|
@@ -854,6 +856,12 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
854
856
|
* Examples of the variable value to teach model the style and syntax.
|
|
855
857
|
*/
|
|
856
858
|
examples?: Array<string>;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
862
|
+
* will be marked as unsuccessful.
|
|
863
|
+
*/
|
|
864
|
+
required?: boolean;
|
|
857
865
|
}
|
|
858
866
|
|
|
859
867
|
export interface EnumAnalysisData {
|
|
@@ -876,6 +884,12 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
876
884
|
* Type of the variable to extract.
|
|
877
885
|
*/
|
|
878
886
|
type: 'enum';
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
890
|
+
* will be marked as unsuccessful.
|
|
891
|
+
*/
|
|
892
|
+
required?: boolean;
|
|
879
893
|
}
|
|
880
894
|
|
|
881
895
|
export interface BooleanAnalysisData {
|
|
@@ -893,6 +907,12 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
893
907
|
* Type of the variable to extract.
|
|
894
908
|
*/
|
|
895
909
|
type: 'boolean';
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
913
|
+
* will be marked as unsuccessful.
|
|
914
|
+
*/
|
|
915
|
+
required?: boolean;
|
|
896
916
|
}
|
|
897
917
|
|
|
898
918
|
export interface NumberAnalysisData {
|
|
@@ -910,6 +930,12 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
910
930
|
* Type of the variable to extract.
|
|
911
931
|
*/
|
|
912
932
|
type: 'number';
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
936
|
+
* will be marked as unsuccessful.
|
|
937
|
+
*/
|
|
938
|
+
required?: boolean;
|
|
913
939
|
}
|
|
914
940
|
|
|
915
941
|
export interface PronunciationDictionary {
|
|
@@ -1121,6 +1147,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1121
1147
|
| 'gpt-5-mini'
|
|
1122
1148
|
| 'gpt-5-nano'
|
|
1123
1149
|
| 'claude-4.5-sonnet'
|
|
1150
|
+
| 'claude-4.6-sonnet'
|
|
1124
1151
|
| 'claude-4.5-haiku'
|
|
1125
1152
|
| 'gemini-2.5-flash'
|
|
1126
1153
|
| 'gemini-2.5-flash-lite'
|
|
@@ -1183,6 +1210,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1183
1210
|
| 'gpt-5-mini'
|
|
1184
1211
|
| 'gpt-5-nano'
|
|
1185
1212
|
| 'claude-4.5-sonnet'
|
|
1213
|
+
| 'claude-4.6-sonnet'
|
|
1186
1214
|
| 'claude-4.5-haiku'
|
|
1187
1215
|
| 'gemini-2.5-flash'
|
|
1188
1216
|
| 'gemini-2.5-flash-lite'
|
package/src/resources/call.ts
CHANGED
|
@@ -2658,7 +2658,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
2660
2660
|
*/
|
|
2661
|
-
custom_stt_config?: Agent.CustomSttConfig;
|
|
2661
|
+
custom_stt_config?: Agent.CustomSttConfig | null;
|
|
2662
2662
|
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
@@ -2883,6 +2883,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2883
2883
|
| 'gpt-5-mini'
|
|
2884
2884
|
| 'gpt-5-nano'
|
|
2885
2885
|
| 'claude-4.5-sonnet'
|
|
2886
|
+
| 'claude-4.6-sonnet'
|
|
2886
2887
|
| 'claude-4.5-haiku'
|
|
2887
2888
|
| 'gemini-2.5-flash'
|
|
2888
2889
|
| 'gemini-2.5-flash-lite'
|
|
@@ -2932,7 +2933,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2932
2933
|
/**
|
|
2933
2934
|
* If set, the phone ringing will last for the specified amount of milliseconds.
|
|
2934
2935
|
* This applies for both outbound call ringtime, and call transfer ringtime.
|
|
2935
|
-
* Default to 30000 (30 s). Valid range is [5000,
|
|
2936
|
+
* Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
2936
2937
|
*/
|
|
2937
2938
|
ring_duration_ms?: number;
|
|
2938
2939
|
|
|
@@ -2987,6 +2988,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2987
2988
|
| 'eleven_turbo_v2_5'
|
|
2988
2989
|
| 'eleven_flash_v2_5'
|
|
2989
2990
|
| 'eleven_multilingual_v2'
|
|
2991
|
+
| 'eleven_v3'
|
|
2990
2992
|
| 'sonic-2'
|
|
2991
2993
|
| 'sonic-3'
|
|
2992
2994
|
| 'sonic-3-latest'
|
|
@@ -3183,6 +3185,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3183
3185
|
* Examples of the variable value to teach model the style and syntax.
|
|
3184
3186
|
*/
|
|
3185
3187
|
examples?: Array<string>;
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
3191
|
+
* will be marked as unsuccessful.
|
|
3192
|
+
*/
|
|
3193
|
+
required?: boolean;
|
|
3186
3194
|
}
|
|
3187
3195
|
|
|
3188
3196
|
export interface EnumAnalysisData {
|
|
@@ -3205,6 +3213,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3205
3213
|
* Type of the variable to extract.
|
|
3206
3214
|
*/
|
|
3207
3215
|
type: 'enum';
|
|
3216
|
+
|
|
3217
|
+
/**
|
|
3218
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
3219
|
+
* will be marked as unsuccessful.
|
|
3220
|
+
*/
|
|
3221
|
+
required?: boolean;
|
|
3208
3222
|
}
|
|
3209
3223
|
|
|
3210
3224
|
export interface BooleanAnalysisData {
|
|
@@ -3222,6 +3236,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3222
3236
|
* Type of the variable to extract.
|
|
3223
3237
|
*/
|
|
3224
3238
|
type: 'boolean';
|
|
3239
|
+
|
|
3240
|
+
/**
|
|
3241
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
3242
|
+
* will be marked as unsuccessful.
|
|
3243
|
+
*/
|
|
3244
|
+
required?: boolean;
|
|
3225
3245
|
}
|
|
3226
3246
|
|
|
3227
3247
|
export interface NumberAnalysisData {
|
|
@@ -3239,6 +3259,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3239
3259
|
* Type of the variable to extract.
|
|
3240
3260
|
*/
|
|
3241
3261
|
type: 'number';
|
|
3262
|
+
|
|
3263
|
+
/**
|
|
3264
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
3265
|
+
* will be marked as unsuccessful.
|
|
3266
|
+
*/
|
|
3267
|
+
required?: boolean;
|
|
3242
3268
|
}
|
|
3243
3269
|
|
|
3244
3270
|
export interface PronunciationDictionary {
|
|
@@ -3450,6 +3476,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3450
3476
|
| 'gpt-5-mini'
|
|
3451
3477
|
| 'gpt-5-nano'
|
|
3452
3478
|
| 'claude-4.5-sonnet'
|
|
3479
|
+
| 'claude-4.6-sonnet'
|
|
3453
3480
|
| 'claude-4.5-haiku'
|
|
3454
3481
|
| 'gemini-2.5-flash'
|
|
3455
3482
|
| 'gemini-2.5-flash-lite'
|
|
@@ -3512,6 +3539,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3512
3539
|
| 'gpt-5-mini'
|
|
3513
3540
|
| 'gpt-5-nano'
|
|
3514
3541
|
| 'claude-4.5-sonnet'
|
|
3542
|
+
| 'claude-4.6-sonnet'
|
|
3515
3543
|
| 'claude-4.5-haiku'
|
|
3516
3544
|
| 'gemini-2.5-flash'
|
|
3517
3545
|
| 'gemini-2.5-flash-lite'
|
|
@@ -3744,7 +3772,7 @@ export namespace CallCreateWebCallParams {
|
|
|
3744
3772
|
/**
|
|
3745
3773
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
3746
3774
|
*/
|
|
3747
|
-
custom_stt_config?: Agent.CustomSttConfig;
|
|
3775
|
+
custom_stt_config?: Agent.CustomSttConfig | null;
|
|
3748
3776
|
|
|
3749
3777
|
/**
|
|
3750
3778
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
@@ -3969,6 +3997,7 @@ export namespace CallCreateWebCallParams {
|
|
|
3969
3997
|
| 'gpt-5-mini'
|
|
3970
3998
|
| 'gpt-5-nano'
|
|
3971
3999
|
| 'claude-4.5-sonnet'
|
|
4000
|
+
| 'claude-4.6-sonnet'
|
|
3972
4001
|
| 'claude-4.5-haiku'
|
|
3973
4002
|
| 'gemini-2.5-flash'
|
|
3974
4003
|
| 'gemini-2.5-flash-lite'
|
|
@@ -4018,7 +4047,7 @@ export namespace CallCreateWebCallParams {
|
|
|
4018
4047
|
/**
|
|
4019
4048
|
* If set, the phone ringing will last for the specified amount of milliseconds.
|
|
4020
4049
|
* This applies for both outbound call ringtime, and call transfer ringtime.
|
|
4021
|
-
* Default to 30000 (30 s). Valid range is [5000,
|
|
4050
|
+
* Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
4022
4051
|
*/
|
|
4023
4052
|
ring_duration_ms?: number;
|
|
4024
4053
|
|
|
@@ -4073,6 +4102,7 @@ export namespace CallCreateWebCallParams {
|
|
|
4073
4102
|
| 'eleven_turbo_v2_5'
|
|
4074
4103
|
| 'eleven_flash_v2_5'
|
|
4075
4104
|
| 'eleven_multilingual_v2'
|
|
4105
|
+
| 'eleven_v3'
|
|
4076
4106
|
| 'sonic-2'
|
|
4077
4107
|
| 'sonic-3'
|
|
4078
4108
|
| 'sonic-3-latest'
|
|
@@ -4269,6 +4299,12 @@ export namespace CallCreateWebCallParams {
|
|
|
4269
4299
|
* Examples of the variable value to teach model the style and syntax.
|
|
4270
4300
|
*/
|
|
4271
4301
|
examples?: Array<string>;
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
4305
|
+
* will be marked as unsuccessful.
|
|
4306
|
+
*/
|
|
4307
|
+
required?: boolean;
|
|
4272
4308
|
}
|
|
4273
4309
|
|
|
4274
4310
|
export interface EnumAnalysisData {
|
|
@@ -4291,6 +4327,12 @@ export namespace CallCreateWebCallParams {
|
|
|
4291
4327
|
* Type of the variable to extract.
|
|
4292
4328
|
*/
|
|
4293
4329
|
type: 'enum';
|
|
4330
|
+
|
|
4331
|
+
/**
|
|
4332
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
4333
|
+
* will be marked as unsuccessful.
|
|
4334
|
+
*/
|
|
4335
|
+
required?: boolean;
|
|
4294
4336
|
}
|
|
4295
4337
|
|
|
4296
4338
|
export interface BooleanAnalysisData {
|
|
@@ -4308,6 +4350,12 @@ export namespace CallCreateWebCallParams {
|
|
|
4308
4350
|
* Type of the variable to extract.
|
|
4309
4351
|
*/
|
|
4310
4352
|
type: 'boolean';
|
|
4353
|
+
|
|
4354
|
+
/**
|
|
4355
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
4356
|
+
* will be marked as unsuccessful.
|
|
4357
|
+
*/
|
|
4358
|
+
required?: boolean;
|
|
4311
4359
|
}
|
|
4312
4360
|
|
|
4313
4361
|
export interface NumberAnalysisData {
|
|
@@ -4325,6 +4373,12 @@ export namespace CallCreateWebCallParams {
|
|
|
4325
4373
|
* Type of the variable to extract.
|
|
4326
4374
|
*/
|
|
4327
4375
|
type: 'number';
|
|
4376
|
+
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
4379
|
+
* will be marked as unsuccessful.
|
|
4380
|
+
*/
|
|
4381
|
+
required?: boolean;
|
|
4328
4382
|
}
|
|
4329
4383
|
|
|
4330
4384
|
export interface PronunciationDictionary {
|
|
@@ -4536,6 +4590,7 @@ export namespace CallCreateWebCallParams {
|
|
|
4536
4590
|
| 'gpt-5-mini'
|
|
4537
4591
|
| 'gpt-5-nano'
|
|
4538
4592
|
| 'claude-4.5-sonnet'
|
|
4593
|
+
| 'claude-4.6-sonnet'
|
|
4539
4594
|
| 'claude-4.5-haiku'
|
|
4540
4595
|
| 'gemini-2.5-flash'
|
|
4541
4596
|
| 'gemini-2.5-flash-lite'
|
|
@@ -4598,6 +4653,7 @@ export namespace CallCreateWebCallParams {
|
|
|
4598
4653
|
| 'gpt-5-mini'
|
|
4599
4654
|
| 'gpt-5-nano'
|
|
4600
4655
|
| 'claude-4.5-sonnet'
|
|
4656
|
+
| 'claude-4.6-sonnet'
|
|
4601
4657
|
| 'claude-4.5-haiku'
|
|
4602
4658
|
| 'gemini-2.5-flash'
|
|
4603
4659
|
| 'gemini-2.5-flash-lite'
|
|
@@ -4844,7 +4900,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4844
4900
|
/**
|
|
4845
4901
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
4846
4902
|
*/
|
|
4847
|
-
custom_stt_config?: Agent.CustomSttConfig;
|
|
4903
|
+
custom_stt_config?: Agent.CustomSttConfig | null;
|
|
4848
4904
|
|
|
4849
4905
|
/**
|
|
4850
4906
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
@@ -5069,6 +5125,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5069
5125
|
| 'gpt-5-mini'
|
|
5070
5126
|
| 'gpt-5-nano'
|
|
5071
5127
|
| 'claude-4.5-sonnet'
|
|
5128
|
+
| 'claude-4.6-sonnet'
|
|
5072
5129
|
| 'claude-4.5-haiku'
|
|
5073
5130
|
| 'gemini-2.5-flash'
|
|
5074
5131
|
| 'gemini-2.5-flash-lite'
|
|
@@ -5118,7 +5175,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5118
5175
|
/**
|
|
5119
5176
|
* If set, the phone ringing will last for the specified amount of milliseconds.
|
|
5120
5177
|
* This applies for both outbound call ringtime, and call transfer ringtime.
|
|
5121
|
-
* Default to 30000 (30 s). Valid range is [5000,
|
|
5178
|
+
* Default to 30000 (30 s). Valid range is [5000, 300000].
|
|
5122
5179
|
*/
|
|
5123
5180
|
ring_duration_ms?: number;
|
|
5124
5181
|
|
|
@@ -5173,6 +5230,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5173
5230
|
| 'eleven_turbo_v2_5'
|
|
5174
5231
|
| 'eleven_flash_v2_5'
|
|
5175
5232
|
| 'eleven_multilingual_v2'
|
|
5233
|
+
| 'eleven_v3'
|
|
5176
5234
|
| 'sonic-2'
|
|
5177
5235
|
| 'sonic-3'
|
|
5178
5236
|
| 'sonic-3-latest'
|
|
@@ -5369,6 +5427,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5369
5427
|
* Examples of the variable value to teach model the style and syntax.
|
|
5370
5428
|
*/
|
|
5371
5429
|
examples?: Array<string>;
|
|
5430
|
+
|
|
5431
|
+
/**
|
|
5432
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
5433
|
+
* will be marked as unsuccessful.
|
|
5434
|
+
*/
|
|
5435
|
+
required?: boolean;
|
|
5372
5436
|
}
|
|
5373
5437
|
|
|
5374
5438
|
export interface EnumAnalysisData {
|
|
@@ -5391,6 +5455,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5391
5455
|
* Type of the variable to extract.
|
|
5392
5456
|
*/
|
|
5393
5457
|
type: 'enum';
|
|
5458
|
+
|
|
5459
|
+
/**
|
|
5460
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
5461
|
+
* will be marked as unsuccessful.
|
|
5462
|
+
*/
|
|
5463
|
+
required?: boolean;
|
|
5394
5464
|
}
|
|
5395
5465
|
|
|
5396
5466
|
export interface BooleanAnalysisData {
|
|
@@ -5408,6 +5478,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5408
5478
|
* Type of the variable to extract.
|
|
5409
5479
|
*/
|
|
5410
5480
|
type: 'boolean';
|
|
5481
|
+
|
|
5482
|
+
/**
|
|
5483
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
5484
|
+
* will be marked as unsuccessful.
|
|
5485
|
+
*/
|
|
5486
|
+
required?: boolean;
|
|
5411
5487
|
}
|
|
5412
5488
|
|
|
5413
5489
|
export interface NumberAnalysisData {
|
|
@@ -5425,6 +5501,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5425
5501
|
* Type of the variable to extract.
|
|
5426
5502
|
*/
|
|
5427
5503
|
type: 'number';
|
|
5504
|
+
|
|
5505
|
+
/**
|
|
5506
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
5507
|
+
* will be marked as unsuccessful.
|
|
5508
|
+
*/
|
|
5509
|
+
required?: boolean;
|
|
5428
5510
|
}
|
|
5429
5511
|
|
|
5430
5512
|
export interface PronunciationDictionary {
|
|
@@ -5636,6 +5718,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5636
5718
|
| 'gpt-5-mini'
|
|
5637
5719
|
| 'gpt-5-nano'
|
|
5638
5720
|
| 'claude-4.5-sonnet'
|
|
5721
|
+
| 'claude-4.6-sonnet'
|
|
5639
5722
|
| 'claude-4.5-haiku'
|
|
5640
5723
|
| 'gemini-2.5-flash'
|
|
5641
5724
|
| 'gemini-2.5-flash-lite'
|
|
@@ -5698,6 +5781,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5698
5781
|
| 'gpt-5-mini'
|
|
5699
5782
|
| 'gpt-5-nano'
|
|
5700
5783
|
| 'claude-4.5-sonnet'
|
|
5784
|
+
| 'claude-4.6-sonnet'
|
|
5701
5785
|
| 'claude-4.5-haiku'
|
|
5702
5786
|
| 'gemini-2.5-flash'
|
|
5703
5787
|
| 'gemini-2.5-flash-lite'
|