@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.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
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
|
-
*
|
|
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.
|
|
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 {
|