@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.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +27 -0
- package/dist/index.browser.d.ts +27 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/media-library.cjs.map +1 -1
- package/dist/media-library.d.cts +27 -0
- package/dist/media-library.d.ts +27 -0
- package/dist/media-library.js.map +1 -1
- package/dist/stega.browser.d.cts +27 -0
- package/dist/stega.browser.d.ts +27 -0
- package/dist/stega.d.cts +27 -0
- package/dist/stega.d.ts +27 -0
- package/package.json +1 -1
- package/src/media-library.ts +1 -0
- package/src/types.ts +27 -0
package/dist/index.browser.d.cts
CHANGED
|
@@ -6564,6 +6564,9 @@ export declare interface VideoPlaybackInfo<
|
|
|
6564
6564
|
R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
|
|
6565
6565
|
? VideoRenditionInfoSigned
|
|
6566
6566
|
: VideoRenditionInfo,
|
|
6567
|
+
S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
|
|
6568
|
+
? VideoSubtitleInfoSigned
|
|
6569
|
+
: VideoSubtitleInfo,
|
|
6567
6570
|
> {
|
|
6568
6571
|
id: string
|
|
6569
6572
|
thumbnail: T
|
|
@@ -6573,6 +6576,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6573
6576
|
duration: number
|
|
6574
6577
|
aspectRatio: number
|
|
6575
6578
|
renditions?: R[]
|
|
6579
|
+
subtitles?: S[]
|
|
6576
6580
|
}
|
|
6577
6581
|
|
|
6578
6582
|
/** @public */
|
|
@@ -6623,6 +6627,29 @@ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPubl
|
|
|
6623
6627
|
expiresAt: string
|
|
6624
6628
|
}
|
|
6625
6629
|
|
|
6630
|
+
/** @public */
|
|
6631
|
+
export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
|
|
6632
|
+
|
|
6633
|
+
/** @public */
|
|
6634
|
+
export declare interface VideoSubtitleInfoPublic {
|
|
6635
|
+
/** Subtitle track identifier */
|
|
6636
|
+
trackId: string
|
|
6637
|
+
/** ISO 639-1 language code */
|
|
6638
|
+
languageCode: string
|
|
6639
|
+
/** URL to the subtitle file */
|
|
6640
|
+
url: string
|
|
6641
|
+
/** Whether this track contains closed captions */
|
|
6642
|
+
closedCaptions: boolean
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
/** @public */
|
|
6646
|
+
export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
|
|
6647
|
+
/** Authentication token for signed playback */
|
|
6648
|
+
token: string
|
|
6649
|
+
/** Token expiration time in ISO 8601 format */
|
|
6650
|
+
expiresAt: string
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6626
6653
|
/**
|
|
6627
6654
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6628
6655
|
* its previous position.
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -6564,6 +6564,9 @@ export declare interface VideoPlaybackInfo<
|
|
|
6564
6564
|
R extends VideoRenditionInfo = T extends VideoPlaybackInfoItemSigned
|
|
6565
6565
|
? VideoRenditionInfoSigned
|
|
6566
6566
|
: VideoRenditionInfo,
|
|
6567
|
+
S extends VideoSubtitleInfo = T extends VideoPlaybackInfoItemSigned
|
|
6568
|
+
? VideoSubtitleInfoSigned
|
|
6569
|
+
: VideoSubtitleInfo,
|
|
6567
6570
|
> {
|
|
6568
6571
|
id: string
|
|
6569
6572
|
thumbnail: T
|
|
@@ -6573,6 +6576,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6573
6576
|
duration: number
|
|
6574
6577
|
aspectRatio: number
|
|
6575
6578
|
renditions?: R[]
|
|
6579
|
+
subtitles?: S[]
|
|
6576
6580
|
}
|
|
6577
6581
|
|
|
6578
6582
|
/** @public */
|
|
@@ -6623,6 +6627,29 @@ export declare interface VideoRenditionInfoSigned extends VideoRenditionInfoPubl
|
|
|
6623
6627
|
expiresAt: string
|
|
6624
6628
|
}
|
|
6625
6629
|
|
|
6630
|
+
/** @public */
|
|
6631
|
+
export declare type VideoSubtitleInfo = VideoSubtitleInfoPublic | VideoSubtitleInfoSigned
|
|
6632
|
+
|
|
6633
|
+
/** @public */
|
|
6634
|
+
export declare interface VideoSubtitleInfoPublic {
|
|
6635
|
+
/** Subtitle track identifier */
|
|
6636
|
+
trackId: string
|
|
6637
|
+
/** ISO 639-1 language code */
|
|
6638
|
+
languageCode: string
|
|
6639
|
+
/** URL to the subtitle file */
|
|
6640
|
+
url: string
|
|
6641
|
+
/** Whether this track contains closed captions */
|
|
6642
|
+
closedCaptions: boolean
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
/** @public */
|
|
6646
|
+
export declare interface VideoSubtitleInfoSigned extends VideoSubtitleInfoPublic {
|
|
6647
|
+
/** Authentication token for signed playback */
|
|
6648
|
+
token: string
|
|
6649
|
+
/** Token expiration time in ISO 8601 format */
|
|
6650
|
+
expiresAt: string
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6626
6653
|
/**
|
|
6627
6654
|
* Emitted when the listener reconnects and successfully resumes from
|
|
6628
6655
|
* its previous position.
|