@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/dist/index.d.cts CHANGED
@@ -12242,6 +12242,22 @@ declare class CreateUploadRequest extends Message<CreateUploadRequest> {
12242
12242
  * @generated from field: optional bool auto_captions = 11;
12243
12243
  */
12244
12244
  autoCaptions?: boolean;
12245
+ /**
12246
+ * When true, also run AI insights over the inline captions: title
12247
+ * suggestions, a summary, key points, chapters, questions the content
12248
+ * answers, key terms, quotable highlights and topics (the generate track
12249
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
12250
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
12251
+ * code `parameter_incompatible` on auto_insights. Billed as the
12252
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
12253
+ * minute) fees on the transcode job, on top of the captions fee; not
12254
+ * charged when the insights fail. The insights surface as Video.insights.
12255
+ * Deployments without the feature reject it with `invalid_argument`, error
12256
+ * code `parameter_unsupported`. Unset or false = no insights.
12257
+ *
12258
+ * @generated from field: optional bool auto_insights = 12;
12259
+ */
12260
+ autoInsights?: boolean;
12245
12261
  constructor(data?: PartialMessage<CreateUploadRequest>);
12246
12262
  static readonly runtime: typeof proto3;
12247
12263
  static readonly typeName = "transcodely.v1.CreateUploadRequest";
@@ -12420,6 +12436,22 @@ declare class CreateFromUrlRequest extends Message<CreateFromUrlRequest> {
12420
12436
  * @generated from field: optional bool auto_captions = 9;
12421
12437
  */
12422
12438
  autoCaptions?: boolean;
12439
+ /**
12440
+ * When true, also run AI insights over the inline captions: title
12441
+ * suggestions, a summary, key points, chapters, questions the content
12442
+ * answers, key terms, quotable highlights and topics (the generate track
12443
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
12444
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
12445
+ * code `parameter_incompatible` on auto_insights. Billed as the
12446
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
12447
+ * minute) fees on the transcode job, on top of the captions fee; not
12448
+ * charged when the insights fail. The insights surface as Video.insights.
12449
+ * Deployments without the feature reject it with `invalid_argument`, error
12450
+ * code `parameter_unsupported`. Unset or false = no insights.
12451
+ *
12452
+ * @generated from field: optional bool auto_insights = 10;
12453
+ */
12454
+ autoInsights?: boolean;
12423
12455
  constructor(data?: PartialMessage<CreateFromUrlRequest>);
12424
12456
  static readonly runtime: typeof proto3;
12425
12457
  static readonly typeName = "transcodely.v1.CreateFromUrlRequest";
@@ -12619,6 +12651,22 @@ declare class CreateMultipartUploadRequest extends Message<CreateMultipartUpload
12619
12651
  * @generated from field: optional bool auto_captions = 16;
12620
12652
  */
12621
12653
  autoCaptions?: boolean;
12654
+ /**
12655
+ * When true, also run AI insights over the inline captions: title
12656
+ * suggestions, a summary, key points, chapters, questions the content
12657
+ * answers, key terms, quotable highlights and topics (the generate track
12658
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
12659
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
12660
+ * code `parameter_incompatible` on auto_insights. Billed as the
12661
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
12662
+ * minute) fees on the transcode job, on top of the captions fee; not
12663
+ * charged when the insights fail. The insights surface as Video.insights.
12664
+ * Deployments without the feature reject it with `invalid_argument`, error
12665
+ * code `parameter_unsupported`. Unset or false = no insights.
12666
+ *
12667
+ * @generated from field: optional bool auto_insights = 17;
12668
+ */
12669
+ autoInsights?: boolean;
12622
12670
  constructor(data?: PartialMessage<CreateMultipartUploadRequest>);
12623
12671
  static readonly runtime: typeof proto3;
12624
12672
  static readonly typeName = "transcodely.v1.CreateMultipartUploadRequest";
@@ -16856,6 +16904,8 @@ interface PutFileOptions {
16856
16904
  preset?: string;
16857
16905
  hoverPreviews?: boolean;
16858
16906
  autoCaptions?: boolean;
16907
+ /** Also run AI insights over the inline captions (requires autoCaptions). EUR 0.02 per video + EUR 0.005 per source minute on top of captions. */
16908
+ autoInsights?: boolean;
16859
16909
  /** Bytes per part. Clamped up to 5 MiB, and raised further if 10,000 parts would not cover the file. */
16860
16910
  partSize?: number;
16861
16911
  /** Parts in flight at once. Default 4. */
@@ -16893,6 +16943,7 @@ interface UploadRpcClient {
16893
16943
  preset?: string;
16894
16944
  hoverPreviews?: boolean;
16895
16945
  autoCaptions?: boolean;
16946
+ autoInsights?: boolean;
16896
16947
  }): Promise<{
16897
16948
  video?: Video;
16898
16949
  uploadUrl: string;
@@ -16916,6 +16967,7 @@ interface UploadRpcClient {
16916
16967
  preset?: string;
16917
16968
  hoverPreviews?: boolean;
16918
16969
  autoCaptions?: boolean;
16970
+ autoInsights?: boolean;
16919
16971
  }): Promise<{
16920
16972
  video?: Video;
16921
16973
  uploadId: string;
@@ -17642,7 +17694,7 @@ interface SerializeOptions {
17642
17694
  declare function toWireJson<T extends Message<T>>(msg: T, opts?: SerializeOptions): JsonValue;
17643
17695
 
17644
17696
  /** SDK version. Bumped by release-please from package.json on each tag. */
17645
- declare const SDK_VERSION = "0.3.11";
17697
+ declare const SDK_VERSION = "0.3.12";
17646
17698
  /**
17647
17699
  * API version this SDK release is pinned to. Sent on every request as
17648
17700
  * `Transcodely-Version`. Customers can override per-client via the
package/dist/index.d.ts CHANGED
@@ -12242,6 +12242,22 @@ declare class CreateUploadRequest extends Message<CreateUploadRequest> {
12242
12242
  * @generated from field: optional bool auto_captions = 11;
12243
12243
  */
12244
12244
  autoCaptions?: boolean;
12245
+ /**
12246
+ * When true, also run AI insights over the inline captions: title
12247
+ * suggestions, a summary, key points, chapters, questions the content
12248
+ * answers, key terms, quotable highlights and topics (the generate track
12249
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
12250
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
12251
+ * code `parameter_incompatible` on auto_insights. Billed as the
12252
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
12253
+ * minute) fees on the transcode job, on top of the captions fee; not
12254
+ * charged when the insights fail. The insights surface as Video.insights.
12255
+ * Deployments without the feature reject it with `invalid_argument`, error
12256
+ * code `parameter_unsupported`. Unset or false = no insights.
12257
+ *
12258
+ * @generated from field: optional bool auto_insights = 12;
12259
+ */
12260
+ autoInsights?: boolean;
12245
12261
  constructor(data?: PartialMessage<CreateUploadRequest>);
12246
12262
  static readonly runtime: typeof proto3;
12247
12263
  static readonly typeName = "transcodely.v1.CreateUploadRequest";
@@ -12420,6 +12436,22 @@ declare class CreateFromUrlRequest extends Message<CreateFromUrlRequest> {
12420
12436
  * @generated from field: optional bool auto_captions = 9;
12421
12437
  */
12422
12438
  autoCaptions?: boolean;
12439
+ /**
12440
+ * When true, also run AI insights over the inline captions: title
12441
+ * suggestions, a summary, key points, chapters, questions the content
12442
+ * answers, key terms, quotable highlights and topics (the generate track
12443
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
12444
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
12445
+ * code `parameter_incompatible` on auto_insights. Billed as the
12446
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
12447
+ * minute) fees on the transcode job, on top of the captions fee; not
12448
+ * charged when the insights fail. The insights surface as Video.insights.
12449
+ * Deployments without the feature reject it with `invalid_argument`, error
12450
+ * code `parameter_unsupported`. Unset or false = no insights.
12451
+ *
12452
+ * @generated from field: optional bool auto_insights = 10;
12453
+ */
12454
+ autoInsights?: boolean;
12423
12455
  constructor(data?: PartialMessage<CreateFromUrlRequest>);
12424
12456
  static readonly runtime: typeof proto3;
12425
12457
  static readonly typeName = "transcodely.v1.CreateFromUrlRequest";
@@ -12619,6 +12651,22 @@ declare class CreateMultipartUploadRequest extends Message<CreateMultipartUpload
12619
12651
  * @generated from field: optional bool auto_captions = 16;
12620
12652
  */
12621
12653
  autoCaptions?: boolean;
12654
+ /**
12655
+ * When true, also run AI insights over the inline captions: title
12656
+ * suggestions, a summary, key points, chapters, questions the content
12657
+ * answers, key terms, quotable highlights and topics (the generate track
12658
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
12659
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
12660
+ * code `parameter_incompatible` on auto_insights. Billed as the
12661
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
12662
+ * minute) fees on the transcode job, on top of the captions fee; not
12663
+ * charged when the insights fail. The insights surface as Video.insights.
12664
+ * Deployments without the feature reject it with `invalid_argument`, error
12665
+ * code `parameter_unsupported`. Unset or false = no insights.
12666
+ *
12667
+ * @generated from field: optional bool auto_insights = 17;
12668
+ */
12669
+ autoInsights?: boolean;
12622
12670
  constructor(data?: PartialMessage<CreateMultipartUploadRequest>);
12623
12671
  static readonly runtime: typeof proto3;
12624
12672
  static readonly typeName = "transcodely.v1.CreateMultipartUploadRequest";
@@ -16856,6 +16904,8 @@ interface PutFileOptions {
16856
16904
  preset?: string;
16857
16905
  hoverPreviews?: boolean;
16858
16906
  autoCaptions?: boolean;
16907
+ /** Also run AI insights over the inline captions (requires autoCaptions). EUR 0.02 per video + EUR 0.005 per source minute on top of captions. */
16908
+ autoInsights?: boolean;
16859
16909
  /** Bytes per part. Clamped up to 5 MiB, and raised further if 10,000 parts would not cover the file. */
16860
16910
  partSize?: number;
16861
16911
  /** Parts in flight at once. Default 4. */
@@ -16893,6 +16943,7 @@ interface UploadRpcClient {
16893
16943
  preset?: string;
16894
16944
  hoverPreviews?: boolean;
16895
16945
  autoCaptions?: boolean;
16946
+ autoInsights?: boolean;
16896
16947
  }): Promise<{
16897
16948
  video?: Video;
16898
16949
  uploadUrl: string;
@@ -16916,6 +16967,7 @@ interface UploadRpcClient {
16916
16967
  preset?: string;
16917
16968
  hoverPreviews?: boolean;
16918
16969
  autoCaptions?: boolean;
16970
+ autoInsights?: boolean;
16919
16971
  }): Promise<{
16920
16972
  video?: Video;
16921
16973
  uploadId: string;
@@ -17642,7 +17694,7 @@ interface SerializeOptions {
17642
17694
  declare function toWireJson<T extends Message<T>>(msg: T, opts?: SerializeOptions): JsonValue;
17643
17695
 
17644
17696
  /** SDK version. Bumped by release-please from package.json on each tag. */
17645
- declare const SDK_VERSION = "0.3.11";
17697
+ declare const SDK_VERSION = "0.3.12";
17646
17698
  /**
17647
17699
  * API version this SDK release is pinned to. Sent on every request as
17648
17700
  * `Transcodely-Version`. Customers can override per-client via the
package/dist/index.mjs CHANGED
@@ -15550,6 +15550,22 @@ var CreateUploadRequest = class _CreateUploadRequest extends Message {
15550
15550
  * @generated from field: optional bool auto_captions = 11;
15551
15551
  */
15552
15552
  autoCaptions;
15553
+ /**
15554
+ * When true, also run AI insights over the inline captions: title
15555
+ * suggestions, a summary, key points, chapters, questions the content
15556
+ * answers, key terms, quotable highlights and topics (the generate track
15557
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
15558
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
15559
+ * code `parameter_incompatible` on auto_insights. Billed as the
15560
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
15561
+ * minute) fees on the transcode job, on top of the captions fee; not
15562
+ * charged when the insights fail. The insights surface as Video.insights.
15563
+ * Deployments without the feature reject it with `invalid_argument`, error
15564
+ * code `parameter_unsupported`. Unset or false = no insights.
15565
+ *
15566
+ * @generated from field: optional bool auto_insights = 12;
15567
+ */
15568
+ autoInsights;
15553
15569
  constructor(data) {
15554
15570
  super();
15555
15571
  proto3.util.initPartial(data, this);
@@ -15597,7 +15613,8 @@ var CreateUploadRequest = class _CreateUploadRequest extends Message {
15597
15613
  T: 8
15598
15614
  /* ScalarType.BOOL */
15599
15615
  },
15600
- { no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true }
15616
+ { no: 11, name: "auto_captions", kind: "scalar", T: 8, opt: true },
15617
+ { no: 12, name: "auto_insights", kind: "scalar", T: 8, opt: true }
15601
15618
  ]);
15602
15619
  static fromBinary(bytes, options) {
15603
15620
  return new _CreateUploadRequest().fromBinary(bytes, options);
@@ -15806,6 +15823,22 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends Message {
15806
15823
  * @generated from field: optional bool auto_captions = 9;
15807
15824
  */
15808
15825
  autoCaptions;
15826
+ /**
15827
+ * When true, also run AI insights over the inline captions: title
15828
+ * suggestions, a summary, key points, chapters, questions the content
15829
+ * answers, key terms, quotable highlights and topics (the generate track
15830
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
15831
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
15832
+ * code `parameter_incompatible` on auto_insights. Billed as the
15833
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
15834
+ * minute) fees on the transcode job, on top of the captions fee; not
15835
+ * charged when the insights fail. The insights surface as Video.insights.
15836
+ * Deployments without the feature reject it with `invalid_argument`, error
15837
+ * code `parameter_unsupported`. Unset or false = no insights.
15838
+ *
15839
+ * @generated from field: optional bool auto_insights = 10;
15840
+ */
15841
+ autoInsights;
15809
15842
  constructor(data) {
15810
15843
  super();
15811
15844
  proto3.util.initPartial(data, this);
@@ -15839,7 +15872,8 @@ var CreateFromUrlRequest = class _CreateFromUrlRequest extends Message {
15839
15872
  T: 8
15840
15873
  /* ScalarType.BOOL */
15841
15874
  },
15842
- { no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true }
15875
+ { no: 9, name: "auto_captions", kind: "scalar", T: 8, opt: true },
15876
+ { no: 10, name: "auto_insights", kind: "scalar", T: 8, opt: true }
15843
15877
  ]);
15844
15878
  static fromBinary(bytes, options) {
15845
15879
  return new _CreateFromUrlRequest().fromBinary(bytes, options);
@@ -16081,6 +16115,22 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends M
16081
16115
  * @generated from field: optional bool auto_captions = 16;
16082
16116
  */
16083
16117
  autoCaptions;
16118
+ /**
16119
+ * When true, also run AI insights over the inline captions: title
16120
+ * suggestions, a summary, key points, chapters, questions the content
16121
+ * answers, key terms, quotable highlights and topics (the generate track
16122
+ * carries insights.enabled = true; see SubtitleTrack.insights). Requires
16123
+ * auto_captions = true; rejected otherwise with `invalid_argument`, error
16124
+ * code `parameter_incompatible` on auto_insights. Billed as the
16125
+ * `insights_job` (EUR 0.02 per video) and `insights` (EUR 0.005 per source
16126
+ * minute) fees on the transcode job, on top of the captions fee; not
16127
+ * charged when the insights fail. The insights surface as Video.insights.
16128
+ * Deployments without the feature reject it with `invalid_argument`, error
16129
+ * code `parameter_unsupported`. Unset or false = no insights.
16130
+ *
16131
+ * @generated from field: optional bool auto_insights = 17;
16132
+ */
16133
+ autoInsights;
16084
16134
  constructor(data) {
16085
16135
  super();
16086
16136
  proto3.util.initPartial(data, this);
@@ -16136,7 +16186,8 @@ var CreateMultipartUploadRequest = class _CreateMultipartUploadRequest extends M
16136
16186
  T: 8
16137
16187
  /* ScalarType.BOOL */
16138
16188
  },
16139
- { no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true }
16189
+ { no: 16, name: "auto_captions", kind: "scalar", T: 8, opt: true },
16190
+ { no: 17, name: "auto_insights", kind: "scalar", T: 8, opt: true }
16140
16191
  ]);
16141
16192
  static fromBinary(bytes, options) {
16142
16193
  return new _CreateMultipartUploadRequest().fromBinary(bytes, options);
@@ -19929,7 +19980,7 @@ function backoff(attempt) {
19929
19980
  }
19930
19981
 
19931
19982
  // src/version.ts
19932
- var SDK_VERSION = "0.3.11";
19983
+ var SDK_VERSION = "0.3.12";
19933
19984
  var API_VERSION = "2026-05-03";
19934
19985
  var DEFAULT_BASE_URL = "https://api.transcodely.com";
19935
19986
 
@@ -23387,7 +23438,8 @@ var UploadEngine = class {
23387
23438
  ...opts.visibility !== void 0 ? { visibility: opts.visibility } : {},
23388
23439
  ...opts.preset !== void 0 ? { preset: opts.preset } : {},
23389
23440
  ...opts.hoverPreviews !== void 0 ? { hoverPreviews: opts.hoverPreviews } : {},
23390
- ...opts.autoCaptions !== void 0 ? { autoCaptions: opts.autoCaptions } : {}
23441
+ ...opts.autoCaptions !== void 0 ? { autoCaptions: opts.autoCaptions } : {},
23442
+ ...opts.autoInsights !== void 0 ? { autoInsights: opts.autoInsights } : {}
23391
23443
  };
23392
23444
  return totalParts === 1 ? await this.single(src, opts, meta, report) : await this.multipart(src, opts, meta, partSize, totalParts, report);
23393
23445
  }