retell-sdk 5.28.0 → 5.30.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 (55) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +4 -3
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +4 -3
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +1 -1
  8. package/resources/batch-call.d.ts +1 -1
  9. package/resources/call.d.mts +73 -13
  10. package/resources/call.d.mts.map +1 -1
  11. package/resources/call.d.ts +73 -13
  12. package/resources/call.d.ts.map +1 -1
  13. package/resources/chat.d.mts +327 -2
  14. package/resources/chat.d.mts.map +1 -1
  15. package/resources/chat.d.ts +327 -2
  16. package/resources/chat.d.ts.map +1 -1
  17. package/resources/concurrency.d.mts +4 -0
  18. package/resources/concurrency.d.mts.map +1 -1
  19. package/resources/concurrency.d.ts +4 -0
  20. package/resources/concurrency.d.ts.map +1 -1
  21. package/resources/conversation-flow-component.d.mts +27 -0
  22. package/resources/conversation-flow-component.d.mts.map +1 -1
  23. package/resources/conversation-flow-component.d.ts +27 -0
  24. package/resources/conversation-flow-component.d.ts.map +1 -1
  25. package/resources/conversation-flow.d.mts +54 -0
  26. package/resources/conversation-flow.d.mts.map +1 -1
  27. package/resources/conversation-flow.d.ts +54 -0
  28. package/resources/conversation-flow.d.ts.map +1 -1
  29. package/resources/llm.d.mts +30 -0
  30. package/resources/llm.d.mts.map +1 -1
  31. package/resources/llm.d.ts +30 -0
  32. package/resources/llm.d.ts.map +1 -1
  33. package/resources/phone-number.d.mts +102 -63
  34. package/resources/phone-number.d.mts.map +1 -1
  35. package/resources/phone-number.d.ts +102 -63
  36. package/resources/phone-number.d.ts.map +1 -1
  37. package/resources/voice.d.mts +1 -1
  38. package/resources/voice.d.mts.map +1 -1
  39. package/resources/voice.d.ts +1 -1
  40. package/resources/voice.d.ts.map +1 -1
  41. package/src/resources/agent.ts +4 -3
  42. package/src/resources/batch-call.ts +1 -1
  43. package/src/resources/call.ts +85 -4
  44. package/src/resources/chat.ts +474 -2
  45. package/src/resources/concurrency.ts +5 -0
  46. package/src/resources/conversation-flow-component.ts +33 -0
  47. package/src/resources/conversation-flow.ts +66 -0
  48. package/src/resources/llm.ts +36 -0
  49. package/src/resources/phone-number.ts +102 -63
  50. package/src/resources/voice.ts +1 -1
  51. package/src/version.ts +1 -1
  52. package/version.d.mts +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
  55. package/version.mjs +1 -1
@@ -242,6 +242,7 @@ export interface PhoneCallResponse {
242
242
  | 'inactivity'
243
243
  | 'max_duration_reached'
244
244
  | 'concurrency_limit_reached'
245
+ | 'no_concurrency_fallback'
245
246
  | 'no_valid_payment'
246
247
  | 'scam_detected'
247
248
  | 'dial_busy'
@@ -360,6 +361,7 @@ export interface PhoneCallResponse {
360
361
  | PhoneCallResponse.NodeTransitionUtterance
361
362
  | PhoneCallResponse.DtmfUtterance
362
363
  | PhoneCallResponse.SMSUtterance
364
+ | PhoneCallResponse.InjectedUtterance
363
365
  >;
364
366
 
365
367
  /**
@@ -397,6 +399,7 @@ export interface PhoneCallResponse {
397
399
  | PhoneCallResponse.NodeTransitionUtterance
398
400
  | PhoneCallResponse.DtmfUtterance
399
401
  | PhoneCallResponse.SMSUtterance
402
+ | PhoneCallResponse.InjectedUtterance
400
403
  >;
401
404
 
402
405
  /**
@@ -1078,6 +1081,24 @@ export namespace PhoneCallResponse {
1078
1081
  }
1079
1082
  }
1080
1083
 
1084
+ export interface InjectedUtterance {
1085
+ /**
1086
+ * The injected context text.
1087
+ */
1088
+ content: string;
1089
+
1090
+ /**
1091
+ * External context injected into the conversation via the update-live-call API.
1092
+ * Not spoken by either party.
1093
+ */
1094
+ role: 'injected';
1095
+
1096
+ /**
1097
+ * Time the context was injected, in seconds relative to the start of the call.
1098
+ */
1099
+ time_sec: number;
1100
+ }
1101
+
1081
1102
  /**
1082
1103
  * Telephony identifier of the call, populated when available. Tracking purposes
1083
1104
  * only.
@@ -1304,6 +1325,24 @@ export namespace PhoneCallResponse {
1304
1325
  summary?: string;
1305
1326
  }
1306
1327
  }
1328
+
1329
+ export interface InjectedUtterance {
1330
+ /**
1331
+ * The injected context text.
1332
+ */
1333
+ content: string;
1334
+
1335
+ /**
1336
+ * External context injected into the conversation via the update-live-call API.
1337
+ * Not spoken by either party.
1338
+ */
1339
+ role: 'injected';
1340
+
1341
+ /**
1342
+ * Time the context was injected, in seconds relative to the start of the call.
1343
+ */
1344
+ time_sec: number;
1345
+ }
1307
1346
  }
1308
1347
 
1309
1348
  export interface WebCallResponse {
@@ -1393,6 +1432,7 @@ export interface WebCallResponse {
1393
1432
  | 'inactivity'
1394
1433
  | 'max_duration_reached'
1395
1434
  | 'concurrency_limit_reached'
1435
+ | 'no_concurrency_fallback'
1396
1436
  | 'no_valid_payment'
1397
1437
  | 'scam_detected'
1398
1438
  | 'dial_busy'
@@ -1511,6 +1551,7 @@ export interface WebCallResponse {
1511
1551
  | WebCallResponse.NodeTransitionUtterance
1512
1552
  | WebCallResponse.DtmfUtterance
1513
1553
  | WebCallResponse.SMSUtterance
1554
+ | WebCallResponse.InjectedUtterance
1514
1555
  >;
1515
1556
 
1516
1557
  /**
@@ -1542,6 +1583,7 @@ export interface WebCallResponse {
1542
1583
  | WebCallResponse.NodeTransitionUtterance
1543
1584
  | WebCallResponse.DtmfUtterance
1544
1585
  | WebCallResponse.SMSUtterance
1586
+ | WebCallResponse.InjectedUtterance
1545
1587
  >;
1546
1588
 
1547
1589
  /**
@@ -2223,6 +2265,24 @@ export namespace WebCallResponse {
2223
2265
  }
2224
2266
  }
2225
2267
 
2268
+ export interface InjectedUtterance {
2269
+ /**
2270
+ * The injected context text.
2271
+ */
2272
+ content: string;
2273
+
2274
+ /**
2275
+ * External context injected into the conversation via the update-live-call API.
2276
+ * Not spoken by either party.
2277
+ */
2278
+ role: 'injected';
2279
+
2280
+ /**
2281
+ * Time the context was injected, in seconds relative to the start of the call.
2282
+ */
2283
+ time_sec: number;
2284
+ }
2285
+
2226
2286
  export interface TranscriptObject {
2227
2287
  /**
2228
2288
  * Transcript of the utterances.
@@ -2438,6 +2498,24 @@ export namespace WebCallResponse {
2438
2498
  summary?: string;
2439
2499
  }
2440
2500
  }
2501
+
2502
+ export interface InjectedUtterance {
2503
+ /**
2504
+ * The injected context text.
2505
+ */
2506
+ content: string;
2507
+
2508
+ /**
2509
+ * External context injected into the conversation via the update-live-call API.
2510
+ * Not spoken by either party.
2511
+ */
2512
+ role: 'injected';
2513
+
2514
+ /**
2515
+ * Time the context was injected, in seconds relative to the start of the call.
2516
+ */
2517
+ time_sec: number;
2518
+ }
2441
2519
  }
2442
2520
 
2443
2521
  export interface CallListResponse {
@@ -2548,6 +2626,7 @@ export namespace CallListResponse {
2548
2626
  | 'inactivity'
2549
2627
  | 'max_duration_reached'
2550
2628
  | 'concurrency_limit_reached'
2629
+ | 'no_concurrency_fallback'
2551
2630
  | 'no_valid_payment'
2552
2631
  | 'scam_detected'
2553
2632
  | 'dial_busy'
@@ -3260,6 +3339,7 @@ export namespace CallListResponse {
3260
3339
  | 'inactivity'
3261
3340
  | 'max_duration_reached'
3262
3341
  | 'concurrency_limit_reached'
3342
+ | 'no_concurrency_fallback'
3263
3343
  | 'no_valid_payment'
3264
3344
  | 'scam_detected'
3265
3345
  | 'dial_busy'
@@ -3916,7 +3996,7 @@ export interface CallUpdateParams {
3916
3996
  metadata?: unknown;
3917
3997
 
3918
3998
  /**
3919
- * Override dynamic varaibles represented as key-value pairs of strings. Setting
3999
+ * Override dynamic variables represented as key-value pairs of strings. Setting
3920
4000
  * this will override or add the dynamic variables set in the agent during the
3921
4001
  * call. Only need to set the delta where you want to override, no need to set the
3922
4002
  * entire dynamic variables object. Setting this to null will remove any existing
@@ -4413,6 +4493,7 @@ export namespace CallListParams {
4413
4493
  | 'inactivity'
4414
4494
  | 'max_duration_reached'
4415
4495
  | 'concurrency_limit_reached'
4496
+ | 'no_concurrency_fallback'
4416
4497
  | 'no_valid_payment'
4417
4498
  | 'scam_detected'
4418
4499
  | 'dial_busy'
@@ -4963,7 +5044,7 @@ export namespace CallCreatePhoneCallParams {
4963
5044
  /**
4964
5045
  * Provide a customized list of keywords to bias the transcriber model, so that
4965
5046
  * these words are more likely to get transcribed. Commonly used for names, brands,
4966
- * street, etc.
5047
+ * street, etc. Entries may reference dynamic variables with `{{variable}}` syntax.
4967
5048
  */
4968
5049
  boosted_keywords?: Array<string> | null;
4969
5050
 
@@ -6322,7 +6403,7 @@ export namespace CallCreateWebCallParams {
6322
6403
  /**
6323
6404
  * Provide a customized list of keywords to bias the transcriber model, so that
6324
6405
  * these words are more likely to get transcribed. Commonly used for names, brands,
6325
- * street, etc.
6406
+ * street, etc. Entries may reference dynamic variables with `{{variable}}` syntax.
6326
6407
  */
6327
6408
  boosted_keywords?: Array<string> | null;
6328
6409
 
@@ -7681,7 +7762,7 @@ export namespace CallRegisterPhoneCallParams {
7681
7762
  /**
7682
7763
  * Provide a customized list of keywords to bias the transcriber model, so that
7683
7764
  * these words are more likely to get transcribed. Commonly used for names, brands,
7684
- * street, etc.
7765
+ * street, etc. Entries may reference dynamic variables with `{{variable}}` syntax.
7685
7766
  */
7686
7767
  boosted_keywords?: Array<string> | null;
7687
7768
 
@@ -727,7 +727,7 @@ export interface ChatUpdateParams {
727
727
  metadata?: unknown;
728
728
 
729
729
  /**
730
- * Override dynamic varaibles represented as key-value pairs of strings. Setting
730
+ * Override dynamic variables represented as key-value pairs of strings. Setting
731
731
  * this will override or add the dynamic variables set in the agent during the
732
732
  * call. Only need to set the delta where you want to override, no need to set the
733
733
  * entire dynamic variables object. Setting this to null will remove any existing
@@ -740,7 +740,7 @@ export interface ChatListParams {
740
740
  /**
741
741
  * Filter criteria for chats to retrieve.
742
742
  */
743
- filter_criteria?: unknown;
743
+ filter_criteria?: ChatListParams.FilterCriteria;
744
744
 
745
745
  /**
746
746
  * Whether to include `total` (count of all chats matching `filter_criteria`,
@@ -771,6 +771,478 @@ export interface ChatListParams {
771
771
  sort_order?: 'ascending' | 'descending';
772
772
  }
773
773
 
774
+ export namespace ChatListParams {
775
+ /**
776
+ * Filter criteria for chats to retrieve.
777
+ */
778
+ export interface FilterCriteria {
779
+ /**
780
+ * Filter by agent(s). Agent filters are connected by OR.
781
+ */
782
+ agent?: Array<FilterCriteria.Agent>;
783
+
784
+ /**
785
+ * Filter by chat ID.
786
+ */
787
+ chat_id?: FilterCriteria.ChatID;
788
+
789
+ chat_status?: FilterCriteria.ChatStatus;
790
+
791
+ /**
792
+ * Filter by whether the chat was successful.
793
+ */
794
+ chat_successful?: FilterCriteria.ChatSuccessful;
795
+
796
+ /**
797
+ * Filter by combined cost of the chat.
798
+ */
799
+ combined_cost?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
800
+
801
+ /**
802
+ * Filter by custom analysis data fields.
803
+ */
804
+ custom_analysis_data?: Array<
805
+ | FilterCriteria.StringFilter
806
+ | FilterCriteria.NumberFilter
807
+ | FilterCriteria.BooleanFilter
808
+ | FilterCriteria.RangeFilter
809
+ | FilterCriteria.EnumFilter
810
+ | FilterCriteria.PresentFilter
811
+ >;
812
+
813
+ /**
814
+ * Filter by custom attributes fields.
815
+ */
816
+ custom_attributes?: Array<
817
+ | FilterCriteria.StringFilter
818
+ | FilterCriteria.NumberFilter
819
+ | FilterCriteria.BooleanFilter
820
+ | FilterCriteria.RangeFilter
821
+ | FilterCriteria.EnumFilter
822
+ | FilterCriteria.PresentFilter
823
+ >;
824
+
825
+ disconnection_reason?: FilterCriteria.DisconnectionReason;
826
+
827
+ /**
828
+ * Filter by chat duration in milliseconds.
829
+ */
830
+ duration_ms?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
831
+
832
+ /**
833
+ * Filter by chat end timestamp (epoch ms).
834
+ */
835
+ end_timestamp?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
836
+
837
+ /**
838
+ * Filter by chat start timestamp (epoch ms).
839
+ */
840
+ start_timestamp?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
841
+
842
+ user_sentiment?: FilterCriteria.UserSentiment;
843
+ }
844
+
845
+ export namespace FilterCriteria {
846
+ export interface Agent {
847
+ /**
848
+ * The agent ID to filter on.
849
+ */
850
+ agent_id: string;
851
+
852
+ /**
853
+ * Specific versions to filter on. If not provided, all versions are included.
854
+ */
855
+ version?: Array<number>;
856
+ }
857
+
858
+ /**
859
+ * Filter by chat ID.
860
+ */
861
+ export interface ChatID {
862
+ /**
863
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
864
+ */
865
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
866
+
867
+ type: 'string';
868
+
869
+ value: string;
870
+ }
871
+
872
+ export interface ChatStatus {
873
+ /**
874
+ * in: value is one of the listed values
875
+ */
876
+ op: 'in';
877
+
878
+ type: 'enum';
879
+
880
+ value: Array<'ongoing' | 'ended' | 'error'>;
881
+ }
882
+
883
+ /**
884
+ * Filter by whether the chat was successful.
885
+ */
886
+ export interface ChatSuccessful {
887
+ op: 'eq';
888
+
889
+ type: 'boolean';
890
+
891
+ value: boolean;
892
+ }
893
+
894
+ export interface NumberFilter {
895
+ /**
896
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
897
+ * than, le: less than or equal
898
+ */
899
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
900
+
901
+ type: 'number';
902
+
903
+ value: number;
904
+ }
905
+
906
+ export interface RangeFilter {
907
+ /**
908
+ * bt: between
909
+ */
910
+ op: 'bt';
911
+
912
+ type: 'range';
913
+
914
+ /**
915
+ * [lower_bound, upper_bound]
916
+ */
917
+ value: Array<number>;
918
+ }
919
+
920
+ export interface StringFilter {
921
+ /**
922
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
923
+ */
924
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
925
+
926
+ type: 'string';
927
+
928
+ value: string;
929
+
930
+ /**
931
+ * The field name to filter on.
932
+ */
933
+ key?: string;
934
+ }
935
+
936
+ export interface NumberFilter {
937
+ /**
938
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
939
+ * than, le: less than or equal
940
+ */
941
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
942
+
943
+ type: 'number';
944
+
945
+ value: number;
946
+
947
+ /**
948
+ * The field name to filter on.
949
+ */
950
+ key?: string;
951
+ }
952
+
953
+ export interface BooleanFilter {
954
+ op: 'eq';
955
+
956
+ type: 'boolean';
957
+
958
+ value: boolean;
959
+
960
+ /**
961
+ * The field name to filter on.
962
+ */
963
+ key?: string;
964
+ }
965
+
966
+ export interface RangeFilter {
967
+ /**
968
+ * bt: between
969
+ */
970
+ op: 'bt';
971
+
972
+ type: 'range';
973
+
974
+ /**
975
+ * [lower_bound, upper_bound]
976
+ */
977
+ value: Array<number>;
978
+
979
+ /**
980
+ * The field name to filter on.
981
+ */
982
+ key?: string;
983
+ }
984
+
985
+ export interface EnumFilter {
986
+ /**
987
+ * in: value is one of the listed values
988
+ */
989
+ op: 'in';
990
+
991
+ type: 'enum';
992
+
993
+ value: Array<string>;
994
+
995
+ /**
996
+ * The field name to filter on.
997
+ */
998
+ key?: string;
999
+ }
1000
+
1001
+ export interface PresentFilter {
1002
+ /**
1003
+ * pr: present (has value), np: not present
1004
+ */
1005
+ op: 'pr' | 'np';
1006
+
1007
+ type: 'present';
1008
+
1009
+ /**
1010
+ * The field name to filter on.
1011
+ */
1012
+ key?: string;
1013
+ }
1014
+
1015
+ export interface StringFilter {
1016
+ /**
1017
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
1018
+ */
1019
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
1020
+
1021
+ type: 'string';
1022
+
1023
+ value: string;
1024
+
1025
+ /**
1026
+ * The field name to filter on.
1027
+ */
1028
+ key?: string;
1029
+ }
1030
+
1031
+ export interface NumberFilter {
1032
+ /**
1033
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
1034
+ * than, le: less than or equal
1035
+ */
1036
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
1037
+
1038
+ type: 'number';
1039
+
1040
+ value: number;
1041
+
1042
+ /**
1043
+ * The field name to filter on.
1044
+ */
1045
+ key?: string;
1046
+ }
1047
+
1048
+ export interface BooleanFilter {
1049
+ op: 'eq';
1050
+
1051
+ type: 'boolean';
1052
+
1053
+ value: boolean;
1054
+
1055
+ /**
1056
+ * The field name to filter on.
1057
+ */
1058
+ key?: string;
1059
+ }
1060
+
1061
+ export interface RangeFilter {
1062
+ /**
1063
+ * bt: between
1064
+ */
1065
+ op: 'bt';
1066
+
1067
+ type: 'range';
1068
+
1069
+ /**
1070
+ * [lower_bound, upper_bound]
1071
+ */
1072
+ value: Array<number>;
1073
+
1074
+ /**
1075
+ * The field name to filter on.
1076
+ */
1077
+ key?: string;
1078
+ }
1079
+
1080
+ export interface EnumFilter {
1081
+ /**
1082
+ * in: value is one of the listed values
1083
+ */
1084
+ op: 'in';
1085
+
1086
+ type: 'enum';
1087
+
1088
+ value: Array<string>;
1089
+
1090
+ /**
1091
+ * The field name to filter on.
1092
+ */
1093
+ key?: string;
1094
+ }
1095
+
1096
+ export interface PresentFilter {
1097
+ /**
1098
+ * pr: present (has value), np: not present
1099
+ */
1100
+ op: 'pr' | 'np';
1101
+
1102
+ type: 'present';
1103
+
1104
+ /**
1105
+ * The field name to filter on.
1106
+ */
1107
+ key?: string;
1108
+ }
1109
+
1110
+ export interface DisconnectionReason {
1111
+ /**
1112
+ * in: value is one of the listed values
1113
+ */
1114
+ op: 'in';
1115
+
1116
+ type: 'enum';
1117
+
1118
+ value: Array<
1119
+ | 'user_hangup'
1120
+ | 'agent_hangup'
1121
+ | 'call_transfer'
1122
+ | 'voicemail_reached'
1123
+ | 'ivr_reached'
1124
+ | 'inactivity'
1125
+ | 'max_duration_reached'
1126
+ | 'concurrency_limit_reached'
1127
+ | 'no_concurrency_fallback'
1128
+ | 'no_valid_payment'
1129
+ | 'scam_detected'
1130
+ | 'dial_busy'
1131
+ | 'dial_failed'
1132
+ | 'dial_no_answer'
1133
+ | 'invalid_destination'
1134
+ | 'telephony_provider_permission_denied'
1135
+ | 'telephony_provider_unavailable'
1136
+ | 'sip_routing_error'
1137
+ | 'marked_as_spam'
1138
+ | 'user_declined'
1139
+ | 'error_llm_websocket_open'
1140
+ | 'error_llm_websocket_lost_connection'
1141
+ | 'error_llm_websocket_runtime'
1142
+ | 'error_llm_websocket_corrupt_payload'
1143
+ | 'error_no_audio_received'
1144
+ | 'error_asr'
1145
+ | 'error_retell'
1146
+ | 'error_unknown'
1147
+ | 'error_user_not_joined'
1148
+ | 'registered_call_timeout'
1149
+ | 'transfer_bridged'
1150
+ | 'transfer_cancelled'
1151
+ | 'manual_stopped'
1152
+ >;
1153
+ }
1154
+
1155
+ export interface NumberFilter {
1156
+ /**
1157
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
1158
+ * than, le: less than or equal
1159
+ */
1160
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
1161
+
1162
+ type: 'number';
1163
+
1164
+ value: number;
1165
+ }
1166
+
1167
+ export interface RangeFilter {
1168
+ /**
1169
+ * bt: between
1170
+ */
1171
+ op: 'bt';
1172
+
1173
+ type: 'range';
1174
+
1175
+ /**
1176
+ * [lower_bound, upper_bound]
1177
+ */
1178
+ value: Array<number>;
1179
+ }
1180
+
1181
+ export interface NumberFilter {
1182
+ /**
1183
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
1184
+ * than, le: less than or equal
1185
+ */
1186
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
1187
+
1188
+ type: 'number';
1189
+
1190
+ value: number;
1191
+ }
1192
+
1193
+ export interface RangeFilter {
1194
+ /**
1195
+ * bt: between
1196
+ */
1197
+ op: 'bt';
1198
+
1199
+ type: 'range';
1200
+
1201
+ /**
1202
+ * [lower_bound, upper_bound]
1203
+ */
1204
+ value: Array<number>;
1205
+ }
1206
+
1207
+ export interface NumberFilter {
1208
+ /**
1209
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
1210
+ * than, le: less than or equal
1211
+ */
1212
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
1213
+
1214
+ type: 'number';
1215
+
1216
+ value: number;
1217
+ }
1218
+
1219
+ export interface RangeFilter {
1220
+ /**
1221
+ * bt: between
1222
+ */
1223
+ op: 'bt';
1224
+
1225
+ type: 'range';
1226
+
1227
+ /**
1228
+ * [lower_bound, upper_bound]
1229
+ */
1230
+ value: Array<number>;
1231
+ }
1232
+
1233
+ export interface UserSentiment {
1234
+ /**
1235
+ * in: value is one of the listed values
1236
+ */
1237
+ op: 'in';
1238
+
1239
+ type: 'enum';
1240
+
1241
+ value: Array<'Negative' | 'Positive' | 'Neutral' | 'Unknown'>;
1242
+ }
1243
+ }
1244
+ }
1245
+
774
1246
  export interface ChatCreateChatCompletionParams {
775
1247
  /**
776
1248
  * Unique id of the chat to create completion.
@@ -57,6 +57,11 @@ export interface ConcurrencyRetrieveResponse {
57
57
  * difference between `concurrency_purchase_limit` and `purchased_concurrency`.
58
58
  */
59
59
  remaining_purchase_limit?: number;
60
+
61
+ /**
62
+ * Number of normal concurrency slots reserved for inbound calls.
63
+ */
64
+ reserved_inbound_concurrency?: number;
60
65
  }
61
66
 
62
67
  export declare namespace Concurrency {