@getlatedev/node 0.2.605 → 0.2.607

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
@@ -2354,6 +2354,22 @@ type AnalyticsListResponse = {
2354
2354
  */
2355
2355
  altText?: string;
2356
2356
  }>;
2357
+ /**
2358
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
2359
+ */
2360
+ mediaProductType?: string;
2361
+ /**
2362
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
2363
+ */
2364
+ isAiGenerated?: boolean;
2365
+ /**
2366
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
2367
+ */
2368
+ isSharedToFeed?: boolean;
2369
+ /**
2370
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
2371
+ */
2372
+ mediaAudioType?: string;
2357
2373
  }>;
2358
2374
  pagination?: Pagination;
2359
2375
  /**
@@ -2435,6 +2451,22 @@ type AnalyticsSinglePostResponse = {
2435
2451
  */
2436
2452
  unavailableReason?: 'platform_withheld';
2437
2453
  }>;
2454
+ /**
2455
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
2456
+ */
2457
+ mediaProductType?: string;
2458
+ /**
2459
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
2460
+ */
2461
+ isAiGenerated?: boolean;
2462
+ /**
2463
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
2464
+ */
2465
+ isSharedToFeed?: boolean;
2466
+ /**
2467
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
2468
+ */
2469
+ mediaAudioType?: string;
2438
2470
  };
2439
2471
  /**
2440
2472
  * Overall post status. "partial" when some platforms published and others failed.
@@ -4054,6 +4086,22 @@ type ExternalPostSummary = {
4054
4086
  mediaItems?: Array<{
4055
4087
  [key: string]: unknown;
4056
4088
  }>;
4089
+ /**
4090
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
4091
+ */
4092
+ mediaProductType?: string;
4093
+ /**
4094
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
4095
+ */
4096
+ isAiGenerated?: boolean;
4097
+ /**
4098
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
4099
+ */
4100
+ isSharedToFeed?: boolean;
4101
+ /**
4102
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
4103
+ */
4104
+ mediaAudioType?: string;
4057
4105
  /**
4058
4106
  * Engagement + insights for the post. `likes` and `comments` are
4059
4107
  * available immediately after an on-demand sync (they come from the
@@ -4113,6 +4161,22 @@ type ExternalPostWebhookPost = {
4113
4161
  mediaItems: Array<ExternalPostMediaItem>;
4114
4162
  thumbnailUrl: (string) | null;
4115
4163
  publishedAt: string;
4164
+ /**
4165
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
4166
+ */
4167
+ mediaProductType?: string;
4168
+ /**
4169
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
4170
+ */
4171
+ isAiGenerated?: boolean;
4172
+ /**
4173
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
4174
+ */
4175
+ isSharedToFeed?: boolean;
4176
+ /**
4177
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
4178
+ */
4179
+ mediaAudioType?: string;
4116
4180
  /**
4117
4181
  * Always "external" — distinguishes these from Zernio-originated post.* events.
4118
4182
  */
@@ -22336,6 +22400,10 @@ type ListWhatsAppAccountEventsData = {
22336
22400
  type ListWhatsAppAccountEventsResponse = ({
22337
22401
  events?: Array<{
22338
22402
  id?: string;
22403
+ /**
22404
+ * WhatsApp social account the event belongs to
22405
+ */
22406
+ accountId?: string;
22339
22407
  /**
22340
22408
  * Event kind, e.g. template_approved, template_rejected, account_restricted, account_disconnected
22341
22409
  */
@@ -27411,7 +27479,10 @@ type ListAdsData = {
27411
27479
  };
27412
27480
  };
27413
27481
  type ListAdsResponse = (AdsListResponse | (AdsListResponse & {
27414
- backfillPending: true;
27482
+ /**
27483
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
27484
+ */
27485
+ backfillPending: boolean;
27415
27486
  }));
27416
27487
  type ListAdsError = (ErrorResponse | {
27417
27488
  error?: string;
@@ -28390,7 +28461,10 @@ type GetAdTreeData = {
28390
28461
  };
28391
28462
  };
28392
28463
  type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
28393
- backfillPending: true;
28464
+ /**
28465
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28466
+ */
28467
+ backfillPending: boolean;
28394
28468
  }));
28395
28469
  type GetAdTreeError = ({
28396
28470
  error?: string;
@@ -28420,7 +28494,10 @@ type GetAdsTimelineData = {
28420
28494
  };
28421
28495
  };
28422
28496
  type GetAdsTimelineResponse = (AdsTimelineResponse | (AdsTimelineResponse & {
28423
- backfillPending: true;
28497
+ /**
28498
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28499
+ */
28500
+ backfillPending: boolean;
28424
28501
  }));
28425
28502
  type GetAdsTimelineError = (ErrorResponse | {
28426
28503
  error?: string;
@@ -28601,7 +28678,10 @@ type GetCampaignAnalyticsData = {
28601
28678
  };
28602
28679
  };
28603
28680
  type GetCampaignAnalyticsResponse = (CampaignAnalyticsResponse | (CampaignAnalyticsResponse & {
28604
- backfillPending: true;
28681
+ /**
28682
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28683
+ */
28684
+ backfillPending: boolean;
28605
28685
  }));
28606
28686
  type GetCampaignAnalyticsError = (ErrorResponse | {
28607
28687
  error?: string;
@@ -29003,7 +29083,10 @@ type GetAdAnalyticsData = {
29003
29083
  };
29004
29084
  };
29005
29085
  type GetAdAnalyticsResponse = (AdAnalyticsResponse | (AdAnalyticsResponse & {
29006
- backfillPending: true;
29086
+ /**
29087
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
29088
+ */
29089
+ backfillPending: boolean;
29007
29090
  }));
29008
29091
  type GetAdAnalyticsError = (ErrorResponse | {
29009
29092
  error?: string;
package/dist/index.d.ts CHANGED
@@ -2354,6 +2354,22 @@ type AnalyticsListResponse = {
2354
2354
  */
2355
2355
  altText?: string;
2356
2356
  }>;
2357
+ /**
2358
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
2359
+ */
2360
+ mediaProductType?: string;
2361
+ /**
2362
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
2363
+ */
2364
+ isAiGenerated?: boolean;
2365
+ /**
2366
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
2367
+ */
2368
+ isSharedToFeed?: boolean;
2369
+ /**
2370
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
2371
+ */
2372
+ mediaAudioType?: string;
2357
2373
  }>;
2358
2374
  pagination?: Pagination;
2359
2375
  /**
@@ -2435,6 +2451,22 @@ type AnalyticsSinglePostResponse = {
2435
2451
  */
2436
2452
  unavailableReason?: 'platform_withheld';
2437
2453
  }>;
2454
+ /**
2455
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
2456
+ */
2457
+ mediaProductType?: string;
2458
+ /**
2459
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
2460
+ */
2461
+ isAiGenerated?: boolean;
2462
+ /**
2463
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
2464
+ */
2465
+ isSharedToFeed?: boolean;
2466
+ /**
2467
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
2468
+ */
2469
+ mediaAudioType?: string;
2438
2470
  };
2439
2471
  /**
2440
2472
  * Overall post status. "partial" when some platforms published and others failed.
@@ -4054,6 +4086,22 @@ type ExternalPostSummary = {
4054
4086
  mediaItems?: Array<{
4055
4087
  [key: string]: unknown;
4056
4088
  }>;
4089
+ /**
4090
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
4091
+ */
4092
+ mediaProductType?: string;
4093
+ /**
4094
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
4095
+ */
4096
+ isAiGenerated?: boolean;
4097
+ /**
4098
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
4099
+ */
4100
+ isSharedToFeed?: boolean;
4101
+ /**
4102
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
4103
+ */
4104
+ mediaAudioType?: string;
4057
4105
  /**
4058
4106
  * Engagement + insights for the post. `likes` and `comments` are
4059
4107
  * available immediately after an on-demand sync (they come from the
@@ -4113,6 +4161,22 @@ type ExternalPostWebhookPost = {
4113
4161
  mediaItems: Array<ExternalPostMediaItem>;
4114
4162
  thumbnailUrl: (string) | null;
4115
4163
  publishedAt: string;
4164
+ /**
4165
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
4166
+ */
4167
+ mediaProductType?: string;
4168
+ /**
4169
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
4170
+ */
4171
+ isAiGenerated?: boolean;
4172
+ /**
4173
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
4174
+ */
4175
+ isSharedToFeed?: boolean;
4176
+ /**
4177
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
4178
+ */
4179
+ mediaAudioType?: string;
4116
4180
  /**
4117
4181
  * Always "external" — distinguishes these from Zernio-originated post.* events.
4118
4182
  */
@@ -22336,6 +22400,10 @@ type ListWhatsAppAccountEventsData = {
22336
22400
  type ListWhatsAppAccountEventsResponse = ({
22337
22401
  events?: Array<{
22338
22402
  id?: string;
22403
+ /**
22404
+ * WhatsApp social account the event belongs to
22405
+ */
22406
+ accountId?: string;
22339
22407
  /**
22340
22408
  * Event kind, e.g. template_approved, template_rejected, account_restricted, account_disconnected
22341
22409
  */
@@ -27411,7 +27479,10 @@ type ListAdsData = {
27411
27479
  };
27412
27480
  };
27413
27481
  type ListAdsResponse = (AdsListResponse | (AdsListResponse & {
27414
- backfillPending: true;
27482
+ /**
27483
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
27484
+ */
27485
+ backfillPending: boolean;
27415
27486
  }));
27416
27487
  type ListAdsError = (ErrorResponse | {
27417
27488
  error?: string;
@@ -28390,7 +28461,10 @@ type GetAdTreeData = {
28390
28461
  };
28391
28462
  };
28392
28463
  type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
28393
- backfillPending: true;
28464
+ /**
28465
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28466
+ */
28467
+ backfillPending: boolean;
28394
28468
  }));
28395
28469
  type GetAdTreeError = ({
28396
28470
  error?: string;
@@ -28420,7 +28494,10 @@ type GetAdsTimelineData = {
28420
28494
  };
28421
28495
  };
28422
28496
  type GetAdsTimelineResponse = (AdsTimelineResponse | (AdsTimelineResponse & {
28423
- backfillPending: true;
28497
+ /**
28498
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28499
+ */
28500
+ backfillPending: boolean;
28424
28501
  }));
28425
28502
  type GetAdsTimelineError = (ErrorResponse | {
28426
28503
  error?: string;
@@ -28601,7 +28678,10 @@ type GetCampaignAnalyticsData = {
28601
28678
  };
28602
28679
  };
28603
28680
  type GetCampaignAnalyticsResponse = (CampaignAnalyticsResponse | (CampaignAnalyticsResponse & {
28604
- backfillPending: true;
28681
+ /**
28682
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28683
+ */
28684
+ backfillPending: boolean;
28605
28685
  }));
28606
28686
  type GetCampaignAnalyticsError = (ErrorResponse | {
28607
28687
  error?: string;
@@ -29003,7 +29083,10 @@ type GetAdAnalyticsData = {
29003
29083
  };
29004
29084
  };
29005
29085
  type GetAdAnalyticsResponse = (AdAnalyticsResponse | (AdAnalyticsResponse & {
29006
- backfillPending: true;
29086
+ /**
29087
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
29088
+ */
29089
+ backfillPending: boolean;
29007
29090
  }));
29008
29091
  type GetAdAnalyticsError = (ErrorResponse | {
29009
29092
  error?: 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.605",
39
+ version: "0.2.607",
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.605",
8
+ version: "0.2.607",
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.605",
3
+ "version": "0.2.607",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1086,6 +1086,22 @@ export type AnalyticsListResponse = {
1086
1086
  */
1087
1087
  altText?: string;
1088
1088
  }>;
1089
+ /**
1090
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
1091
+ */
1092
+ mediaProductType?: string;
1093
+ /**
1094
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
1095
+ */
1096
+ isAiGenerated?: boolean;
1097
+ /**
1098
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
1099
+ */
1100
+ isSharedToFeed?: boolean;
1101
+ /**
1102
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
1103
+ */
1104
+ mediaAudioType?: string;
1089
1105
  }>;
1090
1106
  pagination?: Pagination;
1091
1107
  /**
@@ -1169,6 +1185,22 @@ export type AnalyticsSinglePostResponse = {
1169
1185
  */
1170
1186
  unavailableReason?: 'platform_withheld';
1171
1187
  }>;
1188
+ /**
1189
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
1190
+ */
1191
+ mediaProductType?: string;
1192
+ /**
1193
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
1194
+ */
1195
+ isAiGenerated?: boolean;
1196
+ /**
1197
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
1198
+ */
1199
+ isSharedToFeed?: boolean;
1200
+ /**
1201
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
1202
+ */
1203
+ mediaAudioType?: string;
1172
1204
  };
1173
1205
 
1174
1206
  /**
@@ -2851,6 +2883,22 @@ export type ExternalPostSummary = {
2851
2883
  mediaItems?: Array<{
2852
2884
  [key: string]: unknown;
2853
2885
  }>;
2886
+ /**
2887
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
2888
+ */
2889
+ mediaProductType?: string;
2890
+ /**
2891
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
2892
+ */
2893
+ isAiGenerated?: boolean;
2894
+ /**
2895
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
2896
+ */
2897
+ isSharedToFeed?: boolean;
2898
+ /**
2899
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
2900
+ */
2901
+ mediaAudioType?: string;
2854
2902
  /**
2855
2903
  * Engagement + insights for the post. `likes` and `comments` are
2856
2904
  * available immediately after an on-demand sync (they come from the
@@ -2911,6 +2959,22 @@ export type ExternalPostWebhookPost = {
2911
2959
  mediaItems: Array<ExternalPostMediaItem>;
2912
2960
  thumbnailUrl: (string) | null;
2913
2961
  publishedAt: string;
2962
+ /**
2963
+ * Instagram only: the platform media product type (e.g. FEED, REELS, STORY, AD). Absent when the platform did not report it.
2964
+ */
2965
+ mediaProductType?: string;
2966
+ /**
2967
+ * Instagram only: whether Instagram labeled the media as AI-generated. Absent when the platform did not report it.
2968
+ */
2969
+ isAiGenerated?: boolean;
2970
+ /**
2971
+ * Instagram reels only: whether the reel is also shared to the main feed. Absent when the platform did not report it.
2972
+ */
2973
+ isSharedToFeed?: boolean;
2974
+ /**
2975
+ * Instagram only: audio type of the media (MUSIC or ORIGINAL_SOUND). Absent when the platform did not report it.
2976
+ */
2977
+ mediaAudioType?: string;
2914
2978
  /**
2915
2979
  * Always "external" — distinguishes these from Zernio-originated post.* events.
2916
2980
  */
@@ -22311,6 +22375,10 @@ export type ListWhatsAppAccountEventsData = {
22311
22375
  export type ListWhatsAppAccountEventsResponse = ({
22312
22376
  events?: Array<{
22313
22377
  id?: string;
22378
+ /**
22379
+ * WhatsApp social account the event belongs to
22380
+ */
22381
+ accountId?: string;
22314
22382
  /**
22315
22383
  * Event kind, e.g. template_approved, template_rejected, account_restricted, account_disconnected
22316
22384
  */
@@ -27784,7 +27852,10 @@ export type ListAdsData = {
27784
27852
  };
27785
27853
 
27786
27854
  export type ListAdsResponse = (AdsListResponse | (AdsListResponse & {
27787
- backfillPending: true;
27855
+ /**
27856
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
27857
+ */
27858
+ backfillPending: boolean;
27788
27859
  }));
27789
27860
 
27790
27861
  export type ListAdsError = (ErrorResponse | {
@@ -28814,7 +28885,10 @@ export type GetAdTreeData = {
28814
28885
  };
28815
28886
 
28816
28887
  export type GetAdTreeResponse = (AdTreeResponse | (AdTreeResponse & {
28817
- backfillPending: true;
28888
+ /**
28889
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28890
+ */
28891
+ backfillPending: boolean;
28818
28892
  }));
28819
28893
 
28820
28894
  export type GetAdTreeError = ({
@@ -28847,7 +28921,10 @@ export type GetAdsTimelineData = {
28847
28921
  };
28848
28922
 
28849
28923
  export type GetAdsTimelineResponse = (AdsTimelineResponse | (AdsTimelineResponse & {
28850
- backfillPending: true;
28924
+ /**
28925
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
28926
+ */
28927
+ backfillPending: boolean;
28851
28928
  }));
28852
28929
 
28853
28930
  export type GetAdsTimelineError = (ErrorResponse | {
@@ -29043,7 +29120,10 @@ export type GetCampaignAnalyticsData = {
29043
29120
  };
29044
29121
 
29045
29122
  export type GetCampaignAnalyticsResponse = (CampaignAnalyticsResponse | (CampaignAnalyticsResponse & {
29046
- backfillPending: true;
29123
+ /**
29124
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
29125
+ */
29126
+ backfillPending: boolean;
29047
29127
  }));
29048
29128
 
29049
29129
  export type GetCampaignAnalyticsError = (ErrorResponse | {
@@ -29469,7 +29549,10 @@ export type GetAdAnalyticsData = {
29469
29549
  };
29470
29550
 
29471
29551
  export type GetAdAnalyticsResponse = (AdAnalyticsResponse | (AdAnalyticsResponse & {
29472
- backfillPending: true;
29552
+ /**
29553
+ * Always true on this response. Part of the requested range is still being backfilled; retry until the request returns 200.
29554
+ */
29555
+ backfillPending: boolean;
29473
29556
  }));
29474
29557
 
29475
29558
  export type GetAdAnalyticsError = (ErrorResponse | {