@transcodely/sdk 0.3.1 → 0.3.3
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 +118 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +139 -21
- package/dist/index.d.ts +139 -21
- package/dist/index.mjs +118 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5880,12 +5880,12 @@ var SubtitleTrack = class _SubtitleTrack extends Message {
|
|
|
5880
5880
|
/**
|
|
5881
5881
|
* Generate an AI chapters track from the transcript this track produces.
|
|
5882
5882
|
*
|
|
5883
|
-
* Only meaningful together with the
|
|
5884
|
-
*
|
|
5883
|
+
* Only meaningful together with the `generate` subtitle operation: when
|
|
5884
|
+
* enabled, an AI pass over the generated transcript produces a chapters
|
|
5885
5885
|
* track delivered as WebVTT plus JSON. Free — no pricing impact. The
|
|
5886
5886
|
* transcript text is processed via the Anthropic API (an external
|
|
5887
|
-
* subprocessor).
|
|
5888
|
-
* rejected at job creation.
|
|
5887
|
+
* subprocessor). Caption generation is available; the auto-chapters pass is
|
|
5888
|
+
* not yet, so setting this is still rejected at job creation.
|
|
5889
5889
|
*
|
|
5890
5890
|
* @generated from field: optional bool generate_chapters = 12;
|
|
5891
5891
|
*/
|
|
@@ -6133,6 +6133,30 @@ var SubtitleResult = class _SubtitleResult extends Message {
|
|
|
6133
6133
|
* @generated from field: string transcript_url = 10;
|
|
6134
6134
|
*/
|
|
6135
6135
|
transcriptUrl = "";
|
|
6136
|
+
/**
|
|
6137
|
+
* Ready-to-fetch HTTPS URL for the caption file, signed and time-limited.
|
|
6138
|
+
*
|
|
6139
|
+
* Points at the same object as url, but as a CDN URL a browser or player can
|
|
6140
|
+
* load — url is a raw storage URI ("s3://…") that no client can fetch.
|
|
6141
|
+
* Present only for jobs writing to Transcodely-managed storage (an
|
|
6142
|
+
* output_origin with provider "transcodely"); jobs writing to your own bucket
|
|
6143
|
+
* get nothing here and should sign url with their own credentials.
|
|
6144
|
+
*
|
|
6145
|
+
* Emitted on single-job reads (Get, Watch) and never on List, and expires —
|
|
6146
|
+
* 6 hours by default — so re-read the job for a fresh one rather than
|
|
6147
|
+
* storing it.
|
|
6148
|
+
*
|
|
6149
|
+
* @generated from field: optional string signed_url = 11;
|
|
6150
|
+
*/
|
|
6151
|
+
signedUrl;
|
|
6152
|
+
/**
|
|
6153
|
+
* Ready-to-fetch HTTPS URL for the segment transcript, signed and
|
|
6154
|
+
* time-limited. Same rules and lifetime as signed_url; set only for generate
|
|
6155
|
+
* tracks, which are the only ones carrying a transcript.
|
|
6156
|
+
*
|
|
6157
|
+
* @generated from field: optional string transcript_signed_url = 12;
|
|
6158
|
+
*/
|
|
6159
|
+
transcriptSignedUrl;
|
|
6136
6160
|
constructor(data) {
|
|
6137
6161
|
super();
|
|
6138
6162
|
proto3.util.initPartial(data, this);
|
|
@@ -6197,7 +6221,9 @@ var SubtitleResult = class _SubtitleResult extends Message {
|
|
|
6197
6221
|
kind: "scalar",
|
|
6198
6222
|
T: 9
|
|
6199
6223
|
/* ScalarType.STRING */
|
|
6200
|
-
}
|
|
6224
|
+
},
|
|
6225
|
+
{ no: 11, name: "signed_url", kind: "scalar", T: 9, opt: true },
|
|
6226
|
+
{ no: 12, name: "transcript_signed_url", kind: "scalar", T: 9, opt: true }
|
|
6201
6227
|
]);
|
|
6202
6228
|
static fromBinary(bytes, options) {
|
|
6203
6229
|
return new _SubtitleResult().fromBinary(bytes, options);
|
|
@@ -6240,35 +6266,41 @@ var BYOKConfig = class _BYOKConfig extends Message {
|
|
|
6240
6266
|
/**
|
|
6241
6267
|
* Key identifier (32 hex characters).
|
|
6242
6268
|
*
|
|
6269
|
+
* The one BYOK field returned on reads. It names which key encrypted an
|
|
6270
|
+
* output — the way an API key's prefix and last-4 name the key — so the
|
|
6271
|
+
* key in use can be confirmed without keeping separate records.
|
|
6272
|
+
*
|
|
6243
6273
|
* @generated from field: string key_id = 1;
|
|
6244
6274
|
*/
|
|
6245
6275
|
keyId = "";
|
|
6246
6276
|
/**
|
|
6247
6277
|
* Content encryption key (32 hex characters).
|
|
6248
6278
|
*
|
|
6279
|
+
* Write-only: encrypted at rest and never returned on any read.
|
|
6280
|
+
*
|
|
6249
6281
|
* @generated from field: string key = 2;
|
|
6250
6282
|
*/
|
|
6251
6283
|
key = "";
|
|
6252
6284
|
/**
|
|
6253
|
-
* Widevine PSSH box (base64-encoded, optional).
|
|
6285
|
+
* Widevine PSSH box (base64-encoded, optional). Write-only.
|
|
6254
6286
|
*
|
|
6255
6287
|
* @generated from field: optional string pssh_widevine = 3;
|
|
6256
6288
|
*/
|
|
6257
6289
|
psshWidevine;
|
|
6258
6290
|
/**
|
|
6259
|
-
* PlayReady PSSH XML (optional).
|
|
6291
|
+
* PlayReady PSSH XML (optional). Write-only.
|
|
6260
6292
|
*
|
|
6261
6293
|
* @generated from field: optional string pssh_playready = 4;
|
|
6262
6294
|
*/
|
|
6263
6295
|
psshPlayready;
|
|
6264
6296
|
/**
|
|
6265
|
-
* FairPlay initialization vector (32 hex characters).
|
|
6297
|
+
* FairPlay initialization vector (32 hex characters). Write-only.
|
|
6266
6298
|
*
|
|
6267
6299
|
* @generated from field: optional string fairplay_iv = 5;
|
|
6268
6300
|
*/
|
|
6269
6301
|
fairplayIv;
|
|
6270
6302
|
/**
|
|
6271
|
-
* FairPlay key server URI (skd:// scheme).
|
|
6303
|
+
* FairPlay key server URI (skd:// scheme). Write-only.
|
|
6272
6304
|
*
|
|
6273
6305
|
* @generated from field: optional string fairplay_uri = 6;
|
|
6274
6306
|
*/
|
|
@@ -6322,6 +6354,9 @@ var KeyServerConfig = class _KeyServerConfig extends Message {
|
|
|
6322
6354
|
/**
|
|
6323
6355
|
* Authentication token for the key server.
|
|
6324
6356
|
*
|
|
6357
|
+
* Write-only: encrypted at rest and never returned on any read. The other
|
|
6358
|
+
* two fields of this message are echoed back normally.
|
|
6359
|
+
*
|
|
6325
6360
|
* @generated from field: optional string auth_token = 2;
|
|
6326
6361
|
*/
|
|
6327
6362
|
authToken;
|
|
@@ -6377,6 +6412,9 @@ var DRMConfig = class _DRMConfig extends Message {
|
|
|
6377
6412
|
/**
|
|
6378
6413
|
* BYOK configuration (mutually exclusive with key_server).
|
|
6379
6414
|
*
|
|
6415
|
+
* On reads this is a partial reveal: present with only key_id populated,
|
|
6416
|
+
* or absent entirely for outputs predating the key id column.
|
|
6417
|
+
*
|
|
6380
6418
|
* @generated from field: optional transcodely.v1.BYOKConfig byok = 3;
|
|
6381
6419
|
*/
|
|
6382
6420
|
byok;
|
|
@@ -8656,13 +8694,15 @@ var ThumbnailFormat = /* @__PURE__ */ ((ThumbnailFormat2) => {
|
|
|
8656
8694
|
ThumbnailFormat2[ThumbnailFormat2["JPEG"] = 1] = "JPEG";
|
|
8657
8695
|
ThumbnailFormat2[ThumbnailFormat2["PNG"] = 2] = "PNG";
|
|
8658
8696
|
ThumbnailFormat2[ThumbnailFormat2["WEBP"] = 3] = "WEBP";
|
|
8697
|
+
ThumbnailFormat2[ThumbnailFormat2["MP4"] = 4] = "MP4";
|
|
8659
8698
|
return ThumbnailFormat2;
|
|
8660
8699
|
})(ThumbnailFormat || {});
|
|
8661
8700
|
proto3.util.setEnumType(ThumbnailFormat, "transcodely.v1.ThumbnailFormat", [
|
|
8662
8701
|
{ no: 0, name: "THUMBNAIL_FORMAT_UNSPECIFIED" },
|
|
8663
8702
|
{ no: 1, name: "THUMBNAIL_FORMAT_JPEG" },
|
|
8664
8703
|
{ no: 2, name: "THUMBNAIL_FORMAT_PNG" },
|
|
8665
|
-
{ no: 3, name: "THUMBNAIL_FORMAT_WEBP" }
|
|
8704
|
+
{ no: 3, name: "THUMBNAIL_FORMAT_WEBP" },
|
|
8705
|
+
{ no: 4, name: "THUMBNAIL_FORMAT_MP4" }
|
|
8666
8706
|
]);
|
|
8667
8707
|
var ThumbnailSpec = class _ThumbnailSpec extends Message {
|
|
8668
8708
|
/**
|
|
@@ -8764,7 +8804,7 @@ var ThumbnailSpec = class _ThumbnailSpec extends Message {
|
|
|
8764
8804
|
durationSeconds;
|
|
8765
8805
|
/**
|
|
8766
8806
|
* Frames per second of the animated preview (animated mode only).
|
|
8767
|
-
* Range: 8-
|
|
8807
|
+
* Range: 8-30. Default (unset): 12, applied worker-side. Only valid for
|
|
8768
8808
|
* animated mode.
|
|
8769
8809
|
*
|
|
8770
8810
|
* @generated from field: optional int32 fps = 12;
|
|
@@ -8862,6 +8902,24 @@ var ThumbnailResult = class _ThumbnailResult extends Message {
|
|
|
8862
8902
|
* @generated from field: int32 index = 7;
|
|
8863
8903
|
*/
|
|
8864
8904
|
index = 0;
|
|
8905
|
+
/**
|
|
8906
|
+
* Ready-to-fetch HTTPS URL for this thumbnail file, signed and time-limited.
|
|
8907
|
+
*
|
|
8908
|
+
* Points at the same object as url, but as a CDN URL a browser can load —
|
|
8909
|
+
* url is a raw storage URI ("s3://…") that no client can fetch. Present only
|
|
8910
|
+
* for jobs writing to Transcodely-managed storage (an output_origin with
|
|
8911
|
+
* provider "transcodely"); jobs writing to your own bucket get nothing here
|
|
8912
|
+
* and should sign url with their own credentials.
|
|
8913
|
+
*
|
|
8914
|
+
* Emitted on single-job reads (Get, Watch) and never on List, and expires —
|
|
8915
|
+
* 6 hours by default — so re-read the job for a fresh one rather than storing
|
|
8916
|
+
* it. The sprite mode's WebVTT sidecar (format "vtt") is signed so that the
|
|
8917
|
+
* sprite image its cues reference relatively inherits the same
|
|
8918
|
+
* authorization.
|
|
8919
|
+
*
|
|
8920
|
+
* @generated from field: optional string signed_url = 8;
|
|
8921
|
+
*/
|
|
8922
|
+
signedUrl;
|
|
8865
8923
|
constructor(data) {
|
|
8866
8924
|
super();
|
|
8867
8925
|
proto3.util.initPartial(data, this);
|
|
@@ -8917,7 +8975,8 @@ var ThumbnailResult = class _ThumbnailResult extends Message {
|
|
|
8917
8975
|
kind: "scalar",
|
|
8918
8976
|
T: 5
|
|
8919
8977
|
/* ScalarType.INT32 */
|
|
8920
|
-
}
|
|
8978
|
+
},
|
|
8979
|
+
{ no: 8, name: "signed_url", kind: "scalar", T: 9, opt: true }
|
|
8921
8980
|
]);
|
|
8922
8981
|
static fromBinary(bytes, options) {
|
|
8923
8982
|
return new _ThumbnailResult().fromBinary(bytes, options);
|
|
@@ -9916,7 +9975,14 @@ var JobOutput = class _JobOutput extends Message {
|
|
|
9916
9975
|
*/
|
|
9917
9976
|
errorCode;
|
|
9918
9977
|
/**
|
|
9919
|
-
*
|
|
9978
|
+
* Human-readable summary of why this output failed, in one or two sentences.
|
|
9979
|
+
*
|
|
9980
|
+
* Derived from error_code, not from the transcoder: this field never carries
|
|
9981
|
+
* raw tool output, command lines, stack traces, or file paths. Where a short
|
|
9982
|
+
* safe detail is available it is appended in parentheses, e.g. "(HTTP 404)".
|
|
9983
|
+
*
|
|
9984
|
+
* Match on error_code, not on this text. The wording is documentation, not
|
|
9985
|
+
* API surface, and may be reworded in any release.
|
|
9920
9986
|
*
|
|
9921
9987
|
* @generated from field: optional string error_message = 13;
|
|
9922
9988
|
*/
|
|
@@ -9995,6 +10061,28 @@ var JobOutput = class _JobOutput extends Message {
|
|
|
9995
10061
|
* @generated from field: repeated transcodely.v1.OutputVariantResult variant_results = 25;
|
|
9996
10062
|
*/
|
|
9997
10063
|
variantResults = [];
|
|
10064
|
+
/**
|
|
10065
|
+
* Ready-to-fetch HTTPS URL for this output, signed and time-limited.
|
|
10066
|
+
*
|
|
10067
|
+
* Points at the same object as output_url — the media file for a progressive
|
|
10068
|
+
* output, the master playlist or MPD for HLS/DASH — but as a CDN URL a
|
|
10069
|
+
* browser or player can load, where output_url is a raw storage URI
|
|
10070
|
+
* ("s3://…") that no client can fetch.
|
|
10071
|
+
*
|
|
10072
|
+
* Present only when the job writes to Transcodely-managed storage (an
|
|
10073
|
+
* output_origin with provider "transcodely") and the output has completed.
|
|
10074
|
+
* Jobs writing to your own bucket get nothing here: we hold no delivery
|
|
10075
|
+
* domain for it, so read output_url and sign it with your own credentials.
|
|
10076
|
+
*
|
|
10077
|
+
* Emitted on single-job reads (Get, Watch) and never on List. The URL expires
|
|
10078
|
+
* — 6 hours by default — so treat it as a fetch handle, not a durable link:
|
|
10079
|
+
* re-read the job for a fresh one rather than storing it. For HLS and DASH it
|
|
10080
|
+
* is signed so that variant playlists and segments referenced by the manifest
|
|
10081
|
+
* inherit the same authorization.
|
|
10082
|
+
*
|
|
10083
|
+
* @generated from field: optional string signed_url = 26;
|
|
10084
|
+
*/
|
|
10085
|
+
signedUrl;
|
|
9998
10086
|
constructor(data) {
|
|
9999
10087
|
super();
|
|
10000
10088
|
proto3.util.initPartial(data, this);
|
|
@@ -10042,7 +10130,8 @@ var JobOutput = class _JobOutput extends Message {
|
|
|
10042
10130
|
{ no: 22, name: "width", kind: "scalar", T: 5, opt: true },
|
|
10043
10131
|
{ no: 23, name: "height", kind: "scalar", T: 5, opt: true },
|
|
10044
10132
|
{ no: 24, name: "average_bitrate_kbps", kind: "scalar", T: 5, opt: true },
|
|
10045
|
-
{ no: 25, name: "variant_results", kind: "message", T: OutputVariantResult, repeated: true }
|
|
10133
|
+
{ no: 25, name: "variant_results", kind: "message", T: OutputVariantResult, repeated: true },
|
|
10134
|
+
{ no: 26, name: "signed_url", kind: "scalar", T: 9, opt: true }
|
|
10046
10135
|
]);
|
|
10047
10136
|
static fromBinary(bytes, options) {
|
|
10048
10137
|
return new _JobOutput().fromBinary(bytes, options);
|
|
@@ -10395,7 +10484,9 @@ var Job = class _Job extends Message {
|
|
|
10395
10484
|
*/
|
|
10396
10485
|
inputMetadata;
|
|
10397
10486
|
/**
|
|
10398
|
-
* Output renditions
|
|
10487
|
+
* Output renditions, in the same order as the create request's `outputs`.
|
|
10488
|
+
* The order is stable across every read of the job, so indexing into this
|
|
10489
|
+
* array to find the rendition you asked for is safe.
|
|
10399
10490
|
*
|
|
10400
10491
|
* @generated from field: repeated transcodely.v1.JobOutput outputs = 7;
|
|
10401
10492
|
*/
|
|
@@ -10433,7 +10524,15 @@ var Job = class _Job extends Message {
|
|
|
10433
10524
|
*/
|
|
10434
10525
|
errorCode;
|
|
10435
10526
|
/**
|
|
10436
|
-
*
|
|
10527
|
+
* Human-readable summary of why the job failed, in one or two sentences.
|
|
10528
|
+
*
|
|
10529
|
+
* Derived from error_code, not from the transcoder: this field never carries
|
|
10530
|
+
* raw tool output, command lines, stack traces, or file paths. Where a short
|
|
10531
|
+
* safe detail is available it is appended in parentheses, e.g. "(HTTP 404)".
|
|
10532
|
+
* The same text reaches you on the job.failed webhook payload.
|
|
10533
|
+
*
|
|
10534
|
+
* Match on error_code, not on this text. The wording is documentation, not
|
|
10535
|
+
* API surface, and may be reworded in any release.
|
|
10437
10536
|
*
|
|
10438
10537
|
* @generated from field: optional string error_message = 11;
|
|
10439
10538
|
*/
|
|
@@ -10602,8 +10701,8 @@ var Job = class _Job extends Message {
|
|
|
10602
10701
|
inputVideoId = "";
|
|
10603
10702
|
/**
|
|
10604
10703
|
* Auto-generated chapter tracks, one per output whose generated caption track
|
|
10605
|
-
* had chapters enabled (SubtitleTrack.generate_chapters).
|
|
10606
|
-
*
|
|
10704
|
+
* had chapters enabled (SubtitleTrack.generate_chapters). Populated once the
|
|
10705
|
+
* auto-chapters pass ships; empty until then.
|
|
10607
10706
|
*
|
|
10608
10707
|
* @generated from field: repeated transcodely.v1.ChapterResult chapter_results = 35;
|
|
10609
10708
|
*/
|
|
@@ -14649,7 +14748,7 @@ function backoff(attempt) {
|
|
|
14649
14748
|
}
|
|
14650
14749
|
|
|
14651
14750
|
// src/version.ts
|
|
14652
|
-
var SDK_VERSION = "0.3.
|
|
14751
|
+
var SDK_VERSION = "0.3.3";
|
|
14653
14752
|
var API_VERSION = "2026-05-03";
|
|
14654
14753
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
14655
14754
|
|