@getlatedev/node 0.2.1268 → 0.2.1271

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
  */
@@ -21898,11 +21949,11 @@ export type GetConnectUrlData = {
21898
21949
  */
21899
21950
  signup?: 'hosted';
21900
21951
  /**
21901
- * Any platform. When `true`, `authUrl` points to a Zernio-hosted welcome screen that shows your brand next to the platform ("<brandName> wants to connect to your <platform>") whose button fills for about a second and then sends the user on to the platform's own authorization screen, with no click; the rest of the flow is unchanged. `brandName`, `logoUrl`, `primaryColor` and `welcomeTheme` are optional and default to Zernio's own name, mark and look. The link is valid for 30 minutes, after which the page asks the user to start again. The brand also carries to the account and channel pickers Zernio shows after authorization, and when you pass no `redirect_url` the flow ends on a branded Zernio-hosted page saying whether the account connected, instead of the Zernio dashboard. Cannot be combined with `headless=true` or `signup=hosted` (400 `INVALID_FIELD_VALUE`). The platform's authorization screen still names the Zernio app. Recommended. When left out, the screen is shown if the workspace saved it as on by default (`PUT /v1/connect/welcome-screen`), except with `headless=true` or `signup=hosted`; pass `false` to skip it. Branding you leave out of the call comes from those saved settings, and a `welcomeTheme` you send is merged key by key over the saved theme.
21952
+ * Any platform. When `true`, `authUrl` points to a Zernio-hosted welcome screen that shows your brand next to the platform ("<brandName> wants to connect to your <platform>") whose button reads Connecting for about a second and then sends the user on to the platform's own authorization screen, with no click; the rest of the flow is unchanged. `brandName`, `logoUrl`, `primaryColor` and `welcomeTheme` are optional and default to Zernio's own name, mark and look. The link is valid for 30 minutes, after which the page asks the user to start again. The brand also carries to the account and channel pickers Zernio shows after authorization, and when you pass no `redirect_url` the flow ends on a branded Zernio-hosted page saying whether the account connected, instead of the Zernio dashboard. Cannot be combined with `headless=true` or `signup=hosted` (400 `INVALID_FIELD_VALUE`). The platform's authorization screen still names the Zernio app. Recommended. When left out, the screen is shown if the workspace saved it as on by default (`PUT /v1/connect/welcome-screen`), except with `headless=true` or `signup=hosted`; pass `false` to skip it. Branding you leave out of the call comes from those saved settings, and a `welcomeTheme` you send is merged key by key over the saved theme.
21902
21953
  */
21903
21954
  welcome?: boolean;
21904
21955
  /**
21905
- * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine` and `consentLine` (up to 200 each), `buttonLabel` (up to 30, the label on that button); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor`, `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
21956
+ * Welcome screen only (`welcome=true`): a URL-encoded JSON object that restyles and rewords the screen. All keys are optional. Copy: `heading` (up to 120 characters), `trustLine`, `consentLine` and `statusLine` (up to 200 each, `statusLine` being the line above the button), `buttonLabel` (up to 30, the label of the link the button becomes if the redirect stalls); each may contain the placeholders `{brand}` and `{platform}`. Style: `primaryColor` (the button), `accentColor` (the header gradient, built as a scale of that colour, and the icons), `pageColor`, `cardColor` and `textColor` as `#RRGGBB`, `cornerRadius` as an integer from 0 to 24 (pixels), `font` as `sans`, `serif` or `mono`. A `primaryColor` here wins over the `primaryColor` parameter. Unknown keys, invalid JSON or an invalid value are a 400 `INVALID_FIELD_VALUE`. Rejected when the welcome screen is not shown. Example: `{"heading":"Link your {platform} to {brand}","cardColor":"#FFF7ED","cornerRadius":12}`.
21906
21957
  */
21907
21958
  welcomeTheme?: string;
21908
21959
  };
@@ -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
  /**
@@ -58502,6 +58587,49 @@ export type DownloadTikTokVideoResponse = ({
58502
58587
 
58503
58588
  export type DownloadTikTokVideoError = (unknown | ErrorResponse);
58504
58589
 
58590
+ export type PrepareMediaData = {
58591
+ body: {
58592
+ /**
58593
+ * Public http(s) URL of the image or video.
58594
+ */
58595
+ url: string;
58596
+ /**
58597
+ * Where the media will be published. `twitter`, `googlebusiness` and `youtube_thumbnail` take images only; `facebook_reel` takes videos only.
58598
+ */
58599
+ target: 'instagram' | 'instagram_story' | 'facebook' | 'facebook_reel' | 'facebook_story' | 'threads' | 'tiktok' | 'linkedin' | 'twitter' | 'bluesky' | 'pinterest' | 'reddit' | 'snapchat' | 'telegram' | 'googlebusiness' | 'youtube_thumbnail';
58600
+ };
58601
+ };
58602
+
58603
+ export type PrepareMediaResponse = ({
58604
+ target: string;
58605
+ /**
58606
+ * URL to publish: the prepared file, or the input URL when nothing needed to change.
58607
+ */
58608
+ url: string;
58609
+ /**
58610
+ * Whether the media was processed.
58611
+ */
58612
+ changed: boolean;
58613
+ mediaType: 'image' | 'video';
58614
+ /**
58615
+ * Input size in bytes, null when the host does not report it.
58616
+ */
58617
+ originalSize: (number) | null;
58618
+ /**
58619
+ * Size of the returned file in bytes.
58620
+ */
58621
+ outputSize: (number) | null;
58622
+ });
58623
+
58624
+ export type PrepareMediaError = (ErrorResponse | {
58625
+ error?: string;
58626
+ code?: 'insufficient_permissions' | 'unclassified_resource';
58627
+ /**
58628
+ * The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
58629
+ */
58630
+ required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks';
58631
+ } | unknown);
58632
+
58505
58633
  export type ListChangelogData = {
58506
58634
  query?: {
58507
58635
  /**