@nodaro/sdk 1.29.0 → 1.30.1
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -6
- package/dist/index.d.ts +51 -6
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -493,7 +493,8 @@ var NodesResource = class {
|
|
|
493
493
|
return this.client.request("GET", `/v1/nodes/${encodeURIComponent(type)}`);
|
|
494
494
|
}
|
|
495
495
|
run(type, params = {}) {
|
|
496
|
-
|
|
496
|
+
const route = type === "generate-3d-scene" ? "/v1/3d-scene/generate" : type === "edit-3d-scene" ? "/v1/3d-scene/edit" : type === "render-video" && typeof params.planType === "string" ? "/v1/render-video/plan" : `/v1/${encodeURIComponent(type)}`;
|
|
497
|
+
return this.client.request("POST", route, { body: params });
|
|
497
498
|
}
|
|
498
499
|
async runAndWait(type, params = {}, opts = {}) {
|
|
499
500
|
if (opts.signal?.aborted) throw new JobAbortedError();
|
|
@@ -2752,7 +2753,7 @@ var WorkspacesResource = class {
|
|
|
2752
2753
|
return this.client.requestText("GET", `/v1/workspaces/${encodeURIComponent(id)}/usage`, { query: { ...opts, format: "csv" } });
|
|
2753
2754
|
}
|
|
2754
2755
|
};
|
|
2755
|
-
var SDK_VERSION = "1.
|
|
2756
|
+
var SDK_VERSION = "1.30.1" ;
|
|
2756
2757
|
var CLIENT_HEADER = "X-Nodaro-Client";
|
|
2757
2758
|
var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
2758
2759
|
var NodaroClient = class _NodaroClient {
|