@getlatedev/node 0.1.19 → 0.1.20
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 +12 -2
- package/dist/index.d.ts +12 -2
- package/package.json +1 -1
- package/src/generated/types.gen.ts +12 -2
package/dist/index.d.mts
CHANGED
|
@@ -810,7 +810,7 @@ type status = 'safe' | 'banned' | 'restricted' | 'unknown';
|
|
|
810
810
|
* - Validation happens at post creation; invalid images are rejected immediately with helpful error messages.
|
|
811
811
|
* - Carousels support up to 10 media items.
|
|
812
812
|
* - Stories require media; no captions are published with Stories.
|
|
813
|
-
* - User tags: coordinates range from 0.0 to 1.0 representing position from top-left corner. Tagged users receive notifications.
|
|
813
|
+
* - User tags: coordinates range from 0.0 to 1.0 representing position from top-left corner. For carousels, use `mediaIndex` to tag specific slides. Tagged users receive notifications.
|
|
814
814
|
*
|
|
815
815
|
* **Automatic Compression (similar to Bluesky):**
|
|
816
816
|
* - All images (story, post, carousel, thumbnails) exceeding 8 MB are automatically compressed using quality reduction and resizing.
|
|
@@ -854,7 +854,11 @@ type InstagramPlatformData = {
|
|
|
854
854
|
graduationStrategy?: 'MANUAL' | 'SS_PERFORMANCE';
|
|
855
855
|
};
|
|
856
856
|
/**
|
|
857
|
-
* Tag Instagram users in photos by username and position coordinates.
|
|
857
|
+
* Tag Instagram users in photos by username and position coordinates. Not supported for stories or videos.
|
|
858
|
+
* For carousel posts, use the optional `mediaIndex` field to specify which slide each tag applies to.
|
|
859
|
+
* Tags without `mediaIndex` default to the first image (index 0) for backwards compatibility.
|
|
860
|
+
* Tags targeting video items are silently skipped (Instagram only supports tagging on images).
|
|
861
|
+
*
|
|
858
862
|
*/
|
|
859
863
|
userTags?: Array<{
|
|
860
864
|
/**
|
|
@@ -869,6 +873,12 @@ type InstagramPlatformData = {
|
|
|
869
873
|
* Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom)
|
|
870
874
|
*/
|
|
871
875
|
y: number;
|
|
876
|
+
/**
|
|
877
|
+
* Zero-based index of the carousel item to tag. Defaults to 0 (first image) if omitted.
|
|
878
|
+
* Only relevant for carousel posts. Tags targeting video items or out-of-range indices are ignored.
|
|
879
|
+
*
|
|
880
|
+
*/
|
|
881
|
+
mediaIndex?: number;
|
|
872
882
|
}>;
|
|
873
883
|
/**
|
|
874
884
|
* Custom name for the original audio in Reels. Replaces the default "Original Audio" label.
|
package/dist/index.d.ts
CHANGED
|
@@ -810,7 +810,7 @@ type status = 'safe' | 'banned' | 'restricted' | 'unknown';
|
|
|
810
810
|
* - Validation happens at post creation; invalid images are rejected immediately with helpful error messages.
|
|
811
811
|
* - Carousels support up to 10 media items.
|
|
812
812
|
* - Stories require media; no captions are published with Stories.
|
|
813
|
-
* - User tags: coordinates range from 0.0 to 1.0 representing position from top-left corner. Tagged users receive notifications.
|
|
813
|
+
* - User tags: coordinates range from 0.0 to 1.0 representing position from top-left corner. For carousels, use `mediaIndex` to tag specific slides. Tagged users receive notifications.
|
|
814
814
|
*
|
|
815
815
|
* **Automatic Compression (similar to Bluesky):**
|
|
816
816
|
* - All images (story, post, carousel, thumbnails) exceeding 8 MB are automatically compressed using quality reduction and resizing.
|
|
@@ -854,7 +854,11 @@ type InstagramPlatformData = {
|
|
|
854
854
|
graduationStrategy?: 'MANUAL' | 'SS_PERFORMANCE';
|
|
855
855
|
};
|
|
856
856
|
/**
|
|
857
|
-
* Tag Instagram users in photos by username and position coordinates.
|
|
857
|
+
* Tag Instagram users in photos by username and position coordinates. Not supported for stories or videos.
|
|
858
|
+
* For carousel posts, use the optional `mediaIndex` field to specify which slide each tag applies to.
|
|
859
|
+
* Tags without `mediaIndex` default to the first image (index 0) for backwards compatibility.
|
|
860
|
+
* Tags targeting video items are silently skipped (Instagram only supports tagging on images).
|
|
861
|
+
*
|
|
858
862
|
*/
|
|
859
863
|
userTags?: Array<{
|
|
860
864
|
/**
|
|
@@ -869,6 +873,12 @@ type InstagramPlatformData = {
|
|
|
869
873
|
* Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom)
|
|
870
874
|
*/
|
|
871
875
|
y: number;
|
|
876
|
+
/**
|
|
877
|
+
* Zero-based index of the carousel item to tag. Defaults to 0 (first image) if omitted.
|
|
878
|
+
* Only relevant for carousel posts. Tags targeting video items or out-of-range indices are ignored.
|
|
879
|
+
*
|
|
880
|
+
*/
|
|
881
|
+
mediaIndex?: number;
|
|
872
882
|
}>;
|
|
873
883
|
/**
|
|
874
884
|
* Custom name for the original audio in Reels. Replaces the default "Original Audio" label.
|
package/package.json
CHANGED
|
@@ -444,7 +444,7 @@ export type status = 'safe' | 'banned' | 'restricted' | 'unknown';
|
|
|
444
444
|
* - Validation happens at post creation; invalid images are rejected immediately with helpful error messages.
|
|
445
445
|
* - Carousels support up to 10 media items.
|
|
446
446
|
* - Stories require media; no captions are published with Stories.
|
|
447
|
-
* - User tags: coordinates range from 0.0 to 1.0 representing position from top-left corner. Tagged users receive notifications.
|
|
447
|
+
* - User tags: coordinates range from 0.0 to 1.0 representing position from top-left corner. For carousels, use `mediaIndex` to tag specific slides. Tagged users receive notifications.
|
|
448
448
|
*
|
|
449
449
|
* **Automatic Compression (similar to Bluesky):**
|
|
450
450
|
* - All images (story, post, carousel, thumbnails) exceeding 8 MB are automatically compressed using quality reduction and resizing.
|
|
@@ -488,7 +488,11 @@ export type InstagramPlatformData = {
|
|
|
488
488
|
graduationStrategy?: 'MANUAL' | 'SS_PERFORMANCE';
|
|
489
489
|
};
|
|
490
490
|
/**
|
|
491
|
-
* Tag Instagram users in photos by username and position coordinates.
|
|
491
|
+
* Tag Instagram users in photos by username and position coordinates. Not supported for stories or videos.
|
|
492
|
+
* For carousel posts, use the optional `mediaIndex` field to specify which slide each tag applies to.
|
|
493
|
+
* Tags without `mediaIndex` default to the first image (index 0) for backwards compatibility.
|
|
494
|
+
* Tags targeting video items are silently skipped (Instagram only supports tagging on images).
|
|
495
|
+
*
|
|
492
496
|
*/
|
|
493
497
|
userTags?: Array<{
|
|
494
498
|
/**
|
|
@@ -503,6 +507,12 @@ export type InstagramPlatformData = {
|
|
|
503
507
|
* Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom)
|
|
504
508
|
*/
|
|
505
509
|
y: number;
|
|
510
|
+
/**
|
|
511
|
+
* Zero-based index of the carousel item to tag. Defaults to 0 (first image) if omitted.
|
|
512
|
+
* Only relevant for carousel posts. Tags targeting video items or out-of-range indices are ignored.
|
|
513
|
+
*
|
|
514
|
+
*/
|
|
515
|
+
mediaIndex?: number;
|
|
506
516
|
}>;
|
|
507
517
|
/**
|
|
508
518
|
* Custom name for the original audio in Reels. Replaces the default "Original Audio" label.
|