@getlatedev/node 0.2.1269 → 0.2.1272

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.
@@ -8405,6 +8405,57 @@ export type InstagramMediaCollaborator = {
8405
8405
  inviteStatus: (string) | null;
8406
8406
  };
8407
8407
 
8408
+ export type InstagramMentionedComment = {
8409
+ /**
8410
+ * Instagram comment ID of the comment that mentions the account.
8411
+ */
8412
+ id: string;
8413
+ text: (string) | null;
8414
+ /**
8415
+ * Creation time as Meta returns it (ISO 8601).
8416
+ */
8417
+ timestamp: (string) | null;
8418
+ likeCount: (number) | null;
8419
+ /**
8420
+ * The post the comment was left on.
8421
+ */
8422
+ media: {
8423
+ /**
8424
+ * Instagram media ID of the post.
8425
+ */
8426
+ id: string;
8427
+ } | null;
8428
+ };
8429
+
8430
+ export type InstagramMentionedMedia = {
8431
+ /**
8432
+ * Instagram media ID of the post whose caption mentions the account.
8433
+ */
8434
+ id: string;
8435
+ caption: (string) | null;
8436
+ /**
8437
+ * IMAGE, VIDEO or CAROUSEL_ALBUM.
8438
+ */
8439
+ mediaType: (string) | null;
8440
+ /**
8441
+ * Temporary CDN URL. Meta omits it for videos with copyrighted or licensed audio and reels whose owner disabled downloads.
8442
+ */
8443
+ mediaUrl: (string) | null;
8444
+ /**
8445
+ * Publication time as Meta returns it (ISO 8601).
8446
+ */
8447
+ timestamp: (string) | null;
8448
+ /**
8449
+ * Instagram handle of the account that posted the media and mentioned yours.
8450
+ */
8451
+ username: (string) | null;
8452
+ /**
8453
+ * Null when the owner hides like counts.
8454
+ */
8455
+ likeCount: (number) | null;
8456
+ commentsCount: (number) | null;
8457
+ };
8458
+
8408
8459
  /**
8409
8460
  * Feed aspect ratio 0.5625-1.91, carousels up to 20 items, stories require media (no captions). User tag coordinates 0.0-1.0 from top-left. Images over 8 MB and videos over platform limits are auto-compressed.
8410
8461
  */
@@ -26693,6 +26744,40 @@ export type ListInstagramTaggedMediaResponse = ({
26693
26744
 
26694
26745
  export type ListInstagramTaggedMediaError = (ErrorResponse);
26695
26746
 
26747
+ export type GetInstagramMentionedMediaData = {
26748
+ path: {
26749
+ /**
26750
+ * The ID of a connected Instagram account (Facebook Login).
26751
+ */
26752
+ accountId: string;
26753
+ /**
26754
+ * Instagram media ID of the post that mentions the account (digits only).
26755
+ */
26756
+ mediaId: string;
26757
+ };
26758
+ };
26759
+
26760
+ export type GetInstagramMentionedMediaResponse = (InstagramMentionedMedia);
26761
+
26762
+ export type GetInstagramMentionedMediaError = (ErrorResponse);
26763
+
26764
+ export type GetInstagramMentionedCommentData = {
26765
+ path: {
26766
+ /**
26767
+ * The ID of a connected Instagram account (Facebook Login).
26768
+ */
26769
+ accountId: string;
26770
+ /**
26771
+ * Instagram comment ID of the comment that mentions the account (digits only).
26772
+ */
26773
+ commentId: string;
26774
+ };
26775
+ };
26776
+
26777
+ export type GetInstagramMentionedCommentResponse = (InstagramMentionedComment);
26778
+
26779
+ export type GetInstagramMentionedCommentError = (ErrorResponse);
26780
+
26696
26781
  export type GetInstagramStoryInsightsData = {
26697
26782
  path: {
26698
26783
  /**
@@ -32191,19 +32276,31 @@ export type ListInboxMentionsResponse = ({
32191
32276
  * Mention document ID
32192
32277
  */
32193
32278
  id?: string;
32194
- platform?: 'linkedin';
32279
+ platform?: 'linkedin' | 'instagram';
32280
+ /**
32281
+ * Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
32282
+ */
32283
+ type?: ('caption' | 'comment') | null;
32284
+ /**
32285
+ * Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
32286
+ */
32287
+ mediaId?: (string) | null;
32288
+ /**
32289
+ * Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
32290
+ */
32291
+ commentId?: (string) | null;
32195
32292
  accountId?: string;
32196
32293
  accountUsername?: string;
32197
32294
  /**
32198
- * Text of the post that mentioned you
32295
+ * Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
32199
32296
  */
32200
32297
  content?: string;
32201
32298
  /**
32202
- * URL to the source post on LinkedIn
32299
+ * URL to the source post on LinkedIn. Null on Instagram.
32203
32300
  */
32204
32301
  permalink?: (string) | null;
32205
32302
  /**
32206
- * LinkedIn URN of the person who mentioned you
32303
+ * LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
32207
32304
  */
32208
32305
  authorUrn?: (string) | null;
32209
32306
  /**
@@ -32211,7 +32308,7 @@ export type ListInboxMentionsResponse = ({
32211
32308
  */
32212
32309
  authorName?: (string) | null;
32213
32310
  /**
32214
- * LinkedIn vanity name of the author (the slug in their profile URL)
32311
+ * LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
32215
32312
  */
32216
32313
  authorUsername?: (string) | null;
32217
32314
  /**
@@ -32219,7 +32316,7 @@ export type ListInboxMentionsResponse = ({
32219
32316
  */
32220
32317
  authorPicture?: (string) | null;
32221
32318
  /**
32222
- * URN of the organization that was mentioned
32319
+ * URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
32223
32320
  */
32224
32321
  organizationalEntity?: string;
32225
32322
  publishedAt?: string;
@@ -58502,6 +58599,49 @@ export type DownloadTikTokVideoResponse = ({
58502
58599
 
58503
58600
  export type DownloadTikTokVideoError = (unknown | ErrorResponse);
58504
58601
 
58602
+ export type PrepareMediaData = {
58603
+ body: {
58604
+ /**
58605
+ * Public http(s) URL of the image or video.
58606
+ */
58607
+ url: string;
58608
+ /**
58609
+ * Where the media will be published. `twitter`, `googlebusiness` and `youtube_thumbnail` take images only; `facebook_reel` takes videos only.
58610
+ */
58611
+ target: 'instagram' | 'instagram_story' | 'facebook' | 'facebook_reel' | 'facebook_story' | 'threads' | 'tiktok' | 'linkedin' | 'twitter' | 'bluesky' | 'pinterest' | 'reddit' | 'snapchat' | 'telegram' | 'googlebusiness' | 'youtube_thumbnail';
58612
+ };
58613
+ };
58614
+
58615
+ export type PrepareMediaResponse = ({
58616
+ target: string;
58617
+ /**
58618
+ * URL to publish: the prepared file, or the input URL when nothing needed to change.
58619
+ */
58620
+ url: string;
58621
+ /**
58622
+ * Whether the media was processed.
58623
+ */
58624
+ changed: boolean;
58625
+ mediaType: 'image' | 'video';
58626
+ /**
58627
+ * Input size in bytes, null when the host does not report it.
58628
+ */
58629
+ originalSize: (number) | null;
58630
+ /**
58631
+ * Size of the returned file in bytes.
58632
+ */
58633
+ outputSize: (number) | null;
58634
+ });
58635
+
58636
+ export type PrepareMediaError = (ErrorResponse | {
58637
+ error?: string;
58638
+ code?: 'insufficient_permissions' | 'unclassified_resource';
58639
+ /**
58640
+ * The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
58641
+ */
58642
+ required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks';
58643
+ } | unknown);
58644
+
58505
58645
  export type ListChangelogData = {
58506
58646
  query?: {
58507
58647
  /**