retell-sdk 5.7.0 → 5.9.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 +441 -0
- package/README.md +2 -2
- 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 +12 -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
|
@@ -197,7 +197,7 @@ export interface ChatAgentResponse {
|
|
|
197
197
|
* value allowed is 120,000 ms (2 minutes). The maximum value allowed is
|
|
198
198
|
* 259,200,000 ms (72 hours). By default, this is set to 3,600,000 (1 hour).
|
|
199
199
|
*/
|
|
200
|
-
end_chat_after_silence_ms?: number;
|
|
200
|
+
end_chat_after_silence_ms?: number | null;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Configuration for guardrail checks to detect and prevent prohibited topics in
|
|
@@ -299,6 +299,7 @@ export interface ChatAgentResponse {
|
|
|
299
299
|
| 'gpt-5-mini'
|
|
300
300
|
| 'gpt-5-nano'
|
|
301
301
|
| 'claude-4.5-sonnet'
|
|
302
|
+
| 'claude-4.6-sonnet'
|
|
302
303
|
| 'claude-4.5-haiku'
|
|
303
304
|
| 'gemini-2.5-flash'
|
|
304
305
|
| 'gemini-2.5-flash-lite'
|
|
@@ -464,6 +465,12 @@ export namespace ChatAgentResponse {
|
|
|
464
465
|
* Examples of the variable value to teach model the style and syntax.
|
|
465
466
|
*/
|
|
466
467
|
examples?: Array<string>;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
471
|
+
* will be marked as unsuccessful.
|
|
472
|
+
*/
|
|
473
|
+
required?: boolean;
|
|
467
474
|
}
|
|
468
475
|
|
|
469
476
|
export interface EnumAnalysisData {
|
|
@@ -486,6 +493,12 @@ export namespace ChatAgentResponse {
|
|
|
486
493
|
* Type of the variable to extract.
|
|
487
494
|
*/
|
|
488
495
|
type: 'enum';
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
499
|
+
* will be marked as unsuccessful.
|
|
500
|
+
*/
|
|
501
|
+
required?: boolean;
|
|
489
502
|
}
|
|
490
503
|
|
|
491
504
|
export interface BooleanAnalysisData {
|
|
@@ -503,6 +516,12 @@ export namespace ChatAgentResponse {
|
|
|
503
516
|
* Type of the variable to extract.
|
|
504
517
|
*/
|
|
505
518
|
type: 'boolean';
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
522
|
+
* will be marked as unsuccessful.
|
|
523
|
+
*/
|
|
524
|
+
required?: boolean;
|
|
506
525
|
}
|
|
507
526
|
|
|
508
527
|
export interface NumberAnalysisData {
|
|
@@ -520,6 +539,12 @@ export namespace ChatAgentResponse {
|
|
|
520
539
|
* Type of the variable to extract.
|
|
521
540
|
*/
|
|
522
541
|
type: 'number';
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
545
|
+
* will be marked as unsuccessful.
|
|
546
|
+
*/
|
|
547
|
+
required?: boolean;
|
|
523
548
|
}
|
|
524
549
|
}
|
|
525
550
|
|
|
@@ -586,7 +611,7 @@ export interface ChatAgentCreateParams {
|
|
|
586
611
|
* value allowed is 120,000 ms (2 minutes). The maximum value allowed is
|
|
587
612
|
* 259,200,000 ms (72 hours). By default, this is set to 3,600,000 (1 hour).
|
|
588
613
|
*/
|
|
589
|
-
end_chat_after_silence_ms?: number;
|
|
614
|
+
end_chat_after_silence_ms?: number | null;
|
|
590
615
|
|
|
591
616
|
/**
|
|
592
617
|
* Configuration for guardrail checks to detect and prevent prohibited topics in
|
|
@@ -683,6 +708,7 @@ export interface ChatAgentCreateParams {
|
|
|
683
708
|
| 'gpt-5-mini'
|
|
684
709
|
| 'gpt-5-nano'
|
|
685
710
|
| 'claude-4.5-sonnet'
|
|
711
|
+
| 'claude-4.6-sonnet'
|
|
686
712
|
| 'claude-4.5-haiku'
|
|
687
713
|
| 'gemini-2.5-flash'
|
|
688
714
|
| 'gemini-2.5-flash-lite'
|
|
@@ -843,6 +869,12 @@ export namespace ChatAgentCreateParams {
|
|
|
843
869
|
* Examples of the variable value to teach model the style and syntax.
|
|
844
870
|
*/
|
|
845
871
|
examples?: Array<string>;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
875
|
+
* will be marked as unsuccessful.
|
|
876
|
+
*/
|
|
877
|
+
required?: boolean;
|
|
846
878
|
}
|
|
847
879
|
|
|
848
880
|
export interface EnumAnalysisData {
|
|
@@ -865,6 +897,12 @@ export namespace ChatAgentCreateParams {
|
|
|
865
897
|
* Type of the variable to extract.
|
|
866
898
|
*/
|
|
867
899
|
type: 'enum';
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
903
|
+
* will be marked as unsuccessful.
|
|
904
|
+
*/
|
|
905
|
+
required?: boolean;
|
|
868
906
|
}
|
|
869
907
|
|
|
870
908
|
export interface BooleanAnalysisData {
|
|
@@ -882,6 +920,12 @@ export namespace ChatAgentCreateParams {
|
|
|
882
920
|
* Type of the variable to extract.
|
|
883
921
|
*/
|
|
884
922
|
type: 'boolean';
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
926
|
+
* will be marked as unsuccessful.
|
|
927
|
+
*/
|
|
928
|
+
required?: boolean;
|
|
885
929
|
}
|
|
886
930
|
|
|
887
931
|
export interface NumberAnalysisData {
|
|
@@ -899,6 +943,12 @@ export namespace ChatAgentCreateParams {
|
|
|
899
943
|
* Type of the variable to extract.
|
|
900
944
|
*/
|
|
901
945
|
type: 'number';
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
949
|
+
* will be marked as unsuccessful.
|
|
950
|
+
*/
|
|
951
|
+
required?: boolean;
|
|
902
952
|
}
|
|
903
953
|
}
|
|
904
954
|
|
|
@@ -967,7 +1017,7 @@ export interface ChatAgentUpdateParams {
|
|
|
967
1017
|
* The minimum value allowed is 120,000 ms (2 minutes). The maximum value allowed
|
|
968
1018
|
* is 259,200,000 ms (72 hours). By default, this is set to 3,600,000 (1 hour).
|
|
969
1019
|
*/
|
|
970
|
-
end_chat_after_silence_ms?: number;
|
|
1020
|
+
end_chat_after_silence_ms?: number | null;
|
|
971
1021
|
|
|
972
1022
|
/**
|
|
973
1023
|
* Body param: Configuration for guardrail checks to detect and prevent prohibited
|
|
@@ -1064,6 +1114,7 @@ export interface ChatAgentUpdateParams {
|
|
|
1064
1114
|
| 'gpt-5-mini'
|
|
1065
1115
|
| 'gpt-5-nano'
|
|
1066
1116
|
| 'claude-4.5-sonnet'
|
|
1117
|
+
| 'claude-4.6-sonnet'
|
|
1067
1118
|
| 'claude-4.5-haiku'
|
|
1068
1119
|
| 'gemini-2.5-flash'
|
|
1069
1120
|
| 'gemini-2.5-flash-lite'
|
|
@@ -1188,6 +1239,12 @@ export namespace ChatAgentUpdateParams {
|
|
|
1188
1239
|
* Examples of the variable value to teach model the style and syntax.
|
|
1189
1240
|
*/
|
|
1190
1241
|
examples?: Array<string>;
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1245
|
+
* will be marked as unsuccessful.
|
|
1246
|
+
*/
|
|
1247
|
+
required?: boolean;
|
|
1191
1248
|
}
|
|
1192
1249
|
|
|
1193
1250
|
export interface EnumAnalysisData {
|
|
@@ -1210,6 +1267,12 @@ export namespace ChatAgentUpdateParams {
|
|
|
1210
1267
|
* Type of the variable to extract.
|
|
1211
1268
|
*/
|
|
1212
1269
|
type: 'enum';
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1273
|
+
* will be marked as unsuccessful.
|
|
1274
|
+
*/
|
|
1275
|
+
required?: boolean;
|
|
1213
1276
|
}
|
|
1214
1277
|
|
|
1215
1278
|
export interface BooleanAnalysisData {
|
|
@@ -1227,6 +1290,12 @@ export namespace ChatAgentUpdateParams {
|
|
|
1227
1290
|
* Type of the variable to extract.
|
|
1228
1291
|
*/
|
|
1229
1292
|
type: 'boolean';
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1296
|
+
* will be marked as unsuccessful.
|
|
1297
|
+
*/
|
|
1298
|
+
required?: boolean;
|
|
1230
1299
|
}
|
|
1231
1300
|
|
|
1232
1301
|
export interface NumberAnalysisData {
|
|
@@ -1244,6 +1313,12 @@ export namespace ChatAgentUpdateParams {
|
|
|
1244
1313
|
* Type of the variable to extract.
|
|
1245
1314
|
*/
|
|
1246
1315
|
type: 'number';
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Whether this data is required. If true and the data is not extracted, the call
|
|
1319
|
+
* will be marked as unsuccessful.
|
|
1320
|
+
*/
|
|
1321
|
+
required?: boolean;
|
|
1247
1322
|
}
|
|
1248
1323
|
|
|
1249
1324
|
export interface ResponseEngineRetellLm {
|