@transcodely/sdk 0.3.11 → 0.3.12
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/README.md +5 -0
- package/dist/index.cjs +57 -5
- 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 +57 -5
- 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.12](https://github.com/transcodely/transcodely-js/compare/v0.3.11...v0.3.12) (2026-10-25)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* auto_insights upload option (api 5.25.0) ([#80](https://github.com/transcodely/transcodely-js/issues/80)) ([fccd526](https://github.com/transcodely/transcodely-js/commit/fccd52644fb83d347be99621ed5de93f40612584))
|
|
13
|
+
|
|
7
14
|
## [0.3.11](https://github.com/transcodely/transcodely-js/compare/v0.3.10...v0.3.11) (2026-10-25)
|
|
8
15
|
|
|
9
16
|
|
package/README.md
CHANGED
|
@@ -64,6 +64,11 @@ comes back already `processing`. Follow it with `client.videos.watch(video.id)`
|
|
|
64
64
|
until it reaches `ready` (or `error`, or `deleted`), or subscribe to the
|
|
65
65
|
`video.ready` webhook.
|
|
66
66
|
|
|
67
|
+
Pass `autoCaptions: true` to generate captions inline with the transcode, and
|
|
68
|
+
add `autoInsights: true` to also run AI insights over those captions (requires
|
|
69
|
+
`autoCaptions`; EUR 0.02 per video + EUR 0.005 per source minute on top of
|
|
70
|
+
captions).
|
|
71
|
+
|
|
67
72
|
**The app does not need managed hosting turned on first.** An app that has never
|
|
68
73
|
hosted anything is provisioned by the create call itself — bucket, managed
|
|
69
74
|
origin and CDN pull zone — which is why a first upload takes a few seconds
|
package/dist/index.cjs
CHANGED
|
@@ -15552,6 +15552,22 @@ var CreateUploadRequest = class _CreateUploadRequest extends protobuf.Message {
|
|
|
15552
15552
|
* @generated from field: optional bool auto_captions = 11;
|
|
15553
15553
|
*/
|
|
15554
15554
|
autoCaptions;
|
|
15555
|
+
/**
|
|
15556
|
+
* When true, also run AI insights over the inline captions: title
|
|
15557
|
+
* suggestions, a summary, key points, chapters, questions the content
|
|
15558
|
+
* answers, key terms, quotable highlights and topics (the generate track
|
|
15559
|
+
* carries insights.enabled = true; see SubtitleTrack.insights). Requires
|
|
15560
|
+
* auto_captions = true; rejected otherwise with `invalid_argument`, error
|
|
15561
|
+
* code `parameter_incompatible` on auto_insights. Billed as the
|
|
15562
|
+
* `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
|
|
15563
|
+
* minute) fees on the transcode job, on top of the captions fee; not
|
|
15564
|
+
* charged when the insights fail. The insights surface as Video.insights.
|
|
15565
|
+
* Deployments without the feature reject it with `invalid_argument`, error
|
|
15566
|
+
* code `parameter_unsupported`. Unset or false = no insights.
|
|
15567
|
+
*
|
|
15568
|
+
* @generated from field: optional bool auto_insights = 12;
|
|
15569
|
+
*/
|
|
15570
|
+
autoInsights;
|
|
15555
15571
|
constructor(data) {
|
|
15556
15572
|
super();
|
|
15557
15573
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -15599,7 +15615,8 @@ var CreateUploadRequest = class _CreateUploadRequest extends protobuf.Message {
|
|
|
15599
15615
|
T: 8
|
|
15600
15616
|
/* ScalarType.BOOL */
|
|
15601
15617
|
},
|
|
15602
|
-
{ no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
15618
|
+
{ no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true },
|
|
15619
|
+
{ no: 12, name: "auto_insights", kind: "scalar", T: 8, opt: true }
|
|
15603
15620
|
]);
|
|
15604
15621
|
static fromBinary(bytes, options) {
|
|
15605
15622
|
return new _CreateUploadRequest().fromBinary(bytes, options);
|
|
@@ -15808,6 +15825,22 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends protobuf.Message
|
|
|
15808
15825
|
* @generated from field: optional bool auto_captions = 9;
|
|
15809
15826
|
*/
|
|
15810
15827
|
autoCaptions;
|
|
15828
|
+
/**
|
|
15829
|
+
* When true, also run AI insights over the inline captions: title
|
|
15830
|
+
* suggestions, a summary, key points, chapters, questions the content
|
|
15831
|
+
* answers, key terms, quotable highlights and topics (the generate track
|
|
15832
|
+
* carries insights.enabled = true; see SubtitleTrack.insights). Requires
|
|
15833
|
+
* auto_captions = true; rejected otherwise with `invalid_argument`, error
|
|
15834
|
+
* code `parameter_incompatible` on auto_insights. Billed as the
|
|
15835
|
+
* `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
|
|
15836
|
+
* minute) fees on the transcode job, on top of the captions fee; not
|
|
15837
|
+
* charged when the insights fail. The insights surface as Video.insights.
|
|
15838
|
+
* Deployments without the feature reject it with `invalid_argument`, error
|
|
15839
|
+
* code `parameter_unsupported`. Unset or false = no insights.
|
|
15840
|
+
*
|
|
15841
|
+
* @generated from field: optional bool auto_insights = 10;
|
|
15842
|
+
*/
|
|
15843
|
+
autoInsights;
|
|
15811
15844
|
constructor(data) {
|
|
15812
15845
|
super();
|
|
15813
15846
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -15841,7 +15874,8 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends protobuf.Message
|
|
|
15841
15874
|
T: 8
|
|
15842
15875
|
/* ScalarType.BOOL */
|
|
15843
15876
|
},
|
|
15844
|
-
{ no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
15877
|
+
{ no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true },
|
|
15878
|
+
{ no: 10, name: "auto_insights", kind: "scalar", T: 8, opt: true }
|
|
15845
15879
|
]);
|
|
15846
15880
|
static fromBinary(bytes, options) {
|
|
15847
15881
|
return new _CreateFromUrlRequest().fromBinary(bytes, options);
|
|
@@ -16083,6 +16117,22 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends p
|
|
|
16083
16117
|
* @generated from field: optional bool auto_captions = 16;
|
|
16084
16118
|
*/
|
|
16085
16119
|
autoCaptions;
|
|
16120
|
+
/**
|
|
16121
|
+
* When true, also run AI insights over the inline captions: title
|
|
16122
|
+
* suggestions, a summary, key points, chapters, questions the content
|
|
16123
|
+
* answers, key terms, quotable highlights and topics (the generate track
|
|
16124
|
+
* carries insights.enabled = true; see SubtitleTrack.insights). Requires
|
|
16125
|
+
* auto_captions = true; rejected otherwise with `invalid_argument`, error
|
|
16126
|
+
* code `parameter_incompatible` on auto_insights. Billed as the
|
|
16127
|
+
* `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
|
|
16128
|
+
* minute) fees on the transcode job, on top of the captions fee; not
|
|
16129
|
+
* charged when the insights fail. The insights surface as Video.insights.
|
|
16130
|
+
* Deployments without the feature reject it with `invalid_argument`, error
|
|
16131
|
+
* code `parameter_unsupported`. Unset or false = no insights.
|
|
16132
|
+
*
|
|
16133
|
+
* @generated from field: optional bool auto_insights = 17;
|
|
16134
|
+
*/
|
|
16135
|
+
autoInsights;
|
|
16086
16136
|
constructor(data) {
|
|
16087
16137
|
super();
|
|
16088
16138
|
protobuf.proto3.util.initPartial(data, this);
|
|
@@ -16138,7 +16188,8 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends p
|
|
|
16138
16188
|
T: 8
|
|
16139
16189
|
/* ScalarType.BOOL */
|
|
16140
16190
|
},
|
|
16141
|
-
{ no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
16191
|
+
{ no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true },
|
|
16192
|
+
{ no: 17, name: "auto_insights", kind: "scalar", T: 8, opt: true }
|
|
16142
16193
|
]);
|
|
16143
16194
|
static fromBinary(bytes, options) {
|
|
16144
16195
|
return new _CreateMultipartUploadRequest().fromBinary(bytes, options);
|
|
@@ -19931,7 +19982,7 @@ function backoff(attempt) {
|
|
|
19931
19982
|
}
|
|
19932
19983
|
|
|
19933
19984
|
// src/version.ts
|
|
19934
|
-
var SDK_VERSION = "0.3.
|
|
19985
|
+
var SDK_VERSION = "0.3.12";
|
|
19935
19986
|
var API_VERSION = "2026-05-03";
|
|
19936
19987
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
19937
19988
|
|
|
@@ -23389,7 +23440,8 @@ var UploadEngine = class {
|
|
|
23389
23440
|
...opts.visibility !== void 0 ? { visibility: opts.visibility } : {},
|
|
23390
23441
|
...opts.preset !== void 0 ? { preset: opts.preset } : {},
|
|
23391
23442
|
...opts.hoverPreviews !== void 0 ? { hoverPreviews: opts.hoverPreviews } : {},
|
|
23392
|
-
...opts.autoCaptions !== void 0 ? { autoCaptions: opts.autoCaptions } : {}
|
|
23443
|
+
...opts.autoCaptions !== void 0 ? { autoCaptions: opts.autoCaptions } : {},
|
|
23444
|
+
...opts.autoInsights !== void 0 ? { autoInsights: opts.autoInsights } : {}
|
|
23393
23445
|
};
|
|
23394
23446
|
return totalParts === 1 ? await this.single(src, opts, meta, report) : await this.multipart(src, opts, meta, partSize, totalParts, report);
|
|
23395
23447
|
}
|