sanity-plugin-mux-input 2.13.0 → 2.14.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.mts CHANGED
@@ -220,7 +220,28 @@ declare interface MuxPlaybackId {
220
220
  policy: PlaybackPolicy
221
221
  }
222
222
 
223
- declare type MuxTrack = MuxVideoTrack | MuxAudioTrack
223
+ declare interface MuxTextTrack {
224
+ type: 'text'
225
+ id: string
226
+ text_type?: 'subtitles'
227
+ text_source?:
228
+ | 'uploaded'
229
+ | 'embedded'
230
+ | 'generated_live'
231
+ | 'generated_live_final'
232
+ | 'generated_vod'
233
+ language_code?: 'en' | 'en-US' | string
234
+ name?: 'English' | string
235
+ closed_captions?: boolean
236
+ passthrough?: string
237
+ status: 'preparing' | 'ready' | 'errored'
238
+ error?: {
239
+ type: string
240
+ messages?: string[]
241
+ }
242
+ }
243
+
244
+ declare type MuxTrack = MuxVideoTrack | MuxAudioTrack | MuxTextTrack
224
245
 
225
246
  declare interface MuxVideoTrack {
226
247
  type: 'video'
package/dist/index.d.ts CHANGED
@@ -220,7 +220,28 @@ declare interface MuxPlaybackId {
220
220
  policy: PlaybackPolicy
221
221
  }
222
222
 
223
- declare type MuxTrack = MuxVideoTrack | MuxAudioTrack
223
+ declare interface MuxTextTrack {
224
+ type: 'text'
225
+ id: string
226
+ text_type?: 'subtitles'
227
+ text_source?:
228
+ | 'uploaded'
229
+ | 'embedded'
230
+ | 'generated_live'
231
+ | 'generated_live_final'
232
+ | 'generated_vod'
233
+ language_code?: 'en' | 'en-US' | string
234
+ name?: 'English' | string
235
+ closed_captions?: boolean
236
+ passthrough?: string
237
+ status: 'preparing' | 'ready' | 'errored'
238
+ error?: {
239
+ type: string
240
+ messages?: string[]
241
+ }
242
+ }
243
+
244
+ declare type MuxTrack = MuxVideoTrack | MuxAudioTrack | MuxTextTrack
224
245
 
225
246
  declare interface MuxVideoTrack {
226
247
  type: 'video'