@transcodely/sdk 0.3.2 → 0.3.4

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.d.cts CHANGED
@@ -6600,7 +6600,8 @@ declare enum ThumbnailMode {
6600
6600
  * Free and bundled — animated previews add NO cost to a job (thumbnails are
6601
6601
  * priced at 0). By default the worker produces BOTH an animated WebP and a
6602
6602
  * muted MP4 loop from the same samples, so a consumer can pick whichever its
6603
- * surface supports. Set `format = webp` to emit only the WebP.
6603
+ * surface supports. Set `format = webp` to emit only the WebP, or
6604
+ * `format = mp4` to emit only the MP4 loop.
6604
6605
  *
6605
6606
  * Sampling is deterministic: unless `start_offsets` is set, clips are taken at
6606
6607
  * fixed 25% / 50% / 75% marks of the source duration (no scene detection).
@@ -6642,7 +6643,15 @@ declare enum ThumbnailFormat {
6642
6643
  /**
6643
6644
  * @generated from enum value: THUMBNAIL_FORMAT_WEBP = 3;
6644
6645
  */
6645
- WEBP = 3
6646
+ WEBP = 3,
6647
+ /**
6648
+ * Animated mode only: produce just the muted MP4 loop (no animated WebP).
6649
+ * Rejected on single/interval/sprite/timestamps specs. Unset format on an
6650
+ * animated spec still produces both artifacts.
6651
+ *
6652
+ * @generated from enum value: THUMBNAIL_FORMAT_MP4 = 4;
6653
+ */
6654
+ MP4 = 4
6646
6655
  }
6647
6656
  /**
6648
6657
  * Thumbnail generation specification.
@@ -6750,7 +6759,7 @@ declare class ThumbnailSpec extends Message<ThumbnailSpec> {
6750
6759
  durationSeconds?: number;
6751
6760
  /**
6752
6761
  * Frames per second of the animated preview (animated mode only).
6753
- * Range: 8-15. Default (unset): 12, applied worker-side. Only valid for
6762
+ * Range: 8-30. Default (unset): 12, applied worker-side. Only valid for
6754
6763
  * animated mode.
6755
6764
  *
6756
6765
  * @generated from field: optional int32 fps = 12;
@@ -9174,6 +9183,19 @@ declare class Video extends Message<Video> {
9174
9183
  * @generated from field: optional double encoding_cost = 31;
9175
9184
  */
9176
9185
  encodingCost?: number;
9186
+ /**
9187
+ * Sum of confirmed AI-caption fees, in EUR, across all of this video's jobs
9188
+ * — captions generated inline with the transcode (the auto_captions upload
9189
+ * flag) and retro captions-only jobs that used this video as their input
9190
+ * (input_video_id). Absent until a captions fee is confirmed; fees are
9191
+ * confirmed only when a caption artifact is actually delivered, so voided
9192
+ * and still-estimated fees are never counted. This is a per-feature
9193
+ * breakdown of already-billed job totals, not an extra charge on top of
9194
+ * them.
9195
+ *
9196
+ * @generated from field: optional double captions_cost = 50;
9197
+ */
9198
+ captionsCost?: number;
9177
9199
  /**
9178
9200
  * Timestamps.
9179
9201
  *
@@ -9445,6 +9467,19 @@ declare class CreateUploadRequest extends Message<CreateUploadRequest> {
9445
9467
  * @generated from field: bool hover_previews = 10;
9446
9468
  */
9447
9469
  hoverPreviews: boolean;
9470
+ /**
9471
+ * When true, generate AI captions inline with the transcode: the managed
9472
+ * job's output carries a "generate" subtitle track (language auto-detected,
9473
+ * WebVTT), produced by the same job — and on the same worker — as the
9474
+ * encode, and listed in the video's streaming manifest so players discover
9475
+ * it natively. Billed as the per-source-minute captions fee on that job;
9476
+ * the fee is only charged when a caption track is actually delivered. The
9477
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
9478
+ * captions.
9479
+ *
9480
+ * @generated from field: optional bool auto_captions = 11;
9481
+ */
9482
+ autoCaptions?: boolean;
9448
9483
  constructor(data?: PartialMessage<CreateUploadRequest>);
9449
9484
  static readonly runtime: typeof proto3;
9450
9485
  static readonly typeName = "transcodely.v1.CreateUploadRequest";
@@ -9593,6 +9628,19 @@ declare class CreateFromUrlRequest extends Message<CreateFromUrlRequest> {
9593
9628
  * @generated from field: bool hover_previews = 8;
9594
9629
  */
9595
9630
  hoverPreviews: boolean;
9631
+ /**
9632
+ * When true, generate AI captions inline with the transcode: the managed
9633
+ * job's output carries a "generate" subtitle track (language auto-detected,
9634
+ * WebVTT), produced by the same job — and on the same worker — as the
9635
+ * encode, and listed in the video's streaming manifest so players discover
9636
+ * it natively. Billed as the per-source-minute captions fee on that job;
9637
+ * the fee is only charged when a caption track is actually delivered. The
9638
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
9639
+ * captions.
9640
+ *
9641
+ * @generated from field: optional bool auto_captions = 9;
9642
+ */
9643
+ autoCaptions?: boolean;
9596
9644
  constructor(data?: PartialMessage<CreateFromUrlRequest>);
9597
9645
  static readonly runtime: typeof proto3;
9598
9646
  static readonly typeName = "transcodely.v1.CreateFromUrlRequest";
@@ -9762,6 +9810,19 @@ declare class CreateMultipartUploadRequest extends Message<CreateMultipartUpload
9762
9810
  * @generated from field: bool hover_previews = 15;
9763
9811
  */
9764
9812
  hoverPreviews: boolean;
9813
+ /**
9814
+ * When true, generate AI captions inline with the transcode: the managed
9815
+ * job's output carries a "generate" subtitle track (language auto-detected,
9816
+ * WebVTT), produced by the same job — and on the same worker — as the
9817
+ * encode, and listed in the video's streaming manifest so players discover
9818
+ * it natively. Billed as the per-source-minute captions fee on that job;
9819
+ * the fee is only charged when a caption track is actually delivered. The
9820
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
9821
+ * captions.
9822
+ *
9823
+ * @generated from field: optional bool auto_captions = 16;
9824
+ */
9825
+ autoCaptions?: boolean;
9765
9826
  constructor(data?: PartialMessage<CreateMultipartUploadRequest>);
9766
9827
  static readonly runtime: typeof proto3;
9767
9828
  static readonly typeName = "transcodely.v1.CreateMultipartUploadRequest";
@@ -13317,7 +13378,7 @@ declare class Transcodely {
13317
13378
  }
13318
13379
 
13319
13380
  /** SDK version. Bumped by release-please from package.json on each tag. */
13320
- declare const SDK_VERSION = "0.3.2";
13381
+ declare const SDK_VERSION = "0.3.4";
13321
13382
  /**
13322
13383
  * API version this SDK release is pinned to. Sent on every request as
13323
13384
  * `Transcodely-Version`. Customers can override per-client via the
package/dist/index.d.ts CHANGED
@@ -6600,7 +6600,8 @@ declare enum ThumbnailMode {
6600
6600
  * Free and bundled — animated previews add NO cost to a job (thumbnails are
6601
6601
  * priced at 0). By default the worker produces BOTH an animated WebP and a
6602
6602
  * muted MP4 loop from the same samples, so a consumer can pick whichever its
6603
- * surface supports. Set `format = webp` to emit only the WebP.
6603
+ * surface supports. Set `format = webp` to emit only the WebP, or
6604
+ * `format = mp4` to emit only the MP4 loop.
6604
6605
  *
6605
6606
  * Sampling is deterministic: unless `start_offsets` is set, clips are taken at
6606
6607
  * fixed 25% / 50% / 75% marks of the source duration (no scene detection).
@@ -6642,7 +6643,15 @@ declare enum ThumbnailFormat {
6642
6643
  /**
6643
6644
  * @generated from enum value: THUMBNAIL_FORMAT_WEBP = 3;
6644
6645
  */
6645
- WEBP = 3
6646
+ WEBP = 3,
6647
+ /**
6648
+ * Animated mode only: produce just the muted MP4 loop (no animated WebP).
6649
+ * Rejected on single/interval/sprite/timestamps specs. Unset format on an
6650
+ * animated spec still produces both artifacts.
6651
+ *
6652
+ * @generated from enum value: THUMBNAIL_FORMAT_MP4 = 4;
6653
+ */
6654
+ MP4 = 4
6646
6655
  }
6647
6656
  /**
6648
6657
  * Thumbnail generation specification.
@@ -6750,7 +6759,7 @@ declare class ThumbnailSpec extends Message<ThumbnailSpec> {
6750
6759
  durationSeconds?: number;
6751
6760
  /**
6752
6761
  * Frames per second of the animated preview (animated mode only).
6753
- * Range: 8-15. Default (unset): 12, applied worker-side. Only valid for
6762
+ * Range: 8-30. Default (unset): 12, applied worker-side. Only valid for
6754
6763
  * animated mode.
6755
6764
  *
6756
6765
  * @generated from field: optional int32 fps = 12;
@@ -9174,6 +9183,19 @@ declare class Video extends Message<Video> {
9174
9183
  * @generated from field: optional double encoding_cost = 31;
9175
9184
  */
9176
9185
  encodingCost?: number;
9186
+ /**
9187
+ * Sum of confirmed AI-caption fees, in EUR, across all of this video's jobs
9188
+ * — captions generated inline with the transcode (the auto_captions upload
9189
+ * flag) and retro captions-only jobs that used this video as their input
9190
+ * (input_video_id). Absent until a captions fee is confirmed; fees are
9191
+ * confirmed only when a caption artifact is actually delivered, so voided
9192
+ * and still-estimated fees are never counted. This is a per-feature
9193
+ * breakdown of already-billed job totals, not an extra charge on top of
9194
+ * them.
9195
+ *
9196
+ * @generated from field: optional double captions_cost = 50;
9197
+ */
9198
+ captionsCost?: number;
9177
9199
  /**
9178
9200
  * Timestamps.
9179
9201
  *
@@ -9445,6 +9467,19 @@ declare class CreateUploadRequest extends Message<CreateUploadRequest> {
9445
9467
  * @generated from field: bool hover_previews = 10;
9446
9468
  */
9447
9469
  hoverPreviews: boolean;
9470
+ /**
9471
+ * When true, generate AI captions inline with the transcode: the managed
9472
+ * job's output carries a "generate" subtitle track (language auto-detected,
9473
+ * WebVTT), produced by the same job — and on the same worker — as the
9474
+ * encode, and listed in the video's streaming manifest so players discover
9475
+ * it natively. Billed as the per-source-minute captions fee on that job;
9476
+ * the fee is only charged when a caption track is actually delivered. The
9477
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
9478
+ * captions.
9479
+ *
9480
+ * @generated from field: optional bool auto_captions = 11;
9481
+ */
9482
+ autoCaptions?: boolean;
9448
9483
  constructor(data?: PartialMessage<CreateUploadRequest>);
9449
9484
  static readonly runtime: typeof proto3;
9450
9485
  static readonly typeName = "transcodely.v1.CreateUploadRequest";
@@ -9593,6 +9628,19 @@ declare class CreateFromUrlRequest extends Message<CreateFromUrlRequest> {
9593
9628
  * @generated from field: bool hover_previews = 8;
9594
9629
  */
9595
9630
  hoverPreviews: boolean;
9631
+ /**
9632
+ * When true, generate AI captions inline with the transcode: the managed
9633
+ * job's output carries a "generate" subtitle track (language auto-detected,
9634
+ * WebVTT), produced by the same job — and on the same worker — as the
9635
+ * encode, and listed in the video's streaming manifest so players discover
9636
+ * it natively. Billed as the per-source-minute captions fee on that job;
9637
+ * the fee is only charged when a caption track is actually delivered. The
9638
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
9639
+ * captions.
9640
+ *
9641
+ * @generated from field: optional bool auto_captions = 9;
9642
+ */
9643
+ autoCaptions?: boolean;
9596
9644
  constructor(data?: PartialMessage<CreateFromUrlRequest>);
9597
9645
  static readonly runtime: typeof proto3;
9598
9646
  static readonly typeName = "transcodely.v1.CreateFromUrlRequest";
@@ -9762,6 +9810,19 @@ declare class CreateMultipartUploadRequest extends Message<CreateMultipartUpload
9762
9810
  * @generated from field: bool hover_previews = 15;
9763
9811
  */
9764
9812
  hoverPreviews: boolean;
9813
+ /**
9814
+ * When true, generate AI captions inline with the transcode: the managed
9815
+ * job's output carries a "generate" subtitle track (language auto-detected,
9816
+ * WebVTT), produced by the same job — and on the same worker — as the
9817
+ * encode, and listed in the video's streaming manifest so players discover
9818
+ * it natively. Billed as the per-source-minute captions fee on that job;
9819
+ * the fee is only charged when a caption track is actually delivered. The
9820
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
9821
+ * captions.
9822
+ *
9823
+ * @generated from field: optional bool auto_captions = 16;
9824
+ */
9825
+ autoCaptions?: boolean;
9765
9826
  constructor(data?: PartialMessage<CreateMultipartUploadRequest>);
9766
9827
  static readonly runtime: typeof proto3;
9767
9828
  static readonly typeName = "transcodely.v1.CreateMultipartUploadRequest";
@@ -13317,7 +13378,7 @@ declare class Transcodely {
13317
13378
  }
13318
13379
 
13319
13380
  /** SDK version. Bumped by release-please from package.json on each tag. */
13320
- declare const SDK_VERSION = "0.3.2";
13381
+ declare const SDK_VERSION = "0.3.4";
13321
13382
  /**
13322
13383
  * API version this SDK release is pinned to. Sent on every request as
13323
13384
  * `Transcodely-Version`. Customers can override per-client via the
package/dist/index.mjs CHANGED
@@ -8694,13 +8694,15 @@ var ThumbnailFormat = /* @__PURE__ */ ((ThumbnailFormat2) => {
8694
8694
  ThumbnailFormat2[ThumbnailFormat2["JPEG"] = 1] = "JPEG";
8695
8695
  ThumbnailFormat2[ThumbnailFormat2["PNG"] = 2] = "PNG";
8696
8696
  ThumbnailFormat2[ThumbnailFormat2["WEBP"] = 3] = "WEBP";
8697
+ ThumbnailFormat2[ThumbnailFormat2["MP4"] = 4] = "MP4";
8697
8698
  return ThumbnailFormat2;
8698
8699
  })(ThumbnailFormat || {});
8699
8700
  proto3.util.setEnumType(ThumbnailFormat, "transcodely.v1.ThumbnailFormat", [
8700
8701
  { no: 0, name: "THUMBNAIL_FORMAT_UNSPECIFIED" },
8701
8702
  { no: 1, name: "THUMBNAIL_FORMAT_JPEG" },
8702
8703
  { no: 2, name: "THUMBNAIL_FORMAT_PNG" },
8703
- { no: 3, name: "THUMBNAIL_FORMAT_WEBP" }
8704
+ { no: 3, name: "THUMBNAIL_FORMAT_WEBP" },
8705
+ { no: 4, name: "THUMBNAIL_FORMAT_MP4" }
8704
8706
  ]);
8705
8707
  var ThumbnailSpec = class _ThumbnailSpec extends Message {
8706
8708
  /**
@@ -8802,7 +8804,7 @@ var ThumbnailSpec = class _ThumbnailSpec extends Message {
8802
8804
  durationSeconds;
8803
8805
  /**
8804
8806
  * Frames per second of the animated preview (animated mode only).
8805
- * Range: 8-15. Default (unset): 12, applied worker-side. Only valid for
8807
+ * Range: 8-30. Default (unset): 12, applied worker-side. Only valid for
8806
8808
  * animated mode.
8807
8809
  *
8808
8810
  * @generated from field: optional int32 fps = 12;
@@ -11808,6 +11810,19 @@ var Video = class _Video extends Message {
11808
11810
  * @generated from field: optional double encoding_cost = 31;
11809
11811
  */
11810
11812
  encodingCost;
11813
+ /**
11814
+ * Sum of confirmed AI-caption fees, in EUR, across all of this video's jobs
11815
+ * — captions generated inline with the transcode (the auto_captions upload
11816
+ * flag) and retro captions-only jobs that used this video as their input
11817
+ * (input_video_id). Absent until a captions fee is confirmed; fees are
11818
+ * confirmed only when a caption artifact is actually delivered, so voided
11819
+ * and still-estimated fees are never counted. This is a per-feature
11820
+ * breakdown of already-billed job totals, not an extra charge on top of
11821
+ * them.
11822
+ *
11823
+ * @generated from field: optional double captions_cost = 50;
11824
+ */
11825
+ captionsCost;
11811
11826
  /**
11812
11827
  * Timestamps.
11813
11828
  *
@@ -11921,6 +11936,7 @@ var Video = class _Video extends Message {
11921
11936
  /* ScalarType.INT64 */
11922
11937
  },
11923
11938
  { no: 31, name: "encoding_cost", kind: "scalar", T: 1, opt: true },
11939
+ { no: 50, name: "captions_cost", kind: "scalar", T: 1, opt: true },
11924
11940
  { no: 40, name: "created_at", kind: "message", T: Timestamp },
11925
11941
  { no: 41, name: "updated_at", kind: "message", T: Timestamp },
11926
11942
  { no: 42, name: "ready_at", kind: "message", T: Timestamp, opt: true },
@@ -12278,6 +12294,19 @@ var CreateUploadRequest = class _CreateUploadRequest extends Message {
12278
12294
  * @generated from field: bool hover_previews = 10;
12279
12295
  */
12280
12296
  hoverPreviews = false;
12297
+ /**
12298
+ * When true, generate AI captions inline with the transcode: the managed
12299
+ * job's output carries a "generate" subtitle track (language auto-detected,
12300
+ * WebVTT), produced by the same job — and on the same worker — as the
12301
+ * encode, and listed in the video's streaming manifest so players discover
12302
+ * it natively. Billed as the per-source-minute captions fee on that job;
12303
+ * the fee is only charged when a caption track is actually delivered. The
12304
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
12305
+ * captions.
12306
+ *
12307
+ * @generated from field: optional bool auto_captions = 11;
12308
+ */
12309
+ autoCaptions;
12281
12310
  constructor(data) {
12282
12311
  super();
12283
12312
  proto3.util.initPartial(data, this);
@@ -12324,7 +12353,8 @@ var CreateUploadRequest = class _CreateUploadRequest extends Message {
12324
12353
  kind: "scalar",
12325
12354
  T: 8
12326
12355
  /* ScalarType.BOOL */
12327
- }
12356
+ },
12357
+ { no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true }
12328
12358
  ]);
12329
12359
  static fromBinary(bytes, options) {
12330
12360
  return new _CreateUploadRequest().fromBinary(bytes, options);
@@ -12511,6 +12541,19 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends Message {
12511
12541
  * @generated from field: bool hover_previews = 8;
12512
12542
  */
12513
12543
  hoverPreviews = false;
12544
+ /**
12545
+ * When true, generate AI captions inline with the transcode: the managed
12546
+ * job's output carries a "generate" subtitle track (language auto-detected,
12547
+ * WebVTT), produced by the same job — and on the same worker — as the
12548
+ * encode, and listed in the video's streaming manifest so players discover
12549
+ * it natively. Billed as the per-source-minute captions fee on that job;
12550
+ * the fee is only charged when a caption track is actually delivered. The
12551
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
12552
+ * captions.
12553
+ *
12554
+ * @generated from field: optional bool auto_captions = 9;
12555
+ */
12556
+ autoCaptions;
12514
12557
  constructor(data) {
12515
12558
  super();
12516
12559
  proto3.util.initPartial(data, this);
@@ -12543,7 +12586,8 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends Message {
12543
12586
  kind: "scalar",
12544
12587
  T: 8
12545
12588
  /* ScalarType.BOOL */
12546
- }
12589
+ },
12590
+ { no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true }
12547
12591
  ]);
12548
12592
  static fromBinary(bytes, options) {
12549
12593
  return new _CreateFromUrlRequest().fromBinary(bytes, options);
@@ -12763,6 +12807,19 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends M
12763
12807
  * @generated from field: bool hover_previews = 15;
12764
12808
  */
12765
12809
  hoverPreviews = false;
12810
+ /**
12811
+ * When true, generate AI captions inline with the transcode: the managed
12812
+ * job's output carries a "generate" subtitle track (language auto-detected,
12813
+ * WebVTT), produced by the same job — and on the same worker — as the
12814
+ * encode, and listed in the video's streaming manifest so players discover
12815
+ * it natively. Billed as the per-source-minute captions fee on that job;
12816
+ * the fee is only charged when a caption track is actually delivered. The
12817
+ * track surfaces as Video.text_tracks once ready. Unset or false = no
12818
+ * captions.
12819
+ *
12820
+ * @generated from field: optional bool auto_captions = 16;
12821
+ */
12822
+ autoCaptions;
12766
12823
  constructor(data) {
12767
12824
  super();
12768
12825
  proto3.util.initPartial(data, this);
@@ -12817,7 +12874,8 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends M
12817
12874
  kind: "scalar",
12818
12875
  T: 8
12819
12876
  /* ScalarType.BOOL */
12820
- }
12877
+ },
12878
+ { no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true }
12821
12879
  ]);
12822
12880
  static fromBinary(bytes, options) {
12823
12881
  return new _CreateMultipartUploadRequest().fromBinary(bytes, options);
@@ -14746,7 +14804,7 @@ function backoff(attempt) {
14746
14804
  }
14747
14805
 
14748
14806
  // src/version.ts
14749
- var SDK_VERSION = "0.3.2";
14807
+ var SDK_VERSION = "0.3.4";
14750
14808
  var API_VERSION = "2026-05-03";
14751
14809
  var DEFAULT_BASE_URL = "https://api.transcodely.com";
14752
14810