retell-sdk 4.11.0 → 4.12.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.
@@ -104,6 +104,11 @@ export interface PhoneCallResponse {
104
104
  */
105
105
  call_analysis?: PhoneCallResponse.CallAnalysis;
106
106
 
107
+ /**
108
+ * Cost of the call, including all the products and their costs and discount.
109
+ */
110
+ call_cost?: PhoneCallResponse.CallCost;
111
+
107
112
  /**
108
113
  * The reason for the disconnection of the call. Read details desciption about
109
114
  * reasons listed here at
@@ -243,6 +248,55 @@ export namespace PhoneCallResponse {
243
248
  user_sentiment?: 'Negative' | 'Positive' | 'Neutral' | 'Unknown';
244
249
  }
245
250
 
251
+ /**
252
+ * Cost of the call, including all the products and their costs and discount.
253
+ */
254
+ export interface CallCost {
255
+ /**
256
+ * Combined cost of all individual costs in cents
257
+ */
258
+ combined_cost: number;
259
+
260
+ /**
261
+ * List of products with their unit prices and costs in cents
262
+ */
263
+ product_costs: Array<CallCost.ProductCost>;
264
+
265
+ /**
266
+ * Total duration of the call in seconds
267
+ */
268
+ total_duration_seconds: number;
269
+
270
+ /**
271
+ * Total unit duration price of all products in cents per second
272
+ */
273
+ total_duration_unit_price: number;
274
+
275
+ /**
276
+ * Total one time price of all products in cents per call
277
+ */
278
+ total_one_time_price: number;
279
+ }
280
+
281
+ export namespace CallCost {
282
+ export interface ProductCost {
283
+ /**
284
+ * Cost for the product in cents for the duration of the call.
285
+ */
286
+ cost: number;
287
+
288
+ /**
289
+ * Product name that has a cost associated with it.
290
+ */
291
+ product: string;
292
+
293
+ /**
294
+ * Unit price of the product in cents per second.
295
+ */
296
+ unitPrice: number;
297
+ }
298
+ }
299
+
246
300
  /**
247
301
  * Latency tracking of the call, available after call ends. Not all fields here
248
302
  * will be available, as it depends on the type of call and feature used.
@@ -737,6 +791,11 @@ export interface WebCallResponse {
737
791
  */
738
792
  call_analysis?: WebCallResponse.CallAnalysis;
739
793
 
794
+ /**
795
+ * Cost of the call, including all the products and their costs and discount.
796
+ */
797
+ call_cost?: WebCallResponse.CallCost;
798
+
740
799
  /**
741
800
  * The reason for the disconnection of the call. Read details desciption about
742
801
  * reasons listed here at
@@ -876,6 +935,55 @@ export namespace WebCallResponse {
876
935
  user_sentiment?: 'Negative' | 'Positive' | 'Neutral' | 'Unknown';
877
936
  }
878
937
 
938
+ /**
939
+ * Cost of the call, including all the products and their costs and discount.
940
+ */
941
+ export interface CallCost {
942
+ /**
943
+ * Combined cost of all individual costs in cents
944
+ */
945
+ combined_cost: number;
946
+
947
+ /**
948
+ * List of products with their unit prices and costs in cents
949
+ */
950
+ product_costs: Array<CallCost.ProductCost>;
951
+
952
+ /**
953
+ * Total duration of the call in seconds
954
+ */
955
+ total_duration_seconds: number;
956
+
957
+ /**
958
+ * Total unit duration price of all products in cents per second
959
+ */
960
+ total_duration_unit_price: number;
961
+
962
+ /**
963
+ * Total one time price of all products in cents per call
964
+ */
965
+ total_one_time_price: number;
966
+ }
967
+
968
+ export namespace CallCost {
969
+ export interface ProductCost {
970
+ /**
971
+ * Cost for the product in cents for the duration of the call.
972
+ */
973
+ cost: number;
974
+
975
+ /**
976
+ * Product name that has a cost associated with it.
977
+ */
978
+ product: string;
979
+
980
+ /**
981
+ * Unit price of the product in cents per second.
982
+ */
983
+ unitPrice: number;
984
+ }
985
+ }
986
+
879
987
  /**
880
988
  * Latency tracking of the call, available after call ends. Not all fields here
881
989
  * will be available, as it depends on the type of call and feature used.
@@ -104,7 +104,7 @@ export interface LlmResponse {
104
104
  /**
105
105
  * Select the underlying text LLM. If not set, would default to gpt-4o.
106
106
  */
107
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
107
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | 'claude-3.5-haiku' | null;
108
108
 
109
109
  /**
110
110
  * If set, will control the randomness of the response. Value ranging from [0,1].
@@ -118,7 +118,7 @@ export interface LlmResponse {
118
118
  * Select the underlying speech to speech model. Can only set this or model, not
119
119
  * both.
120
120
  */
121
- s2s_model?: 'gpt-4o-realtime' | null;
121
+ s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | null;
122
122
 
123
123
  /**
124
124
  * Name of the starting state. Required if states is not empty.
@@ -829,7 +829,7 @@ export interface LlmCreateParams {
829
829
  /**
830
830
  * Select the underlying text LLM. If not set, would default to gpt-4o.
831
831
  */
832
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
832
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | 'claude-3.5-haiku' | null;
833
833
 
834
834
  /**
835
835
  * If set, will control the randomness of the response. Value ranging from [0,1].
@@ -843,7 +843,7 @@ export interface LlmCreateParams {
843
843
  * Select the underlying speech to speech model. Can only set this or model, not
844
844
  * both.
845
845
  */
846
- s2s_model?: 'gpt-4o-realtime' | null;
846
+ s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | null;
847
847
 
848
848
  /**
849
849
  * Name of the starting state. Required if states is not empty.
@@ -1552,7 +1552,7 @@ export interface LlmUpdateParams {
1552
1552
  /**
1553
1553
  * Select the underlying text LLM. If not set, would default to gpt-4o.
1554
1554
  */
1555
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
1555
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | 'claude-3.5-haiku' | null;
1556
1556
 
1557
1557
  /**
1558
1558
  * If set, will control the randomness of the response. Value ranging from [0,1].
@@ -1566,7 +1566,7 @@ export interface LlmUpdateParams {
1566
1566
  * Select the underlying speech to speech model. Can only set this or model, not
1567
1567
  * both.
1568
1568
  */
1569
- s2s_model?: 'gpt-4o-realtime' | null;
1569
+ s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | null;
1570
1570
 
1571
1571
  /**
1572
1572
  * Name of the starting state. Required if states is not empty.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.11.0'; // x-release-please-version
1
+ export const VERSION = '4.12.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.11.0";
1
+ export declare const VERSION = "4.12.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.11.0'; // x-release-please-version
4
+ exports.VERSION = '4.12.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.11.0'; // x-release-please-version
1
+ export const VERSION = '4.12.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map