retell-sdk 4.17.0 → 4.19.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.
@@ -11,6 +11,17 @@ export class Call extends APIResource {
11
11
  return this._client.get(`/v2/get-call/${callId}`, options);
12
12
  }
13
13
 
14
+ /**
15
+ * Update metadata and sensitive data storage settings for an existing call
16
+ */
17
+ update(
18
+ callId: string,
19
+ body: CallUpdateParams,
20
+ options?: Core.RequestOptions,
21
+ ): Core.APIPromise<CallResponse> {
22
+ return this._client.patch(`/v2/update-call/${callId}`, { body, ...options });
23
+ }
24
+
14
25
  /**
15
26
  * Retrieve call details
16
27
  */
@@ -1491,7 +1502,25 @@ export namespace WebCallResponse {
1491
1502
 
1492
1503
  export type CallListResponse = Array<CallResponse>;
1493
1504
 
1505
+ export interface CallUpdateParams {
1506
+ /**
1507
+ * An arbitrary object for storage purpose only. You can put anything here like
1508
+ * your internal customer id associated with the call. Not used for processing. You
1509
+ * can later get this field from the call object. Size limited to 100kB max.
1510
+ */
1511
+ metadata?: unknown;
1512
+
1513
+ /**
1514
+ * Whether this call opts out of sensitive data storage like transcript, recording,
1515
+ * logging. Can only be changed from false to true.
1516
+ */
1517
+ opt_out_sensitive_data_storage?: boolean;
1518
+ }
1519
+
1494
1520
  export interface CallListParams {
1521
+ /**
1522
+ * Filter criteria for the calls to retrieve.
1523
+ */
1495
1524
  filter_criteria?: CallListParams.FilterCriteria;
1496
1525
 
1497
1526
  /**
@@ -1516,6 +1545,9 @@ export interface CallListParams {
1516
1545
  }
1517
1546
 
1518
1547
  export namespace CallListParams {
1548
+ /**
1549
+ * Filter criteria for the calls to retrieve.
1550
+ */
1519
1551
  export interface FilterCriteria {
1520
1552
  /**
1521
1553
  * Only retrieve calls that are made with specific agent(s).
@@ -1579,6 +1611,8 @@ export namespace CallListParams {
1579
1611
  */
1580
1612
  duration_ms?: FilterCriteria.DurationMs;
1581
1613
 
1614
+ e2e_latency_p50?: FilterCriteria.E2ELatencyP50;
1615
+
1582
1616
  /**
1583
1617
  * Only retrieve calls with specific from number(s).
1584
1618
  */
@@ -1615,6 +1649,12 @@ export namespace CallListParams {
1615
1649
  upper_threshold?: number;
1616
1650
  }
1617
1651
 
1652
+ export interface E2ELatencyP50 {
1653
+ lower_threshold?: number;
1654
+
1655
+ upper_threshold?: number;
1656
+ }
1657
+
1618
1658
  /**
1619
1659
  * Only retrieve calls with specific range of start timestamp(s).
1620
1660
  */
@@ -1721,6 +1761,7 @@ export declare namespace Call {
1721
1761
  type PhoneCallResponse as PhoneCallResponse,
1722
1762
  type WebCallResponse as WebCallResponse,
1723
1763
  type CallListResponse as CallListResponse,
1764
+ type CallUpdateParams as CallUpdateParams,
1724
1765
  type CallListParams as CallListParams,
1725
1766
  type CallCreatePhoneCallParams as CallCreatePhoneCallParams,
1726
1767
  type CallCreateWebCallParams as CallCreateWebCallParams,
@@ -7,12 +7,14 @@ export {
7
7
  type AgentCreateParams,
8
8
  type AgentUpdateParams,
9
9
  } from './agent';
10
+ export { BatchCall, type BatchCallResponse, type BatchCallCreateBatchCallParams } from './batch-call';
10
11
  export {
11
12
  Call,
12
13
  type CallResponse,
13
14
  type PhoneCallResponse,
14
15
  type WebCallResponse,
15
16
  type CallListResponse,
17
+ type CallUpdateParams,
16
18
  type CallListParams,
17
19
  type CallCreatePhoneCallParams,
18
20
  type CallCreateWebCallParams,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.17.0'; // x-release-please-version
1
+ export const VERSION = '4.19.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.17.0";
1
+ export declare const VERSION = "4.19.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.17.0'; // x-release-please-version
4
+ exports.VERSION = '4.19.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.17.0'; // x-release-please-version
1
+ export const VERSION = '4.19.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map