@getlatedev/node 0.2.1775 → 0.2.1777

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
@@ -6535,15 +6535,20 @@ type AnalyticsListResponse = {
6535
6535
  isAd?: boolean;
6536
6536
  profileId?: (string) | null;
6537
6537
  /**
6538
- * Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
6538
+ * Cover image URL. A Facebook, Instagram or TikTok cover whose signed CDN link is still valid is served as that link, which expires (Meta `oe=`, TikTok `x-expires=`): download the image rather than storing the link.
6539
+ *
6540
+ * Once the link expires, Zernio re-reads the cover from the platform and serves it from Zernio storage, a URL that does not expire.
6541
+ *
6542
+ * Null while that re-read is pending (read again shortly) or when the platform no longer returns the post, never an expired link.
6539
6543
  */
6540
- thumbnailUrl?: string;
6544
+ thumbnailUrl?: (string) | null;
6541
6545
  mediaType?: 'image' | 'video' | 'gif' | 'document' | 'carousel' | 'text';
6542
6546
  /**
6543
6547
  * All media items for this post. Carousel posts contain one entry per slide.
6544
6548
  *
6545
6549
  * - Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring).
6546
6550
  * - Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
6551
+ * - A `url` or `thumbnail` whose platform link expired and could not be re-read yet is null, never the expired link.
6547
6552
  *
6548
6553
  */
6549
6554
  mediaItems?: Array<{
@@ -6551,11 +6556,11 @@ type AnalyticsListResponse = {
6551
6556
  /**
6552
6557
  * Direct URL to the media
6553
6558
  */
6554
- url?: string;
6559
+ url?: (string) | null;
6555
6560
  /**
6556
6561
  * Thumbnail URL (same as url for images)
6557
6562
  */
6558
- thumbnail?: string;
6563
+ thumbnail?: (string) | null;
6559
6564
  /**
6560
6565
  * Accessibility alt text set on the media, when present.
6561
6566
  */
@@ -6643,7 +6648,11 @@ type AnalyticsSinglePostResponse = {
6643
6648
  */
6644
6649
  message?: (string) | null;
6645
6650
  /**
6646
- * Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
6651
+ * Cover image URL. A Facebook, Instagram or TikTok cover whose signed CDN link is still valid is served as that link, which expires (Meta `oe=`, TikTok `x-expires=`): download the image rather than storing the link.
6652
+ *
6653
+ * Once the link expires, Zernio re-reads the cover from the platform and serves it from Zernio storage, a URL that does not expire.
6654
+ *
6655
+ * Null while that re-read is pending (read again shortly) or when the platform no longer returns the post, never an expired link.
6647
6656
  */
6648
6657
  thumbnailUrl?: (string) | null;
6649
6658
  mediaType?: ('image' | 'video' | 'carousel' | 'text') | null;
@@ -6652,6 +6661,7 @@ type AnalyticsSinglePostResponse = {
6652
6661
  *
6653
6662
  * - Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring).
6654
6663
  * - Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
6664
+ * - A `url` or `thumbnail` whose platform link expired and could not be re-read yet is null, never the expired link.
6655
6665
  *
6656
6666
  */
6657
6667
  mediaItems?: Array<{
@@ -30699,10 +30709,11 @@ type event71 = 'message.deleted';
30699
30709
  *
30700
30710
  * **Platform support:**
30701
30711
  *
30702
- * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS.
30712
+ * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS, iMessage.
30703
30713
  * - message.read: WhatsApp, Facebook Messenger, Instagram, RCS. Not SMS (carriers report delivery, never read).
30704
30714
  * - message.played: WhatsApp only, voice messages.
30705
- * - 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.
30706
30717
  *
30707
30718
  */
30708
30719
  type WebhookPayloadMessageDeliveryStatus = {
@@ -53251,6 +53262,7 @@ type GetInboxConversationMessagesResponse = ({
53251
53262
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53252
53263
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53253
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.
53254
53266
  *
53255
53267
  */
53256
53268
  metadata?: {
package/dist/index.d.ts CHANGED
@@ -6535,15 +6535,20 @@ type AnalyticsListResponse = {
6535
6535
  isAd?: boolean;
6536
6536
  profileId?: (string) | null;
6537
6537
  /**
6538
- * Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
6538
+ * Cover image URL. A Facebook, Instagram or TikTok cover whose signed CDN link is still valid is served as that link, which expires (Meta `oe=`, TikTok `x-expires=`): download the image rather than storing the link.
6539
+ *
6540
+ * Once the link expires, Zernio re-reads the cover from the platform and serves it from Zernio storage, a URL that does not expire.
6541
+ *
6542
+ * Null while that re-read is pending (read again shortly) or when the platform no longer returns the post, never an expired link.
6539
6543
  */
6540
- thumbnailUrl?: string;
6544
+ thumbnailUrl?: (string) | null;
6541
6545
  mediaType?: 'image' | 'video' | 'gif' | 'document' | 'carousel' | 'text';
6542
6546
  /**
6543
6547
  * All media items for this post. Carousel posts contain one entry per slide.
6544
6548
  *
6545
6549
  * - Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring).
6546
6550
  * - Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
6551
+ * - A `url` or `thumbnail` whose platform link expired and could not be re-read yet is null, never the expired link.
6547
6552
  *
6548
6553
  */
6549
6554
  mediaItems?: Array<{
@@ -6551,11 +6556,11 @@ type AnalyticsListResponse = {
6551
6556
  /**
6552
6557
  * Direct URL to the media
6553
6558
  */
6554
- url?: string;
6559
+ url?: (string) | null;
6555
6560
  /**
6556
6561
  * Thumbnail URL (same as url for images)
6557
6562
  */
6558
- thumbnail?: string;
6563
+ thumbnail?: (string) | null;
6559
6564
  /**
6560
6565
  * Accessibility alt text set on the media, when present.
6561
6566
  */
@@ -6643,7 +6648,11 @@ type AnalyticsSinglePostResponse = {
6643
6648
  */
6644
6649
  message?: (string) | null;
6645
6650
  /**
6646
- * Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
6651
+ * Cover image URL. A Facebook, Instagram or TikTok cover whose signed CDN link is still valid is served as that link, which expires (Meta `oe=`, TikTok `x-expires=`): download the image rather than storing the link.
6652
+ *
6653
+ * Once the link expires, Zernio re-reads the cover from the platform and serves it from Zernio storage, a URL that does not expire.
6654
+ *
6655
+ * Null while that re-read is pending (read again shortly) or when the platform no longer returns the post, never an expired link.
6647
6656
  */
6648
6657
  thumbnailUrl?: (string) | null;
6649
6658
  mediaType?: ('image' | 'video' | 'carousel' | 'text') | null;
@@ -6652,6 +6661,7 @@ type AnalyticsSinglePostResponse = {
6652
6661
  *
6653
6662
  * - Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring).
6654
6663
  * - Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
6664
+ * - A `url` or `thumbnail` whose platform link expired and could not be re-read yet is null, never the expired link.
6655
6665
  *
6656
6666
  */
6657
6667
  mediaItems?: Array<{
@@ -30699,10 +30709,11 @@ type event71 = 'message.deleted';
30699
30709
  *
30700
30710
  * **Platform support:**
30701
30711
  *
30702
- * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS.
30712
+ * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS, iMessage.
30703
30713
  * - message.read: WhatsApp, Facebook Messenger, Instagram, RCS. Not SMS (carriers report delivery, never read).
30704
30714
  * - message.played: WhatsApp only, voice messages.
30705
- * - 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.
30706
30717
  *
30707
30718
  */
30708
30719
  type WebhookPayloadMessageDeliveryStatus = {
@@ -53251,6 +53262,7 @@ type GetInboxConversationMessagesResponse = ({
53251
53262
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53252
53263
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53253
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.
53254
53266
  *
53255
53267
  */
53256
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.1775",
39
+ version: "0.2.1777",
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.1775",
8
+ version: "0.2.1777",
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.1775",
3
+ "version": "0.2.1777",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4027,15 +4027,20 @@ export type AnalyticsListResponse = {
4027
4027
  isAd?: boolean;
4028
4028
  profileId?: (string) | null;
4029
4029
  /**
4030
- * Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
4030
+ * Cover image URL. A Facebook, Instagram or TikTok cover whose signed CDN link is still valid is served as that link, which expires (Meta `oe=`, TikTok `x-expires=`): download the image rather than storing the link.
4031
+ *
4032
+ * Once the link expires, Zernio re-reads the cover from the platform and serves it from Zernio storage, a URL that does not expire.
4033
+ *
4034
+ * Null while that re-read is pending (read again shortly) or when the platform no longer returns the post, never an expired link.
4031
4035
  */
4032
- thumbnailUrl?: string;
4036
+ thumbnailUrl?: (string) | null;
4033
4037
  mediaType?: 'image' | 'video' | 'gif' | 'document' | 'carousel' | 'text';
4034
4038
  /**
4035
4039
  * All media items for this post. Carousel posts contain one entry per slide.
4036
4040
  *
4037
4041
  * - Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring).
4038
4042
  * - Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
4043
+ * - A `url` or `thumbnail` whose platform link expired and could not be re-read yet is null, never the expired link.
4039
4044
  *
4040
4045
  */
4041
4046
  mediaItems?: Array<{
@@ -4043,11 +4048,11 @@ export type AnalyticsListResponse = {
4043
4048
  /**
4044
4049
  * Direct URL to the media
4045
4050
  */
4046
- url?: string;
4051
+ url?: (string) | null;
4047
4052
  /**
4048
4053
  * Thumbnail URL (same as url for images)
4049
4054
  */
4050
- thumbnail?: string;
4055
+ thumbnail?: (string) | null;
4051
4056
  /**
4052
4057
  * Accessibility alt text set on the media, when present.
4053
4058
  */
@@ -4137,7 +4142,11 @@ export type AnalyticsSinglePostResponse = {
4137
4142
  */
4138
4143
  message?: (string) | null;
4139
4144
  /**
4140
- * Cover image URL. Facebook, Instagram and TikTok covers whose platform CDN link expired are re-read from the platform and served from Zernio storage, so that URL does not expire and can be cached.
4145
+ * Cover image URL. A Facebook, Instagram or TikTok cover whose signed CDN link is still valid is served as that link, which expires (Meta `oe=`, TikTok `x-expires=`): download the image rather than storing the link.
4146
+ *
4147
+ * Once the link expires, Zernio re-reads the cover from the platform and serves it from Zernio storage, a URL that does not expire.
4148
+ *
4149
+ * Null while that re-read is pending (read again shortly) or when the platform no longer returns the post, never an expired link.
4141
4150
  */
4142
4151
  thumbnailUrl?: (string) | null;
4143
4152
  mediaType?: ('image' | 'video' | 'carousel' | 'text') | null;
@@ -4146,6 +4155,7 @@ export type AnalyticsSinglePostResponse = {
4146
4155
  *
4147
4156
  * - Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring).
4148
4157
  * - Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
4158
+ * - A `url` or `thumbnail` whose platform link expired and could not be re-read yet is null, never the expired link.
4149
4159
  *
4150
4160
  */
4151
4161
  mediaItems?: Array<{
@@ -29323,10 +29333,11 @@ export type event71 = 'message.deleted';
29323
29333
  *
29324
29334
  * **Platform support:**
29325
29335
  *
29326
- * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS.
29336
+ * - message.delivered: WhatsApp, Facebook Messenger, SMS, RCS, iMessage.
29327
29337
  * - message.read: WhatsApp, Facebook Messenger, Instagram, RCS. Not SMS (carriers report delivery, never read).
29328
29338
  * - message.played: WhatsApp only, voice messages.
29329
- * - 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.
29330
29341
  *
29331
29342
  */
29332
29343
  export type WebhookPayloadMessageDeliveryStatus = {
@@ -53353,6 +53364,7 @@ export type GetInboxConversationMessagesResponse = ({
53353
53364
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53354
53365
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53355
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.
53356
53368
  *
53357
53369
  */
53358
53370
  metadata?: {