@getlatedev/node 0.2.1776 → 0.2.1778

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
@@ -30709,10 +30709,11 @@ type event71 = 'message.deleted';
30709
30709
  *
30710
30710
  * **Platform support:**
30711
30711
  *
30712
- * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS.
30712
+ * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS, iMessage.
30713
30713
  * - message.read: WhatsApp, Facebook Messenger, Instagram, RCS. Not SMS (carriers report delivery, never read).
30714
30714
  * - message.played: WhatsApp only, voice messages.
30715
- * - message.failed: WhatsApp, SMS and RCS (other platforms don't expose per-message failure via webhook). On SMS, `error.code` is the carrier's numeric code and `error.message` its reason.
30715
+ * - message.failed: WhatsApp, SMS, RCS and iMessage (other platforms don't expose per-message failure via webhook). On SMS, `error.code` is the carrier's numeric code and `error.message` its reason.
30716
+ * - On iMessage, message.failed can follow message.delivered for the same message: the provider delivered it on iMessage, then reported its SMS or RCS fallback failed. The failure is final.
30716
30717
  *
30717
30718
  */
30718
30719
  type WebhookPayloadMessageDeliveryStatus = {
@@ -53261,6 +53262,7 @@ type GetInboxConversationMessagesResponse = ({
53261
53262
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53262
53263
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53263
53264
  * - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
53265
+ * - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
53264
53266
  *
53265
53267
  */
53266
53268
  metadata?: {
package/dist/index.d.ts CHANGED
@@ -30709,10 +30709,11 @@ type event71 = 'message.deleted';
30709
30709
  *
30710
30710
  * **Platform support:**
30711
30711
  *
30712
- * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS.
30712
+ * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS, iMessage.
30713
30713
  * - message.read: WhatsApp, Facebook Messenger, Instagram, RCS. Not SMS (carriers report delivery, never read).
30714
30714
  * - message.played: WhatsApp only, voice messages.
30715
- * - message.failed: WhatsApp, SMS and RCS (other platforms don't expose per-message failure via webhook). On SMS, `error.code` is the carrier's numeric code and `error.message` its reason.
30715
+ * - message.failed: WhatsApp, SMS, RCS and iMessage (other platforms don't expose per-message failure via webhook). On SMS, `error.code` is the carrier's numeric code and `error.message` its reason.
30716
+ * - On iMessage, message.failed can follow message.delivered for the same message: the provider delivered it on iMessage, then reported its SMS or RCS fallback failed. The failure is final.
30716
30717
  *
30717
30718
  */
30718
30719
  type WebhookPayloadMessageDeliveryStatus = {
@@ -53261,6 +53262,7 @@ type GetInboxConversationMessagesResponse = ({
53261
53262
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53262
53263
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53263
53264
  * - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
53265
+ * - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
53264
53266
  *
53265
53267
  */
53266
53268
  metadata?: {
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.1776",
39
+ version: "0.2.1778",
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.1776",
8
+ version: "0.2.1778",
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.1776",
3
+ "version": "0.2.1778",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17182,8 +17182,9 @@ export const getCampaignAnalytics = <ThrowOnError extends boolean = false>(optio
17182
17182
  * Render pre-create ad previews
17183
17183
  * Shows how a Meta creative will look in each placement before you create the ad, as embeddable previews.
17184
17184
  *
17185
- * Renders how a creative would look per placement BEFORE any ad exists, via Meta's
17186
- * `/generatepreviews`. Provide exactly one creative source: `existingCreativeId` or `creativeSpec`.
17185
+ * Renders how a creative would look per placement BEFORE any ad exists. Provide exactly one
17186
+ * creative source: `creativeSpec` renders via Meta's `/generatepreviews`, `existingCreativeId`
17187
+ * via Meta's `/{creative_id}/previews`.
17187
17188
  * Each preview is an HTML `<iframe>` snippet embeddable directly. Unknown `formats` values
17188
17189
  * return Meta's 400 verbatim.
17189
17190
  *
@@ -29333,10 +29333,11 @@ export type event71 = 'message.deleted';
29333
29333
  *
29334
29334
  * **Platform support:**
29335
29335
  *
29336
- * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS.
29336
+ * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS, iMessage.
29337
29337
  * - message.read: WhatsApp, Facebook Messenger, Instagram, RCS. Not SMS (carriers report delivery, never read).
29338
29338
  * - message.played: WhatsApp only, voice messages.
29339
- * - message.failed: WhatsApp, SMS and RCS (other platforms don't expose per-message failure via webhook). On SMS, `error.code` is the carrier's numeric code and `error.message` its reason.
29339
+ * - message.failed: WhatsApp, SMS, RCS and iMessage (other platforms don't expose per-message failure via webhook). On SMS, `error.code` is the carrier's numeric code and `error.message` its reason.
29340
+ * - On iMessage, message.failed can follow message.delivered for the same message: the provider delivered it on iMessage, then reported its SMS or RCS fallback failed. The failure is final.
29340
29341
  *
29341
29342
  */
29342
29343
  export type WebhookPayloadMessageDeliveryStatus = {
@@ -53363,6 +53364,7 @@ export type GetInboxConversationMessagesResponse = ({
53363
53364
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53364
53365
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53365
53366
  * - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
53367
+ * - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
53366
53368
  *
53367
53369
  */
53368
53370
  metadata?: {