import _m0 from 'protobufjs/minimal'; import { Duration } from '../../../../google/protobuf/duration'; export declare const protobufPackage = "yandex.cloud.video.v1"; export declare enum AutoTranscode { /** AUTO_TRANSCODE_UNSPECIFIED - Unspecified auto transcoding value. */ AUTO_TRANSCODE_UNSPECIFIED = 0, /** ENABLE - Enable auto transcoding. */ ENABLE = 1, /** DISABLE - Disable auto transcoding. */ DISABLE = 2, UNRECOGNIZED = -1 } export declare function autoTranscodeFromJSON(object: any): AutoTranscode; export declare function autoTranscodeToJSON(object: AutoTranscode): string; export interface Video { /** ID of the video. */ id: string; /** ID of the channel where the video was created. */ channelId: string; /** Video title displayed to users. */ title: string; /** Detailed description of the video. */ description: string; /** ID of the video's thumbnail image. */ thumbnailId: string; /** Video status. */ status: Video_VideoStatus; /** Error message describing the reason for video processing failure, if any. */ errorMessage: string; /** Visibility status of the video. */ visibilityStatus: Video_VisibilityStatus; /** Video duration. Optional, may be empty until the transcoding result is ready. */ duration?: Duration; /** * Auto-transcoding setting. * Set ENABLE to automatically initiate transcoding after upload, * or DISABLE for manual initiation via the Transcode() method. */ autoTranscode: AutoTranscode; /** * Enable advertisement for this video. * Default: true. * Set explicitly to false to disable advertisements for a specific video. */ enableAd?: boolean; /** List of IDs defining the active subtitles for the video. */ subtitleIds: string[]; /** Additional video processing features and their results. */ features?: VideoFeatures; /** Upload video using the tus protocol. */ tusd?: VideoTUSDSource | undefined; /** * Publicly accessible video available for viewing by anyone with the direct link. * No additional authorization or access control is applied. */ publicAccess?: VideoPublicAccessRights | undefined; /** Checking access rights using url's signature. */ signUrlAccess?: VideoSignURLAccessRights | undefined; /** Time when video was created. */ createdAt?: Date; /** Time of last video update. */ updatedAt?: Date; /** Custom labels as `` key:value `` pairs. Maximum 64 per resource. */ labels: { [key: string]: string; }; } export declare enum Video_VideoStatus { /** VIDEO_STATUS_UNSPECIFIED - Video status unspecified. */ VIDEO_STATUS_UNSPECIFIED = 0, /** WAIT_UPLOADING - Waiting for all the bytes to be loaded. */ WAIT_UPLOADING = 1, /** UPLOADED - Fully uploaded, ready to be transcoded. */ UPLOADED = 2, /** PROCESSING - Video is being processed. */ PROCESSING = 4, /** READY - Successfully processed and ready for use. */ READY = 5, /** ERROR - Video processing has failed. */ ERROR = 7, UNRECOGNIZED = -1 } export declare function video_VideoStatusFromJSON(object: any): Video_VideoStatus; export declare function video_VideoStatusToJSON(object: Video_VideoStatus): string; export declare enum Video_VisibilityStatus { /** VISIBILITY_STATUS_UNSPECIFIED - Visibility status unspecified. */ VISIBILITY_STATUS_UNSPECIFIED = 0, /** PUBLISHED - Video published and available for public viewing. */ PUBLISHED = 1, /** UNPUBLISHED - Video unpublished, available only to administrators. */ UNPUBLISHED = 2, UNRECOGNIZED = -1 } export declare function video_VisibilityStatusFromJSON(object: any): Video_VisibilityStatus; export declare function video_VisibilityStatusToJSON(object: Video_VisibilityStatus): string; export interface Video_LabelsEntry { key: string; value: string; } /** Video upload source via tus protocol. */ export interface VideoTUSDSource { /** URL for uploading video via the tus protocol. */ url: string; /** Size of the uploaded file, in bytes. */ fileSize: number; } export interface VideoPublicAccessRights { } export interface VideoSignURLAccessRights { } export interface VideoFeatures { /** Summarization result. */ summary?: VideoFeatures_Summary; } export declare enum VideoFeatures_FeatureResult { FEATURE_RESULT_UNSPECIFIED = 0, /** NOT_REQUESTED - Feature has not been requested. */ NOT_REQUESTED = 1, /** PROCESSING - Feature is being processed. */ PROCESSING = 2, /** SUCCESS - Feature processing completed successfully. */ SUCCESS = 3, /** FAILED - Feature processing has failed. */ FAILED = 4, UNRECOGNIZED = -1 } export declare function videoFeatures_FeatureResultFromJSON(object: any): VideoFeatures_FeatureResult; export declare function videoFeatures_FeatureResultToJSON(object: VideoFeatures_FeatureResult): string; export interface VideoFeatures_Summary { result: VideoFeatures_FeatureResult; urls: VideoFeatures_Summary_SummaryURL[]; } export interface VideoFeatures_Summary_SummaryURL { url: string; /** Input audio track index (one-based). */ trackIndex: number; /** * Source track language (three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3). * Either provided in transcoding settings earlier or automatically deduced. */ srcLang: string; } export declare const Video: { encode(message: Video, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Video; fromJSON(object: any): Video; toJSON(message: Video): unknown; fromPartial, never>) | undefined; autoTranscode?: AutoTranscode | undefined; enableAd?: boolean | undefined; subtitleIds?: (string[] & string[] & Record, never>) | undefined; features?: ({ summary?: { result?: VideoFeatures_FeatureResult | undefined; urls?: { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] | undefined; } | undefined; } & { summary?: ({ result?: VideoFeatures_FeatureResult | undefined; urls?: { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] | undefined; } & { result?: VideoFeatures_FeatureResult | undefined; urls?: ({ url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] & ({ url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; } & { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; tusd?: ({ url?: string | undefined; fileSize?: number | undefined; } & { url?: string | undefined; fileSize?: number | undefined; } & Record, never>) | undefined; publicAccess?: ({} & {} & Record, never>) | undefined; signUrlAccess?: ({} & {} & Record, never>) | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): Video; }; export declare const Video_LabelsEntry: { encode(message: Video_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Video_LabelsEntry; fromJSON(object: any): Video_LabelsEntry; toJSON(message: Video_LabelsEntry): unknown; fromPartial, never>>(object: I): Video_LabelsEntry; }; export declare const VideoTUSDSource: { encode(message: VideoTUSDSource, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTUSDSource; fromJSON(object: any): VideoTUSDSource; toJSON(message: VideoTUSDSource): unknown; fromPartial, never>>(object: I): VideoTUSDSource; }; export declare const VideoPublicAccessRights: { encode(_: VideoPublicAccessRights, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoPublicAccessRights; fromJSON(_: any): VideoPublicAccessRights; toJSON(_: VideoPublicAccessRights): unknown; fromPartial, never>>(_: I): VideoPublicAccessRights; }; export declare const VideoSignURLAccessRights: { encode(_: VideoSignURLAccessRights, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoSignURLAccessRights; fromJSON(_: any): VideoSignURLAccessRights; toJSON(_: VideoSignURLAccessRights): unknown; fromPartial, never>>(_: I): VideoSignURLAccessRights; }; export declare const VideoFeatures: { encode(message: VideoFeatures, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoFeatures; fromJSON(object: any): VideoFeatures; toJSON(message: VideoFeatures): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): VideoFeatures; }; export declare const VideoFeatures_Summary: { encode(message: VideoFeatures_Summary, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoFeatures_Summary; fromJSON(object: any): VideoFeatures_Summary; toJSON(message: VideoFeatures_Summary): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): VideoFeatures_Summary; }; export declare const VideoFeatures_Summary_SummaryURL: { encode(message: VideoFeatures_Summary_SummaryURL, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoFeatures_Summary_SummaryURL; fromJSON(object: any): VideoFeatures_Summary_SummaryURL; toJSON(message: VideoFeatures_Summary_SummaryURL): unknown; fromPartial, never>>(object: I): VideoFeatures_Summary_SummaryURL; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};