retell-sdk 5.32.5 → 5.33.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.
@@ -15,6 +15,22 @@ export class PhoneNumber extends APIResource {
15
15
  create(body, options) {
16
16
  return this._client.post('/create-phone-number', { body, ...options });
17
17
  }
18
+ /**
19
+ * Import a phone number from custom telephony & Bind agents
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const phoneNumberResponse = await client.phoneNumber.import(
24
+ * {
25
+ * phone_number: '+14157774444',
26
+ * termination_uri: 'someuri.pstn.twilio.com',
27
+ * },
28
+ * );
29
+ * ```
30
+ */
31
+ import(body, options) {
32
+ return this._client.post('/import-phone-number', { body, ...options });
33
+ }
18
34
  /**
19
35
  * Retrieve details of a specific phone number
20
36
  *
@@ -27,6 +43,17 @@ export class PhoneNumber extends APIResource {
27
43
  retrieve(phoneNumber, options) {
28
44
  return this._client.get(path `/get-phone-number/${phoneNumber}`, options);
29
45
  }
46
+ /**
47
+ * List phone numbers with pagination
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const phoneNumbers = await client.phoneNumber.list();
52
+ * ```
53
+ */
54
+ list(query = {}, options) {
55
+ return this._client.get('/v2/list-phone-numbers', { query, ...options });
56
+ }
30
57
  /**
31
58
  * Update agent bound to a purchased phone number
32
59
  *
@@ -57,17 +84,6 @@ export class PhoneNumber extends APIResource {
57
84
  update(phoneNumber, body, options) {
58
85
  return this._client.patch(path `/update-phone-number/${phoneNumber}`, { body, ...options });
59
86
  }
60
- /**
61
- * List phone numbers with pagination
62
- *
63
- * @example
64
- * ```ts
65
- * const phoneNumbers = await client.phoneNumber.list();
66
- * ```
67
- */
68
- list(query = {}, options) {
69
- return this._client.get('/v2/list-phone-numbers', { query, ...options });
70
- }
71
87
  /**
72
88
  * Delete an existing phone number
73
89
  *
@@ -82,21 +98,5 @@ export class PhoneNumber extends APIResource {
82
98
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
83
99
  });
84
100
  }
85
- /**
86
- * Import a phone number from custom telephony & Bind agents
87
- *
88
- * @example
89
- * ```ts
90
- * const phoneNumberResponse = await client.phoneNumber.import(
91
- * {
92
- * phone_number: '+14157774444',
93
- * termination_uri: 'someuri.pstn.twilio.com',
94
- * },
95
- * );
96
- * ```
97
- */
98
- import(body, options) {
99
- return this._client.post('/import-phone-number', { body, ...options });
100
- }
101
101
  }
102
102
  //# sourceMappingURL=phone-number.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone-number.mjs","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,O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C,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,WAAW,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -266,7 +266,8 @@ export interface PhoneCallResponse {
266
266
  | 'registered_call_timeout'
267
267
  | 'transfer_bridged'
268
268
  | 'transfer_cancelled'
269
- | 'manual_stopped';
269
+ | 'manual_stopped'
270
+ | 'call_take_over';
270
271
 
271
272
  /**
272
273
  * Duration of the call in milliseconds. Available after call ends.
@@ -1456,7 +1457,8 @@ export interface WebCallResponse {
1456
1457
  | 'registered_call_timeout'
1457
1458
  | 'transfer_bridged'
1458
1459
  | 'transfer_cancelled'
1459
- | 'manual_stopped';
1460
+ | 'manual_stopped'
1461
+ | 'call_take_over';
1460
1462
 
1461
1463
  /**
1462
1464
  * Duration of the call in milliseconds. Available after call ends.
@@ -2650,7 +2652,8 @@ export namespace CallListResponse {
2650
2652
  | 'registered_call_timeout'
2651
2653
  | 'transfer_bridged'
2652
2654
  | 'transfer_cancelled'
2653
- | 'manual_stopped';
2655
+ | 'manual_stopped'
2656
+ | 'call_take_over';
2654
2657
 
2655
2658
  /**
2656
2659
  * Duration of the call in milliseconds. Available after call ends.
@@ -3363,7 +3366,8 @@ export namespace CallListResponse {
3363
3366
  | 'registered_call_timeout'
3364
3367
  | 'transfer_bridged'
3365
3368
  | 'transfer_cancelled'
3366
- | 'manual_stopped';
3369
+ | 'manual_stopped'
3370
+ | 'call_take_over';
3367
3371
 
3368
3372
  /**
3369
3373
  * Duration of the call in milliseconds. Available after call ends.
@@ -8577,6 +8581,7 @@ export namespace CallListParams {
8577
8581
  | 'transfer_bridged'
8578
8582
  | 'transfer_cancelled'
8579
8583
  | 'manual_stopped'
8584
+ | 'call_take_over'
8580
8585
  >;
8581
8586
  }
8582
8587
 
@@ -8925,11 +8930,12 @@ export interface CallUpdateParams {
8925
8930
  metadata?: unknown;
8926
8931
 
8927
8932
  /**
8928
- * Override dynamic variables represented as key-value pairs of strings. Setting
8929
- * this will override or add the dynamic variables set in the agent during the
8930
- * call. Only need to set the delta where you want to override, no need to set the
8931
- * entire dynamic variables object. Setting this to null will remove any existing
8932
- * override.
8933
+ * @deprecated Deprecated. Use the /v2/update-live-call/{call_id} endpoint to
8934
+ * override dynamic variables on an ongoing call. Override dynamic variables
8935
+ * represented as key-value pairs of strings. Setting this will override or add the
8936
+ * dynamic variables set in the agent during the call. Only need to set the delta
8937
+ * where you want to override, no need to set the entire dynamic variables object.
8938
+ * Setting this to null will remove any existing override.
8933
8939
  */
8934
8940
  override_dynamic_variables?: { [key: string]: string } | null;
8935
8941
  }
@@ -1171,6 +1171,7 @@ export namespace ChatListParams {
1171
1171
  | 'transfer_bridged'
1172
1172
  | 'transfer_cancelled'
1173
1173
  | 'manual_stopped'
1174
+ | 'call_take_over'
1174
1175
  >;
1175
1176
  }
1176
1177