@distilled.cloud/mux 0.0.0-stage → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +126 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +66 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +45 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +44 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +11 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/data.d.ts +1347 -0
- package/lib/services/data.d.ts.map +1 -0
- package/lib/services/data.js +58 -0
- package/lib/services/data.js.map +1 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +4 -0
- package/lib/services/robots.d.ts +2206 -0
- package/lib/services/robots.d.ts.map +1 -0
- package/lib/services/robots.js +75 -0
- package/lib/services/robots.js.map +1 -0
- package/lib/services/system.d.ts +263 -0
- package/lib/services/system.d.ts.map +1 -0
- package/lib/services/system.js +2 -0
- package/lib/services/system.js.map +1 -0
- package/lib/services/video.d.ts +1564 -0
- package/lib/services/video.d.ts.map +1 -0
- package/lib/services/video.js +100 -0
- package/lib/services/video.js.map +1 -0
- package/lib/services.lazy/data.js +3 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/robots.js +4 -0
- package/lib/services.lazy/system.js +1 -0
- package/lib/services.lazy/video.js +4 -0
- package/lib/traits.d.ts +7 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +87 -3
- package/src/credentials.ts +142 -0
- package/src/errors.ts +59 -0
- package/src/index.ts +43 -0
- package/src/pagination.ts +63 -0
- package/src/protocol.ts +62 -0
- package/src/retry.ts +73 -0
- package/src/services/data.ts +3993 -0
- package/src/services/index.ts +5 -0
- package/src/services/robots.ts +4712 -0
- package/src/services/system.ts +752 -0
- package/src/services/video.ts +4291 -0
- package/src/traits.ts +40 -0
|
@@ -0,0 +1,1564 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
|
+
import { type MuxOpError, type MuxOpContext } from "../protocol.ts";
|
|
5
|
+
export type { MuxOpError, MuxOpContext };
|
|
6
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
7
|
+
readonly code: any;
|
|
8
|
+
readonly message: any;
|
|
9
|
+
readonly body: any;
|
|
10
|
+
readonly headers: any;
|
|
11
|
+
}> & (new (...args: any[]) => {
|
|
12
|
+
"@distilled.cloud/error/categories": {
|
|
13
|
+
AuthError: true;
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
17
|
+
}
|
|
18
|
+
export interface CancelDirectUploadRequest {
|
|
19
|
+
/** ID of the Upload */
|
|
20
|
+
UPLOAD_ID: string;
|
|
21
|
+
}
|
|
22
|
+
export type UploadStatus = "waiting" | "asset_created" | "errored" | "cancelled" | "timed_out";
|
|
23
|
+
/** Where the vertical positioning of the overlay/watermark should begin from. Defaults to `"top"` */
|
|
24
|
+
export type InputSettingsOverlaySettingsVerticalAlign = "top" | "middle" | "bottom";
|
|
25
|
+
/** Where the horizontal positioning of the overlay/watermark should begin from. */
|
|
26
|
+
export type InputSettingsOverlaySettingsHorizontalAlign = "left" | "center" | "right";
|
|
27
|
+
/** An object that describes how the image file referenced in URL should be placed over the video (i.e. watermarking). Ensure that the URL is active and persists the entire lifespan of the video object. */
|
|
28
|
+
export interface InputSettingsOverlaySettings {
|
|
29
|
+
/** Where the vertical positioning of the overlay/watermark should begin from. Defaults to `"top"` */
|
|
30
|
+
vertical_align?: InputSettingsOverlaySettingsVerticalAlign | (string & {}) | undefined;
|
|
31
|
+
/** The distance from the vertical_align starting point and the image's closest edge. Can be expressed as a percent ("10%") or as a pixel value ("100px"). Negative values will move the overlay offscreen. In the case of 'middle', a positive value will shift the overlay towards the bottom and and a negative value will shift it towards the top. */
|
|
32
|
+
vertical_margin?: string | undefined;
|
|
33
|
+
/** Where the horizontal positioning of the overlay/watermark should begin from. */
|
|
34
|
+
horizontal_align?: InputSettingsOverlaySettingsHorizontalAlign | (string & {}) | undefined;
|
|
35
|
+
/** The distance from the horizontal_align starting point and the image's closest edge. Can be expressed as a percent ("10%") or as a pixel value ("100px"). Negative values will move the overlay offscreen. In the case of 'center', a positive value will shift the image towards the right and and a negative value will shift it towards the left. */
|
|
36
|
+
horizontal_margin?: string | undefined;
|
|
37
|
+
/** How wide the overlay should appear. Can be expressed as a percent ("10%") or as a pixel value ("100px"). If both width and height are left blank the width will be the true pixels of the image, applied as if the video has been scaled to fit a 1920x1080 frame. If height is supplied with no width, the width will scale proportionally to the height. */
|
|
38
|
+
width?: string | undefined;
|
|
39
|
+
/** How tall the overlay should appear. Can be expressed as a percent ("10%") or as a pixel value ("100px"). If both width and height are left blank the height will be the true pixels of the image, applied as if the video has been scaled to fit a 1920x1080 frame. If width is supplied with no height, the height will scale proportionally to the width. */
|
|
40
|
+
height?: string | undefined;
|
|
41
|
+
/** How opaque the overlay should appear, expressed as a percent. (Default 100%) */
|
|
42
|
+
opacity?: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/** The language of the audio from which subtitles are generated. Selecting a language of "auto" will allow language detection to set the language code automatically. */
|
|
45
|
+
export type AssetGeneratedSubtitleSettingsLanguageCode = "en" | "es" | "it" | "pt" | "de" | "fr" | "pl" | "ru" | "nl" | "ca" | "tr" | "sv" | "uk" | "no" | "fi" | "sk" | "el" | "cs" | "hr" | "da" | "ro" | "bg" | "auto";
|
|
46
|
+
export interface AssetGeneratedSubtitleSettings {
|
|
47
|
+
/** A name for this subtitle track. */
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
/** Arbitrary metadata set for the subtitle track. Max 255 characters. */
|
|
50
|
+
passthrough?: string | undefined;
|
|
51
|
+
/** The language of the audio from which subtitles are generated. Selecting a language of "auto" will allow language detection to set the language code automatically. */
|
|
52
|
+
language_code?: AssetGeneratedSubtitleSettingsLanguageCode | (string & {}) | undefined;
|
|
53
|
+
}
|
|
54
|
+
/** Generate subtitle tracks using automatic speech recognition with this configuration. Subtitles are generated using the audio of the input they are nested within. For direct uploads, this first input should omit the url parameter, as the main input file is provided via the direct upload. Note that subtitle generation happens after initial ingest, so the generated tracks will be in the `preparing` state when the asset transitions to `ready`. */
|
|
55
|
+
export type InputSettingsGeneratedSubtitlesList = Array<AssetGeneratedSubtitleSettings>;
|
|
56
|
+
/** This parameter is required for `text` type tracks. */
|
|
57
|
+
export type InputSettingsType = "video" | "audio" | "text";
|
|
58
|
+
/** Type of text track. Use `subtitles` for subtitles and closed captions, or `chapters` for a chapters track. For more information on Subtitles / Closed Captions, [see this blog post](https://mux.com/blog/subtitles-captions-webvtt-hls-and-those-magic-flags/). This parameter is required for `text` type tracks. */
|
|
59
|
+
export type InputSettingsTextType = "subtitles" | "chapters";
|
|
60
|
+
/** An array of objects that each describe an input file to be used to create the asset. As a shortcut, `input` can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. */
|
|
61
|
+
export interface InputSettings {
|
|
62
|
+
/** The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. The maximum size is 4096x4096. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. */
|
|
63
|
+
url?: string | undefined;
|
|
64
|
+
/** An object that describes how the image file referenced in URL should be placed over the video (i.e. watermarking). Ensure that the URL is active and persists the entire lifespan of the video object. */
|
|
65
|
+
overlay_settings?: InputSettingsOverlaySettings | undefined;
|
|
66
|
+
/** Generate subtitle tracks using automatic speech recognition with this configuration. Subtitles are generated using the audio of the input they are nested within. For direct uploads, this first input should omit the url parameter, as the main input file is provided via the direct upload. Note that subtitle generation happens after initial ingest, so the generated tracks will be in the `preparing` state when the asset transitions to `ready`. */
|
|
67
|
+
generated_subtitles?: InputSettingsGeneratedSubtitlesList | undefined;
|
|
68
|
+
/** The time offset in seconds from the beginning of the video indicating the clip's starting marker. The default value is 0 when not included. This parameter is only applicable for creating clips when `input.url` has `mux://assets/{asset_id}` format. */
|
|
69
|
+
start_time?: number | undefined;
|
|
70
|
+
/** The time offset in seconds from the beginning of the video, indicating the clip's ending marker. The default value is the duration of the video when not included. This parameter is only applicable for creating clips when `input.url` has `mux://assets/{asset_id}` format. */
|
|
71
|
+
end_time?: number | undefined;
|
|
72
|
+
/** This parameter is required for `text` type tracks. */
|
|
73
|
+
type?: InputSettingsType | (string & {}) | undefined;
|
|
74
|
+
/** Type of text track. Use `subtitles` for subtitles and closed captions, or `chapters` for a chapters track. For more information on Subtitles / Closed Captions, [see this blog post](https://mux.com/blog/subtitles-captions-webvtt-hls-and-those-magic-flags/). This parameter is required for `text` type tracks. */
|
|
75
|
+
text_type?: InputSettingsTextType | (string & {}) | undefined;
|
|
76
|
+
/** The language code value must be a valid [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, `en` for English or `en-US` for the US version of English. This parameter is required for `text` and `audio` track types. */
|
|
77
|
+
language_code?: string | undefined;
|
|
78
|
+
/** The name of the track containing a human-readable description. This value must be unique within each group of `text` or `audio` track types. The HLS manifest will associate a subtitle text track with this value. For example, the value should be "English" for a subtitle text track with `language_code` set to `en`. This optional parameter should be used only for `text` and `audio` type tracks. This parameter can be optionally provided for the first video input to denote the name of the muxed audio track if present. If this parameter is not included, Mux will auto-populate based on the `input[].language_code` value. */
|
|
79
|
+
name?: string | undefined;
|
|
80
|
+
/** Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This optional parameter should be used for tracks with `type` of `text` and `text_type` set to `subtitles`. */
|
|
81
|
+
closed_captions?: boolean | undefined;
|
|
82
|
+
/** This optional parameter should be used for tracks with `type` of `text` and `text_type` set to `subtitles`. */
|
|
83
|
+
passthrough?: string | undefined;
|
|
84
|
+
}
|
|
85
|
+
/** Deprecated. Use `inputs` instead, which accepts an identical type. */
|
|
86
|
+
export type AssetOptionsInputList = Array<InputSettings>;
|
|
87
|
+
/** An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. */
|
|
88
|
+
export type AssetOptionsInputsList = Array<InputSettings>;
|
|
89
|
+
/** * `public` playback IDs are accessible by constructing an HLS URL like `https://stream.mux.com/${PLAYBACK_ID}` * `signed` playback IDs should be used with tokens `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for details about creating tokens. * `drm` playback IDs are protected with DRM technologies. [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm). */
|
|
90
|
+
export type PlaybackPolicy = "public" | "signed" | "drm";
|
|
91
|
+
/** Deprecated. Use `playback_policies` instead, which accepts an identical type. */
|
|
92
|
+
export type AssetOptionsPlaybackPolicyList = Array<PlaybackPolicy | (string & {})>;
|
|
93
|
+
/** An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `"public"` (anyone with the playback URL can stream the asset). * `"signed"` (an additional access token is required to play the asset). If no `playback_policies` are set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. */
|
|
94
|
+
export type AssetOptionsPlaybackPoliciesList = Array<PlaybackPolicy | (string & {})>;
|
|
95
|
+
export interface CreatePlaybackIDRequest {
|
|
96
|
+
policy?: PlaybackPolicy | (string & {}) | undefined;
|
|
97
|
+
/** The DRM configuration used by this playback ID. Must only be set when `policy` is set to `drm`. */
|
|
98
|
+
drm_configuration_id?: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
/** An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policies` when creating a DRM playback ID. */
|
|
101
|
+
export type AssetOptionsAdvancedPlaybackPoliciesList = Array<CreatePlaybackIDRequest>;
|
|
102
|
+
/** Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) for the updated API. Specify what level of support for mp4 playback. You may not enable both `mp4_support` and `static_renditions`. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
103
|
+
export type AssetOptionsMp4Support = "none" | "standard" | "capped-1080p" | "audio-only" | "audio-only,capped-1080p";
|
|
104
|
+
/** Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
105
|
+
export type AssetOptionsMasterAccess = "none" | "temporary";
|
|
106
|
+
/** Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. */
|
|
107
|
+
export type AssetOptionsMaxResolutionTier = "1080p" | "1440p" | "2160p";
|
|
108
|
+
/** This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
109
|
+
export type AssetOptionsEncodingTier = "smart" | "baseline" | "premium";
|
|
110
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
111
|
+
export type AssetOptionsVideoQuality = "basic" | "plus" | "premium";
|
|
112
|
+
export type CreateStaticRenditionRequestResolution = "highest" | "audio-only" | "2160p" | "1440p" | "1080p" | "720p" | "540p" | "480p" | "360p" | "270p";
|
|
113
|
+
export interface CreateStaticRenditionRequest {
|
|
114
|
+
resolution: CreateStaticRenditionRequestResolution | (string & {});
|
|
115
|
+
/** Arbitrary user-supplied metadata set for the static rendition. Max 255 characters. */
|
|
116
|
+
passthrough?: string | undefined;
|
|
117
|
+
}
|
|
118
|
+
/** An array of static renditions to create for this asset. You may not enable both `static_renditions` and the deprecated `mp4_support`. */
|
|
119
|
+
export type AssetOptionsStaticRenditionsList = Array<CreateStaticRenditionRequest>;
|
|
120
|
+
/** Customer provided metadata about this asset. Note: This metadata may be publicly available via the video player. Do not include PII or sensitive information. */
|
|
121
|
+
export interface AssetMetadata {
|
|
122
|
+
/** The asset title. Max 512 code points. */
|
|
123
|
+
title?: string | undefined;
|
|
124
|
+
/** This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. */
|
|
125
|
+
creator_id?: string | undefined;
|
|
126
|
+
/** This is an identifier you provide to link the asset to your own data. Max 128 code points. */
|
|
127
|
+
external_id?: string | undefined;
|
|
128
|
+
}
|
|
129
|
+
/** A Mux Robots directive to apply to the asset. */
|
|
130
|
+
export interface AssetDirective {
|
|
131
|
+
/** The Mux Robots directive identifier. */
|
|
132
|
+
id: string;
|
|
133
|
+
}
|
|
134
|
+
/** An array of Mux Robots directives to apply to the asset. */
|
|
135
|
+
export type AssetOptionsDirectivesList = Array<AssetDirective>;
|
|
136
|
+
export interface AssetOptions {
|
|
137
|
+
/** Deprecated. Use `inputs` instead, which accepts an identical type. */
|
|
138
|
+
input?: AssetOptionsInputList | undefined;
|
|
139
|
+
/** An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. */
|
|
140
|
+
inputs?: AssetOptionsInputsList | undefined;
|
|
141
|
+
/** Deprecated. Use `playback_policies` instead, which accepts an identical type. */
|
|
142
|
+
playback_policy?: AssetOptionsPlaybackPolicyList | undefined;
|
|
143
|
+
/** An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `"public"` (anyone with the playback URL can stream the asset). * `"signed"` (an additional access token is required to play the asset). If no `playback_policies` are set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. */
|
|
144
|
+
playback_policies?: AssetOptionsPlaybackPoliciesList | undefined;
|
|
145
|
+
/** An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policies` when creating a DRM playback ID. */
|
|
146
|
+
advanced_playback_policies?: AssetOptionsAdvancedPlaybackPoliciesList | undefined;
|
|
147
|
+
/** You can set this field to anything you want. It will be included in the asset details and related webhooks. If you're looking for more structured metadata, such as `title` or `external_id`, you can use the `meta` object instead. **Max: 255 characters**. */
|
|
148
|
+
passthrough?: string | undefined;
|
|
149
|
+
/** Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) for the updated API. Specify what level of support for mp4 playback. You may not enable both `mp4_support` and `static_renditions`. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
150
|
+
mp4_support?: AssetOptionsMp4Support | (string & {}) | undefined;
|
|
151
|
+
/** Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. */
|
|
152
|
+
normalize_audio?: boolean | undefined;
|
|
153
|
+
/** Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
154
|
+
master_access?: AssetOptionsMasterAccess | (string & {}) | undefined;
|
|
155
|
+
/** Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. */
|
|
156
|
+
test?: boolean | undefined;
|
|
157
|
+
/** Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. */
|
|
158
|
+
max_resolution_tier?: AssetOptionsMaxResolutionTier | (string & {}) | undefined;
|
|
159
|
+
/** This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
160
|
+
encoding_tier?: AssetOptionsEncodingTier | (string & {}) | undefined;
|
|
161
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
162
|
+
video_quality?: AssetOptionsVideoQuality | (string & {}) | undefined;
|
|
163
|
+
/** An array of static renditions to create for this asset. You may not enable both `static_renditions` and the deprecated `mp4_support`. */
|
|
164
|
+
static_renditions?: AssetOptionsStaticRenditionsList | undefined;
|
|
165
|
+
meta?: AssetMetadata | undefined;
|
|
166
|
+
/** If the created asset is a clip, this controls whether overlays are copied from the source asset. */
|
|
167
|
+
copy_overlays?: boolean | undefined;
|
|
168
|
+
/** An array of Mux Robots directives to apply to the asset. */
|
|
169
|
+
directives?: AssetOptionsDirectivesList | undefined;
|
|
170
|
+
/** Whether to perform shot detection on this asset. Shots are only generated for video assets and will not be generated for audio-only assets. */
|
|
171
|
+
generate_shots?: boolean | undefined;
|
|
172
|
+
}
|
|
173
|
+
/** Only set if an error occurred during asset creation. */
|
|
174
|
+
export interface UploadError {
|
|
175
|
+
/** Label for the specific error */
|
|
176
|
+
type?: string | undefined;
|
|
177
|
+
/** Human readable error message */
|
|
178
|
+
message?: string | undefined;
|
|
179
|
+
}
|
|
180
|
+
export interface Upload {
|
|
181
|
+
/** Unique identifier for the Direct Upload. */
|
|
182
|
+
id: string;
|
|
183
|
+
/** Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` */
|
|
184
|
+
timeout: number;
|
|
185
|
+
status: UploadStatus;
|
|
186
|
+
new_asset_settings?: AssetOptions | undefined;
|
|
187
|
+
/** Only set once the upload is in the `asset_created` state. */
|
|
188
|
+
asset_id?: string | undefined;
|
|
189
|
+
/** Only set if an error occurred during asset creation. */
|
|
190
|
+
error?: UploadError | undefined;
|
|
191
|
+
/** If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. */
|
|
192
|
+
cors_origin: string;
|
|
193
|
+
/** The URL to upload the associated source media to. */
|
|
194
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
195
|
+
/** Indicates if this is a test Direct Upload, in which case the Asset that gets created will be a `test` Asset. */
|
|
196
|
+
test?: boolean | undefined;
|
|
197
|
+
}
|
|
198
|
+
export interface UploadResponse {
|
|
199
|
+
data: Upload;
|
|
200
|
+
}
|
|
201
|
+
/** Deprecated. Use `inputs` instead, which accepts an identical type. */
|
|
202
|
+
export type CreateAssetRequestInputList = Array<InputSettings>;
|
|
203
|
+
/** An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. */
|
|
204
|
+
export type CreateAssetRequestInputsList = Array<InputSettings>;
|
|
205
|
+
/** Deprecated. Use `playback_policies` instead, which accepts an identical type. */
|
|
206
|
+
export type CreateAssetRequestPlaybackPolicyList = Array<PlaybackPolicy | (string & {})>;
|
|
207
|
+
/** An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `"public"` (anyone with the playback URL can stream the asset). * `"signed"` (an additional access token is required to play the asset). If no `playback_policies` are set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. */
|
|
208
|
+
export type CreateAssetRequestPlaybackPoliciesList = Array<PlaybackPolicy | (string & {})>;
|
|
209
|
+
/** An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policies` when creating a DRM playback ID. */
|
|
210
|
+
export type CreateAssetRequestAdvancedPlaybackPoliciesList = Array<CreatePlaybackIDRequest>;
|
|
211
|
+
/** Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) for the updated API. Specify what level of support for mp4 playback. You may not enable both `mp4_support` and `static_renditions`. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
212
|
+
export type CreateAssetRequestMp4Support = "none" | "standard" | "capped-1080p" | "audio-only" | "audio-only,capped-1080p";
|
|
213
|
+
/** Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
214
|
+
export type CreateAssetRequestMasterAccess = "none" | "temporary";
|
|
215
|
+
/** Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. */
|
|
216
|
+
export type CreateAssetRequestMaxResolutionTier = "1080p" | "1440p" | "2160p";
|
|
217
|
+
/** This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
218
|
+
export type CreateAssetRequestEncodingTier = "smart" | "baseline" | "premium";
|
|
219
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
220
|
+
export type CreateAssetRequestVideoQuality = "basic" | "plus" | "premium";
|
|
221
|
+
/** An array of static renditions to create for this asset. You may not enable both `static_renditions` and the deprecated `mp4_support`. */
|
|
222
|
+
export type CreateAssetRequestStaticRenditionsList = Array<CreateStaticRenditionRequest>;
|
|
223
|
+
/** An array of Mux Robots directives to apply to the asset. */
|
|
224
|
+
export type CreateAssetRequestDirectivesList = Array<AssetDirective>;
|
|
225
|
+
export interface CreateAssetRequest {
|
|
226
|
+
/** Deprecated. Use `inputs` instead, which accepts an identical type. */
|
|
227
|
+
input?: CreateAssetRequestInputList | undefined;
|
|
228
|
+
/** An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. */
|
|
229
|
+
inputs: CreateAssetRequestInputsList;
|
|
230
|
+
/** Deprecated. Use `playback_policies` instead, which accepts an identical type. */
|
|
231
|
+
playback_policy?: CreateAssetRequestPlaybackPolicyList | undefined;
|
|
232
|
+
/** An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `"public"` (anyone with the playback URL can stream the asset). * `"signed"` (an additional access token is required to play the asset). If no `playback_policies` are set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. */
|
|
233
|
+
playback_policies?: CreateAssetRequestPlaybackPoliciesList | undefined;
|
|
234
|
+
/** An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policies` when creating a DRM playback ID. */
|
|
235
|
+
advanced_playback_policies?: CreateAssetRequestAdvancedPlaybackPoliciesList | undefined;
|
|
236
|
+
/** You can set this field to anything you want. It will be included in the asset details and related webhooks. If you're looking for more structured metadata, such as `title` or `external_id`, you can use the `meta` object instead. **Max: 255 characters**. */
|
|
237
|
+
passthrough?: string | undefined;
|
|
238
|
+
/** Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) for the updated API. Specify what level of support for mp4 playback. You may not enable both `mp4_support` and `static_renditions`. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
239
|
+
mp4_support?: CreateAssetRequestMp4Support | (string & {}) | undefined;
|
|
240
|
+
/** Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. */
|
|
241
|
+
normalize_audio?: boolean | undefined;
|
|
242
|
+
/** Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. */
|
|
243
|
+
master_access?: CreateAssetRequestMasterAccess | (string & {}) | undefined;
|
|
244
|
+
/** Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. */
|
|
245
|
+
test?: boolean | undefined;
|
|
246
|
+
/** Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. */
|
|
247
|
+
max_resolution_tier?: CreateAssetRequestMaxResolutionTier | (string & {}) | undefined;
|
|
248
|
+
/** This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
249
|
+
encoding_tier?: CreateAssetRequestEncodingTier | (string & {}) | undefined;
|
|
250
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
251
|
+
video_quality?: CreateAssetRequestVideoQuality | (string & {}) | undefined;
|
|
252
|
+
/** An array of static renditions to create for this asset. You may not enable both `static_renditions` and the deprecated `mp4_support`. */
|
|
253
|
+
static_renditions?: CreateAssetRequestStaticRenditionsList | undefined;
|
|
254
|
+
meta?: AssetMetadata | undefined;
|
|
255
|
+
/** If the created asset is a clip, this controls whether overlays are copied from the source asset. */
|
|
256
|
+
copy_overlays?: boolean | undefined;
|
|
257
|
+
/** An array of Mux Robots directives to apply to the asset. */
|
|
258
|
+
directives?: CreateAssetRequestDirectivesList | undefined;
|
|
259
|
+
/** Whether to perform shot detection on this asset. Shots are only generated for video assets and will not be generated for audio-only assets. */
|
|
260
|
+
generate_shots?: boolean | undefined;
|
|
261
|
+
}
|
|
262
|
+
/** The status of the asset. */
|
|
263
|
+
export type AssetStatus = "preparing" | "ready" | "errored";
|
|
264
|
+
/** This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. */
|
|
265
|
+
export type AssetMaxStoredResolution = "Audio only" | "SD" | "HD" | "FHD" | "UHD";
|
|
266
|
+
/** The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. */
|
|
267
|
+
export type AssetResolutionTier = "audio-only" | "720p" | "1080p" | "1440p" | "2160p";
|
|
268
|
+
/** Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. */
|
|
269
|
+
export type AssetMaxResolutionTier = "1080p" | "1440p" | "2160p";
|
|
270
|
+
/** This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
271
|
+
export type AssetEncodingTier = "smart" | "baseline" | "premium";
|
|
272
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
273
|
+
export type AssetVideoQuality = "basic" | "plus" | "premium";
|
|
274
|
+
export interface PlaybackID {
|
|
275
|
+
/** Unique identifier for the PlaybackID */
|
|
276
|
+
id: string;
|
|
277
|
+
policy: PlaybackPolicy;
|
|
278
|
+
/** The DRM configuration used by this playback ID. Must only be set when `policy` is set to `drm`. */
|
|
279
|
+
drm_configuration_id?: string | undefined;
|
|
280
|
+
}
|
|
281
|
+
/** An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. */
|
|
282
|
+
export type AssetPlaybackIdsList = Array<PlaybackID>;
|
|
283
|
+
/** The type of track */
|
|
284
|
+
export type TrackType = "video" | "audio" | "text";
|
|
285
|
+
/** This parameter is only set for `text` type tracks. */
|
|
286
|
+
export type TrackTextType = "subtitles" | "chapters";
|
|
287
|
+
/** The source of the text contained in a Track of type `text`. Valid `text_source` values are listed below. * `uploaded`: Tracks uploaded to Mux as caption or subtitle files using the Create Asset Track API. * `embedded`: Tracks extracted from an embedded stream of CEA-608 closed captions. * `generated_vod`: Tracks generated by automatic speech recognition on an on-demand asset. * `generated_live`: Tracks generated by automatic speech recognition on a live stream configured with `generated_subtitles`. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. * `generated_live_final`: Tracks generated by automatic speech recognition on a live stream using `generated_subtitles`. The accuracy, timing, and formatting of these subtitles is improved compared to the corresponding `generated_live` tracks. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. */
|
|
288
|
+
export type TrackTextSource = "uploaded" | "embedded" | "generated_live" | "generated_live_final" | "generated_vod";
|
|
289
|
+
/** The status of the track. `skipped` means the track was not created because the asset doesn't support it, for example generated subtitles on an asset with no audio. */
|
|
290
|
+
export type TrackStatus = "preparing" | "ready" | "errored" | "deleted" | "skipped";
|
|
291
|
+
export interface Track {
|
|
292
|
+
/** Unique identifier for the Track */
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
/** The type of track */
|
|
295
|
+
type?: TrackType | undefined;
|
|
296
|
+
/** The duration in seconds of the track media. This parameter is not set for `text` type tracks. This field is optional and may not be set. The top level `duration` field of an asset will always be set. */
|
|
297
|
+
duration?: number | undefined;
|
|
298
|
+
/** The maximum width in pixels available for the track. Only set for the `video` type track. */
|
|
299
|
+
max_width?: number | undefined;
|
|
300
|
+
/** The maximum height in pixels available for the track. Only set for the `video` type track. */
|
|
301
|
+
max_height?: number | undefined;
|
|
302
|
+
/** The maximum frame rate available for the track. Only set for the `video` type track. This field may return `-1` if the frame rate of the input cannot be reliably determined. */
|
|
303
|
+
max_frame_rate?: number | undefined;
|
|
304
|
+
/** The maximum number of audio channels the track supports. Only set for the `audio` type track. */
|
|
305
|
+
max_channels?: number | undefined;
|
|
306
|
+
/** This parameter is only set for `text` type tracks. */
|
|
307
|
+
text_type?: TrackTextType | undefined;
|
|
308
|
+
/** The source of the text contained in a Track of type `text`. Valid `text_source` values are listed below. * `uploaded`: Tracks uploaded to Mux as caption or subtitle files using the Create Asset Track API. * `embedded`: Tracks extracted from an embedded stream of CEA-608 closed captions. * `generated_vod`: Tracks generated by automatic speech recognition on an on-demand asset. * `generated_live`: Tracks generated by automatic speech recognition on a live stream configured with `generated_subtitles`. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. * `generated_live_final`: Tracks generated by automatic speech recognition on a live stream using `generated_subtitles`. The accuracy, timing, and formatting of these subtitles is improved compared to the corresponding `generated_live` tracks. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. */
|
|
309
|
+
text_source?: TrackTextSource | undefined;
|
|
310
|
+
/** The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value, or 'auto'. For example, `en` for English or `en-US` for the US version of English. This parameter is only set for `text` and `audio` track types. During automatic language detection for generated subtitles, this value will be set to `auto` until the language is determined. */
|
|
311
|
+
language_code?: string | undefined;
|
|
312
|
+
/** The name of the track containing a human-readable description. The HLS manifest will associate a subtitle `text` or `audio` track with this value. For example, the value should be "English" for a subtitle text track for the `language_code` value of `en-US`. This parameter is only set for `text` and `audio` track types. */
|
|
313
|
+
name?: string | undefined;
|
|
314
|
+
/** Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is only set tracks where `type` is `text` and `text_type` is `subtitles`. */
|
|
315
|
+
closed_captions?: boolean | undefined;
|
|
316
|
+
/** Arbitrary user-supplied metadata set for the track either when creating the asset or track. This parameter is only set for `text` type tracks. Max 255 characters. */
|
|
317
|
+
passthrough?: string | undefined;
|
|
318
|
+
/** The status of the track. `skipped` means the track was not created because the asset doesn't support it, for example generated subtitles on an asset with no audio. */
|
|
319
|
+
status?: TrackStatus | undefined;
|
|
320
|
+
/** For an audio track, indicates that this is the primary audio track, ingested from the main input for this asset. The primary audio track cannot be deleted. */
|
|
321
|
+
primary?: boolean | undefined;
|
|
322
|
+
/** The confidence value (0-1) of the determined language. This value only is available when automatic language detection is utilized in generated subtitles. */
|
|
323
|
+
auto_language_confidence?: number | undefined;
|
|
324
|
+
}
|
|
325
|
+
/** The individual media tracks that make up an asset. */
|
|
326
|
+
export type AssetTracksList = Array<Track>;
|
|
327
|
+
/** Error messages with more details. */
|
|
328
|
+
export type AssetErrorsMessagesList = Array<string>;
|
|
329
|
+
/** Object that describes any errors that happened when processing this asset. */
|
|
330
|
+
export interface AssetErrors {
|
|
331
|
+
/** The type of error that occurred for this asset. */
|
|
332
|
+
type?: string | undefined;
|
|
333
|
+
/** Error messages with more details. */
|
|
334
|
+
messages?: AssetErrorsMessagesList | undefined;
|
|
335
|
+
}
|
|
336
|
+
export type AssetMasterStatus = "ready" | "preparing" | "errored";
|
|
337
|
+
/** An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_access` is set to `none` and when the temporary URL expires. */
|
|
338
|
+
export interface AssetMaster {
|
|
339
|
+
status?: AssetMasterStatus | undefined;
|
|
340
|
+
/** The temporary URL to the master version of the video, as an MP4 file. This URL will expire after 24 hours. */
|
|
341
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
342
|
+
}
|
|
343
|
+
export type AssetMasterAccess = "temporary" | "none";
|
|
344
|
+
/** Deprecated. The level of MP4 support requested through the legacy `mp4_support` option, or `none` if it was not used. Renditions created this way appear in the `static_renditions` object alongside renditions created with the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions); see that object for how the two differ. An asset cannot use both mechanisms at the same time. */
|
|
345
|
+
export type AssetMp4Support = "standard" | "none" | "capped-1080p" | "audio-only" | "audio-only,capped-1080p";
|
|
346
|
+
/** Indicates the aggregate status of MP4 renditions created with the deprecated `mp4_support` option. This field is only meaningful when `mp4_support` is enabled on the asset. For renditions created with the Static Renditions API, use the per-rendition `files[].status` field instead. */
|
|
347
|
+
export type AssetStaticRenditionsStatus = "ready" | "preparing" | "disabled" | "errored";
|
|
348
|
+
/** Name of the static rendition file */
|
|
349
|
+
export type StaticRenditionName = "low.mp4" | "medium.mp4" | "high.mp4" | "highest.mp4" | "audio.m4a" | "capped-1080p.mp4" | "2160p.mp4" | "1440p.mp4" | "1080p.mp4" | "720p.mp4" | "540p.mp4" | "480p.mp4" | "360p.mp4" | "270p.mp4";
|
|
350
|
+
/** Extension of the static rendition file */
|
|
351
|
+
export type StaticRenditionExt = "mp4" | "m4a";
|
|
352
|
+
/** Indicates the static rendition type of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
353
|
+
export type StaticRenditionType = "standard" | "advanced";
|
|
354
|
+
/** Indicates the status of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. For `mp4_support` renditions, see the top-level `static_renditions.status` field on the asset instead. * `ready` indicates the MP4 has been generated and is ready for download * `preparing` indicates the asset has not been ingested or the static rendition is still being generated after an asset is ready * `skipped` indicates the static rendition will not be generated because the requested resolution conflicts with the asset attributes after the asset has been ingested * `errored` indicates the static rendition cannot be generated. For example, an asset could not be ingested */
|
|
355
|
+
export type StaticRenditionStatus = "ready" | "preparing" | "skipped" | "errored";
|
|
356
|
+
/** Indicates the resolution tier of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
357
|
+
export type StaticRenditionResolutionTier = "2160p" | "1440p" | "1080p" | "720p" | "audio-only";
|
|
358
|
+
/** Indicates the resolution of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
359
|
+
export type StaticRenditionResolution = "highest" | "audio-only" | "2160p" | "1440p" | "1080p" | "720p" | "540p" | "480p" | "360p" | "270p";
|
|
360
|
+
export interface StaticRendition {
|
|
361
|
+
/** Name of the static rendition file */
|
|
362
|
+
name?: StaticRenditionName | undefined;
|
|
363
|
+
/** Extension of the static rendition file */
|
|
364
|
+
ext?: StaticRenditionExt | undefined;
|
|
365
|
+
/** The height of the static rendition's file in pixels */
|
|
366
|
+
height?: number | undefined;
|
|
367
|
+
/** The width of the static rendition's file in pixels */
|
|
368
|
+
width?: number | undefined;
|
|
369
|
+
/** The bitrate in bits per second */
|
|
370
|
+
bitrate?: number | undefined;
|
|
371
|
+
/** The file size in bytes */
|
|
372
|
+
filesize?: string | undefined;
|
|
373
|
+
/** Indicates the static rendition type of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
374
|
+
type?: StaticRenditionType | undefined;
|
|
375
|
+
/** Indicates the status of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. For `mp4_support` renditions, see the top-level `static_renditions.status` field on the asset instead. * `ready` indicates the MP4 has been generated and is ready for download * `preparing` indicates the asset has not been ingested or the static rendition is still being generated after an asset is ready * `skipped` indicates the static rendition will not be generated because the requested resolution conflicts with the asset attributes after the asset has been ingested * `errored` indicates the static rendition cannot be generated. For example, an asset could not be ingested */
|
|
376
|
+
status?: StaticRenditionStatus | undefined;
|
|
377
|
+
/** Indicates the resolution tier of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
378
|
+
resolution_tier?: StaticRenditionResolutionTier | undefined;
|
|
379
|
+
/** Indicates the resolution of this specific MP4 version of this asset. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
380
|
+
resolution?: StaticRenditionResolution | undefined;
|
|
381
|
+
/** The ID of this static rendition, used in managing this static rendition. Only present for static renditions created with the Static Renditions API. Not set for renditions created with the deprecated `mp4_support` option. */
|
|
382
|
+
id?: string | undefined;
|
|
383
|
+
/** Arbitrary user-supplied metadata set for the static rendition. Max 255 characters. */
|
|
384
|
+
passthrough?: string | undefined;
|
|
385
|
+
}
|
|
386
|
+
/** Array of file objects. */
|
|
387
|
+
export type AssetStaticRenditionsFilesList = Array<StaticRendition>;
|
|
388
|
+
/** An object containing the current status of any static renditions (MP4s) for this asset. The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. This object is populated by both the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) and the deprecated `mp4_support` option, and the two report status differently: * Renditions created with the Static Renditions API each carry their own `id`, `status`, `type`, `resolution`, and `resolution_tier` in `files`. Track progress per rendition using `files[].status`. * Renditions created with the deprecated `mp4_support` option share a single aggregate `status` on this object, and their `files` entries do not include the per-rendition fields above. */
|
|
389
|
+
export interface AssetStaticRenditions {
|
|
390
|
+
/** Indicates the aggregate status of MP4 renditions created with the deprecated `mp4_support` option. This field is only meaningful when `mp4_support` is enabled on the asset. For renditions created with the Static Renditions API, use the per-rendition `files[].status` field instead. */
|
|
391
|
+
status?: AssetStaticRenditionsStatus | undefined;
|
|
392
|
+
/** Array of file objects. */
|
|
393
|
+
files?: AssetStaticRenditionsFilesList | undefined;
|
|
394
|
+
}
|
|
395
|
+
/** The type of media represented by the recording session, either `content` for normal stream content or `slate` for slate media inserted during stream interruptions. */
|
|
396
|
+
export type AssetRecordingTimesItemType = "content" | "slate";
|
|
397
|
+
export interface AssetRecordingTimesItem {
|
|
398
|
+
/** The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format. */
|
|
399
|
+
started_at?: string | undefined;
|
|
400
|
+
/** The duration of the live stream recorded. The time value is in seconds. */
|
|
401
|
+
duration?: number | undefined;
|
|
402
|
+
/** The type of media represented by the recording session, either `content` for normal stream content or `slate` for slate media inserted during stream interruptions. */
|
|
403
|
+
type?: AssetRecordingTimesItemType | undefined;
|
|
404
|
+
}
|
|
405
|
+
/** An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream. Additionally any time slate media is inserted during brief interruptions in the live stream media or times when the live streaming software disconnects, a recording session representing the slate media will be added with a "slate" type. */
|
|
406
|
+
export type AssetRecordingTimesList = Array<AssetRecordingTimesItem>;
|
|
407
|
+
/** The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 20 seconds. */
|
|
408
|
+
export type AssetNonStandardInputReasonsVideoGopSize = "high";
|
|
409
|
+
/** The video bitrate of the input file is `high`. This parameter is present when the average bitrate of any key frame interval (also known as Group of Pictures or GOP) is higher than what's considered standard which typically is 16 Mbps. */
|
|
410
|
+
export type AssetNonStandardInputReasonsVideoBitrate = "high";
|
|
411
|
+
/** Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List. */
|
|
412
|
+
export type AssetNonStandardInputReasonsVideoEditList = "non-standard";
|
|
413
|
+
/** Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List. */
|
|
414
|
+
export type AssetNonStandardInputReasonsAudioEditList = "non-standard";
|
|
415
|
+
/** A catch-all reason when the input file in created with non-standard encoding parameters. */
|
|
416
|
+
export type AssetNonStandardInputReasonsUnexpectedMediaFileParameters = "non-standard";
|
|
417
|
+
/** An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard. */
|
|
418
|
+
export interface AssetNonStandardInputReasons {
|
|
419
|
+
/** The video codec used on the input file. For example, the input file encoded with `av1` video codec is non-standard and the value of this parameter is `av1`. */
|
|
420
|
+
video_codec?: string | undefined;
|
|
421
|
+
/** The audio codec used on the input file. Non-AAC audio codecs are non-standard. */
|
|
422
|
+
audio_codec?: string | undefined;
|
|
423
|
+
/** The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 20 seconds. */
|
|
424
|
+
video_gop_size?: AssetNonStandardInputReasonsVideoGopSize | undefined;
|
|
425
|
+
/** The video frame rate of the input file. Video with average frames per second (fps) less than 5 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track. */
|
|
426
|
+
video_frame_rate?: string | undefined;
|
|
427
|
+
/** The video resolution of the input file. Video resolution higher than 2048 pixels on any one dimension (height or width) is considered non-standard, The resolution value is presented as `width` x `height` in pixels. */
|
|
428
|
+
video_resolution?: string | undefined;
|
|
429
|
+
/** The video bitrate of the input file is `high`. This parameter is present when the average bitrate of any key frame interval (also known as Group of Pictures or GOP) is higher than what's considered standard which typically is 16 Mbps. */
|
|
430
|
+
video_bitrate?: AssetNonStandardInputReasonsVideoBitrate | undefined;
|
|
431
|
+
/** The video pixel aspect ratio of the input file. */
|
|
432
|
+
pixel_aspect_ratio?: string | undefined;
|
|
433
|
+
/** Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List. */
|
|
434
|
+
video_edit_list?: AssetNonStandardInputReasonsVideoEditList | undefined;
|
|
435
|
+
/** Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List. */
|
|
436
|
+
audio_edit_list?: AssetNonStandardInputReasonsAudioEditList | undefined;
|
|
437
|
+
/** A catch-all reason when the input file in created with non-standard encoding parameters. */
|
|
438
|
+
unexpected_media_file_parameters?: AssetNonStandardInputReasonsUnexpectedMediaFileParameters | undefined;
|
|
439
|
+
/** The video pixel format, as a string, returned by libav. Considered non-standard if not one of yuv420p or yuvj420p. HEVC inputs additionally permit yuv420p10le. */
|
|
440
|
+
unsupported_pixel_format?: string | undefined;
|
|
441
|
+
}
|
|
442
|
+
/** The type of ingest used to create the asset. */
|
|
443
|
+
export type AssetIngestType = "on_demand_url" | "on_demand_direct_upload" | "on_demand_clip" | "live_rtmp" | "live_srt";
|
|
444
|
+
/** The detailed state of the asset ingest process. This field is useful for relaying more granular processing information to end users when a [non-standard input is encountered](https://www.mux.com/docs/guides/minimize-processing-time#non-standard-input). - `ingesting`: Asset is being ingested (initial processing before or after transcoding). While in this state, the `progress` percentage will be 0. - `transcoding`: Asset is undergoing non-standard transcoding. For assets with a `delivery_profile` of `hls_podcast`, the `progress` percentage runs from 0 to 50 while transcoding. - `optimizing`: Asset is finishing additional processing its `delivery_profile` requires, such as measuring each rendition's bitrate for `hls_podcast` assets. `status` stays `preparing`, and the `progress` percentage runs from 50 to 100. - `completed`: Asset processing is complete (`status` is `ready`). While in this state, the `progress` percentage will be 100. - `live`: Asset is a live stream currently in progress. While in this state, the `progress` percentage will be -1. - `errored`: Asset has encountered an error (`status` is `errored`). While in this state, the `progress` percentage will be -1. */
|
|
445
|
+
export type AssetProgressState = "ingesting" | "transcoding" | "optimizing" | "completed" | "live" | "errored";
|
|
446
|
+
/** Detailed state information about the asset ingest process. */
|
|
447
|
+
export interface AssetProgress {
|
|
448
|
+
/** The detailed state of the asset ingest process. This field is useful for relaying more granular processing information to end users when a [non-standard input is encountered](https://www.mux.com/docs/guides/minimize-processing-time#non-standard-input). - `ingesting`: Asset is being ingested (initial processing before or after transcoding). While in this state, the `progress` percentage will be 0. - `transcoding`: Asset is undergoing non-standard transcoding. For assets with a `delivery_profile` of `hls_podcast`, the `progress` percentage runs from 0 to 50 while transcoding. - `optimizing`: Asset is finishing additional processing its `delivery_profile` requires, such as measuring each rendition's bitrate for `hls_podcast` assets. `status` stays `preparing`, and the `progress` percentage runs from 50 to 100. - `completed`: Asset processing is complete (`status` is `ready`). While in this state, the `progress` percentage will be 100. - `live`: Asset is a live stream currently in progress. While in this state, the `progress` percentage will be -1. - `errored`: Asset has encountered an error (`status` is `errored`). While in this state, the `progress` percentage will be -1. */
|
|
449
|
+
state: AssetProgressState;
|
|
450
|
+
/** Represents the estimated completion percentage. Returns `0 - 100` when in `ingesting`, `transcoding`, `optimizing`, or `completed` state, and `-1` when in `live` or `errored` state. */
|
|
451
|
+
progress: number;
|
|
452
|
+
}
|
|
453
|
+
/** The Mux Robots directives applied to the asset. */
|
|
454
|
+
export type AssetDirectivesList = Array<AssetDirective>;
|
|
455
|
+
/** The status of the shot detection process */
|
|
456
|
+
export type AssetShotsStatus = "pending" | "completed" | "errored" | "skipped" | "deleted";
|
|
457
|
+
/** A list of error messages describing the errors that occurred in more detail */
|
|
458
|
+
export type AssetShotsErrorsMessagesList = Array<string>;
|
|
459
|
+
/** An object describing any errors encountered during the shot detection process. This field is only present when `status` is `errored`. */
|
|
460
|
+
export interface AssetShotsErrors {
|
|
461
|
+
/** The type of error that occurred */
|
|
462
|
+
type?: string | undefined;
|
|
463
|
+
/** A list of error messages describing the errors that occurred in more detail */
|
|
464
|
+
messages?: AssetShotsErrorsMessagesList | undefined;
|
|
465
|
+
}
|
|
466
|
+
/** The results of generating shots on the video */
|
|
467
|
+
export interface AssetShots {
|
|
468
|
+
/** The status of the shot detection process */
|
|
469
|
+
status: AssetShotsStatus;
|
|
470
|
+
/** Time the shot detection process was created, defined as a Unix timestamp (seconds since epoch). */
|
|
471
|
+
created_at: string;
|
|
472
|
+
/** A URL to a JSON manifest describing the shot changes detected in the video along with shot preview images for each shot. This field is only present when `status` is `completed`. */
|
|
473
|
+
shots_manifest_url?: string | undefined;
|
|
474
|
+
/** An object describing any errors encountered during the shot detection process. This field is only present when `status` is `errored`. */
|
|
475
|
+
errors?: AssetShotsErrors | undefined;
|
|
476
|
+
}
|
|
477
|
+
export interface Asset {
|
|
478
|
+
/** Unique identifier for the Asset. Max 255 characters. */
|
|
479
|
+
id: string;
|
|
480
|
+
/** Time the Asset was created, defined as a Unix timestamp (seconds since epoch). */
|
|
481
|
+
created_at: string;
|
|
482
|
+
/** The status of the asset. */
|
|
483
|
+
status: AssetStatus;
|
|
484
|
+
/** The duration of the asset in seconds (max duration for a single asset is 12 hours). */
|
|
485
|
+
duration?: number | undefined;
|
|
486
|
+
/** This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. */
|
|
487
|
+
max_stored_resolution?: AssetMaxStoredResolution | undefined;
|
|
488
|
+
/** The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. */
|
|
489
|
+
resolution_tier?: AssetResolutionTier | undefined;
|
|
490
|
+
/** Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. */
|
|
491
|
+
max_resolution_tier: AssetMaxResolutionTier;
|
|
492
|
+
/** This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
493
|
+
encoding_tier: AssetEncodingTier;
|
|
494
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
495
|
+
video_quality?: AssetVideoQuality | undefined;
|
|
496
|
+
/** The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. */
|
|
497
|
+
max_stored_frame_rate?: number | undefined;
|
|
498
|
+
/** The aspect ratio of the asset in the form of `width:height`, for example `16:9`. */
|
|
499
|
+
aspect_ratio?: string | undefined;
|
|
500
|
+
/** An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. */
|
|
501
|
+
playback_ids?: AssetPlaybackIdsList | undefined;
|
|
502
|
+
/** The individual media tracks that make up an asset. */
|
|
503
|
+
tracks?: AssetTracksList | undefined;
|
|
504
|
+
/** Object that describes any errors that happened when processing this asset. */
|
|
505
|
+
errors?: AssetErrors | undefined;
|
|
506
|
+
/** Unique identifier for the Direct Upload. This is an optional parameter added when the asset is created from a direct upload. */
|
|
507
|
+
upload_id?: string | undefined;
|
|
508
|
+
/** Indicates whether the live stream that created this asset is currently `active` and not in `idle` state. This is an optional parameter added when the asset is created from a live stream. */
|
|
509
|
+
is_live?: boolean | undefined;
|
|
510
|
+
/** You can set this field to anything you want. It will be included in the asset details and related webhooks. If you're looking for more structured metadata, such as `title` or `external_id` , you can use the `meta` object instead. **Max: 255 characters**. */
|
|
511
|
+
passthrough?: string | undefined;
|
|
512
|
+
/** Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. */
|
|
513
|
+
live_stream_id?: string | undefined;
|
|
514
|
+
/** An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_access` is set to `none` and when the temporary URL expires. */
|
|
515
|
+
master?: AssetMaster | undefined;
|
|
516
|
+
master_access: AssetMasterAccess;
|
|
517
|
+
/** Deprecated. The level of MP4 support requested through the legacy `mp4_support` option, or `none` if it was not used. Renditions created this way appear in the `static_renditions` object alongside renditions created with the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions); see that object for how the two differ. An asset cannot use both mechanisms at the same time. */
|
|
518
|
+
mp4_support?: AssetMp4Support | undefined;
|
|
519
|
+
/** Asset Identifier of the video used as the source for creating the clip. */
|
|
520
|
+
source_asset_id?: string | undefined;
|
|
521
|
+
/** Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. */
|
|
522
|
+
normalize_audio?: boolean | undefined;
|
|
523
|
+
/** An object containing the current status of any static renditions (MP4s) for this asset. The object does not exist if no static renditions have been requested. See [Download your videos](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. This object is populated by both the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) and the deprecated `mp4_support` option, and the two report status differently: * Renditions created with the Static Renditions API each carry their own `id`, `status`, `type`, `resolution`, and `resolution_tier` in `files`. Track progress per rendition using `files[].status`. * Renditions created with the deprecated `mp4_support` option share a single aggregate `status` on this object, and their `files` entries do not include the per-rendition fields above. */
|
|
524
|
+
static_renditions?: AssetStaticRenditions | undefined;
|
|
525
|
+
/** An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream. Additionally any time slate media is inserted during brief interruptions in the live stream media or times when the live streaming software disconnects, a recording session representing the slate media will be added with a "slate" type. */
|
|
526
|
+
recording_times?: AssetRecordingTimesList | undefined;
|
|
527
|
+
/** An object containing one or more reasons the input file is non-standard. See [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time) for more information on what a standard input is defined as. This object only exists on on-demand assets that have non-standard inputs, so if missing you can assume the input qualifies as standard. */
|
|
528
|
+
non_standard_input_reasons?: AssetNonStandardInputReasons | undefined;
|
|
529
|
+
/** True means this live stream is a test asset. A test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. */
|
|
530
|
+
test?: boolean | undefined;
|
|
531
|
+
/** The type of ingest used to create the asset. */
|
|
532
|
+
ingest_type?: AssetIngestType | undefined;
|
|
533
|
+
meta?: AssetMetadata | undefined;
|
|
534
|
+
progress: AssetProgress;
|
|
535
|
+
/** The Mux Robots directives applied to the asset. */
|
|
536
|
+
directives?: AssetDirectivesList | undefined;
|
|
537
|
+
/** Whether to perform shot detection on this asset. Shots are only generated for video assets and will not be generated for audio-only assets. */
|
|
538
|
+
generate_shots?: boolean | undefined;
|
|
539
|
+
shots?: AssetShots | undefined;
|
|
540
|
+
/** The media time within the asset used when a thumbnail without an explicit time is requested. */
|
|
541
|
+
thumbnail_time?: number | undefined;
|
|
542
|
+
}
|
|
543
|
+
export interface AssetResponse {
|
|
544
|
+
data: Asset;
|
|
545
|
+
}
|
|
546
|
+
export interface CreateAssetPlaybackIdRequest {
|
|
547
|
+
/** The asset ID. */
|
|
548
|
+
ASSET_ID: string;
|
|
549
|
+
policy?: PlaybackPolicy | (string & {}) | undefined;
|
|
550
|
+
/** The DRM configuration used by this playback ID. Must only be set when `policy` is set to `drm`. */
|
|
551
|
+
drm_configuration_id?: string | undefined;
|
|
552
|
+
}
|
|
553
|
+
export interface CreatePlaybackIDResponse {
|
|
554
|
+
data: PlaybackID;
|
|
555
|
+
}
|
|
556
|
+
export type CreateAssetStaticRenditionRequestResolution = "highest" | "audio-only" | "2160p" | "1440p" | "1080p" | "720p" | "540p" | "480p" | "360p" | "270p";
|
|
557
|
+
export interface CreateAssetStaticRenditionRequest {
|
|
558
|
+
/** The asset ID. */
|
|
559
|
+
ASSET_ID: string;
|
|
560
|
+
resolution: CreateAssetStaticRenditionRequestResolution | (string & {});
|
|
561
|
+
/** Arbitrary user-supplied metadata set for the static rendition. Max 255 characters. */
|
|
562
|
+
passthrough?: string | undefined;
|
|
563
|
+
}
|
|
564
|
+
export interface CreateStaticRenditionResponse {
|
|
565
|
+
data: StaticRendition;
|
|
566
|
+
}
|
|
567
|
+
export type CreateAssetTrackRequestType = "text" | "audio";
|
|
568
|
+
/** The type of text track. Required when `type` is `text`. Use `subtitles` for subtitles and closed captions, or `chapters` for a chapters track. */
|
|
569
|
+
export type CreateAssetTrackRequestTextType = "subtitles" | "chapters";
|
|
570
|
+
export interface CreateAssetTrackRequest {
|
|
571
|
+
/** The asset ID. */
|
|
572
|
+
ASSET_ID: string;
|
|
573
|
+
/** The URL of the file that Mux should download and use. * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. */
|
|
574
|
+
url: string;
|
|
575
|
+
type: CreateAssetTrackRequestType | (string & {});
|
|
576
|
+
/** The type of text track. Required when `type` is `text`. Use `subtitles` for subtitles and closed captions, or `chapters` for a chapters track. */
|
|
577
|
+
text_type?: CreateAssetTrackRequestTextType | (string & {}) | undefined;
|
|
578
|
+
/** The language code of this track. The value must be a valid BCP 47 specification compliant value. For example, en for English or en-US for the US version of English. */
|
|
579
|
+
language_code: string;
|
|
580
|
+
/** The name of the track containing a human-readable description. This value must be unique within each group of `text` or `audio` track types. The HLS manifest will associate the `text` or `audio` track with this value. For example, set the value to "English" for subtitles text track with `language_code` as en-US. If this parameter is not included, Mux will auto-populate a value based on the `language_code` value. */
|
|
581
|
+
name?: string | undefined;
|
|
582
|
+
/** Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). */
|
|
583
|
+
closed_captions?: boolean | undefined;
|
|
584
|
+
/** Arbitrary user-supplied metadata set for the track either when creating the asset or track. */
|
|
585
|
+
passthrough?: string | undefined;
|
|
586
|
+
}
|
|
587
|
+
export interface CreateTrackResponse {
|
|
588
|
+
data: Track;
|
|
589
|
+
}
|
|
590
|
+
export interface CreateDirectUploadRequest {
|
|
591
|
+
/** Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` */
|
|
592
|
+
timeout?: number | undefined;
|
|
593
|
+
/** If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. */
|
|
594
|
+
cors_origin: string;
|
|
595
|
+
new_asset_settings?: AssetOptions | undefined;
|
|
596
|
+
/** Indicates if this is a test Direct Upload, in which case the Asset that gets created will be a `test` Asset. */
|
|
597
|
+
test?: boolean | undefined;
|
|
598
|
+
}
|
|
599
|
+
/** Deprecated. Use `playback_policies` instead, which accepts an identical type. */
|
|
600
|
+
export type CreateLiveStreamRequestPlaybackPolicyList = Array<PlaybackPolicy | (string & {})>;
|
|
601
|
+
/** An array of playback policy names that you want applied to this live stream and available through `playback_ids`. Options include: * `"public"` (anyone with the playback URL can stream the live stream). * `"signed"` (an additional access token is required to play the live stream). If no `playback_policies` is set, the live stream will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. */
|
|
602
|
+
export type CreateLiveStreamRequestPlaybackPoliciesList = Array<PlaybackPolicy | (string & {})>;
|
|
603
|
+
/** An array of playback policy objects that you want applied on this live stream and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policies` when creating a DRM playback ID. */
|
|
604
|
+
export type CreateLiveStreamRequestAdvancedPlaybackPoliciesList = Array<CreatePlaybackIDRequest>;
|
|
605
|
+
/** CEA-608 caption channel to read data from. */
|
|
606
|
+
export type LiveStreamEmbeddedSubtitleRequestLanguageChannel = "cc1" | "cc2" | "cc3" | "cc4";
|
|
607
|
+
export interface LiveStreamEmbeddedSubtitleRequest {
|
|
608
|
+
/** A name for this live stream closed caption track. */
|
|
609
|
+
name?: string | undefined;
|
|
610
|
+
/** Arbitrary user-supplied metadata set for the live stream closed caption track. Max 255 characters. */
|
|
611
|
+
passthrough?: string | undefined;
|
|
612
|
+
/** The language of the closed caption stream. Value must be BCP 47 compliant. */
|
|
613
|
+
language_code?: string | undefined;
|
|
614
|
+
/** CEA-608 caption channel to read data from. */
|
|
615
|
+
language_channel?: LiveStreamEmbeddedSubtitleRequestLanguageChannel | (string & {}) | undefined;
|
|
616
|
+
}
|
|
617
|
+
/** Describe the embedded closed caption contents of the incoming live stream. */
|
|
618
|
+
export type CreateLiveStreamRequestEmbeddedSubtitlesList = Array<LiveStreamEmbeddedSubtitleRequest>;
|
|
619
|
+
/** The language of the audio from which subtitles are generated. */
|
|
620
|
+
export type LiveStreamGeneratedSubtitleRequestLanguageCode = "en" | "en-US" | "es" | "fr" | "de" | "pt" | "it";
|
|
621
|
+
/** Unique identifiers for existing Transcription Vocabularies to use while generating subtitles for the live stream. If the Transcription Vocabularies provided collectively have more than 1000 phrases, only the first 1000 phrases will be included. */
|
|
622
|
+
export type LiveStreamGeneratedSubtitleRequestTranscriptionVocabularyIdsList = Array<string>;
|
|
623
|
+
export interface LiveStreamGeneratedSubtitleRequest {
|
|
624
|
+
/** A name for this live stream subtitle track. */
|
|
625
|
+
name?: string | undefined;
|
|
626
|
+
/** Arbitrary metadata set for the live stream subtitle track. Max 255 characters. */
|
|
627
|
+
passthrough?: string | undefined;
|
|
628
|
+
/** The language of the audio from which subtitles are generated. */
|
|
629
|
+
language_code?: LiveStreamGeneratedSubtitleRequestLanguageCode | (string & {}) | undefined;
|
|
630
|
+
/** Unique identifiers for existing Transcription Vocabularies to use while generating subtitles for the live stream. If the Transcription Vocabularies provided collectively have more than 1000 phrases, only the first 1000 phrases will be included. */
|
|
631
|
+
transcription_vocabulary_ids?: LiveStreamGeneratedSubtitleRequestTranscriptionVocabularyIdsList | undefined;
|
|
632
|
+
}
|
|
633
|
+
/** Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. */
|
|
634
|
+
export type CreateLiveStreamRequestGeneratedSubtitlesList = Array<LiveStreamGeneratedSubtitleRequest>;
|
|
635
|
+
/** Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */
|
|
636
|
+
export type CreateLiveStreamRequestLatencyMode = "low" | "reduced" | "standard";
|
|
637
|
+
export interface CreateSimulcastTargetRequest {
|
|
638
|
+
/** Arbitrary user-supplied metadata set by you when creating a simulcast target. */
|
|
639
|
+
passthrough?: string | undefined;
|
|
640
|
+
/** Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. Only used for RTMP(s) simulcast destinations. */
|
|
641
|
+
stream_key?: string | Redacted.Redacted<string> | undefined;
|
|
642
|
+
/** The RTMP(s) or SRT endpoint for a simulcast destination. * For RTMP(s) destinations, this should include the application name for the third party live streaming service, for example: `rtmp://live.example.com/app`. * For SRT destinations, this should be a fully formed SRT connection string, for example: `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`. Note: SRT simulcast targets can only be used when an source is connected over SRT. */
|
|
643
|
+
url: string | Redacted.Redacted<string>;
|
|
644
|
+
}
|
|
645
|
+
export type CreateLiveStreamRequestSimulcastTargetsList = Array<CreateSimulcastTargetRequest>;
|
|
646
|
+
/** Customer provided metadata about this live stream. Note: This metadata may be publicly available via the video player. Do not include PII or sensitive information. */
|
|
647
|
+
export interface LiveStreamMetadata {
|
|
648
|
+
/** The live stream title. Max 512 code points. */
|
|
649
|
+
title?: string | undefined;
|
|
650
|
+
}
|
|
651
|
+
export interface CreateLiveStreamRequest {
|
|
652
|
+
/** Deprecated. Use `playback_policies` instead, which accepts an identical type. */
|
|
653
|
+
playback_policy?: CreateLiveStreamRequestPlaybackPolicyList | undefined;
|
|
654
|
+
/** An array of playback policy names that you want applied to this live stream and available through `playback_ids`. Options include: * `"public"` (anyone with the playback URL can stream the live stream). * `"signed"` (an additional access token is required to play the live stream). If no `playback_policies` is set, the live stream will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. */
|
|
655
|
+
playback_policies?: CreateLiveStreamRequestPlaybackPoliciesList | undefined;
|
|
656
|
+
/** An array of playback policy objects that you want applied on this live stream and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policies` when creating a DRM playback ID. */
|
|
657
|
+
advanced_playback_policies?: CreateLiveStreamRequestAdvancedPlaybackPoliciesList | undefined;
|
|
658
|
+
new_asset_settings?: AssetOptions | undefined;
|
|
659
|
+
/** When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. Defaults to 60 seconds on the API if not specified. If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option. */
|
|
660
|
+
reconnect_window?: number | undefined;
|
|
661
|
+
/** By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. */
|
|
662
|
+
use_slate_for_standard_latency?: boolean | undefined;
|
|
663
|
+
/** The URL of the image file that Mux should download and use as slate media during interruptions of the live stream media. This file will be downloaded each time a new recorded asset is created from the live stream. If this is not set, the default slate media will be used. */
|
|
664
|
+
reconnect_slate_url?: string | undefined;
|
|
665
|
+
passthrough?: string | undefined;
|
|
666
|
+
/** Force the live stream to only process the audio track when the value is set to true. Mux drops the video track if broadcasted. */
|
|
667
|
+
audio_only?: boolean | undefined;
|
|
668
|
+
/** Describe the embedded closed caption contents of the incoming live stream. */
|
|
669
|
+
embedded_subtitles?: CreateLiveStreamRequestEmbeddedSubtitlesList | undefined;
|
|
670
|
+
/** Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. */
|
|
671
|
+
generated_subtitles?: CreateLiveStreamRequestGeneratedSubtitlesList | undefined;
|
|
672
|
+
/** This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ */
|
|
673
|
+
reduced_latency?: boolean | undefined;
|
|
674
|
+
/** This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. */
|
|
675
|
+
low_latency?: boolean | undefined;
|
|
676
|
+
/** Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */
|
|
677
|
+
latency_mode?: CreateLiveStreamRequestLatencyMode | (string & {}) | undefined;
|
|
678
|
+
/** Marks the live stream as a test live stream when the value is set to true. A test live stream can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test live streams created. Test live streams are watermarked with the Mux logo and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. */
|
|
679
|
+
test?: boolean | undefined;
|
|
680
|
+
simulcast_targets?: CreateLiveStreamRequestSimulcastTargetsList | undefined;
|
|
681
|
+
max_continuous_duration?: number | undefined;
|
|
682
|
+
meta?: LiveStreamMetadata | undefined;
|
|
683
|
+
}
|
|
684
|
+
/** An array of strings with the most recent Asset IDs that were created from this Live Stream. The most recently generated Asset ID is the last entry in the list. */
|
|
685
|
+
export type LiveStreamRecentAssetIdsList = Array<string>;
|
|
686
|
+
/** `idle` indicates that there is no active broadcast. `active` indicates that there is an active broadcast and `disabled` status indicates that no future RTMP streams can be published. */
|
|
687
|
+
export type LiveStreamStatus = "active" | "idle" | "disabled";
|
|
688
|
+
/** An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. */
|
|
689
|
+
export type LiveStreamPlaybackIdsList = Array<PlaybackID>;
|
|
690
|
+
/** CEA-608 caption channel to read data from. */
|
|
691
|
+
export type LiveStreamEmbeddedSubtitleSettingsLanguageChannel = "cc1" | "cc2" | "cc3" | "cc4";
|
|
692
|
+
export interface LiveStreamEmbeddedSubtitleSettings {
|
|
693
|
+
/** A name for this live stream closed caption track. */
|
|
694
|
+
name: string;
|
|
695
|
+
/** Arbitrary user-supplied metadata set for the live stream closed caption track. Max 255 characters. */
|
|
696
|
+
passthrough?: string | undefined;
|
|
697
|
+
/** The language of the closed caption stream. Value must be BCP 47 compliant. */
|
|
698
|
+
language_code: string;
|
|
699
|
+
/** CEA-608 caption channel to read data from. */
|
|
700
|
+
language_channel: LiveStreamEmbeddedSubtitleSettingsLanguageChannel;
|
|
701
|
+
}
|
|
702
|
+
/** Describes the embedded closed caption configuration of the incoming live stream. */
|
|
703
|
+
export type LiveStreamEmbeddedSubtitlesList = Array<LiveStreamEmbeddedSubtitleSettings>;
|
|
704
|
+
/** The language of the audio from which subtitles are generated. */
|
|
705
|
+
export type LiveStreamGeneratedSubtitleSettingsLanguageCode = "en" | "en-US" | "es" | "fr" | "de" | "pt" | "it";
|
|
706
|
+
/** Unique identifiers for existing Transcription Vocabularies to use while generating subtitles for the live stream. If the Transcription Vocabularies provided collectively have more than 1000 phrases, only the first 1000 phrases will be included. */
|
|
707
|
+
export type LiveStreamGeneratedSubtitleSettingsTranscriptionVocabularyIdsList = Array<string>;
|
|
708
|
+
export interface LiveStreamGeneratedSubtitleSettings {
|
|
709
|
+
/** A name for this live stream subtitle track. */
|
|
710
|
+
name: string;
|
|
711
|
+
/** Arbitrary metadata set for the live stream subtitle track. Max 255 characters. */
|
|
712
|
+
passthrough?: string | undefined;
|
|
713
|
+
/** The language of the audio from which subtitles are generated. */
|
|
714
|
+
language_code: LiveStreamGeneratedSubtitleSettingsLanguageCode;
|
|
715
|
+
/** Unique identifiers for existing Transcription Vocabularies to use while generating subtitles for the live stream. If the Transcription Vocabularies provided collectively have more than 1000 phrases, only the first 1000 phrases will be included. */
|
|
716
|
+
transcription_vocabulary_ids?: LiveStreamGeneratedSubtitleSettingsTranscriptionVocabularyIdsList | undefined;
|
|
717
|
+
}
|
|
718
|
+
/** Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. */
|
|
719
|
+
export type LiveStreamGeneratedSubtitlesList = Array<LiveStreamGeneratedSubtitleSettings>;
|
|
720
|
+
/** The current status of the simulcast target. See Statuses below for detailed description. * `idle`: Default status. When the parent live stream is in disconnected status, simulcast targets will be idle state. * `starting`: The simulcast target transitions into this state when the parent live stream transition into connected state. * `broadcasting`: The simulcast target has successfully connected to the third party live streaming service and is pushing video to that service. * `errored`: The simulcast target encountered an error either while attempting to connect to the third party live streaming service, or mid-broadcasting. When a simulcast target has this status it will have an `error_severity` field with more details about the error. */
|
|
721
|
+
export type SimulcastTargetStatus = "idle" | "starting" | "broadcasting" | "errored";
|
|
722
|
+
/** The severity of the error encountered by the simulcast target. This field is only set when the simulcast target is in the `errored` status. See the values of severities below and their descriptions. * `normal`: The simulcast target encountered an error either while attempting to connect to the third party live streaming service, or mid-broadcasting. A simulcast may transition back into the broadcasting state if a connection with the service can be re-established. * `fatal`: The simulcast target is incompatible with the current input to the parent live stream. No further attempts to this simulcast target will be made for the current live stream asset. */
|
|
723
|
+
export type SimulcastTargetErrorSeverity = "normal" | "fatal";
|
|
724
|
+
export interface SimulcastTarget {
|
|
725
|
+
/** ID of the Simulcast Target */
|
|
726
|
+
id: string;
|
|
727
|
+
/** Arbitrary user-supplied metadata set when creating a simulcast target. */
|
|
728
|
+
passthrough?: string | undefined;
|
|
729
|
+
/** The current status of the simulcast target. See Statuses below for detailed description. * `idle`: Default status. When the parent live stream is in disconnected status, simulcast targets will be idle state. * `starting`: The simulcast target transitions into this state when the parent live stream transition into connected state. * `broadcasting`: The simulcast target has successfully connected to the third party live streaming service and is pushing video to that service. * `errored`: The simulcast target encountered an error either while attempting to connect to the third party live streaming service, or mid-broadcasting. When a simulcast target has this status it will have an `error_severity` field with more details about the error. */
|
|
730
|
+
status: SimulcastTargetStatus;
|
|
731
|
+
/** Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. Only used for RTMP(s) simulcast destinations. */
|
|
732
|
+
stream_key?: string | Redacted.Redacted<string> | undefined;
|
|
733
|
+
/** The RTMP(s) or SRT endpoint for a simulcast destination. * For RTMP(s) destinations, this should include the application name for the third party live streaming service, for example: `rtmp://live.example.com/app`. * For SRT destinations, this should be a fully formed SRT connection string, for example: `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`. Note: SRT simulcast targets can only be used when an source is connected over SRT. */
|
|
734
|
+
url: string | Redacted.Redacted<string>;
|
|
735
|
+
/** The severity of the error encountered by the simulcast target. This field is only set when the simulcast target is in the `errored` status. See the values of severities below and their descriptions. * `normal`: The simulcast target encountered an error either while attempting to connect to the third party live streaming service, or mid-broadcasting. A simulcast may transition back into the broadcasting state if a connection with the service can be re-established. * `fatal`: The simulcast target is incompatible with the current input to the parent live stream. No further attempts to this simulcast target will be made for the current live stream asset. */
|
|
736
|
+
error_severity?: SimulcastTargetErrorSeverity | undefined;
|
|
737
|
+
}
|
|
738
|
+
/** Each Simulcast Target contains configuration details to broadcast (or "restream") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/stream-live-to-3rd-party-platforms). */
|
|
739
|
+
export type LiveStreamSimulcastTargetsList = Array<SimulcastTarget>;
|
|
740
|
+
/** Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */
|
|
741
|
+
export type LiveStreamLatencyMode = "low" | "reduced" | "standard";
|
|
742
|
+
/** The protocol used for the active ingest stream. This is only set when the live stream is active. */
|
|
743
|
+
export type LiveStreamActiveIngestProtocol = "rtmp" | "srt";
|
|
744
|
+
export interface LiveStream {
|
|
745
|
+
/** Unique identifier for the Live Stream. Max 255 characters. */
|
|
746
|
+
id: string;
|
|
747
|
+
/** Time the Live Stream was created, defined as a Unix timestamp (seconds since epoch). */
|
|
748
|
+
created_at: string;
|
|
749
|
+
/** Unique key used for streaming to a Mux RTMP endpoint. This should be considered as sensitive as credentials, anyone with this stream key can begin streaming. Max 64 characters. */
|
|
750
|
+
stream_key: string | Redacted.Redacted<string>;
|
|
751
|
+
/** The Asset that is currently being created if there is an active broadcast. */
|
|
752
|
+
active_asset_id?: string | undefined;
|
|
753
|
+
/** An array of strings with the most recent Asset IDs that were created from this Live Stream. The most recently generated Asset ID is the last entry in the list. */
|
|
754
|
+
recent_asset_ids?: LiveStreamRecentAssetIdsList | undefined;
|
|
755
|
+
status: LiveStreamStatus;
|
|
756
|
+
/** An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. */
|
|
757
|
+
playback_ids?: LiveStreamPlaybackIdsList | undefined;
|
|
758
|
+
new_asset_settings?: AssetOptions | undefined;
|
|
759
|
+
/** Arbitrary user-supplied metadata set for the asset. Max 255 characters. */
|
|
760
|
+
passthrough?: string | undefined;
|
|
761
|
+
/** The live stream only processes the audio track if the value is set to true. Mux drops the video track if broadcasted. */
|
|
762
|
+
audio_only?: boolean | undefined;
|
|
763
|
+
/** Describes the embedded closed caption configuration of the incoming live stream. */
|
|
764
|
+
embedded_subtitles?: LiveStreamEmbeddedSubtitlesList | undefined;
|
|
765
|
+
/** Configure the incoming live stream to include subtitles created with automatic speech recognition. Each Asset created from a live stream with `generated_subtitles` configured will automatically receive two text tracks. The first of these will have a `text_source` value of `generated_live`, and will be available with `ready` status as soon as the stream is live. The second text track will have a `text_source` value of `generated_live_final` and will contain subtitles with improved accuracy, timing, and formatting. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. */
|
|
766
|
+
generated_subtitles?: LiveStreamGeneratedSubtitlesList | undefined;
|
|
767
|
+
/** When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. **Max**: 1800s (30 minutes). If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option. */
|
|
768
|
+
reconnect_window?: number | undefined;
|
|
769
|
+
/** By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. */
|
|
770
|
+
use_slate_for_standard_latency?: boolean | undefined;
|
|
771
|
+
/** The URL of the image file that Mux should download and use as slate media during interruptions of the live stream media. This file will be downloaded each time a new recorded asset is created from the live stream. If this is not set, the default slate media will be used. */
|
|
772
|
+
reconnect_slate_url?: string | undefined;
|
|
773
|
+
/** This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this if you want lower latency for your live stream. See the [Reduce live stream latency guide](https://docs.mux.com/guides/reduce-live-stream-latency) to understand the tradeoffs. */
|
|
774
|
+
reduced_latency?: boolean | undefined;
|
|
775
|
+
/** This field is deprecated. Please use `latency_mode` instead. Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. */
|
|
776
|
+
low_latency?: boolean | undefined;
|
|
777
|
+
/** Each Simulcast Target contains configuration details to broadcast (or "restream") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/stream-live-to-3rd-party-platforms). */
|
|
778
|
+
simulcast_targets?: LiveStreamSimulcastTargetsList | undefined;
|
|
779
|
+
/** Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */
|
|
780
|
+
latency_mode: LiveStreamLatencyMode;
|
|
781
|
+
/** True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. */
|
|
782
|
+
test?: boolean | undefined;
|
|
783
|
+
max_continuous_duration: number;
|
|
784
|
+
/** Unique key used for encrypting a stream to a Mux SRT endpoint. Max 64 characters. */
|
|
785
|
+
srt_passphrase?: string | Redacted.Redacted<string> | undefined;
|
|
786
|
+
/** The protocol used for the active ingest stream. This is only set when the live stream is active. */
|
|
787
|
+
active_ingest_protocol?: LiveStreamActiveIngestProtocol | undefined;
|
|
788
|
+
meta?: LiveStreamMetadata | undefined;
|
|
789
|
+
}
|
|
790
|
+
export interface LiveStreamResponse {
|
|
791
|
+
data: LiveStream;
|
|
792
|
+
}
|
|
793
|
+
export interface CreateLiveStreamPlaybackIdRequest {
|
|
794
|
+
/** The live stream ID */
|
|
795
|
+
LIVE_STREAM_ID: string;
|
|
796
|
+
policy?: PlaybackPolicy | (string & {}) | undefined;
|
|
797
|
+
/** The DRM configuration used by this playback ID. Must only be set when `policy` is set to `drm`. */
|
|
798
|
+
drm_configuration_id?: string | undefined;
|
|
799
|
+
}
|
|
800
|
+
export interface CreateLiveStreamSimulcastTargetRequest {
|
|
801
|
+
/** The live stream ID */
|
|
802
|
+
LIVE_STREAM_ID: string;
|
|
803
|
+
/** Arbitrary user-supplied metadata set by you when creating a simulcast target. */
|
|
804
|
+
passthrough?: string | undefined;
|
|
805
|
+
/** Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. Only used for RTMP(s) simulcast destinations. */
|
|
806
|
+
stream_key?: string | Redacted.Redacted<string> | undefined;
|
|
807
|
+
/** The RTMP(s) or SRT endpoint for a simulcast destination. * For RTMP(s) destinations, this should include the application name for the third party live streaming service, for example: `rtmp://live.example.com/app`. * For SRT destinations, this should be a fully formed SRT connection string, for example: `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`. Note: SRT simulcast targets can only be used when an source is connected over SRT. */
|
|
808
|
+
url: string | Redacted.Redacted<string>;
|
|
809
|
+
}
|
|
810
|
+
export interface SimulcastTargetResponse {
|
|
811
|
+
data: SimulcastTarget;
|
|
812
|
+
}
|
|
813
|
+
/** List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `["*"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `["*.example.com", "foo.com"]` A list of up to 10 domains or valid dns-style wildcards */
|
|
814
|
+
export type ReferrerDomainRestrictionRequestAllowedDomainsList = Array<string>;
|
|
815
|
+
/** A list of domains allowed to play your videos. */
|
|
816
|
+
export interface ReferrerDomainRestrictionRequest {
|
|
817
|
+
/** List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `["*"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `["*.example.com", "foo.com"]` A list of up to 10 domains or valid dns-style wildcards */
|
|
818
|
+
allowed_domains: ReferrerDomainRestrictionRequestAllowedDomainsList;
|
|
819
|
+
/** A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. */
|
|
820
|
+
allow_no_referrer?: boolean | undefined;
|
|
821
|
+
}
|
|
822
|
+
/** Rules that control what user agents are allowed to play your videos. Please see [Using User-Agent HTTP header for validation](https://docs.mux.com/guides/secure-video-playback#using-user-agent-http-header-for-validation) for more details on this feature. */
|
|
823
|
+
export interface UserAgentRestrictionRequest {
|
|
824
|
+
/** Whether or not to allow views without a `User-Agent` HTTP request header. */
|
|
825
|
+
allow_no_user_agent?: boolean | undefined;
|
|
826
|
+
/** Whether or not to allow high risk user agents. The high risk user agents are defined by Mux. */
|
|
827
|
+
allow_high_risk_user_agent?: boolean | undefined;
|
|
828
|
+
}
|
|
829
|
+
export interface CreatePlaybackRestrictionRequest {
|
|
830
|
+
referrer: ReferrerDomainRestrictionRequest;
|
|
831
|
+
user_agent: UserAgentRestrictionRequest;
|
|
832
|
+
}
|
|
833
|
+
/** List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `["*"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `["*.example.com", "foo.com"]` A list of up to 10 domains or valid dns-style wildcards */
|
|
834
|
+
export type ReferrerDomainRestrictionSettingsAllowedDomainsList = Array<string>;
|
|
835
|
+
/** A list of domains allowed to play your videos. */
|
|
836
|
+
export interface ReferrerDomainRestrictionSettings {
|
|
837
|
+
/** List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `["*"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `["*.example.com", "foo.com"]` A list of up to 10 domains or valid dns-style wildcards */
|
|
838
|
+
allowed_domains?: ReferrerDomainRestrictionSettingsAllowedDomainsList | undefined;
|
|
839
|
+
/** A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. */
|
|
840
|
+
allow_no_referrer?: boolean | undefined;
|
|
841
|
+
}
|
|
842
|
+
/** Rules that control what user agents are allowed to play your videos. Please see [Using User-Agent HTTP header for validation](https://docs.mux.com/guides/secure-video-playback#using-user-agent-http-header-for-validation) for more details on this feature. */
|
|
843
|
+
export type UserAgentRestrictionSettings = UserAgentRestrictionRequest;
|
|
844
|
+
export interface PlaybackRestriction {
|
|
845
|
+
/** Unique identifier for the Playback Restriction. Max 255 characters. */
|
|
846
|
+
id: string;
|
|
847
|
+
/** Time the Playback Restriction was created, defined as a Unix timestamp (seconds since epoch). */
|
|
848
|
+
created_at: string;
|
|
849
|
+
/** Time the Playback Restriction was last updated, defined as a Unix timestamp (seconds since epoch). */
|
|
850
|
+
updated_at: string;
|
|
851
|
+
referrer: ReferrerDomainRestrictionSettings;
|
|
852
|
+
user_agent: UserAgentRestrictionRequest;
|
|
853
|
+
}
|
|
854
|
+
export interface PlaybackRestrictionResponse {
|
|
855
|
+
data: PlaybackRestriction;
|
|
856
|
+
}
|
|
857
|
+
/** Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. */
|
|
858
|
+
export type CreateTranscriptionVocabularyRequestPhrasesList = Array<string>;
|
|
859
|
+
export interface CreateTranscriptionVocabularyRequest {
|
|
860
|
+
/** The user-supplied name of the Transcription Vocabulary. */
|
|
861
|
+
name?: string | undefined;
|
|
862
|
+
/** Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. */
|
|
863
|
+
phrases: CreateTranscriptionVocabularyRequestPhrasesList;
|
|
864
|
+
/** Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters. */
|
|
865
|
+
passthrough?: string | undefined;
|
|
866
|
+
}
|
|
867
|
+
/** Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted. */
|
|
868
|
+
export type TranscriptionVocabularyPhrasesList = Array<string>;
|
|
869
|
+
export interface TranscriptionVocabulary {
|
|
870
|
+
/** Unique identifier for the Transcription Vocabulary */
|
|
871
|
+
id: string;
|
|
872
|
+
/** The user-supplied name of the Transcription Vocabulary. */
|
|
873
|
+
name?: string | undefined;
|
|
874
|
+
/** Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles` configuration, the probability of successful speech recognition for these words or phrases is boosted. */
|
|
875
|
+
phrases?: TranscriptionVocabularyPhrasesList | undefined;
|
|
876
|
+
/** Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters. */
|
|
877
|
+
passthrough?: string | undefined;
|
|
878
|
+
/** Time the Transcription Vocabulary was created, defined as a Unix timestamp (seconds since epoch). */
|
|
879
|
+
created_at: string;
|
|
880
|
+
/** Time the Transcription Vocabulary was updated, defined as a Unix timestamp (seconds since epoch). */
|
|
881
|
+
updated_at: string;
|
|
882
|
+
}
|
|
883
|
+
export interface TranscriptionVocabularyResponse {
|
|
884
|
+
data: TranscriptionVocabulary;
|
|
885
|
+
}
|
|
886
|
+
export interface DeleteAssetRequest {
|
|
887
|
+
/** The asset ID. */
|
|
888
|
+
ASSET_ID: string;
|
|
889
|
+
}
|
|
890
|
+
export interface DeleteAssetResponse {
|
|
891
|
+
}
|
|
892
|
+
export interface DeleteAssetPlaybackIdRequest {
|
|
893
|
+
/** The asset ID. */
|
|
894
|
+
ASSET_ID: string;
|
|
895
|
+
/** The asset or live stream's playback ID. */
|
|
896
|
+
PLAYBACK_ID: string;
|
|
897
|
+
}
|
|
898
|
+
export interface DeleteAssetPlaybackIdResponse {
|
|
899
|
+
}
|
|
900
|
+
export interface DeleteAssetShotsRequest {
|
|
901
|
+
/** The asset ID. */
|
|
902
|
+
ASSET_ID: string;
|
|
903
|
+
}
|
|
904
|
+
export interface DeleteAssetShotsResponse {
|
|
905
|
+
}
|
|
906
|
+
export interface DeleteAssetStaticRenditionRequest {
|
|
907
|
+
/** The asset ID. */
|
|
908
|
+
ASSET_ID: string;
|
|
909
|
+
/** The static rendition ID. */
|
|
910
|
+
STATIC_RENDITION_ID: string;
|
|
911
|
+
}
|
|
912
|
+
export interface DeleteAssetStaticRenditionResponse {
|
|
913
|
+
}
|
|
914
|
+
export interface DeleteAssetThumbnailTimeRequest {
|
|
915
|
+
/** The asset ID. */
|
|
916
|
+
ASSET_ID: string;
|
|
917
|
+
}
|
|
918
|
+
export interface DeleteAssetThumbnailTimeResponse {
|
|
919
|
+
}
|
|
920
|
+
export interface DeleteAssetTrackRequest {
|
|
921
|
+
/** The asset ID. */
|
|
922
|
+
ASSET_ID: string;
|
|
923
|
+
/** The ID of the track for an asset. */
|
|
924
|
+
TRACK_ID: string;
|
|
925
|
+
}
|
|
926
|
+
export interface DeleteAssetTrackResponse {
|
|
927
|
+
}
|
|
928
|
+
export interface DeleteLiveStreamRequest {
|
|
929
|
+
/** The live stream ID */
|
|
930
|
+
LIVE_STREAM_ID: string;
|
|
931
|
+
}
|
|
932
|
+
export interface DeleteLiveStreamResponse {
|
|
933
|
+
}
|
|
934
|
+
export interface DeleteLiveStreamNewAssetSettingsStaticRenditionsRequest {
|
|
935
|
+
/** The live stream ID */
|
|
936
|
+
LIVE_STREAM_ID: string;
|
|
937
|
+
}
|
|
938
|
+
export interface DeleteLiveStreamNewAssetSettingsStaticRenditionsResponse {
|
|
939
|
+
}
|
|
940
|
+
export interface DeleteLiveStreamPlaybackIdRequest {
|
|
941
|
+
/** The live stream ID */
|
|
942
|
+
LIVE_STREAM_ID: string;
|
|
943
|
+
/** The asset or live stream's playback ID. */
|
|
944
|
+
PLAYBACK_ID: string;
|
|
945
|
+
}
|
|
946
|
+
export interface DeleteLiveStreamPlaybackIdResponse {
|
|
947
|
+
}
|
|
948
|
+
export interface DeleteLiveStreamSimulcastTargetRequest {
|
|
949
|
+
/** The live stream ID */
|
|
950
|
+
LIVE_STREAM_ID: string;
|
|
951
|
+
/** The ID of the simulcast target. */
|
|
952
|
+
SIMULCAST_TARGET_ID: string;
|
|
953
|
+
}
|
|
954
|
+
export interface DeleteLiveStreamSimulcastTargetResponse {
|
|
955
|
+
}
|
|
956
|
+
export interface DeletePlaybackRestrictionRequest {
|
|
957
|
+
/** ID of the Playback Restriction. */
|
|
958
|
+
PLAYBACK_RESTRICTION_ID: string;
|
|
959
|
+
}
|
|
960
|
+
export interface DeletePlaybackRestrictionResponse {
|
|
961
|
+
}
|
|
962
|
+
export interface DeleteTranscriptionVocabularyRequest {
|
|
963
|
+
/** The ID of the Transcription Vocabulary. */
|
|
964
|
+
TRANSCRIPTION_VOCABULARY_ID: string;
|
|
965
|
+
}
|
|
966
|
+
export interface DeleteTranscriptionVocabularyResponse {
|
|
967
|
+
}
|
|
968
|
+
export interface DisableLiveStreamRequest {
|
|
969
|
+
/** The live stream ID */
|
|
970
|
+
LIVE_STREAM_ID: string;
|
|
971
|
+
}
|
|
972
|
+
export interface DisableLiveStreamResponse {
|
|
973
|
+
data: unknown;
|
|
974
|
+
}
|
|
975
|
+
export interface EnableLiveStreamRequest {
|
|
976
|
+
/** The live stream ID */
|
|
977
|
+
LIVE_STREAM_ID: string;
|
|
978
|
+
}
|
|
979
|
+
export interface EnableLiveStreamResponse {
|
|
980
|
+
data: unknown;
|
|
981
|
+
}
|
|
982
|
+
export interface GenerateAssetShotsRequest2 {
|
|
983
|
+
/** The asset ID. */
|
|
984
|
+
ASSET_ID: string;
|
|
985
|
+
}
|
|
986
|
+
export interface GenerateAssetShotsResponse {
|
|
987
|
+
data: AssetShots;
|
|
988
|
+
}
|
|
989
|
+
/** Generate subtitle tracks using automatic speech recognition with this configuration. */
|
|
990
|
+
export type GenerateAssetTrackSubtitlesRequestGeneratedSubtitlesList = Array<AssetGeneratedSubtitleSettings>;
|
|
991
|
+
export interface GenerateAssetTrackSubtitlesRequest {
|
|
992
|
+
/** The asset ID. */
|
|
993
|
+
ASSET_ID: string;
|
|
994
|
+
/** The ID of the track for an asset. */
|
|
995
|
+
TRACK_ID: string;
|
|
996
|
+
/** Generate subtitle tracks using automatic speech recognition with this configuration. */
|
|
997
|
+
generated_subtitles: GenerateAssetTrackSubtitlesRequestGeneratedSubtitlesList;
|
|
998
|
+
}
|
|
999
|
+
export type GenerateTrackSubtitlesResponseDataList = Array<Track>;
|
|
1000
|
+
export interface GenerateTrackSubtitlesResponse {
|
|
1001
|
+
data: GenerateTrackSubtitlesResponseDataList;
|
|
1002
|
+
}
|
|
1003
|
+
export interface GetAssetRequest {
|
|
1004
|
+
/** The asset ID. */
|
|
1005
|
+
ASSET_ID: string;
|
|
1006
|
+
}
|
|
1007
|
+
export interface GetAssetInputInfoRequest {
|
|
1008
|
+
/** The asset ID. */
|
|
1009
|
+
ASSET_ID: string;
|
|
1010
|
+
}
|
|
1011
|
+
export interface InputTrack {
|
|
1012
|
+
type: string;
|
|
1013
|
+
duration?: number | undefined;
|
|
1014
|
+
encoding?: string | undefined;
|
|
1015
|
+
width?: number | undefined;
|
|
1016
|
+
height?: number | undefined;
|
|
1017
|
+
frame_rate?: number | undefined;
|
|
1018
|
+
sample_rate?: number | undefined;
|
|
1019
|
+
sample_size?: number | undefined;
|
|
1020
|
+
channels?: number | undefined;
|
|
1021
|
+
}
|
|
1022
|
+
export type InputFileTracksList = Array<InputTrack>;
|
|
1023
|
+
export interface InputFile {
|
|
1024
|
+
container_format?: string | undefined;
|
|
1025
|
+
tracks?: InputFileTracksList | undefined;
|
|
1026
|
+
}
|
|
1027
|
+
export interface InputInfo {
|
|
1028
|
+
settings?: InputSettings | undefined;
|
|
1029
|
+
file?: InputFile | undefined;
|
|
1030
|
+
}
|
|
1031
|
+
export type GetAssetInputInfoResponseDataList = Array<InputInfo>;
|
|
1032
|
+
export interface GetAssetInputInfoResponse {
|
|
1033
|
+
data: GetAssetInputInfoResponseDataList;
|
|
1034
|
+
}
|
|
1035
|
+
export interface GetAssetOrLivestreamIdRequest {
|
|
1036
|
+
/** The asset or live stream's playback ID. */
|
|
1037
|
+
PLAYBACK_ID: string;
|
|
1038
|
+
}
|
|
1039
|
+
/** Identifies the object type associated with the playback ID. */
|
|
1040
|
+
export type GetAssetOrLiveStreamIdResponseDataObjectType = "asset" | "live_stream";
|
|
1041
|
+
/** Describes the Asset or LiveStream object associated with the playback ID. */
|
|
1042
|
+
export interface GetAssetOrLiveStreamIdResponseDataObject {
|
|
1043
|
+
/** The identifier of the object. */
|
|
1044
|
+
id: string;
|
|
1045
|
+
/** Identifies the object type associated with the playback ID. */
|
|
1046
|
+
type: GetAssetOrLiveStreamIdResponseDataObjectType;
|
|
1047
|
+
}
|
|
1048
|
+
export interface GetAssetOrLiveStreamIdResponseData {
|
|
1049
|
+
/** The Playback ID used to retrieve the corresponding asset or the live stream ID */
|
|
1050
|
+
id: string;
|
|
1051
|
+
policy: PlaybackPolicy;
|
|
1052
|
+
/** Describes the Asset or LiveStream object associated with the playback ID. */
|
|
1053
|
+
object: GetAssetOrLiveStreamIdResponseDataObject;
|
|
1054
|
+
}
|
|
1055
|
+
export interface GetAssetOrLiveStreamIdResponse {
|
|
1056
|
+
data: GetAssetOrLiveStreamIdResponseData;
|
|
1057
|
+
}
|
|
1058
|
+
export interface GetAssetPlaybackIdRequest {
|
|
1059
|
+
/** The asset ID. */
|
|
1060
|
+
ASSET_ID: string;
|
|
1061
|
+
/** The asset or live stream's playback ID. */
|
|
1062
|
+
PLAYBACK_ID: string;
|
|
1063
|
+
}
|
|
1064
|
+
export interface GetAssetPlaybackIDResponse {
|
|
1065
|
+
data: PlaybackID;
|
|
1066
|
+
}
|
|
1067
|
+
export interface GetAssetShotsRequest {
|
|
1068
|
+
/** The asset ID. */
|
|
1069
|
+
ASSET_ID: string;
|
|
1070
|
+
}
|
|
1071
|
+
export interface GetAssetShotsResponse {
|
|
1072
|
+
data: AssetShots;
|
|
1073
|
+
}
|
|
1074
|
+
export interface GetDirectUploadRequest {
|
|
1075
|
+
/** ID of the Upload */
|
|
1076
|
+
UPLOAD_ID: string;
|
|
1077
|
+
}
|
|
1078
|
+
export interface GetDrmConfigurationRequest {
|
|
1079
|
+
/** The DRM Configuration ID. */
|
|
1080
|
+
DRM_CONFIGURATION_ID: string;
|
|
1081
|
+
}
|
|
1082
|
+
export interface DRMConfiguration {
|
|
1083
|
+
/** Unique identifier for the DRM Configuration. Max 255 characters. */
|
|
1084
|
+
id: string;
|
|
1085
|
+
}
|
|
1086
|
+
export interface DRMConfigurationResponse {
|
|
1087
|
+
data: DRMConfiguration;
|
|
1088
|
+
}
|
|
1089
|
+
export interface GetLiveStreamRequest {
|
|
1090
|
+
/** The live stream ID */
|
|
1091
|
+
LIVE_STREAM_ID: string;
|
|
1092
|
+
}
|
|
1093
|
+
export interface GetLiveStreamPlaybackIdRequest {
|
|
1094
|
+
/** The live stream ID */
|
|
1095
|
+
LIVE_STREAM_ID: string;
|
|
1096
|
+
/** The asset or live stream's playback ID. */
|
|
1097
|
+
PLAYBACK_ID: string;
|
|
1098
|
+
}
|
|
1099
|
+
export interface GetLiveStreamPlaybackIDResponse {
|
|
1100
|
+
data: PlaybackID;
|
|
1101
|
+
}
|
|
1102
|
+
export interface GetLiveStreamSimulcastTargetRequest {
|
|
1103
|
+
/** The live stream ID */
|
|
1104
|
+
LIVE_STREAM_ID: string;
|
|
1105
|
+
/** The ID of the simulcast target. */
|
|
1106
|
+
SIMULCAST_TARGET_ID: string;
|
|
1107
|
+
}
|
|
1108
|
+
export interface GetPlaybackRestrictionRequest {
|
|
1109
|
+
/** ID of the Playback Restriction. */
|
|
1110
|
+
PLAYBACK_RESTRICTION_ID: string;
|
|
1111
|
+
}
|
|
1112
|
+
export interface GetTranscriptionVocabularyRequest {
|
|
1113
|
+
/** The ID of the Transcription Vocabulary. */
|
|
1114
|
+
TRANSCRIPTION_VOCABULARY_ID: string;
|
|
1115
|
+
}
|
|
1116
|
+
export interface ListAssetsRequest {
|
|
1117
|
+
/** Number of items to include in the response */
|
|
1118
|
+
limit?: number | undefined;
|
|
1119
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1120
|
+
page?: number | undefined;
|
|
1121
|
+
/** This parameter is used to request pages beyond the first. You can find the cursor value in the `next_cursor` field of paginated responses. */
|
|
1122
|
+
cursor?: string | undefined;
|
|
1123
|
+
/** Filter response to return all the assets for this live stream only */
|
|
1124
|
+
live_stream_id?: string | undefined;
|
|
1125
|
+
/** Filter response to return an asset created from this direct upload only */
|
|
1126
|
+
upload_id?: string | undefined;
|
|
1127
|
+
}
|
|
1128
|
+
export type ListAssetsResponseDataList = Array<Asset>;
|
|
1129
|
+
export interface ListAssetsResponse {
|
|
1130
|
+
/** If there are more pages of data, this field will contain a string that can be used with the `cursor` querystring parameter to fetch the next page of data. */
|
|
1131
|
+
next_cursor: string | null;
|
|
1132
|
+
data: ListAssetsResponseDataList;
|
|
1133
|
+
}
|
|
1134
|
+
export type ListDeliveryUsageRequestTimeframeList = Array<string>;
|
|
1135
|
+
export interface ListDeliveryUsageRequest {
|
|
1136
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1137
|
+
page?: number | undefined;
|
|
1138
|
+
/** Number of items to include in the response */
|
|
1139
|
+
limit?: number | undefined;
|
|
1140
|
+
/** Filter response to return delivery usage for this asset only. You cannot specify both the `asset_id` and `live_stream_id` parameters together. */
|
|
1141
|
+
asset_id?: string | undefined;
|
|
1142
|
+
/** Filter response to return delivery usage for assets for this live stream. You cannot specify both the `asset_id` and `live_stream_id` parameters together. */
|
|
1143
|
+
live_stream_id?: string | undefined;
|
|
1144
|
+
/** Time window to get delivery usage information. timeframe[0] indicates the start time, timeframe[1] indicates the end time in seconds since the Unix epoch. Default time window is 1 hour representing usage from 13th to 12th hour from when the request is made. */
|
|
1145
|
+
timeframe__?: ListDeliveryUsageRequestTimeframeList | undefined;
|
|
1146
|
+
}
|
|
1147
|
+
/** The state of the asset. */
|
|
1148
|
+
export type DeliveryReportAssetState = "ready" | "errored" | "deleted";
|
|
1149
|
+
/** The resolution tier that the asset was ingested at, affecting billing for ingest & storage */
|
|
1150
|
+
export type DeliveryReportAssetResolutionTier = "audio-only" | "720p" | "1080p" | "1440p" | "2160p";
|
|
1151
|
+
/** This field is deprecated. Please use `asset_video_quality` instead. The encoding tier that the asset was ingested at. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
1152
|
+
export type DeliveryReportAssetEncodingTier = "smart" | "baseline" | "premium";
|
|
1153
|
+
/** The video quality that the asset was ingested at. This field replaces `asset_encoding_tier`. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
1154
|
+
export type DeliveryReportAssetVideoQuality = "basic" | "plus" | "premium";
|
|
1155
|
+
/** Seconds delivered broken into resolution tiers. Each tier will only be displayed if there was content delivered in the tier. */
|
|
1156
|
+
export interface DeliveryReportDeliveredSecondsByResolution {
|
|
1157
|
+
/** Total number of delivered seconds during this time window that had a resolution larger than the 1440p tier (over 4,194,304 pixels total). */
|
|
1158
|
+
tier_2160p?: number | undefined;
|
|
1159
|
+
/** Total number of delivered seconds during this time window that had a resolution larger than the 1080p tier but less than or equal to the 2160p tier (over 2,073,600 and <= 4,194,304 pixels total). */
|
|
1160
|
+
tier_1440p?: number | undefined;
|
|
1161
|
+
/** Total number of delivered seconds during this time window that had a resolution larger than the 720p tier but less than or equal to the 1440p tier (over 921,600 and <= 2,073,600 pixels total). */
|
|
1162
|
+
tier_1080p?: number | undefined;
|
|
1163
|
+
/** Total number of delivered seconds during this time window that had a resolution within the 720p tier (up to 921,600 pixels total, based on typical 1280x720). */
|
|
1164
|
+
tier_720p?: number | undefined;
|
|
1165
|
+
/** Total number of delivered seconds during this time window that had a resolution of audio only. */
|
|
1166
|
+
tier_audio_only?: number | undefined;
|
|
1167
|
+
}
|
|
1168
|
+
export interface DeliveryReport {
|
|
1169
|
+
/** Unique identifier for the live stream that created the asset. */
|
|
1170
|
+
live_stream_id?: string | undefined;
|
|
1171
|
+
/** Unique identifier for the asset. */
|
|
1172
|
+
asset_id: string;
|
|
1173
|
+
/** The `passthrough` value for the asset. */
|
|
1174
|
+
passthrough?: string | undefined;
|
|
1175
|
+
/** Time at which the asset was created. Measured in seconds since the Unix epoch. */
|
|
1176
|
+
created_at: string;
|
|
1177
|
+
/** If exists, time at which the asset was deleted. Measured in seconds since the Unix epoch. */
|
|
1178
|
+
deleted_at?: string | undefined;
|
|
1179
|
+
/** The state of the asset. */
|
|
1180
|
+
asset_state: DeliveryReportAssetState;
|
|
1181
|
+
/** The duration of the asset in seconds. */
|
|
1182
|
+
asset_duration: number;
|
|
1183
|
+
/** The resolution tier that the asset was ingested at, affecting billing for ingest & storage */
|
|
1184
|
+
asset_resolution_tier: DeliveryReportAssetResolutionTier;
|
|
1185
|
+
/** This field is deprecated. Please use `asset_video_quality` instead. The encoding tier that the asset was ingested at. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
1186
|
+
asset_encoding_tier: DeliveryReportAssetEncodingTier;
|
|
1187
|
+
/** The video quality that the asset was ingested at. This field replaces `asset_encoding_tier`. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
1188
|
+
asset_video_quality?: DeliveryReportAssetVideoQuality | undefined;
|
|
1189
|
+
/** Total number of delivered seconds during this time window. */
|
|
1190
|
+
delivered_seconds: number;
|
|
1191
|
+
/** Seconds delivered broken into resolution tiers. Each tier will only be displayed if there was content delivered in the tier. */
|
|
1192
|
+
delivered_seconds_by_resolution: DeliveryReportDeliveredSecondsByResolution;
|
|
1193
|
+
}
|
|
1194
|
+
export type ListDeliveryUsageResponseDataList = Array<DeliveryReport>;
|
|
1195
|
+
export type ListDeliveryUsageResponseTimeframeList = Array<number>;
|
|
1196
|
+
export interface ListDeliveryUsageResponse {
|
|
1197
|
+
data: ListDeliveryUsageResponseDataList;
|
|
1198
|
+
timeframe: ListDeliveryUsageResponseTimeframeList;
|
|
1199
|
+
/** Number of assets returned in this response. Default value is 100. */
|
|
1200
|
+
limit: number;
|
|
1201
|
+
/** Offset by this many pages, of the size of `limit`. */
|
|
1202
|
+
page: number;
|
|
1203
|
+
}
|
|
1204
|
+
export interface ListDirectUploadsRequest {
|
|
1205
|
+
/** Number of items to include in the response */
|
|
1206
|
+
limit?: number | undefined;
|
|
1207
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1208
|
+
page?: number | undefined;
|
|
1209
|
+
}
|
|
1210
|
+
export type ListUploadsResponseDataList = Array<Upload>;
|
|
1211
|
+
export interface ListUploadsResponse {
|
|
1212
|
+
data: ListUploadsResponseDataList;
|
|
1213
|
+
}
|
|
1214
|
+
export interface ListDrmConfigurationsRequest {
|
|
1215
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1216
|
+
page?: number | undefined;
|
|
1217
|
+
/** Number of items to include in the response */
|
|
1218
|
+
limit?: number | undefined;
|
|
1219
|
+
}
|
|
1220
|
+
export type ListDRMConfigurationsResponseDataList = Array<DRMConfiguration>;
|
|
1221
|
+
export interface ListDRMConfigurationsResponse {
|
|
1222
|
+
data: ListDRMConfigurationsResponseDataList;
|
|
1223
|
+
}
|
|
1224
|
+
export interface ListLiveStreamsRequest {
|
|
1225
|
+
/** Number of items to include in the response */
|
|
1226
|
+
limit?: number | undefined;
|
|
1227
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1228
|
+
page?: number | undefined;
|
|
1229
|
+
/** Filter response to return live stream for this stream key only */
|
|
1230
|
+
stream_key?: string | Redacted.Redacted<string> | undefined;
|
|
1231
|
+
/** Filter response to return live streams with the specified status only */
|
|
1232
|
+
status?: LiveStreamStatus | (string & {}) | undefined;
|
|
1233
|
+
}
|
|
1234
|
+
export type ListLiveStreamsResponseDataList = Array<LiveStream>;
|
|
1235
|
+
export interface ListLiveStreamsResponse {
|
|
1236
|
+
data: ListLiveStreamsResponseDataList;
|
|
1237
|
+
}
|
|
1238
|
+
export interface ListPlaybackRestrictionsRequest {
|
|
1239
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1240
|
+
page?: number | undefined;
|
|
1241
|
+
/** Number of items to include in the response */
|
|
1242
|
+
limit?: number | undefined;
|
|
1243
|
+
}
|
|
1244
|
+
export type ListPlaybackRestrictionsResponseDataList = Array<PlaybackRestriction>;
|
|
1245
|
+
export interface ListPlaybackRestrictionsResponse {
|
|
1246
|
+
data: ListPlaybackRestrictionsResponseDataList;
|
|
1247
|
+
}
|
|
1248
|
+
export interface ListTranscriptionVocabulariesRequest {
|
|
1249
|
+
/** Number of items to include in the response */
|
|
1250
|
+
limit?: number | undefined;
|
|
1251
|
+
/** Offset by this many pages, of the size of `limit` */
|
|
1252
|
+
page?: number | undefined;
|
|
1253
|
+
}
|
|
1254
|
+
export type ListTranscriptionVocabulariesResponseDataList = Array<TranscriptionVocabulary>;
|
|
1255
|
+
export interface ListTranscriptionVocabulariesResponse {
|
|
1256
|
+
data: ListTranscriptionVocabulariesResponseDataList;
|
|
1257
|
+
}
|
|
1258
|
+
export interface ResetStreamKeyRequest {
|
|
1259
|
+
/** The live stream ID */
|
|
1260
|
+
LIVE_STREAM_ID: string;
|
|
1261
|
+
}
|
|
1262
|
+
export interface SignalLiveStreamCompleteRequest {
|
|
1263
|
+
/** The live stream ID */
|
|
1264
|
+
LIVE_STREAM_ID: string;
|
|
1265
|
+
}
|
|
1266
|
+
export interface SignalLiveStreamCompleteResponse {
|
|
1267
|
+
data: unknown;
|
|
1268
|
+
}
|
|
1269
|
+
export interface UpdateAssetRequest {
|
|
1270
|
+
/** The asset ID. */
|
|
1271
|
+
ASSET_ID: string;
|
|
1272
|
+
/** You can set this field to anything you want. It will be included in the asset details and related webhooks. If you're looking for more structured metadata, such as `title` or `external_id` , you can use the `meta` object instead. **Max: 255 characters**. In order to clear this value, the field should be included with an empty string value. */
|
|
1273
|
+
passthrough?: string | undefined;
|
|
1274
|
+
meta?: AssetMetadata | undefined;
|
|
1275
|
+
/** The media time within the asset used when a thumbnail without an explicit time is requested. */
|
|
1276
|
+
thumbnail_time?: number | undefined;
|
|
1277
|
+
}
|
|
1278
|
+
/** Add or remove access to the master version of the video. */
|
|
1279
|
+
export type UpdateAssetMasterAccessRequestMasterAccess = "temporary" | "none";
|
|
1280
|
+
export interface UpdateAssetMasterAccessRequest {
|
|
1281
|
+
/** The asset ID. */
|
|
1282
|
+
ASSET_ID: string;
|
|
1283
|
+
/** Add or remove access to the master version of the video. */
|
|
1284
|
+
master_access: UpdateAssetMasterAccessRequestMasterAccess | (string & {});
|
|
1285
|
+
}
|
|
1286
|
+
export interface UpdateAssetTrackRequest {
|
|
1287
|
+
/** The asset ID. */
|
|
1288
|
+
ASSET_ID: string;
|
|
1289
|
+
/** The ID of the track for an asset. */
|
|
1290
|
+
TRACK_ID: string;
|
|
1291
|
+
/** The language code of this track. The value must be a valid BCP 47 specification compliant value. For example, en for English or en-US for the US version of English. */
|
|
1292
|
+
language_code?: string | undefined;
|
|
1293
|
+
/** The name of the track containing a human-readable description. This value must be unique within each group of `text` or `audio` track types. The HLS manifest will associate the `text` or `audio` track with this value. For example, set the value to "English" for subtitles text track with `language_code` as en-US. If this parameter is not included, Mux will auto-populate a value based on the `language_code` value. */
|
|
1294
|
+
name?: string | undefined;
|
|
1295
|
+
/** Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). */
|
|
1296
|
+
closed_captions?: boolean | undefined;
|
|
1297
|
+
/** Arbitrary user-supplied metadata set for the track either when creating the asset or track. */
|
|
1298
|
+
passthrough?: string | undefined;
|
|
1299
|
+
}
|
|
1300
|
+
export interface UpdateAssetTrackResponse {
|
|
1301
|
+
data: Track;
|
|
1302
|
+
}
|
|
1303
|
+
/** Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */
|
|
1304
|
+
export type UpdateLiveStreamRequestLatencyMode = "low" | "reduced" | "standard";
|
|
1305
|
+
/** Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#during-live-stream-creation) for the updated API. Specify what level of support for mp4 playback should be added to new assets generated from this live stream. * The `none` option disables MP4 support for new assets. MP4 files will not be produced for an asset generated from this live stream. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. * The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). */
|
|
1306
|
+
export type UpdateLiveStreamNewAssetSettingsMp4Support = "none" | "standard" | "capped-1080p" | "audio-only" | "audio-only,capped-1080p";
|
|
1307
|
+
/** Add or remove access to the master version of the video. */
|
|
1308
|
+
export type UpdateLiveStreamNewAssetSettingsMasterAccess = "temporary" | "none";
|
|
1309
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
1310
|
+
export type UpdateLiveStreamNewAssetSettingsVideoQuality = "plus" | "premium";
|
|
1311
|
+
/** Updates the new asset settings to use to generate a new asset for this live stream. Only the `mp4_support`, `master_access`, and `video_quality` settings may be updated. */
|
|
1312
|
+
export interface UpdateLiveStreamNewAssetSettings {
|
|
1313
|
+
/** Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#during-live-stream-creation) for the updated API. Specify what level of support for mp4 playback should be added to new assets generated from this live stream. * The `none` option disables MP4 support for new assets. MP4 files will not be produced for an asset generated from this live stream. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. * The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). */
|
|
1314
|
+
mp4_support?: UpdateLiveStreamNewAssetSettingsMp4Support | (string & {}) | undefined;
|
|
1315
|
+
/** Add or remove access to the master version of the video. */
|
|
1316
|
+
master_access?: UpdateLiveStreamNewAssetSettingsMasterAccess | (string & {}) | undefined;
|
|
1317
|
+
/** The video quality controls the cost, quality, and available platform features for the asset. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) */
|
|
1318
|
+
video_quality?: UpdateLiveStreamNewAssetSettingsVideoQuality | (string & {}) | undefined;
|
|
1319
|
+
meta?: AssetMetadata | undefined;
|
|
1320
|
+
}
|
|
1321
|
+
export interface UpdateLiveStreamRequest {
|
|
1322
|
+
/** The live stream ID */
|
|
1323
|
+
LIVE_STREAM_ID: string;
|
|
1324
|
+
/** Arbitrary user-supplied metadata set for the live stream. Max 255 characters. In order to clear this value, the field should be included with an empty-string value. */
|
|
1325
|
+
passthrough?: string | undefined;
|
|
1326
|
+
/** Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. */
|
|
1327
|
+
latency_mode?: UpdateLiveStreamRequestLatencyMode | (string & {}) | undefined;
|
|
1328
|
+
/** When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option. */
|
|
1329
|
+
reconnect_window?: number | undefined;
|
|
1330
|
+
/** By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. */
|
|
1331
|
+
use_slate_for_standard_latency?: boolean | undefined;
|
|
1332
|
+
/** The URL of the image file that Mux should download and use as slate media during interruptions of the live stream media. This file will be downloaded each time a new recorded asset is created from the live stream. Set this to a blank string to clear the value so that the default slate media will be used. */
|
|
1333
|
+
reconnect_slate_url?: string | undefined;
|
|
1334
|
+
max_continuous_duration?: number | undefined;
|
|
1335
|
+
new_asset_settings?: UpdateLiveStreamNewAssetSettings | undefined;
|
|
1336
|
+
meta?: LiveStreamMetadata | undefined;
|
|
1337
|
+
}
|
|
1338
|
+
/** Describe the embedded closed caption contents of the incoming live stream. */
|
|
1339
|
+
export type UpdateLiveStreamEmbeddedSubtitlesRequestEmbeddedSubtitlesList = Array<LiveStreamEmbeddedSubtitleRequest>;
|
|
1340
|
+
export interface UpdateLiveStreamEmbeddedSubtitlesRequest {
|
|
1341
|
+
/** The live stream ID */
|
|
1342
|
+
LIVE_STREAM_ID: string;
|
|
1343
|
+
/** Describe the embedded closed caption contents of the incoming live stream. */
|
|
1344
|
+
embedded_subtitles?: UpdateLiveStreamEmbeddedSubtitlesRequestEmbeddedSubtitlesList | undefined;
|
|
1345
|
+
}
|
|
1346
|
+
/** Update automated speech recognition subtitle configuration for a live stream. At most one subtitle track is allowed. */
|
|
1347
|
+
export type UpdateLiveStreamGeneratedSubtitlesRequestGeneratedSubtitlesList = Array<LiveStreamGeneratedSubtitleRequest>;
|
|
1348
|
+
export interface UpdateLiveStreamGeneratedSubtitlesRequest {
|
|
1349
|
+
/** The live stream ID */
|
|
1350
|
+
LIVE_STREAM_ID: string;
|
|
1351
|
+
/** Update automated speech recognition subtitle configuration for a live stream. At most one subtitle track is allowed. */
|
|
1352
|
+
generated_subtitles?: UpdateLiveStreamGeneratedSubtitlesRequestGeneratedSubtitlesList | undefined;
|
|
1353
|
+
}
|
|
1354
|
+
export type UpdateLiveStreamNewAssetSettingsStaticRenditionsRequestStaticRenditionsList = Array<CreateStaticRenditionRequest>;
|
|
1355
|
+
export interface UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest {
|
|
1356
|
+
/** The live stream ID */
|
|
1357
|
+
LIVE_STREAM_ID: string;
|
|
1358
|
+
static_renditions: UpdateLiveStreamNewAssetSettingsStaticRenditionsRequestStaticRenditionsList;
|
|
1359
|
+
}
|
|
1360
|
+
/** List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `["*"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `["*.example.com", "foo.com"]` A list of up to 10 domains or valid dns-style wildcards */
|
|
1361
|
+
export type UpdateReferrerDomainRestrictionRequestAllowedDomainsList = Array<string>;
|
|
1362
|
+
export interface UpdateReferrerDomainRestrictionRequest {
|
|
1363
|
+
/** ID of the Playback Restriction. */
|
|
1364
|
+
PLAYBACK_RESTRICTION_ID: string;
|
|
1365
|
+
/** List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `["*"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `["*.example.com", "foo.com"]` A list of up to 10 domains or valid dns-style wildcards */
|
|
1366
|
+
allowed_domains: UpdateReferrerDomainRestrictionRequestAllowedDomainsList;
|
|
1367
|
+
/** A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. */
|
|
1368
|
+
allow_no_referrer?: boolean | undefined;
|
|
1369
|
+
}
|
|
1370
|
+
/** Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. */
|
|
1371
|
+
export type UpdateTranscriptionVocabularyRequestPhrasesList = Array<string>;
|
|
1372
|
+
export interface UpdateTranscriptionVocabularyRequest {
|
|
1373
|
+
/** The ID of the Transcription Vocabulary. */
|
|
1374
|
+
TRANSCRIPTION_VOCABULARY_ID: string;
|
|
1375
|
+
/** The user-supplied name of the Transcription Vocabulary. */
|
|
1376
|
+
name?: string | undefined;
|
|
1377
|
+
/** Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted. */
|
|
1378
|
+
phrases: UpdateTranscriptionVocabularyRequestPhrasesList;
|
|
1379
|
+
/** Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters. */
|
|
1380
|
+
passthrough?: string | undefined;
|
|
1381
|
+
}
|
|
1382
|
+
export interface UpdateUserAgentRestrictionRequest {
|
|
1383
|
+
/** ID of the Playback Restriction. */
|
|
1384
|
+
PLAYBACK_RESTRICTION_ID: string;
|
|
1385
|
+
/** Whether or not to allow views without a `User-Agent` HTTP request header. */
|
|
1386
|
+
allow_no_user_agent: boolean;
|
|
1387
|
+
/** Whether or not to allow high risk user agents. The high risk user agents are defined by Mux. */
|
|
1388
|
+
allow_high_risk_user_agent: boolean;
|
|
1389
|
+
}
|
|
1390
|
+
export type CancelDirectUploadError = Forbidden | MuxOpError;
|
|
1391
|
+
/** Cancel a direct upload Cancels a direct upload and marks it as cancelled. If a pending upload finishes after this request, no asset will be created. This request will only succeed if the upload is still in the `waiting` state. */
|
|
1392
|
+
export declare const cancelDirectUpload: API.OperationMethod<CancelDirectUploadRequest, UploadResponse, CancelDirectUploadError, MuxOpContext>;
|
|
1393
|
+
export type CreateAssetError = MuxOpError;
|
|
1394
|
+
/** Create an asset Create a new Mux Video asset. */
|
|
1395
|
+
export declare const createAsset: API.OperationMethod<CreateAssetRequest, AssetResponse, CreateAssetError, MuxOpContext>;
|
|
1396
|
+
export type CreateAssetPlaybackIdError = MuxOpError;
|
|
1397
|
+
/** Create a playback ID Creates a playback ID that can be used to stream the asset to a viewer. */
|
|
1398
|
+
export declare const createAssetPlaybackId: API.OperationMethod<CreateAssetPlaybackIdRequest, CreatePlaybackIDResponse, CreateAssetPlaybackIdError, MuxOpContext>;
|
|
1399
|
+
export type CreateAssetStaticRenditionError = MuxOpError;
|
|
1400
|
+
/** Create a static rendition for an asset Creates a static rendition (i.e. MP4) for an asset */
|
|
1401
|
+
export declare const createAssetStaticRendition: API.OperationMethod<CreateAssetStaticRenditionRequest, CreateStaticRenditionResponse, CreateAssetStaticRenditionError, MuxOpContext>;
|
|
1402
|
+
export type CreateAssetTrackError = MuxOpError;
|
|
1403
|
+
/** Create an asset track Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. Assets must be in the `ready` state before tracks can be added. */
|
|
1404
|
+
export declare const createAssetTrack: API.OperationMethod<CreateAssetTrackRequest, CreateTrackResponse, CreateAssetTrackError, MuxOpContext>;
|
|
1405
|
+
export type CreateDirectUploadError = MuxOpError;
|
|
1406
|
+
/** Create a new direct upload URL Creates a new direct upload, through which video content can be uploaded for ingest to Mux. */
|
|
1407
|
+
export declare const createDirectUpload: API.OperationMethod<CreateDirectUploadRequest, UploadResponse, CreateDirectUploadError, MuxOpContext>;
|
|
1408
|
+
export type CreateLiveStreamError = MuxOpError;
|
|
1409
|
+
/** Create a live stream Creates a new live stream. Once created, an encoder can connect to Mux via the specified stream key and begin streaming to an audience. */
|
|
1410
|
+
export declare const createLiveStream: API.OperationMethod<CreateLiveStreamRequest, LiveStreamResponse, CreateLiveStreamError, MuxOpContext>;
|
|
1411
|
+
export type CreateLiveStreamPlaybackIdError = MuxOpError;
|
|
1412
|
+
/** Create a live stream playback ID Create a new playback ID for this live stream, through which a viewer can watch the streamed content of the live stream. */
|
|
1413
|
+
export declare const createLiveStreamPlaybackId: API.OperationMethod<CreateLiveStreamPlaybackIdRequest, CreatePlaybackIDResponse, CreateLiveStreamPlaybackIdError, MuxOpContext>;
|
|
1414
|
+
export type CreateLiveStreamSimulcastTargetError = MuxOpError;
|
|
1415
|
+
/** Create a live stream simulcast target Create a simulcast target for the parent live stream. Simulcast target can only be created when the parent live stream is in idle state. Only one simulcast target can be created at a time with this API. */
|
|
1416
|
+
export declare const createLiveStreamSimulcastTarget: API.OperationMethod<CreateLiveStreamSimulcastTargetRequest, SimulcastTargetResponse, CreateLiveStreamSimulcastTargetError, MuxOpContext>;
|
|
1417
|
+
export type CreatePlaybackRestrictionError = MuxOpError;
|
|
1418
|
+
/** Create a Playback Restriction Create a new Playback Restriction. */
|
|
1419
|
+
export declare const createPlaybackRestriction: API.OperationMethod<CreatePlaybackRestrictionRequest, PlaybackRestrictionResponse, CreatePlaybackRestrictionError, MuxOpContext>;
|
|
1420
|
+
export type CreateTranscriptionVocabularyError = MuxOpError;
|
|
1421
|
+
/** Create a Transcription Vocabulary Create a new Transcription Vocabulary. */
|
|
1422
|
+
export declare const createTranscriptionVocabulary: API.OperationMethod<CreateTranscriptionVocabularyRequest, TranscriptionVocabularyResponse, CreateTranscriptionVocabularyError, MuxOpContext>;
|
|
1423
|
+
export type DeleteAssetError = MuxOpError;
|
|
1424
|
+
/** Delete an asset Deletes a video asset and all its data. */
|
|
1425
|
+
export declare const deleteAsset: API.OperationMethod<DeleteAssetRequest, DeleteAssetResponse, DeleteAssetError, MuxOpContext>;
|
|
1426
|
+
export type DeleteAssetPlaybackIdError = MuxOpError;
|
|
1427
|
+
/** Delete a playback ID Deletes a playback ID, rendering it nonfunctional for viewing an asset's video content. Please note that deleting the playback ID removes access to the underlying asset; a viewer who started playback before the playback ID was deleted may be able to watch the entire video for a limited duration. */
|
|
1428
|
+
export declare const deleteAssetPlaybackId: API.OperationMethod<DeleteAssetPlaybackIdRequest, DeleteAssetPlaybackIdResponse, DeleteAssetPlaybackIdError, MuxOpContext>;
|
|
1429
|
+
export type DeleteAssetShotsError = MuxOpError;
|
|
1430
|
+
/** Delete asset shots Deletes detected shot boundaries and shot preview images on the asset. */
|
|
1431
|
+
export declare const deleteAssetShots: API.OperationMethod<DeleteAssetShotsRequest, DeleteAssetShotsResponse, DeleteAssetShotsError, MuxOpContext>;
|
|
1432
|
+
export type DeleteAssetStaticRenditionError = MuxOpError;
|
|
1433
|
+
/** Delete a single static rendition for an asset Deletes a single static rendition for an asset */
|
|
1434
|
+
export declare const deleteAssetStaticRendition: API.OperationMethod<DeleteAssetStaticRenditionRequest, DeleteAssetStaticRenditionResponse, DeleteAssetStaticRenditionError, MuxOpContext>;
|
|
1435
|
+
export type DeleteAssetThumbnailTimeError = MuxOpError;
|
|
1436
|
+
/** Unset the thumbnail time for an asset Unset the thumbnail time for an asset, returning the thumbnail to default behavior */
|
|
1437
|
+
export declare const deleteAssetThumbnailTime: API.OperationMethod<DeleteAssetThumbnailTimeRequest, DeleteAssetThumbnailTimeResponse, DeleteAssetThumbnailTimeError, MuxOpContext>;
|
|
1438
|
+
export type DeleteAssetTrackError = MuxOpError;
|
|
1439
|
+
/** Delete an asset track Removes a text or additional audio track from an asset. Neither video nor the primary audio track can be removed. */
|
|
1440
|
+
export declare const deleteAssetTrack: API.OperationMethod<DeleteAssetTrackRequest, DeleteAssetTrackResponse, DeleteAssetTrackError, MuxOpContext>;
|
|
1441
|
+
export type DeleteLiveStreamError = MuxOpError;
|
|
1442
|
+
/** Delete a live stream Deletes a live stream from the current environment. If the live stream is currently active and being streamed to, ingest will be terminated and the encoder will be disconnected. */
|
|
1443
|
+
export declare const deleteLiveStream: API.OperationMethod<DeleteLiveStreamRequest, DeleteLiveStreamResponse, DeleteLiveStreamError, MuxOpContext>;
|
|
1444
|
+
export type DeleteLiveStreamNewAssetSettingsStaticRenditionsError = MuxOpError;
|
|
1445
|
+
/** Delete a live stream's static renditions setting for new assets Deletes a live stream's static renditions settings for new assets. Further assets made via this live stream will not create static renditions unless re-added. */
|
|
1446
|
+
export declare const deleteLiveStreamNewAssetSettingsStaticRenditions: API.OperationMethod<DeleteLiveStreamNewAssetSettingsStaticRenditionsRequest, DeleteLiveStreamNewAssetSettingsStaticRenditionsResponse, DeleteLiveStreamNewAssetSettingsStaticRenditionsError, MuxOpContext>;
|
|
1447
|
+
export type DeleteLiveStreamPlaybackIdError = MuxOpError;
|
|
1448
|
+
/** Delete a live stream playback ID Deletes the playback ID for the live stream. This will not disable ingest (as the live stream still exists). New attempts to play back the live stream will fail immediately. However, current viewers will be able to continue watching the stream for some period of time. */
|
|
1449
|
+
export declare const deleteLiveStreamPlaybackId: API.OperationMethod<DeleteLiveStreamPlaybackIdRequest, DeleteLiveStreamPlaybackIdResponse, DeleteLiveStreamPlaybackIdError, MuxOpContext>;
|
|
1450
|
+
export type DeleteLiveStreamSimulcastTargetError = MuxOpError;
|
|
1451
|
+
/** Delete a live stream simulcast target Delete the simulcast target using the simulcast target ID returned when creating the simulcast target. Simulcast Target can only be deleted when the parent live stream is in idle state. */
|
|
1452
|
+
export declare const deleteLiveStreamSimulcastTarget: API.OperationMethod<DeleteLiveStreamSimulcastTargetRequest, DeleteLiveStreamSimulcastTargetResponse, DeleteLiveStreamSimulcastTargetError, MuxOpContext>;
|
|
1453
|
+
export type DeletePlaybackRestrictionError = MuxOpError;
|
|
1454
|
+
/** Delete a Playback Restriction Deletes a single Playback Restriction. */
|
|
1455
|
+
export declare const deletePlaybackRestriction: API.OperationMethod<DeletePlaybackRestrictionRequest, DeletePlaybackRestrictionResponse, DeletePlaybackRestrictionError, MuxOpContext>;
|
|
1456
|
+
export type DeleteTranscriptionVocabularyError = MuxOpError;
|
|
1457
|
+
/** Delete a Transcription Vocabulary Deletes a Transcription Vocabulary. The Transcription Vocabulary's ID will be disassociated from any live streams using it. Transcription Vocabularies can be deleted while associated live streams are active. However, the words and phrases in the deleted Transcription Vocabulary will remain attached to those streams while they are active. */
|
|
1458
|
+
export declare const deleteTranscriptionVocabulary: API.OperationMethod<DeleteTranscriptionVocabularyRequest, DeleteTranscriptionVocabularyResponse, DeleteTranscriptionVocabularyError, MuxOpContext>;
|
|
1459
|
+
export type DisableLiveStreamError = MuxOpError;
|
|
1460
|
+
/** Disable a live stream Disables a live stream, making it reject incoming RTMP streams until re-enabled. The API also ends the live stream recording immediately when active. Ending the live stream recording adds the `EXT-X-ENDLIST` tag to the HLS manifest which notifies the player that this live stream is over. Mux also closes the encoder connection immediately. Any attempt from the encoder to re-establish connection will fail till the live stream is re-enabled. */
|
|
1461
|
+
export declare const disableLiveStream: API.OperationMethod<DisableLiveStreamRequest, DisableLiveStreamResponse, DisableLiveStreamError, MuxOpContext>;
|
|
1462
|
+
export type EnableLiveStreamError = MuxOpError;
|
|
1463
|
+
/** Enable a live stream Enables a live stream, allowing it to accept an incoming RTMP stream. */
|
|
1464
|
+
export declare const enableLiveStream: API.OperationMethod<EnableLiveStreamRequest, EnableLiveStreamResponse, EnableLiveStreamError, MuxOpContext>;
|
|
1465
|
+
export type GenerateAssetShotsError = MuxOpError;
|
|
1466
|
+
/** Generate shots Generate shot boundaries and shot preview images. */
|
|
1467
|
+
export declare const generateAssetShots: API.OperationMethod<GenerateAssetShotsRequest2, GenerateAssetShotsResponse, GenerateAssetShotsError, MuxOpContext>;
|
|
1468
|
+
export type GenerateAssetTrackSubtitlesError = MuxOpError;
|
|
1469
|
+
/** Generate track subtitles Generates subtitles (captions) for a given audio track. [See docs for more information.](https://mux.com/docs/guides/add-autogenerated-captions-and-use-transcripts#retroactively-enable-auto-generated-captions) */
|
|
1470
|
+
export declare const generateAssetTrackSubtitles: API.OperationMethod<GenerateAssetTrackSubtitlesRequest, GenerateTrackSubtitlesResponse, GenerateAssetTrackSubtitlesError, MuxOpContext>;
|
|
1471
|
+
export type GetAssetError = MuxOpError;
|
|
1472
|
+
/** Retrieve an asset Retrieves the details of an asset that has previously been created. Supply the unique asset ID that was returned from your previous request, and Mux will return the corresponding asset information. The same information is returned when creating an asset. */
|
|
1473
|
+
export declare const getAsset: API.OperationMethod<GetAssetRequest, AssetResponse, GetAssetError, MuxOpContext>;
|
|
1474
|
+
export type GetAssetInputInfoError = MuxOpError;
|
|
1475
|
+
/** Retrieve asset input info Returns a list of the input objects that were used to create the asset along with any settings that were applied to each input. */
|
|
1476
|
+
export declare const getAssetInputInfo: API.OperationMethod<GetAssetInputInfoRequest, GetAssetInputInfoResponse, GetAssetInputInfoError, MuxOpContext>;
|
|
1477
|
+
export type GetAssetOrLivestreamIdError = MuxOpError;
|
|
1478
|
+
/** Retrieve an asset or live stream ID Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID. */
|
|
1479
|
+
export declare const getAssetOrLivestreamId: API.OperationMethod<GetAssetOrLivestreamIdRequest, GetAssetOrLiveStreamIdResponse, GetAssetOrLivestreamIdError, MuxOpContext>;
|
|
1480
|
+
export type GetAssetPlaybackIdError = MuxOpError;
|
|
1481
|
+
/** Retrieve a playback ID Retrieves information about the specified playback ID. */
|
|
1482
|
+
export declare const getAssetPlaybackId: API.OperationMethod<GetAssetPlaybackIdRequest, GetAssetPlaybackIDResponse, GetAssetPlaybackIdError, MuxOpContext>;
|
|
1483
|
+
export type GetAssetShotsError = MuxOpError;
|
|
1484
|
+
/** Get asset shots Retrieves the shot manifest URL containing shot boundaries and shot preview image URLs. */
|
|
1485
|
+
export declare const getAssetShots: API.OperationMethod<GetAssetShotsRequest, GetAssetShotsResponse, GetAssetShotsError, MuxOpContext>;
|
|
1486
|
+
export type GetDirectUploadError = MuxOpError;
|
|
1487
|
+
/** Retrieve a single direct upload's info Fetches information about a single direct upload in the current environment. */
|
|
1488
|
+
export declare const getDirectUpload: API.OperationMethod<GetDirectUploadRequest, UploadResponse, GetDirectUploadError, MuxOpContext>;
|
|
1489
|
+
export type GetDrmConfigurationError = MuxOpError;
|
|
1490
|
+
/** Retrieve a DRM Configuration Retrieves a single DRM Configuration. */
|
|
1491
|
+
export declare const getDrmConfiguration: API.OperationMethod<GetDrmConfigurationRequest, DRMConfigurationResponse, GetDrmConfigurationError, MuxOpContext>;
|
|
1492
|
+
export type GetLiveStreamError = MuxOpError;
|
|
1493
|
+
/** Retrieve a live stream Retrieves the details of a live stream that has previously been created. Supply the unique live stream ID that was returned from your previous request, and Mux will return the corresponding live stream information. The same information is returned when creating a live stream. */
|
|
1494
|
+
export declare const getLiveStream: API.OperationMethod<GetLiveStreamRequest, LiveStreamResponse, GetLiveStreamError, MuxOpContext>;
|
|
1495
|
+
export type GetLiveStreamPlaybackIdError = MuxOpError;
|
|
1496
|
+
/** Retrieve a live stream playback ID Fetches information about a live stream's playback ID, through which a viewer can watch the streamed content from this live stream. */
|
|
1497
|
+
export declare const getLiveStreamPlaybackId: API.OperationMethod<GetLiveStreamPlaybackIdRequest, GetLiveStreamPlaybackIDResponse, GetLiveStreamPlaybackIdError, MuxOpContext>;
|
|
1498
|
+
export type GetLiveStreamSimulcastTargetError = MuxOpError;
|
|
1499
|
+
/** Retrieve a live stream simulcast target Retrieves the details of the simulcast target created for the parent live stream. Supply the unique live stream ID and simulcast target ID that was returned in the response of create simulcast target request, and Mux will return the corresponding information. */
|
|
1500
|
+
export declare const getLiveStreamSimulcastTarget: API.OperationMethod<GetLiveStreamSimulcastTargetRequest, SimulcastTargetResponse, GetLiveStreamSimulcastTargetError, MuxOpContext>;
|
|
1501
|
+
export type GetPlaybackRestrictionError = MuxOpError;
|
|
1502
|
+
/** Retrieve a Playback Restriction Retrieves a Playback Restriction associated with the unique identifier. */
|
|
1503
|
+
export declare const getPlaybackRestriction: API.OperationMethod<GetPlaybackRestrictionRequest, PlaybackRestrictionResponse, GetPlaybackRestrictionError, MuxOpContext>;
|
|
1504
|
+
export type GetTranscriptionVocabularyError = MuxOpError;
|
|
1505
|
+
/** Retrieve a Transcription Vocabulary Retrieves the details of a Transcription Vocabulary that has previously been created. Supply the unique Transcription Vocabulary ID and Mux will return the corresponding Transcription Vocabulary information. The same information is returned when creating a Transcription Vocabulary. */
|
|
1506
|
+
export declare const getTranscriptionVocabulary: API.OperationMethod<GetTranscriptionVocabularyRequest, TranscriptionVocabularyResponse, GetTranscriptionVocabularyError, MuxOpContext>;
|
|
1507
|
+
export type ListAssetsError = MuxOpError;
|
|
1508
|
+
/** List assets List all Mux assets. */
|
|
1509
|
+
export declare const listAssets: API.PaginatedOperationMethod<ListAssetsRequest, ListAssetsResponse, ListAssetsError, MuxOpContext, Asset>;
|
|
1510
|
+
export type ListDeliveryUsageError = MuxOpError;
|
|
1511
|
+
/** List Usage Returns a list of delivery usage records and their associated Asset IDs or Live Stream IDs. */
|
|
1512
|
+
export declare const listDeliveryUsage: API.PaginatedOperationMethod<ListDeliveryUsageRequest, ListDeliveryUsageResponse, ListDeliveryUsageError, MuxOpContext, DeliveryReport>;
|
|
1513
|
+
export type ListDirectUploadsError = MuxOpError;
|
|
1514
|
+
/** List direct uploads Lists direct uploads in the current environment. */
|
|
1515
|
+
export declare const listDirectUploads: API.PaginatedOperationMethod<ListDirectUploadsRequest, ListUploadsResponse, ListDirectUploadsError, MuxOpContext, Upload>;
|
|
1516
|
+
export type ListDrmConfigurationsError = MuxOpError;
|
|
1517
|
+
/** List DRM Configurations Returns a list of DRM Configurations */
|
|
1518
|
+
export declare const listDrmConfigurations: API.PaginatedOperationMethod<ListDrmConfigurationsRequest, ListDRMConfigurationsResponse, ListDrmConfigurationsError, MuxOpContext, DRMConfiguration>;
|
|
1519
|
+
export type ListLiveStreamsError = MuxOpError;
|
|
1520
|
+
/** List live streams Lists the live streams that currently exist in the current environment. */
|
|
1521
|
+
export declare const listLiveStreams: API.PaginatedOperationMethod<ListLiveStreamsRequest, ListLiveStreamsResponse, ListLiveStreamsError, MuxOpContext, LiveStream>;
|
|
1522
|
+
export type ListPlaybackRestrictionsError = MuxOpError;
|
|
1523
|
+
/** List Playback Restrictions Returns a list of all Playback Restrictions. */
|
|
1524
|
+
export declare const listPlaybackRestrictions: API.PaginatedOperationMethod<ListPlaybackRestrictionsRequest, ListPlaybackRestrictionsResponse, ListPlaybackRestrictionsError, MuxOpContext, PlaybackRestriction>;
|
|
1525
|
+
export type ListTranscriptionVocabulariesError = MuxOpError;
|
|
1526
|
+
/** List Transcription Vocabularies List all Transcription Vocabularies. */
|
|
1527
|
+
export declare const listTranscriptionVocabularies: API.PaginatedOperationMethod<ListTranscriptionVocabulariesRequest, ListTranscriptionVocabulariesResponse, ListTranscriptionVocabulariesError, MuxOpContext, TranscriptionVocabulary>;
|
|
1528
|
+
export type ResetStreamKeyError = MuxOpError;
|
|
1529
|
+
/** Reset a live stream's stream key Reset a live stream key if you want to immediately stop the current stream key from working and create a new stream key that can be used for future broadcasts. */
|
|
1530
|
+
export declare const resetStreamKey: API.OperationMethod<ResetStreamKeyRequest, LiveStreamResponse, ResetStreamKeyError, MuxOpContext>;
|
|
1531
|
+
export type SignalLiveStreamCompleteError = MuxOpError;
|
|
1532
|
+
/** Signal a live stream is finished (Optional) End the live stream recording immediately instead of waiting for the reconnect_window. `EXT-X-ENDLIST` tag is added to the HLS manifest which notifies the player that this live stream is over. Mux does not close the encoder connection immediately. Encoders are often configured to re-establish connections immediately which would result in a new recorded asset. For this reason, Mux waits for 60s before closing the connection with the encoder. This 60s timeframe is meant to give encoder operators a chance to disconnect from their end. */
|
|
1533
|
+
export declare const signalLiveStreamComplete: API.OperationMethod<SignalLiveStreamCompleteRequest, SignalLiveStreamCompleteResponse, SignalLiveStreamCompleteError, MuxOpContext>;
|
|
1534
|
+
export type UpdateAssetError = MuxOpError;
|
|
1535
|
+
/** Update an asset Updates the details of an existing Asset with the provided Asset ID. This API currently only supports the `passthrough`, `meta` and `thumbnail_time` fields. */
|
|
1536
|
+
export declare const updateAsset: API.OperationMethod<UpdateAssetRequest, AssetResponse, UpdateAssetError, MuxOpContext>;
|
|
1537
|
+
export type UpdateAssetMasterAccessError = MuxOpError;
|
|
1538
|
+
/** Update master access Allows you to add temporary access to the master (highest-quality) version of the asset in MP4 format. A URL will be created that can be used to download the master version for 24 hours. After 24 hours Master Access will revert to "none". This master version is not optimized for web and not meant to be streamed, only downloaded for purposes like archiving or editing the video offline. */
|
|
1539
|
+
export declare const updateAssetMasterAccess: API.OperationMethod<UpdateAssetMasterAccessRequest, AssetResponse, UpdateAssetMasterAccessError, MuxOpContext>;
|
|
1540
|
+
export type UpdateAssetTrackError = MuxOpError;
|
|
1541
|
+
/** Update an asset track Updates the details of an existing Asset Track with the provided Asset ID and Track ID. */
|
|
1542
|
+
export declare const updateAssetTrack: API.OperationMethod<UpdateAssetTrackRequest, UpdateAssetTrackResponse, UpdateAssetTrackError, MuxOpContext>;
|
|
1543
|
+
export type UpdateLiveStreamError = MuxOpError;
|
|
1544
|
+
/** Update a live stream Updates the parameters of a previously-created live stream. This currently supports a subset of variables. Supply the live stream ID and the updated parameters and Mux will return the corresponding live stream information. The information returned will be the same after update as for subsequent get live stream requests. */
|
|
1545
|
+
export declare const updateLiveStream: API.OperationMethod<UpdateLiveStreamRequest, LiveStreamResponse, UpdateLiveStreamError, MuxOpContext>;
|
|
1546
|
+
export type UpdateLiveStreamEmbeddedSubtitlesError = MuxOpError;
|
|
1547
|
+
/** Update a live stream's embedded subtitles Configures a live stream to receive embedded closed captions. The resulting Asset's subtitle text track will have `closed_captions: true` set. */
|
|
1548
|
+
export declare const updateLiveStreamEmbeddedSubtitles: API.OperationMethod<UpdateLiveStreamEmbeddedSubtitlesRequest, LiveStreamResponse, UpdateLiveStreamEmbeddedSubtitlesError, MuxOpContext>;
|
|
1549
|
+
export type UpdateLiveStreamGeneratedSubtitlesError = MuxOpError;
|
|
1550
|
+
/** Update a live stream's generated subtitles Updates a live stream's automatic-speech-recognition-generated subtitle configuration. Automatic speech recognition subtitles can be removed by sending an empty array in the request payload. */
|
|
1551
|
+
export declare const updateLiveStreamGeneratedSubtitles: API.OperationMethod<UpdateLiveStreamGeneratedSubtitlesRequest, LiveStreamResponse, UpdateLiveStreamGeneratedSubtitlesError, MuxOpContext>;
|
|
1552
|
+
export type UpdateLiveStreamNewAssetSettingsStaticRenditionsError = MuxOpError;
|
|
1553
|
+
/** Update live stream static renditions for new assets Updates a live stream's static renditions settings for new assets. Further assets made via this live stream will create static renditions per the settings provided. You must provide all static renditions desired. */
|
|
1554
|
+
export declare const updateLiveStreamNewAssetSettingsStaticRenditions: API.OperationMethod<UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest, LiveStreamResponse, UpdateLiveStreamNewAssetSettingsStaticRenditionsError, MuxOpContext>;
|
|
1555
|
+
export type UpdateReferrerDomainRestrictionError = MuxOpError;
|
|
1556
|
+
/** Update the Referrer Playback Restriction Allows you to modify the list of domains or change how Mux validates playback requests without the `Referer` HTTP header. The Referrer restriction fully replaces the old list with this new list of domains. */
|
|
1557
|
+
export declare const updateReferrerDomainRestriction: API.OperationMethod<UpdateReferrerDomainRestrictionRequest, PlaybackRestrictionResponse, UpdateReferrerDomainRestrictionError, MuxOpContext>;
|
|
1558
|
+
export type UpdateTranscriptionVocabularyError = MuxOpError;
|
|
1559
|
+
/** Update a Transcription Vocabulary Updates the details of a previously-created Transcription Vocabulary. Updates to Transcription Vocabularies are allowed while associated live streams are active. However, updates will not be applied to those streams while they are active. */
|
|
1560
|
+
export declare const updateTranscriptionVocabulary: API.OperationMethod<UpdateTranscriptionVocabularyRequest, TranscriptionVocabularyResponse, UpdateTranscriptionVocabularyError, MuxOpContext>;
|
|
1561
|
+
export type UpdateUserAgentRestrictionError = MuxOpError;
|
|
1562
|
+
/** Update the User Agent Restriction Allows you to modify how Mux validates playback requests with different user agents. Please see [Using User-Agent HTTP header for validation](https://docs.mux.com/guides/secure-video-playback#using-user-agent-http-header-for-validation) for more details on this feature. */
|
|
1563
|
+
export declare const updateUserAgentRestriction: API.OperationMethod<UpdateUserAgentRestrictionRequest, PlaybackRestrictionResponse, UpdateUserAgentRestrictionError, MuxOpContext>;
|
|
1564
|
+
//# sourceMappingURL=video.d.ts.map
|