@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/CHANGELOG.md +14 -0
- package/dist/index.cjs +64 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -4
- package/dist/index.d.ts +65 -4
- package/dist/index.mjs +64 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to the Transcodely JavaScript / TypeScript SDK will be docum
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Breaking changes are allowed on minor bumps until 1.0.0.
|
|
6
6
|
|
|
7
|
+
## [0.3.4](https://github.com/transcodely/transcodely-js/compare/v0.3.3...v0.3.4) (2026-08-02)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **client:** auto_captions on video uploads + captions_cost on Video ([dfaa6c8](https://github.com/transcodely/transcodely-js/commit/dfaa6c876fc236c7c3565ebe1f5140d865e8b00d))
|
|
13
|
+
|
|
14
|
+
## [0.3.3](https://github.com/transcodely/transcodely-js/compare/v0.3.2...v0.3.3) (2026-08-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client:** animated preview fps up to 30 + mp4-only format ([13afa4a](https://github.com/transcodely/transcodely-js/commit/13afa4a1626dc12a742ac820a77510457aa38695))
|
|
20
|
+
|
|
7
21
|
## [0.3.2](https://github.com/transcodely/transcodely-js/compare/v0.3.1...v0.3.2) (2026-08-02)
|
|
8
22
|
|
|
9
23
|
|
package/dist/index.cjs
CHANGED
|
@@ -8696,13 +8696,15 @@ var ThumbnailFormat = /* @__PURE__ */ ((ThumbnailFormat2) => {
|
|
|
8696
8696
|
ThumbnailFormat2[ThumbnailFormat2["JPEG"] = 1] = "JPEG";
|
|
8697
8697
|
ThumbnailFormat2[ThumbnailFormat2["PNG"] = 2] = "PNG";
|
|
8698
8698
|
ThumbnailFormat2[ThumbnailFormat2["WEBP"] = 3] = "WEBP";
|
|
8699
|
+
ThumbnailFormat2[ThumbnailFormat2["MP4"] = 4] = "MP4";
|
|
8699
8700
|
return ThumbnailFormat2;
|
|
8700
8701
|
})(ThumbnailFormat || {});
|
|
8701
8702
|
protobuf.proto3.util.setEnumType(ThumbnailFormat, "transcodely.v1.ThumbnailFormat", [
|
|
8702
8703
|
{ no: 0, name: "THUMBNAIL_FORMAT_UNSPECIFIED" },
|
|
8703
8704
|
{ no: 1, name: "THUMBNAIL_FORMAT_JPEG" },
|
|
8704
8705
|
{ no: 2, name: "THUMBNAIL_FORMAT_PNG" },
|
|
8705
|
-
{ no: 3, name: "THUMBNAIL_FORMAT_WEBP" }
|
|
8706
|
+
{ no: 3, name: "THUMBNAIL_FORMAT_WEBP" },
|
|
8707
|
+
{ no: 4, name: "THUMBNAIL_FORMAT_MP4" }
|
|
8706
8708
|
]);
|
|
8707
8709
|
var ThumbnailSpec = class _ThumbnailSpec extends protobuf.Message {
|
|
8708
8710
|
/**
|
|
@@ -8804,7 +8806,7 @@ var ThumbnailSpec = class _ThumbnailSpec extends protobuf.Message {
|
|
|
8804
8806
|
durationSeconds;
|
|
8805
8807
|
/**
|
|
8806
8808
|
* Frames per second of the animated preview (animated mode only).
|
|
8807
|
-
* Range: 8-
|
|
8809
|
+
* Range: 8-30. Default (unset): 12, applied worker-side. Only valid for
|
|
8808
8810
|
* animated mode.
|
|
8809
8811
|
*
|
|
8810
8812
|
* @generated from field: optional int32 fps = 12;
|
|
@@ -11810,6 +11812,19 @@ var Video = class _Video extends protobuf.Message {
|
|
|
11810
11812
|
* @generated from field: optional double encoding_cost = 31;
|
|
11811
11813
|
*/
|
|
11812
11814
|
encodingCost;
|
|
11815
|
+
/**
|
|
11816
|
+
* Sum of confirmed AI-caption fees, in EUR, across all of this video's jobs
|
|
11817
|
+
* — captions generated inline with the transcode (the auto_captions upload
|
|
11818
|
+
* flag) and retro captions-only jobs that used this video as their input
|
|
11819
|
+
* (input_video_id). Absent until a captions fee is confirmed; fees are
|
|
11820
|
+
* confirmed only when a caption artifact is actually delivered, so voided
|
|
11821
|
+
* and still-estimated fees are never counted. This is a per-feature
|
|
11822
|
+
* breakdown of already-billed job totals, not an extra charge on top of
|
|
11823
|
+
* them.
|
|
11824
|
+
*
|
|
11825
|
+
* @generated from field: optional double captions_cost = 50;
|
|
11826
|
+
*/
|
|
11827
|
+
captionsCost;
|
|
11813
11828
|
/**
|
|
11814
11829
|
* Timestamps.
|
|
11815
11830
|
*
|
|
@@ -11923,6 +11938,7 @@ var Video = class _Video extends protobuf.Message {
|
|
|
11923
11938
|
/* ScalarType.INT64 */
|
|
11924
11939
|
},
|
|
11925
11940
|
{ no: 31, name: "encoding_cost", kind: "scalar", T: 1, opt: true },
|
|
11941
|
+
{ no: 50, name: "captions_cost", kind: "scalar", T: 1, opt: true },
|
|
11926
11942
|
{ no: 40, name: "created_at", kind: "message", T: protobuf.Timestamp },
|
|
11927
11943
|
{ no: 41, name: "updated_at", kind: "message", T: protobuf.Timestamp },
|
|
11928
11944
|
{ no: 42, name: "ready_at", kind: "message", T: protobuf.Timestamp, opt: true },
|
|
@@ -12280,6 +12296,19 @@ var CreateUploadRequest = class _CreateUploadRequest extends protobuf.Message {
|
|
|
12280
12296
|
* @generated from field: bool hover_previews = 10;
|
|
12281
12297
|
*/
|
|
12282
12298
|
hoverPreviews = false;
|
|
12299
|
+
/**
|
|
12300
|
+
* When true, generate AI captions inline with the transcode: the managed
|
|
12301
|
+
* job's output carries a "generate" subtitle track (language auto-detected,
|
|
12302
|
+
* WebVTT), produced by the same job — and on the same worker — as the
|
|
12303
|
+
* encode, and listed in the video's streaming manifest so players discover
|
|
12304
|
+
* it natively. Billed as the per-source-minute captions fee on that job;
|
|
12305
|
+
* the fee is only charged when a caption track is actually delivered. The
|
|
12306
|
+
* track surfaces as Video.text_tracks once ready. Unset or false = no
|
|
12307
|
+
* captions.
|
|
12308
|
+
*
|
|
12309
|
+
* @generated from field: optional bool auto_captions = 11;
|
|
12310
|
+
*/
|
|
12311
|
+
autoCaptions;
|
|
12283
12312
|
constructor(data) {
|
|
12284
12313
|
super();
|
|
12285
12314
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -12326,7 +12355,8 @@ var CreateUploadRequest = class _CreateUploadRequest extends protobuf.Message {
|
|
|
12326
12355
|
kind: "scalar",
|
|
12327
12356
|
T: 8
|
|
12328
12357
|
/* ScalarType.BOOL */
|
|
12329
|
-
}
|
|
12358
|
+
},
|
|
12359
|
+
{ no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12330
12360
|
]);
|
|
12331
12361
|
static fromBinary(bytes, options) {
|
|
12332
12362
|
return new _CreateUploadRequest().fromBinary(bytes, options);
|
|
@@ -12513,6 +12543,19 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends protobuf.Message
|
|
|
12513
12543
|
* @generated from field: bool hover_previews = 8;
|
|
12514
12544
|
*/
|
|
12515
12545
|
hoverPreviews = false;
|
|
12546
|
+
/**
|
|
12547
|
+
* When true, generate AI captions inline with the transcode: the managed
|
|
12548
|
+
* job's output carries a "generate" subtitle track (language auto-detected,
|
|
12549
|
+
* WebVTT), produced by the same job — and on the same worker — as the
|
|
12550
|
+
* encode, and listed in the video's streaming manifest so players discover
|
|
12551
|
+
* it natively. Billed as the per-source-minute captions fee on that job;
|
|
12552
|
+
* the fee is only charged when a caption track is actually delivered. The
|
|
12553
|
+
* track surfaces as Video.text_tracks once ready. Unset or false = no
|
|
12554
|
+
* captions.
|
|
12555
|
+
*
|
|
12556
|
+
* @generated from field: optional bool auto_captions = 9;
|
|
12557
|
+
*/
|
|
12558
|
+
autoCaptions;
|
|
12516
12559
|
constructor(data) {
|
|
12517
12560
|
super();
|
|
12518
12561
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -12545,7 +12588,8 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends protobuf.Message
|
|
|
12545
12588
|
kind: "scalar",
|
|
12546
12589
|
T: 8
|
|
12547
12590
|
/* ScalarType.BOOL */
|
|
12548
|
-
}
|
|
12591
|
+
},
|
|
12592
|
+
{ no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12549
12593
|
]);
|
|
12550
12594
|
static fromBinary(bytes, options) {
|
|
12551
12595
|
return new _CreateFromUrlRequest().fromBinary(bytes, options);
|
|
@@ -12765,6 +12809,19 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends p
|
|
|
12765
12809
|
* @generated from field: bool hover_previews = 15;
|
|
12766
12810
|
*/
|
|
12767
12811
|
hoverPreviews = false;
|
|
12812
|
+
/**
|
|
12813
|
+
* When true, generate AI captions inline with the transcode: the managed
|
|
12814
|
+
* job's output carries a "generate" subtitle track (language auto-detected,
|
|
12815
|
+
* WebVTT), produced by the same job — and on the same worker — as the
|
|
12816
|
+
* encode, and listed in the video's streaming manifest so players discover
|
|
12817
|
+
* it natively. Billed as the per-source-minute captions fee on that job;
|
|
12818
|
+
* the fee is only charged when a caption track is actually delivered. The
|
|
12819
|
+
* track surfaces as Video.text_tracks once ready. Unset or false = no
|
|
12820
|
+
* captions.
|
|
12821
|
+
*
|
|
12822
|
+
* @generated from field: optional bool auto_captions = 16;
|
|
12823
|
+
*/
|
|
12824
|
+
autoCaptions;
|
|
12768
12825
|
constructor(data) {
|
|
12769
12826
|
super();
|
|
12770
12827
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -12819,7 +12876,8 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends p
|
|
|
12819
12876
|
kind: "scalar",
|
|
12820
12877
|
T: 8
|
|
12821
12878
|
/* ScalarType.BOOL */
|
|
12822
|
-
}
|
|
12879
|
+
},
|
|
12880
|
+
{ no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12823
12881
|
]);
|
|
12824
12882
|
static fromBinary(bytes, options) {
|
|
12825
12883
|
return new _CreateMultipartUploadRequest().fromBinary(bytes, options);
|
|
@@ -14748,7 +14806,7 @@ function backoff(attempt) {
|
|
|
14748
14806
|
}
|
|
14749
14807
|
|
|
14750
14808
|
// src/version.ts
|
|
14751
|
-
var SDK_VERSION = "0.3.
|
|
14809
|
+
var SDK_VERSION = "0.3.4";
|
|
14752
14810
|
var API_VERSION = "2026-05-03";
|
|
14753
14811
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
14754
14812
|
|