@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/dist/index.d.cts
CHANGED
|
@@ -9183,6 +9183,19 @@ declare class Video extends Message<Video> {
|
|
|
9183
9183
|
* @generated from field: optional double encoding_cost = 31;
|
|
9184
9184
|
*/
|
|
9185
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;
|
|
9186
9199
|
/**
|
|
9187
9200
|
* Timestamps.
|
|
9188
9201
|
*
|
|
@@ -9454,6 +9467,19 @@ declare class CreateUploadRequest extends Message<CreateUploadRequest> {
|
|
|
9454
9467
|
* @generated from field: bool hover_previews = 10;
|
|
9455
9468
|
*/
|
|
9456
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;
|
|
9457
9483
|
constructor(data?: PartialMessage<CreateUploadRequest>);
|
|
9458
9484
|
static readonly runtime: typeof proto3;
|
|
9459
9485
|
static readonly typeName = "transcodely.v1.CreateUploadRequest";
|
|
@@ -9602,6 +9628,19 @@ declare class CreateFromUrlRequest extends Message<CreateFromUrlRequest> {
|
|
|
9602
9628
|
* @generated from field: bool hover_previews = 8;
|
|
9603
9629
|
*/
|
|
9604
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;
|
|
9605
9644
|
constructor(data?: PartialMessage<CreateFromUrlRequest>);
|
|
9606
9645
|
static readonly runtime: typeof proto3;
|
|
9607
9646
|
static readonly typeName = "transcodely.v1.CreateFromUrlRequest";
|
|
@@ -9771,6 +9810,19 @@ declare class CreateMultipartUploadRequest extends Message<CreateMultipartUpload
|
|
|
9771
9810
|
* @generated from field: bool hover_previews = 15;
|
|
9772
9811
|
*/
|
|
9773
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;
|
|
9774
9826
|
constructor(data?: PartialMessage<CreateMultipartUploadRequest>);
|
|
9775
9827
|
static readonly runtime: typeof proto3;
|
|
9776
9828
|
static readonly typeName = "transcodely.v1.CreateMultipartUploadRequest";
|
|
@@ -13326,7 +13378,7 @@ declare class Transcodely {
|
|
|
13326
13378
|
}
|
|
13327
13379
|
|
|
13328
13380
|
/** SDK version. Bumped by release-please from package.json on each tag. */
|
|
13329
|
-
declare const SDK_VERSION = "0.3.
|
|
13381
|
+
declare const SDK_VERSION = "0.3.4";
|
|
13330
13382
|
/**
|
|
13331
13383
|
* API version this SDK release is pinned to. Sent on every request as
|
|
13332
13384
|
* `Transcodely-Version`. Customers can override per-client via the
|
package/dist/index.d.ts
CHANGED
|
@@ -9183,6 +9183,19 @@ declare class Video extends Message<Video> {
|
|
|
9183
9183
|
* @generated from field: optional double encoding_cost = 31;
|
|
9184
9184
|
*/
|
|
9185
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;
|
|
9186
9199
|
/**
|
|
9187
9200
|
* Timestamps.
|
|
9188
9201
|
*
|
|
@@ -9454,6 +9467,19 @@ declare class CreateUploadRequest extends Message<CreateUploadRequest> {
|
|
|
9454
9467
|
* @generated from field: bool hover_previews = 10;
|
|
9455
9468
|
*/
|
|
9456
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;
|
|
9457
9483
|
constructor(data?: PartialMessage<CreateUploadRequest>);
|
|
9458
9484
|
static readonly runtime: typeof proto3;
|
|
9459
9485
|
static readonly typeName = "transcodely.v1.CreateUploadRequest";
|
|
@@ -9602,6 +9628,19 @@ declare class CreateFromUrlRequest extends Message<CreateFromUrlRequest> {
|
|
|
9602
9628
|
* @generated from field: bool hover_previews = 8;
|
|
9603
9629
|
*/
|
|
9604
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;
|
|
9605
9644
|
constructor(data?: PartialMessage<CreateFromUrlRequest>);
|
|
9606
9645
|
static readonly runtime: typeof proto3;
|
|
9607
9646
|
static readonly typeName = "transcodely.v1.CreateFromUrlRequest";
|
|
@@ -9771,6 +9810,19 @@ declare class CreateMultipartUploadRequest extends Message<CreateMultipartUpload
|
|
|
9771
9810
|
* @generated from field: bool hover_previews = 15;
|
|
9772
9811
|
*/
|
|
9773
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;
|
|
9774
9826
|
constructor(data?: PartialMessage<CreateMultipartUploadRequest>);
|
|
9775
9827
|
static readonly runtime: typeof proto3;
|
|
9776
9828
|
static readonly typeName = "transcodely.v1.CreateMultipartUploadRequest";
|
|
@@ -13326,7 +13378,7 @@ declare class Transcodely {
|
|
|
13326
13378
|
}
|
|
13327
13379
|
|
|
13328
13380
|
/** SDK version. Bumped by release-please from package.json on each tag. */
|
|
13329
|
-
declare const SDK_VERSION = "0.3.
|
|
13381
|
+
declare const SDK_VERSION = "0.3.4";
|
|
13330
13382
|
/**
|
|
13331
13383
|
* API version this SDK release is pinned to. Sent on every request as
|
|
13332
13384
|
* `Transcodely-Version`. Customers can override per-client via the
|
package/dist/index.mjs
CHANGED
|
@@ -11810,6 +11810,19 @@ var Video = class _Video extends Message {
|
|
|
11810
11810
|
* @generated from field: optional double encoding_cost = 31;
|
|
11811
11811
|
*/
|
|
11812
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;
|
|
11813
11826
|
/**
|
|
11814
11827
|
* Timestamps.
|
|
11815
11828
|
*
|
|
@@ -11923,6 +11936,7 @@ var Video = class _Video extends Message {
|
|
|
11923
11936
|
/* ScalarType.INT64 */
|
|
11924
11937
|
},
|
|
11925
11938
|
{ no: 31, name: "encoding_cost", kind: "scalar", T: 1, opt: true },
|
|
11939
|
+
{ no: 50, name: "captions_cost", kind: "scalar", T: 1, opt: true },
|
|
11926
11940
|
{ no: 40, name: "created_at", kind: "message", T: Timestamp },
|
|
11927
11941
|
{ no: 41, name: "updated_at", kind: "message", T: Timestamp },
|
|
11928
11942
|
{ no: 42, name: "ready_at", kind: "message", T: Timestamp, opt: true },
|
|
@@ -12280,6 +12294,19 @@ var CreateUploadRequest = class _CreateUploadRequest extends Message {
|
|
|
12280
12294
|
* @generated from field: bool hover_previews = 10;
|
|
12281
12295
|
*/
|
|
12282
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;
|
|
12283
12310
|
constructor(data) {
|
|
12284
12311
|
super();
|
|
12285
12312
|
proto3.util.initPartial(data, this);
|
|
@@ -12326,7 +12353,8 @@ var CreateUploadRequest = class _CreateUploadRequest extends Message {
|
|
|
12326
12353
|
kind: "scalar",
|
|
12327
12354
|
T: 8
|
|
12328
12355
|
/* ScalarType.BOOL */
|
|
12329
|
-
}
|
|
12356
|
+
},
|
|
12357
|
+
{ no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12330
12358
|
]);
|
|
12331
12359
|
static fromBinary(bytes, options) {
|
|
12332
12360
|
return new _CreateUploadRequest().fromBinary(bytes, options);
|
|
@@ -12513,6 +12541,19 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends Message {
|
|
|
12513
12541
|
* @generated from field: bool hover_previews = 8;
|
|
12514
12542
|
*/
|
|
12515
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;
|
|
12516
12557
|
constructor(data) {
|
|
12517
12558
|
super();
|
|
12518
12559
|
proto3.util.initPartial(data, this);
|
|
@@ -12545,7 +12586,8 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends Message {
|
|
|
12545
12586
|
kind: "scalar",
|
|
12546
12587
|
T: 8
|
|
12547
12588
|
/* ScalarType.BOOL */
|
|
12548
|
-
}
|
|
12589
|
+
},
|
|
12590
|
+
{ no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12549
12591
|
]);
|
|
12550
12592
|
static fromBinary(bytes, options) {
|
|
12551
12593
|
return new _CreateFromUrlRequest().fromBinary(bytes, options);
|
|
@@ -12765,6 +12807,19 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends M
|
|
|
12765
12807
|
* @generated from field: bool hover_previews = 15;
|
|
12766
12808
|
*/
|
|
12767
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;
|
|
12768
12823
|
constructor(data) {
|
|
12769
12824
|
super();
|
|
12770
12825
|
proto3.util.initPartial(data, this);
|
|
@@ -12819,7 +12874,8 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends M
|
|
|
12819
12874
|
kind: "scalar",
|
|
12820
12875
|
T: 8
|
|
12821
12876
|
/* ScalarType.BOOL */
|
|
12822
|
-
}
|
|
12877
|
+
},
|
|
12878
|
+
{ no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true }
|
|
12823
12879
|
]);
|
|
12824
12880
|
static fromBinary(bytes, options) {
|
|
12825
12881
|
return new _CreateMultipartUploadRequest().fromBinary(bytes, options);
|
|
@@ -14748,7 +14804,7 @@ function backoff(attempt) {
|
|
|
14748
14804
|
}
|
|
14749
14805
|
|
|
14750
14806
|
// src/version.ts
|
|
14751
|
-
var SDK_VERSION = "0.3.
|
|
14807
|
+
var SDK_VERSION = "0.3.4";
|
|
14752
14808
|
var API_VERSION = "2026-05-03";
|
|
14753
14809
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
14754
14810
|
|