@transcodely/sdk 0.3.3 → 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 +7 -0
- package/dist/index.cjs +60 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.mjs +60 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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
|
+
|
|
7
14
|
## [0.3.3](https://github.com/transcodely/transcodely-js/compare/v0.3.2...v0.3.3) (2026-08-02)
|
|
8
15
|
|
|
9
16
|
|
package/dist/index.cjs
CHANGED
|
@@ -11812,6 +11812,19 @@ var Video = class _Video extends protobuf.Message {
|
|
|
11812
11812
|
* @generated from field: optional double encoding_cost = 31;
|
|
11813
11813
|
*/
|
|
11814
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;
|
|
11815
11828
|
/**
|
|
11816
11829
|
* Timestamps.
|
|
11817
11830
|
*
|
|
@@ -11925,6 +11938,7 @@ var Video = class _Video extends protobuf.Message {
|
|
|
11925
11938
|
/* ScalarType.INT64 */
|
|
11926
11939
|
},
|
|
11927
11940
|
{ no: 31, name: "encoding_cost", kind: "scalar", T: 1, opt: true },
|
|
11941
|
+
{ no: 50, name: "captions_cost", kind: "scalar", T: 1, opt: true },
|
|
11928
11942
|
{ no: 40, name: "created_at", kind: "message", T: protobuf.Timestamp },
|
|
11929
11943
|
{ no: 41, name: "updated_at", kind: "message", T: protobuf.Timestamp },
|
|
11930
11944
|
{ no: 42, name: "ready_at", kind: "message", T: protobuf.Timestamp, opt: true },
|
|
@@ -12282,6 +12296,19 @@ var CreateUploadRequest = class _CreateUploadRequest extends protobuf.Message {
|
|
|
12282
12296
|
* @generated from field: bool hover_previews = 10;
|
|
12283
12297
|
*/
|
|
12284
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;
|
|
12285
12312
|
constructor(data) {
|
|
12286
12313
|
super();
|
|
12287
12314
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -12328,7 +12355,8 @@ var CreateUploadRequest = class _CreateUploadRequest extends protobuf.Message {
|
|
|
12328
12355
|
kind: "scalar",
|
|
12329
12356
|
T: 8
|
|
12330
12357
|
/* ScalarType.BOOL */
|
|
12331
|
-
}
|
|
12358
|
+
},
|
|
12359
|
+
{ no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12332
12360
|
]);
|
|
12333
12361
|
static fromBinary(bytes, options) {
|
|
12334
12362
|
return new _CreateUploadRequest().fromBinary(bytes, options);
|
|
@@ -12515,6 +12543,19 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends protobuf.Message
|
|
|
12515
12543
|
* @generated from field: bool hover_previews = 8;
|
|
12516
12544
|
*/
|
|
12517
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;
|
|
12518
12559
|
constructor(data) {
|
|
12519
12560
|
super();
|
|
12520
12561
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -12547,7 +12588,8 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends protobuf.Message
|
|
|
12547
12588
|
kind: "scalar",
|
|
12548
12589
|
T: 8
|
|
12549
12590
|
/* ScalarType.BOOL */
|
|
12550
|
-
}
|
|
12591
|
+
},
|
|
12592
|
+
{ no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12551
12593
|
]);
|
|
12552
12594
|
static fromBinary(bytes, options) {
|
|
12553
12595
|
return new _CreateFromUrlRequest().fromBinary(bytes, options);
|
|
@@ -12767,6 +12809,19 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends p
|
|
|
12767
12809
|
* @generated from field: bool hover_previews = 15;
|
|
12768
12810
|
*/
|
|
12769
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;
|
|
12770
12825
|
constructor(data) {
|
|
12771
12826
|
super();
|
|
12772
12827
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -12821,7 +12876,8 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends p
|
|
|
12821
12876
|
kind: "scalar",
|
|
12822
12877
|
T: 8
|
|
12823
12878
|
/* ScalarType.BOOL */
|
|
12824
|
-
}
|
|
12879
|
+
},
|
|
12880
|
+
{ no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12825
12881
|
]);
|
|
12826
12882
|
static fromBinary(bytes, options) {
|
|
12827
12883
|
return new _CreateMultipartUploadRequest().fromBinary(bytes, options);
|
|
@@ -14750,7 +14806,7 @@ function backoff(attempt) {
|
|
|
14750
14806
|
}
|
|
14751
14807
|
|
|
14752
14808
|
// src/version.ts
|
|
14753
|
-
var SDK_VERSION = "0.3.
|
|
14809
|
+
var SDK_VERSION = "0.3.4";
|
|
14754
14810
|
var API_VERSION = "2026-05-03";
|
|
14755
14811
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
14756
14812
|
|