@getlatedev/node 0.2.1764 → 0.2.1765

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/dist/index.d.mts CHANGED
@@ -56776,6 +56776,10 @@ type TransferVoiceCallData = {
56776
56776
  * +E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
56777
56777
  */
56778
56778
  to: string;
56779
+ /**
56780
+ * Caller ID shown on the transfer leg. `business` is your own number. `caller` is the original caller's number, for inbound calls only. The carrier may refuse `caller` on some routes: you get a 422, then retry with `business`.
56781
+ */
56782
+ callerId?: 'business' | 'caller';
56779
56783
  };
56780
56784
  path: {
56781
56785
  id: string;
package/dist/index.d.ts CHANGED
@@ -56776,6 +56776,10 @@ type TransferVoiceCallData = {
56776
56776
  * +E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
56777
56777
  */
56778
56778
  to: string;
56779
+ /**
56780
+ * Caller ID shown on the transfer leg. `business` is your own number. `caller` is the original caller's number, for inbound calls only. The carrier may refuse `caller` on some routes: you get a 422, then retry with `business`.
56781
+ */
56782
+ callerId?: 'business' | 'caller';
56779
56783
  };
56780
56784
  path: {
56781
56785
  id: string;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1764",
39
+ version: "0.2.1765",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1764",
8
+ version: "0.2.1765",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1764",
3
+ "version": "0.2.1765",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -10308,7 +10308,7 @@ export const getVoiceCallRecording = <ThrowOnError extends boolean = false>(opti
10308
10308
  * Blind-transfer a live call
10309
10309
  * Moves the call's current leg to a new destination (a phone number or a SIP endpoint).
10310
10310
  *
10311
- * This is a BLIND transfer: control of the leg is handed off and the call ends normally when the transferred leg hangs up. The caller ID presented on the transfer leg is always your own number.
10311
+ * This is a BLIND transfer: control of the leg is handed off and the call ends normally when the transferred leg hangs up. The caller ID presented on the transfer leg is your own number unless you pass `callerId: "caller"` on an inbound call, which presents the original caller's number.
10312
10312
  *
10313
10313
  */
10314
10314
  export const transferVoiceCall = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<TransferVoiceCallData, ThrowOnError>) => {
@@ -57149,6 +57149,10 @@ export type TransferVoiceCallData = {
57149
57149
  * +E164 phone number (tel: prefix optional) or a sip: URI. wss:// is not a valid transfer target.
57150
57150
  */
57151
57151
  to: string;
57152
+ /**
57153
+ * Caller ID shown on the transfer leg. `business` is your own number. `caller` is the original caller's number, for inbound calls only. The carrier may refuse `caller` on some routes: you get a 422, then retry with `business`.
57154
+ */
57155
+ callerId?: 'business' | 'caller';
57152
57156
  };
57153
57157
  path: {
57154
57158
  id: string;