@nodaro/sdk 1.7.1 → 1.9.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 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) {
@@ -1710,6 +1736,19 @@ var MediaResource = class {
1710
1736
  saveToStorage(input) {
1711
1737
  return this.client.request("POST", "/v1/save-to-storage", { body: input });
1712
1738
  }
1739
+ /**
1740
+ * Composite 2–30 images into ONE large 2K/4K collage (`POST /v1/image-collage`).
1741
+ * `layout` `"smart"` (default — justified rows at each image's exact aspect
1742
+ * ratio, no cropping; the output height floats) or `"grid"` (uniform,
1743
+ * letterboxed cells). `imageSizes` is index-aligned with `imageUrls` and
1744
+ * gives per-image RELATIVE size hints for the smart layout: `0` auto
1745
+ * ("don't care", default), `1` big (~2× linear vs medium), `2` medium,
1746
+ * `3` small (~½ linear). All-equal hints change nothing; grid ignores them.
1747
+ * Poll `jobs.get(jobId)` for the finished image.
1748
+ */
1749
+ imageCollage(input) {
1750
+ return this.client.request("POST", "/v1/image-collage", { body: input });
1751
+ }
1713
1752
  /**
1714
1753
  * Trim a video to a range (`POST /v1/trim-video`). Give the range in whichever
1715
1754
  * unit fits: `startTime`/`endTime` seconds, `trim*Frames`, `trim*Seconds`, or
@@ -2076,6 +2115,7 @@ var NodaroClient = class {
2076
2115
  workflows;
2077
2116
  projects;
2078
2117
  jobs;
2118
+ videoPro;
2079
2119
  executions;
2080
2120
  nodes;
2081
2121
  developerApps;
@@ -2105,6 +2145,7 @@ var NodaroClient = class {
2105
2145
  this.workflows = new WorkflowsResource(this);
2106
2146
  this.projects = new ProjectsResource(this);
2107
2147
  this.jobs = new JobsResource(this);
2148
+ this.videoPro = new VideoProResource(this);
2108
2149
  this.executions = new ExecutionsResource(this);
2109
2150
  this.nodes = new NodesResource(this);
2110
2151
  this.developerApps = new DeveloperAppsResource(this);
@@ -2321,6 +2362,7 @@ exports.StaticTokenAuth = StaticTokenAuth;
2321
2362
  exports.StorageExceededError = StorageExceededError;
2322
2363
  exports.UnauthorizedError = UnauthorizedError;
2323
2364
  exports.UploadsResource = UploadsResource;
2365
+ exports.VideoProResource = VideoProResource;
2324
2366
  exports.VoicesResource = VoicesResource;
2325
2367
  exports.WorkflowsResource = WorkflowsResource;
2326
2368
  exports.buildPersonSeedPrompt = buildPersonSeedPrompt;