@nodaro/sdk 1.20.0 → 1.23.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 +19 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -4
- package/dist/index.d.ts +28 -4
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -617,11 +617,12 @@ var AppsResource = class {
|
|
|
617
617
|
/**
|
|
618
618
|
* Trigger an app run with the given input values. The keys in `inputs` must
|
|
619
619
|
* match the app's input-schema field names (see `get(slug).inputSchema`).
|
|
620
|
+
* `opts.inputOverrides` adds raw per-node overrides (see {@link RunAppOptions}).
|
|
620
621
|
* Returns the execution-id for status polling via client.executions.get().
|
|
621
622
|
*/
|
|
622
|
-
run(slug, inputs = {}) {
|
|
623
|
+
run(slug, inputs = {}, opts = {}) {
|
|
623
624
|
return this.client.request("POST", `/v1/app/${encodeURIComponent(slug)}/run`, {
|
|
624
|
-
body: { inputs }
|
|
625
|
+
body: { inputs, ...opts.inputOverrides ? { inputOverrides: opts.inputOverrides } : {} }
|
|
625
626
|
});
|
|
626
627
|
}
|
|
627
628
|
/** List past runs for an app (the caller must own the app or the runs). */
|
|
@@ -1862,7 +1863,13 @@ var MediaResource = class {
|
|
|
1862
1863
|
* gives per-image RELATIVE size hints for the smart layout: `0` auto
|
|
1863
1864
|
* ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
|
|
1864
1865
|
* `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
|
|
1865
|
-
*
|
|
1866
|
+
* For storyboards, set `numbered` to stamp a 1-based sequence badge at each
|
|
1867
|
+
* image's corner (top-left by default; `badgePosition: "top-right"` moves it;
|
|
1868
|
+
* in `imageUrls` order) and pass `imageLabels`
|
|
1869
|
+
* (index-aligned with `imageUrls`; `null`/`""`/omitted = no caption for that
|
|
1870
|
+
* image) to caption images after the number, e.g. `3 · Close-up`. Badges are
|
|
1871
|
+
* an overlay only — they never change the layout, the output size or the
|
|
1872
|
+
* credit cost. Poll `jobs.get(jobId)` for the finished image.
|
|
1866
1873
|
*/
|
|
1867
1874
|
imageCollage(input) {
|
|
1868
1875
|
return this.client.request("POST", "/v1/image-collage", { body: input });
|
|
@@ -2608,7 +2615,7 @@ var WorkspacesResource = class {
|
|
|
2608
2615
|
return this.client.request("POST", "/v1/workspaces/join", { body: { code } });
|
|
2609
2616
|
}
|
|
2610
2617
|
};
|
|
2611
|
-
var SDK_VERSION = "1.
|
|
2618
|
+
var SDK_VERSION = "1.23.0" ;
|
|
2612
2619
|
var CLIENT_HEADER = "X-Nodaro-Client";
|
|
2613
2620
|
var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
2614
2621
|
var NodaroClient = class _NodaroClient {
|
|
@@ -2893,6 +2900,14 @@ Object.defineProperty(exports, "OBJECT_ATTACH_COLUMNS", {
|
|
|
2893
2900
|
enumerable: true,
|
|
2894
2901
|
get: function () { return shared.OBJECT_ATTACH_COLUMNS; }
|
|
2895
2902
|
});
|
|
2903
|
+
Object.defineProperty(exports, "PROMPT_PREFIX_KEY", {
|
|
2904
|
+
enumerable: true,
|
|
2905
|
+
get: function () { return shared.PROMPT_PREFIX_KEY; }
|
|
2906
|
+
});
|
|
2907
|
+
Object.defineProperty(exports, "PROMPT_SUFFIX_KEY", {
|
|
2908
|
+
enumerable: true,
|
|
2909
|
+
get: function () { return shared.PROMPT_SUFFIX_KEY; }
|
|
2910
|
+
});
|
|
2896
2911
|
Object.defineProperty(exports, "SURROUND_DIRECTIONS", {
|
|
2897
2912
|
enumerable: true,
|
|
2898
2913
|
get: function () { return shared.SURROUND_DIRECTIONS; }
|