@nodaro/sdk 1.8.0 → 1.9.0

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.cts CHANGED
@@ -3855,6 +3855,27 @@ declare class MediaResource {
3855
3855
  }): Promise<{
3856
3856
  jobId: string;
3857
3857
  }>;
3858
+ /**
3859
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
3860
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
3861
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
3862
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
3863
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
3864
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
3865
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
3866
+ * Poll `jobs.get(jobId)` for the finished image.
3867
+ */
3868
+ imageCollage(input: {
3869
+ imageUrls: string[];
3870
+ imageSizes?: Array<0 | 1 | 2 | 3>;
3871
+ layout?: "smart" | "grid";
3872
+ resolution?: "2K" | "4K";
3873
+ aspectRatio?: string;
3874
+ gap?: number;
3875
+ backgroundColor?: string;
3876
+ }): Promise<{
3877
+ jobId: string;
3878
+ }>;
3858
3879
  /**
3859
3880
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
3860
3881
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
package/dist/index.d.ts CHANGED
@@ -3855,6 +3855,27 @@ declare class MediaResource {
3855
3855
  }): Promise<{
3856
3856
  jobId: string;
3857
3857
  }>;
3858
+ /**
3859
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
3860
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
3861
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
3862
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
3863
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
3864
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
3865
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
3866
+ * Poll `jobs.get(jobId)` for the finished image.
3867
+ */
3868
+ imageCollage(input: {
3869
+ imageUrls: string[];
3870
+ imageSizes?: Array<0 | 1 | 2 | 3>;
3871
+ layout?: "smart" | "grid";
3872
+ resolution?: "2K" | "4K";
3873
+ aspectRatio?: string;
3874
+ gap?: number;
3875
+ backgroundColor?: string;
3876
+ }): Promise<{
3877
+ jobId: string;
3878
+ }>;
3858
3879
  /**
3859
3880
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
3860
3881
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
package/dist/index.js CHANGED
@@ -1735,6 +1735,19 @@ var MediaResource = class {
1735
1735
  saveToStorage(input) {
1736
1736
  return this.client.request("POST", "/v1/save-to-storage", { body: input });
1737
1737
  }
1738
+ /**
1739
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
1740
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
1741
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
1742
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
1743
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
1744
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
1745
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
1746
+ * Poll `jobs.get(jobId)` for the finished image.
1747
+ */
1748
+ imageCollage(input) {
1749
+ return this.client.request("POST", "/v1/image-collage", { body: input });
1750
+ }
1738
1751
  /**
1739
1752
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
1740
1753
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or