@getlatedev/node 0.2.1764 → 0.2.1766

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.1766",
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.1766",
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.1766",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3057,6 +3057,7 @@ export const verifyWhatsAppNumber = <ThrowOnError extends boolean = false>(optio
3057
3057
  * - When Meta reports that the number's inbound message webhook does not reach Zernio, or subscribing the number's WhatsApp Business Account to Zernio's webhooks failed at connect, `platformConnection.inboundWebhookSubscribed` is `false`, an entry is added to `issues`, and the overall `status` is at least `warning`.
3058
3058
  * - When `platformConnection.phoneStatus` is anything other than `CONNECTED`, an entry is added to `issues` and the overall `status` is at least `warning`; `BANNED` makes it `error`. `disconnectReason` stays null, since reconnecting does not lift a Meta status.
3059
3059
  * - When Meta reports `platformConnection.canSendMessage` as `BLOCKED` (for example a payment-method error on the WhatsApp Business Account), an entry is added to `issues` with Meta's own reason, the recommendation is Meta's suggested fix, and the overall `status` is at least `warning`. `LIMITED` does not change `status`. Reconnecting does not lift it.
3060
+ * - When sends to one country keep failing with error 130497 (3 failures within 7 days, none delivered there since), an entry naming the country is added to `issues` and `status` is at least `warning`. The recommendation says how Meta lifts it. A delivered send there clears it.
3060
3061
  *
3061
3062
  * ### LINE
3062
3063
  *
@@ -8604,6 +8605,8 @@ export const getInboxConversationMessages = <ThrowOnError extends boolean = fals
8604
8605
  *
8605
8606
  * Only successful (2xx) responses are stored for replay. If the request throws or returns a non-2xx status, the key is released so the same key can be retried once the problem is fixed. The header therefore protects the "request succeeded but the response was lost" case.
8606
8607
  *
8608
+ * Exception: a WhatsApp send that Meta answers with a server error (5xx, e.g. code 131000) is stored and replayed as its `502`, since the message may have been delivered. Send it again with a new key only if a duplicate is acceptable.
8609
+ *
8607
8610
  * For an ambiguous failure (a 5xx or a network timeout), reconcile before retrying. A failure after the platform already accepted the message also releases the key, so a blind retry could send it twice.
8608
8611
  *
8609
8612
  * List the conversation's messages first. Treat an empty result as inconclusive rather than as proof nothing was sent, since a send that failed while being recorded leaves no trace on our side.
@@ -10308,7 +10311,7 @@ export const getVoiceCallRecording = <ThrowOnError extends boolean = false>(opti
10308
10311
  * Blind-transfer a live call
10309
10312
  * Moves the call's current leg to a new destination (a phone number or a SIP endpoint).
10310
10313
  *
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.
10314
+ * 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
10315
  *
10313
10316
  */
10314
10317
  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;