@sanity/client 7.18.0 → 7.19.0

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
@@ -6553,6 +6553,9 @@ export declare interface VideoPlaybackInfo<
6553
6553
  R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
6554
6554
  ? VideoRenditionInfoSigned
6555
6555
  : VideoRenditionInfo,
6556
+ S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
6557
+ ? VideoSubtitleInfoSigned
6558
+ : VideoSubtitleInfo,
6556
6559
  > {
6557
6560
  id: string
6558
6561
  thumbnail: T
@@ -6562,6 +6565,7 @@ export declare interface VideoPlaybackInfo<
6562
6565
  duration: number
6563
6566
  aspectRatio: number
6564
6567
  renditions?: R[]
6568
+ subtitles?: S[]
6565
6569
  }
6566
6570
 
6567
6571
  /** @public */
@@ -6612,6 +6616,29 @@ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPubl
6612
6616
  expiresAt: string
6613
6617
  }
6614
6618
 
6619
+ /** @public */
6620
+ export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
6621
+
6622
+ /** @public */
6623
+ export declare interface VideoSubtitleInfoPublic {
6624
+ /** Subtitle track identifier */
6625
+ trackId: string
6626
+ /** ISO 639-1 language code */
6627
+ languageCode: string
6628
+ /** URL to the subtitle file */
6629
+ url: string
6630
+ /** Whether this track contains closed captions */
6631
+ closedCaptions: boolean
6632
+ }
6633
+
6634
+ /** @public */
6635
+ export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
6636
+ /** Authentication token for signed playback */
6637
+ token: string
6638
+ /** Token expiration time in ISO 8601 format */
6639
+ expiresAt: string
6640
+ }
6641
+
6615
6642
  /**
6616
6643
  * Emitted when the listener reconnects and successfully resumes from
6617
6644
  * its previous position.
package/dist/index.d.ts CHANGED
@@ -6553,6 +6553,9 @@ export declare interface VideoPlaybackInfo<
6553
6553
  R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
6554
6554
  ? VideoRenditionInfoSigned
6555
6555
  : VideoRenditionInfo,
6556
+ S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
6557
+ ? VideoSubtitleInfoSigned
6558
+ : VideoSubtitleInfo,
6556
6559
  > {
6557
6560
  id: string
6558
6561
  thumbnail: T
@@ -6562,6 +6565,7 @@ export declare interface VideoPlaybackInfo<
6562
6565
  duration: number
6563
6566
  aspectRatio: number
6564
6567
  renditions?: R[]
6568
+ subtitles?: S[]
6565
6569
  }
6566
6570
 
6567
6571
  /** @public */
@@ -6612,6 +6616,29 @@ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPubl
6612
6616
  expiresAt: string
6613
6617
  }
6614
6618
 
6619
+ /** @public */
6620
+ export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
6621
+
6622
+ /** @public */
6623
+ export declare interface VideoSubtitleInfoPublic {
6624
+ /** Subtitle track identifier */
6625
+ trackId: string
6626
+ /** ISO 639-1 language code */
6627
+ languageCode: string
6628
+ /** URL to the subtitle file */
6629
+ url: string
6630
+ /** Whether this track contains closed captions */
6631
+ closedCaptions: boolean
6632
+ }
6633
+
6634
+ /** @public */
6635
+ export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
6636
+ /** Authentication token for signed playback */
6637
+ token: string
6638
+ /** Token expiration time in ISO 8601 format */
6639
+ expiresAt: string
6640
+ }
6641
+
6615
6642
  /**
6616
6643
  * Emitted when the listener reconnects and successfully resumes from
6617
6644
  * its previous position.
package/dist/index.js CHANGED
@@ -2735,7 +2735,7 @@ function defineDeprecatedCreateClient(createClient2) {
2735
2735
  return printNoDefaultExport(), createClient2(config);
2736
2736
  };
2737
2737
  }
2738
- var name = "@sanity/client", version = "7.18.0";
2738
+ var name = "@sanity/client", version = "7.19.0";
2739
2739
  const middleware = [
2740
2740
  debug({ verbose: !0, namespace: "sanity:client" }),
2741
2741
  headers({ "User-Agent": `${name} ${version}` }),