@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.cjs CHANGED
@@ -1736,6 +1736,19 @@ var MediaResource = class {
1736
1736
  saveToStorage(input) {
1737
1737
  return this.client.request("POST", "/v1/save-to-storage", { body: input });
1738
1738
  }
1739
+ /**
1740
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
1741
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
1742
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
1743
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
1744
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
1745
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
1746
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
1747
+ * Poll `jobs.get(jobId)` for the finished image.
1748
+ */
1749
+ imageCollage(input) {
1750
+ return this.client.request("POST", "/v1/image-collage", { body: input });
1751
+ }
1739
1752
  /**
1740
1753
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
1741
1754
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or