@nodaro/sdk 1.7.1 → 1.8.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 +29 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -254,6 +254,32 @@ var JobsResource = class {
|
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
+
// src/resources/video-pro.ts
|
|
258
|
+
var VideoProResource = class {
|
|
259
|
+
constructor(client) {
|
|
260
|
+
this.client = client;
|
|
261
|
+
}
|
|
262
|
+
client;
|
|
263
|
+
/** Gracefully stop a running generate-video-pro job (keep + deliver the
|
|
264
|
+
* completed segments; refund the rest). */
|
|
265
|
+
stop(jobId) {
|
|
266
|
+
return this.client.request(
|
|
267
|
+
"POST",
|
|
268
|
+
`/v1/generate-video-pro/${encodeURIComponent(jobId)}/stop`
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
/** Continue a stopped/failed/completed run from a segment (a NEW job).
|
|
272
|
+
* Named `continueRun` because `continue` is a reserved word. */
|
|
273
|
+
continueRun(jobId, opts) {
|
|
274
|
+
return this.client.request("POST", "/v1/generate-video-pro/continue", {
|
|
275
|
+
body: {
|
|
276
|
+
fromJobId: jobId,
|
|
277
|
+
...opts?.fromSegment !== void 0 ? { fromSegment: opts.fromSegment } : {}
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
|
|
257
283
|
// src/resources/executions.ts
|
|
258
284
|
var ExecutionsResource = class {
|
|
259
285
|
constructor(client) {
|
|
@@ -2076,6 +2102,7 @@ var NodaroClient = class {
|
|
|
2076
2102
|
workflows;
|
|
2077
2103
|
projects;
|
|
2078
2104
|
jobs;
|
|
2105
|
+
videoPro;
|
|
2079
2106
|
executions;
|
|
2080
2107
|
nodes;
|
|
2081
2108
|
developerApps;
|
|
@@ -2105,6 +2132,7 @@ var NodaroClient = class {
|
|
|
2105
2132
|
this.workflows = new WorkflowsResource(this);
|
|
2106
2133
|
this.projects = new ProjectsResource(this);
|
|
2107
2134
|
this.jobs = new JobsResource(this);
|
|
2135
|
+
this.videoPro = new VideoProResource(this);
|
|
2108
2136
|
this.executions = new ExecutionsResource(this);
|
|
2109
2137
|
this.nodes = new NodesResource(this);
|
|
2110
2138
|
this.developerApps = new DeveloperAppsResource(this);
|
|
@@ -2321,6 +2349,7 @@ exports.StaticTokenAuth = StaticTokenAuth;
|
|
|
2321
2349
|
exports.StorageExceededError = StorageExceededError;
|
|
2322
2350
|
exports.UnauthorizedError = UnauthorizedError;
|
|
2323
2351
|
exports.UploadsResource = UploadsResource;
|
|
2352
|
+
exports.VideoProResource = VideoProResource;
|
|
2324
2353
|
exports.VoicesResource = VoicesResource;
|
|
2325
2354
|
exports.WorkflowsResource = WorkflowsResource;
|
|
2326
2355
|
exports.buildPersonSeedPrompt = buildPersonSeedPrompt;
|