@nodaro/sdk 1.20.0 → 1.22.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
@@ -4062,11 +4062,21 @@ declare class MediaResource {
4062
4062
  * gives per-image RELATIVE size hints for the smart layout: `0` auto
4063
4063
  * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
4064
4064
  * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
4065
- * Poll `jobs.get(jobId)` for the finished image.
4065
+ * For storyboards, set `numbered` to stamp a 1-based sequence badge at each
4066
+ * image's corner (top-left by default; `badgePosition: "top-right"` moves it;
4067
+ * in `imageUrls` order) and pass `imageLabels`
4068
+ * (index-aligned with `imageUrls`; `null`/`""`/omitted = no caption for that
4069
+ * image) to caption images after the number, e.g. `3 · Close-up`. Badges are
4070
+ * an overlay only — they never change the layout, the output size or the
4071
+ * credit cost. Poll `jobs.get(jobId)` for the finished image.
4066
4072
  */
4067
4073
  imageCollage(input: {
4068
4074
  imageUrls: string[];
4069
4075
  imageSizes?: Array<0 | 1 | 2 | 3>;
4076
+ numbered?: boolean;
4077
+ imageLabels?: Array<string | null>;
4078
+ /** Corner the badges sit in — `"top-left"` (default, storyboard convention) or `"top-right"`. */
4079
+ badgePosition?: "top-left" | "top-right";
4070
4080
  layout?: "smart" | "grid";
4071
4081
  resolution?: "2K" | "4K";
4072
4082
  aspectRatio?: string;
package/dist/index.d.ts CHANGED
@@ -4062,11 +4062,21 @@ declare class MediaResource {
4062
4062
  * gives per-image RELATIVE size hints for the smart layout: `0` auto
4063
4063
  * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
4064
4064
  * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
4065
- * Poll `jobs.get(jobId)` for the finished image.
4065
+ * For storyboards, set `numbered` to stamp a 1-based sequence badge at each
4066
+ * image's corner (top-left by default; `badgePosition: "top-right"` moves it;
4067
+ * in `imageUrls` order) and pass `imageLabels`
4068
+ * (index-aligned with `imageUrls`; `null`/`""`/omitted = no caption for that
4069
+ * image) to caption images after the number, e.g. `3 · Close-up`. Badges are
4070
+ * an overlay only — they never change the layout, the output size or the
4071
+ * credit cost. Poll `jobs.get(jobId)` for the finished image.
4066
4072
  */
4067
4073
  imageCollage(input: {
4068
4074
  imageUrls: string[];
4069
4075
  imageSizes?: Array<0 | 1 | 2 | 3>;
4076
+ numbered?: boolean;
4077
+ imageLabels?: Array<string | null>;
4078
+ /** Corner the badges sit in — `"top-left"` (default, storyboard convention) or `"top-right"`. */
4079
+ badgePosition?: "top-left" | "top-right";
4070
4080
  layout?: "smart" | "grid";
4071
4081
  resolution?: "2K" | "4K";
4072
4082
  aspectRatio?: string;
package/dist/index.js CHANGED
@@ -1862,7 +1862,13 @@ var MediaResource = class {
1862
1862
  * gives per-image RELATIVE size hints for the smart layout: `0` auto
1863
1863
  * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
1864
1864
  * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
1865
- * Poll `jobs.get(jobId)` for the finished image.
1865
+ * For storyboards, set `numbered` to stamp a 1-based sequence badge at each
1866
+ * image's corner (top-left by default; `badgePosition: "top-right"` moves it;
1867
+ * in `imageUrls` order) and pass `imageLabels`
1868
+ * (index-aligned with `imageUrls`; `null`/`""`/omitted = no caption for that
1869
+ * image) to caption images after the number, e.g. `3 · Close-up`. Badges are
1870
+ * an overlay only — they never change the layout, the output size or the
1871
+ * credit cost. Poll `jobs.get(jobId)` for the finished image.
1866
1872
  */
1867
1873
  imageCollage(input) {
1868
1874
  return this.client.request("POST", "/v1/image-collage", { body: input });
@@ -2608,7 +2614,7 @@ var WorkspacesResource = class {
2608
2614
  return this.client.request("POST", "/v1/workspaces/join", { body: { code } });
2609
2615
  }
2610
2616
  };
2611
- var SDK_VERSION = "1.20.0" ;
2617
+ var SDK_VERSION = "1.22.0" ;
2612
2618
  var CLIENT_HEADER = "X-Nodaro-Client";
2613
2619
  var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
2614
2620
  var NodaroClient = class _NodaroClient {