/** * @api.video/nodejs-client * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated. * Do not edit the class manually. */ import AttributeType from './AttributeType.js'; import Metadata from './Metadata.js'; import VideoAssets from './VideoAssets.js'; import VideoSource from './VideoSource.js'; export default class Video { /** * The unique identifier of the video object. */ 'videoId': string; /** * When a video was created, presented in ATOM UTC format. */ 'createdAt'?: Date; /** * The title of the video content. */ 'title'?: string; /** * A description for the video content. */ 'description'?: string; /** * The date and time the API created the video. Date and time are provided using ATOM UTC format. */ 'publishedAt'?: Date; /** * The date and time the video was updated. Date and time are provided using ATOM UTC format. */ 'updatedAt'?: Date; /** * The date and time the video was discarded. The API populates this field only if you have the Video Restore feature enabled and discard a video. Date and time are provided using ATOM UTC format. */ 'discardedAt'?: Date; /** * The date and time the video will be permanently deleted. The API populates this field only if you have the Video Restore feature enabled and discard a video. Discarded videos are pemanently deleted after 90 days. Date and time are provided using ATOM UTC format. */ 'deletesAt'?: Date; /** * Returns `true` for videos you discarded when you have the Video Restore feature enabled. Returns `false` for every other video. */ 'discarded'?: boolean; /** * Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. You can set the language during video creation via the API, otherwise it is detected automatically. */ 'language'?: string; /** * Returns the origin of the last update on the video's `language` attribute. - `api` means that the last update was requested from the API. - `auto` means that the last update was done automatically by the API. */ 'languageOrigin'?: VideoLanguageOriginEnum; /** * One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. */ 'tags'?: Array; /** * Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. */ 'metadata'?: Array; 'source'?: VideoSource; 'assets'?: VideoAssets; /** * The id of the player that will be applied on the video. */ 'playerId'?: string; /** * Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/). */ '_public'?: boolean; /** * Defines if video is panoramic. */ 'panoramic'?: boolean; /** * This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video. */ 'mp4Support'?: boolean; static readonly discriminator?: string; static readonly attributeTypeMap: Array; static getAttributeTypeMap(): Array; } export type VideoLanguageOriginEnum = 'api' | 'auto';