@rendobar/sdk 4.0.0 → 4.1.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/README.md CHANGED
@@ -207,7 +207,7 @@ await client.jobs.create({
207
207
  });
208
208
  ```
209
209
 
210
- Need a typed params object? Import `FfmpegParams` — optional fields (`outputFormat`, `timeout`) have server-side defaults.
210
+ Need a typed params object? Import `FfmpegParams` — optional fields (`timeout`, `compute`) have server-side defaults. The output format comes from the command's output filename.
211
211
 
212
212
  See the [FFmpeg guide](https://rendobar.com/docs/guides/ffmpeg) for the full security model and supported flags.
213
213
 
package/dist/index.d.cts CHANGED
@@ -3551,12 +3551,16 @@ interface JobSubscription {
3551
3551
  * semantics on the schema side.
3552
3552
  */
3553
3553
  interface FfmpegParams {
3554
- /** FFmpeg command. The leading "ffmpeg" is stripped if present. */
3554
+ /** FFmpeg command. The leading "ffmpeg" is stripped if present. The output
3555
+ * format comes from the command's own output filename — there is no separate
3556
+ * format param. */
3555
3557
  command: string;
3556
- /** Output container/format. Inferred from the trailing filename if omitted. */
3557
- outputFormat?: "mp4" | "mkv" | "webm" | "mov" | "avi" | "ts" | "gif" | "png" | "jpg" | "mp3" | "wav" | "flac" | "ogg" | "aac" | "opus" | "m4a" | "srt" | "vtt";
3558
- /** Maximum execution time in seconds (1 - 900). Defaults to 120. */
3558
+ /** Max execution time in seconds. Defaults to your plan's max job timeout;
3559
+ * an explicit value is capped at it. */
3559
3560
  timeout?: number;
3561
+ /** Hardware target. "auto" (default) routes to GPU when the command uses
3562
+ * NVENC/CUDA; "cpu" / "gpu" force it. */
3563
+ compute?: "auto" | "cpu" | "gpu";
3560
3564
  }
3561
3565
  //#endregion
3562
3566
  //#region src/resources/jobs.d.ts
package/dist/index.d.mts CHANGED
@@ -3551,12 +3551,16 @@ interface JobSubscription {
3551
3551
  * semantics on the schema side.
3552
3552
  */
3553
3553
  interface FfmpegParams {
3554
- /** FFmpeg command. The leading "ffmpeg" is stripped if present. */
3554
+ /** FFmpeg command. The leading "ffmpeg" is stripped if present. The output
3555
+ * format comes from the command's own output filename — there is no separate
3556
+ * format param. */
3555
3557
  command: string;
3556
- /** Output container/format. Inferred from the trailing filename if omitted. */
3557
- outputFormat?: "mp4" | "mkv" | "webm" | "mov" | "avi" | "ts" | "gif" | "png" | "jpg" | "mp3" | "wav" | "flac" | "ogg" | "aac" | "opus" | "m4a" | "srt" | "vtt";
3558
- /** Maximum execution time in seconds (1 - 900). Defaults to 120. */
3558
+ /** Max execution time in seconds. Defaults to your plan's max job timeout;
3559
+ * an explicit value is capped at it. */
3559
3560
  timeout?: number;
3561
+ /** Hardware target. "auto" (default) routes to GPU when the command uses
3562
+ * NVENC/CUDA; "cpu" / "gpu" force it. */
3563
+ compute?: "auto" | "cpu" | "gpu";
3560
3564
  }
3561
3565
  //#endregion
3562
3566
  //#region src/resources/jobs.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendobar/sdk",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript client for the Rendobar media processing API",
6
6
  "main": "./dist/index.cjs",