@sanity/client 7.17.0 → 7.18.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.
@@ -6561,6 +6561,9 @@ export declare type VersionAction =
6561
6561
  /** @public */
6562
6562
  export declare interface VideoPlaybackInfo<
6563
6563
  T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
6564
+ R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
6565
+ ? VideoRenditionInfoSigned
6566
+ : VideoRenditionInfo,
6564
6567
  > {
6565
6568
  id: string
6566
6569
  thumbnail: T
@@ -6569,6 +6572,7 @@ export declare interface VideoPlaybackInfo<
6569
6572
  stream: T
6570
6573
  duration: number
6571
6574
  aspectRatio: number
6575
+ renditions?: R[]
6572
6576
  }
6573
6577
 
6574
6578
  /** @public */
@@ -6600,6 +6604,25 @@ export declare interface VideoPlaybackTokens {
6600
6604
  animated?: string
6601
6605
  }
6602
6606
 
6607
+ /** @public */
6608
+ export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
6609
+
6610
+ /** @public */
6611
+ export declare interface VideoRenditionInfoPublic {
6612
+ /** URL to the MP4 rendition (redirects to CDN) */
6613
+ url: string
6614
+ /** Resolution identifier, e.g. "1080p", "480p", "270p" */
6615
+ resolution: '1080p' | '480p' | '270p' | (string & {})
6616
+ }
6617
+
6618
+ /** @public */
6619
+ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
6620
+ /** Authentication token for signed playback */
6621
+ token: string
6622
+ /** Token expiration time in ISO 8601 format */
6623
+ expiresAt: string
6624
+ }
6625
+
6603
6626
  /**
6604
6627
  * Emitted when the listener reconnects and successfully resumes from
6605
6628
  * its previous position.
@@ -6561,6 +6561,9 @@ export declare type VersionAction =
6561
6561
  /** @public */
6562
6562
  export declare interface VideoPlaybackInfo<
6563
6563
  T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
6564
+ R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
6565
+ ? VideoRenditionInfoSigned
6566
+ : VideoRenditionInfo,
6564
6567
  > {
6565
6568
  id: string
6566
6569
  thumbnail: T
@@ -6569,6 +6572,7 @@ export declare interface VideoPlaybackInfo<
6569
6572
  stream: T
6570
6573
  duration: number
6571
6574
  aspectRatio: number
6575
+ renditions?: R[]
6572
6576
  }
6573
6577
 
6574
6578
  /** @public */
@@ -6600,6 +6604,25 @@ export declare interface VideoPlaybackTokens {
6600
6604
  animated?: string
6601
6605
  }
6602
6606
 
6607
+ /** @public */
6608
+ export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
6609
+
6610
+ /** @public */
6611
+ export declare interface VideoRenditionInfoPublic {
6612
+ /** URL to the MP4 rendition (redirects to CDN) */
6613
+ url: string
6614
+ /** Resolution identifier, e.g. "1080p", "480p", "270p" */
6615
+ resolution: '1080p' | '480p' | '270p' | (string & {})
6616
+ }
6617
+
6618
+ /** @public */
6619
+ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
6620
+ /** Authentication token for signed playback */
6621
+ token: string
6622
+ /** Token expiration time in ISO 8601 format */
6623
+ expiresAt: string
6624
+ }
6625
+
6603
6626
  /**
6604
6627
  * Emitted when the listener reconnects and successfully resumes from
6605
6628
  * its previous position.