@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.
package/dist/index.d.cts CHANGED
@@ -6550,6 +6550,9 @@ export declare type VersionAction =
6550
6550
  /** @public */
6551
6551
  export declare interface VideoPlaybackInfo<
6552
6552
  T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
6553
+ R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
6554
+ ? VideoRenditionInfoSigned
6555
+ : VideoRenditionInfo,
6553
6556
  > {
6554
6557
  id: string
6555
6558
  thumbnail: T
@@ -6558,6 +6561,7 @@ export declare interface VideoPlaybackInfo<
6558
6561
  stream: T
6559
6562
  duration: number
6560
6563
  aspectRatio: number
6564
+ renditions?: R[]
6561
6565
  }
6562
6566
 
6563
6567
  /** @public */
@@ -6589,6 +6593,25 @@ export declare interface VideoPlaybackTokens {
6589
6593
  animated?: string
6590
6594
  }
6591
6595
 
6596
+ /** @public */
6597
+ export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
6598
+
6599
+ /** @public */
6600
+ export declare interface VideoRenditionInfoPublic {
6601
+ /** URL to the MP4 rendition (redirects to CDN) */
6602
+ url: string
6603
+ /** Resolution identifier, e.g. "1080p", "480p", "270p" */
6604
+ resolution: '1080p' | '480p' | '270p' | (string & {})
6605
+ }
6606
+
6607
+ /** @public */
6608
+ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
6609
+ /** Authentication token for signed playback */
6610
+ token: string
6611
+ /** Token expiration time in ISO 8601 format */
6612
+ expiresAt: string
6613
+ }
6614
+
6592
6615
  /**
6593
6616
  * Emitted when the listener reconnects and successfully resumes from
6594
6617
  * its previous position.
package/dist/index.d.ts CHANGED
@@ -6550,6 +6550,9 @@ export declare type VersionAction =
6550
6550
  /** @public */
6551
6551
  export declare interface VideoPlaybackInfo<
6552
6552
  T extends VideoPlaybackInfoItem = VideoPlaybackInfoItem,
6553
+ R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
6554
+ ? VideoRenditionInfoSigned
6555
+ : VideoRenditionInfo,
6553
6556
  > {
6554
6557
  id: string
6555
6558
  thumbnail: T
@@ -6558,6 +6561,7 @@ export declare interface VideoPlaybackInfo<
6558
6561
  stream: T
6559
6562
  duration: number
6560
6563
  aspectRatio: number
6564
+ renditions?: R[]
6561
6565
  }
6562
6566
 
6563
6567
  /** @public */
@@ -6589,6 +6593,25 @@ export declare interface VideoPlaybackTokens {
6589
6593
  animated?: string
6590
6594
  }
6591
6595
 
6596
+ /** @public */
6597
+ export declare type VideoRenditionInfo = VideoRenditionInfoPublic | VideoRenditionInfoSigned
6598
+
6599
+ /** @public */
6600
+ export declare interface VideoRenditionInfoPublic {
6601
+ /** URL to the MP4 rendition (redirects to CDN) */
6602
+ url: string
6603
+ /** Resolution identifier, e.g. "1080p", "480p", "270p" */
6604
+ resolution: '1080p' | '480p' | '270p' | (string & {})
6605
+ }
6606
+
6607
+ /** @public */
6608
+ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPublic {
6609
+ /** Authentication token for signed playback */
6610
+ token: string
6611
+ /** Token expiration time in ISO 8601 format */
6612
+ expiresAt: string
6613
+ }
6614
+
6592
6615
  /**
6593
6616
  * Emitted when the listener reconnects and successfully resumes from
6594
6617
  * 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.17.0";
2738
+ var name = "@sanity/client", version = "7.18.0";
2739
2739
  const middleware = [
2740
2740
  debug({ verbose: !0, namespace: "sanity:client" }),
2741
2741
  headers({ "User-Agent": `${name} ${version}` }),