@getlatedev/node 0.2.606 → 0.2.608

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
  */
@@ -11952,11 +12016,16 @@ type EditPostData = {
11952
12016
  /**
11953
12017
  * The platform to edit the post on.
11954
12018
  */
11955
- platform: 'twitter' | 'discord' | 'facebook' | 'reddit';
12019
+ platform: 'twitter' | 'discord' | 'facebook' | 'reddit' | 'linkedin' | 'telegram' | 'pinterest' | 'googlebusiness' | 'youtube' | 'slack';
11956
12020
  /**
11957
12021
  * The new post text content
11958
12022
  */
11959
12023
  content: string;
12024
+ /**
12025
+ * Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
12026
+ *
12027
+ */
12028
+ accountId?: string;
11960
12029
  };
11961
12030
  path: {
11962
12031
  postId: string;
@@ -11965,7 +12034,7 @@ type EditPostData = {
11965
12034
  type EditPostResponse = ({
11966
12035
  success?: boolean;
11967
12036
  /**
11968
- * The platform post ID after the edit. X assigns a new ID; Discord, Facebook, and Reddit return the original ID unchanged.
12037
+ * The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
11969
12038
  *
11970
12039
  */
11971
12040
  id?: string;
@@ -22336,6 +22405,10 @@ type ListWhatsAppAccountEventsData = {
22336
22405
  type ListWhatsAppAccountEventsResponse = ({
22337
22406
  events?: Array<{
22338
22407
  id?: string;
22408
+ /**
22409
+ * WhatsApp social account the event belongs to
22410
+ */
22411
+ accountId?: string;
22339
22412
  /**
22340
22413
  * Event kind, e.g. template_approved, template_rejected, account_restricted, account_disconnected
22341
22414
  */
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
  */
@@ -11952,11 +12016,16 @@ type EditPostData = {
11952
12016
  /**
11953
12017
  * The platform to edit the post on.
11954
12018
  */
11955
- platform: 'twitter' | 'discord' | 'facebook' | 'reddit';
12019
+ platform: 'twitter' | 'discord' | 'facebook' | 'reddit' | 'linkedin' | 'telegram' | 'pinterest' | 'googlebusiness' | 'youtube' | 'slack';
11956
12020
  /**
11957
12021
  * The new post text content
11958
12022
  */
11959
12023
  content: string;
12024
+ /**
12025
+ * Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
12026
+ *
12027
+ */
12028
+ accountId?: string;
11960
12029
  };
11961
12030
  path: {
11962
12031
  postId: string;
@@ -11965,7 +12034,7 @@ type EditPostData = {
11965
12034
  type EditPostResponse = ({
11966
12035
  success?: boolean;
11967
12036
  /**
11968
- * The platform post ID after the edit. X assigns a new ID; Discord, Facebook, and Reddit return the original ID unchanged.
12037
+ * The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
11969
12038
  *
11970
12039
  */
11971
12040
  id?: string;
@@ -22336,6 +22405,10 @@ type ListWhatsAppAccountEventsData = {
22336
22405
  type ListWhatsAppAccountEventsResponse = ({
22337
22406
  events?: Array<{
22338
22407
  id?: string;
22408
+ /**
22409
+ * WhatsApp social account the event belongs to
22410
+ */
22411
+ accountId?: string;
22339
22412
  /**
22340
22413
  * Event kind, e.g. template_approved, template_rejected, account_restricted, account_disconnected
22341
22414
  */
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.606",
39
+ version: "0.2.608",
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.606",
8
+ version: "0.2.608",
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.606",
3
+ "version": "0.2.608",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -930,7 +930,10 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
930
930
  /**
931
931
  * Edit published post
932
932
  * Edit the text of an already-published post. Supported on X (Twitter), Discord,
933
- * Facebook, and Reddit. Each platform enforces its own rules:
933
+ * Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube,
934
+ * and Slack. When a post was published to several accounts on the same platform,
935
+ * pass `accountId` to pick which account's copy to edit (the first entry is edited
936
+ * otherwise). Each platform enforces its own rules:
934
937
  *
935
938
  * **X (Twitter)**
936
939
  * - Connected X account must have an active X Premium subscription
@@ -955,6 +958,49 @@ export const unpublishPost = <ThrowOnError extends boolean = false>(options: Opt
955
958
  * - Body only. Reddit exposes no API to edit a post title, ever
956
959
  * - The post ID is unchanged
957
960
  *
961
+ * **LinkedIn**
962
+ * - Text only, no time limit. Media, polls, articles, and reshare targets cannot be
963
+ * changed
964
+ * - Works for member and organization posts published through this API. The post
965
+ * keeps its ID and LinkedIn shows an "edited" marker
966
+ * - Text is limited to 3,000 characters; mentions and hashtags are preserved
967
+ *
968
+ * **Telegram**
969
+ * - No time limit; messages published through Zernio are editable indefinitely
970
+ * - Text posts: edits the message text (up to 4096 characters)
971
+ * - Media posts: edits the caption only (up to 1024 characters). The media itself
972
+ * cannot be swapped
973
+ * - For albums, the caption shown on the album (its first message) is edited
974
+ * - The message ID is unchanged
975
+ *
976
+ * **Pinterest**
977
+ * - Description only, maximum 800 characters. Media, link, and board cannot be
978
+ * changed, and a pin title derived from the old content's first line at publish
979
+ * stays as-is
980
+ * - Pinterest's pin-update endpoint is currently in closed beta; until the app is
981
+ * allowlisted by Pinterest, edits are rejected with a "beta feature not yet
982
+ * enabled" error
983
+ * - The pin ID is unchanged
984
+ *
985
+ * **Google Business Profile**
986
+ * - Post body (summary) text only. Call-to-action, event/offer fields, and media are
987
+ * untouched
988
+ * - No time limit and no edit limit. The post ID is unchanged
989
+ * - The post must still exist on Google: a post deleted from the Business Profile
990
+ * dashboard, or an event/offer post past its end date, returns a 404
991
+ *
992
+ * **YouTube**
993
+ * - `content` replaces the video description only. The title is unchanged, even if
994
+ * it was originally derived from the content's first line at publish time
995
+ * - Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata`
996
+ * - No time window and no edit cap. The video ID is unchanged
997
+ *
998
+ * **Slack**
999
+ * - Text only, up to 4,000 characters. Media cannot be swapped, and media posts
1000
+ * whose share message reference never resolved cannot be edited
1001
+ * - No time limit unless workspace admins restrict message editing
1002
+ * - The message ID is unchanged
1003
+ *
958
1004
  * Media edits are not supported on any platform. The post record in Zernio is updated
959
1005
  * with the new content and an edit-history entry.
960
1006
  *
@@ -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
  */
@@ -11156,11 +11220,16 @@ export type EditPostData = {
11156
11220
  /**
11157
11221
  * The platform to edit the post on.
11158
11222
  */
11159
- platform: 'twitter' | 'discord' | 'facebook' | 'reddit';
11223
+ platform: 'twitter' | 'discord' | 'facebook' | 'reddit' | 'linkedin' | 'telegram' | 'pinterest' | 'googlebusiness' | 'youtube' | 'slack';
11160
11224
  /**
11161
11225
  * The new post text content
11162
11226
  */
11163
11227
  content: string;
11228
+ /**
11229
+ * Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
11230
+ *
11231
+ */
11232
+ accountId?: string;
11164
11233
  };
11165
11234
  path: {
11166
11235
  postId: string;
@@ -11170,7 +11239,7 @@ export type EditPostData = {
11170
11239
  export type EditPostResponse = ({
11171
11240
  success?: boolean;
11172
11241
  /**
11173
- * The platform post ID after the edit. X assigns a new ID; Discord, Facebook, and Reddit return the original ID unchanged.
11242
+ * The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
11174
11243
  *
11175
11244
  */
11176
11245
  id?: string;
@@ -22311,6 +22380,10 @@ export type ListWhatsAppAccountEventsData = {
22311
22380
  export type ListWhatsAppAccountEventsResponse = ({
22312
22381
  events?: Array<{
22313
22382
  id?: string;
22383
+ /**
22384
+ * WhatsApp social account the event belongs to
22385
+ */
22386
+ accountId?: string;
22314
22387
  /**
22315
22388
  * Event kind, e.g. template_approved, template_rejected, account_restricted, account_disconnected
22316
22389
  */