/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { AutoTranscode, Video } from '../../../../yandex/cloud/video/v1/video'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { Duration } from '../../../../google/protobuf/duration'; import { Manifest } from '../../../../yandex/cloud/video/v1/manifest'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.video.v1"; export interface GetVideoRequest { /** ID of the video. */ videoId: string; } export interface ListVideoRequest { /** ID of the channel. */ channelId: string; /** * The maximum number of the results per page to return. * Default value: 100. */ pageSize: number; /** Page token for getting the next page of the result. */ pageToken: string; /** * By which column the listing should be ordered and in which direction, * format is " " (e.g. "createdAt desc"). * Default: "id asc". * Possible fields: ["id", "title", "createdAt", "updatedAt"]. * Both snake_case and camelCase are supported for fields. */ orderBy: string; /** * Filter expression that filters resources listed in the response. * Expressions are composed of terms connected by logic operators. * If value contains spaces or quotes, * it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped. * Supported logical operators: ["AND", "OR"]. * Supported string match operators: ["=", "!=", ":"]. * Operator ":" stands for substring matching. * Filter expressions may also contain parentheses to group logical operands. * Example: `key1='value' AND (key2!='\'value\'' OR key2:"\"value\"")` * Supported fields: ["id", "title", "status", "visibilityStatus"]. * Both snake_case and camelCase are supported for fields. */ filter: string; } export interface ListVideoResponse { videos: Video[]; /** Token for getting the next page. */ nextPageToken: string; } export interface BatchGetVideosRequest { /** ID of the channel. */ channelId: string; /** List of requested video IDs. */ videoIds: string[]; } export interface BatchGetVideosResponse { /** List of videos for channel. */ videos: Video[]; } export interface CreateVideoRequest { /** ID of the channel. */ channelId: string; /** Video title. */ title: string; /** Video description. */ description: string; /** ID of the thumbnail. */ thumbnailId: string; /** Auto start transcoding. */ autoTranscode: AutoTranscode; /** * Automatically publish video after transcoding. * Switches visibility status to PUBLISHED. */ autoPublish?: boolean; /** * Enable advertisement for this video. * Default: true. * Set explicitly to false to disable advertisements for a specific video. */ enableAd?: boolean; /** Custom labels as `` key:value `` pairs. Maximum 64 per resource. */ labels: { [key: string]: string; }; /** Upload video using the tus protocol. */ tusd?: VideoTUSDParams | undefined; /** * Publicly accessible video available for viewing by anyone with the direct link. * No additional authorization or access control is applied. */ publicAccess?: VideoPublicAccessParams | undefined; /** Checking access rights using url's signature. */ signUrlAccess?: VideoSignURLAccessParams | undefined; } export interface CreateVideoRequest_LabelsEntry { key: string; value: string; } export interface VideoTUSDParams { /** File size. */ fileSize: number; /** File name. */ fileName: string; } export interface VideoPublicAccessParams { } export interface VideoSignURLAccessParams { } export interface CreateVideoMetadata { /** ID of the video. */ videoId: string; } export interface UpdateVideoRequest { /** ID of the video. */ videoId: string; /** Field mask that specifies which fields of the video are going to be updated. */ fieldMask?: FieldMask; /** Video title. */ title: string; /** Video description. */ description: string; /** ID of the thumbnail. */ thumbnailId: string; /** Auto start transcoding. */ autoTranscode: AutoTranscode; /** * Enable advertisement for this video. * Default: true. * Use this to disable advertisement for a specific video. */ enableAd?: boolean; /** Custom labels as `` key:value `` pairs. Maximum 64 per resource. */ labels: { [key: string]: string; }; /** * Publicly accessible video available for viewing by anyone with the direct link. * No additional authorization or access control is applied. */ publicAccess?: VideoPublicAccessParams | undefined; /** Checking access rights using url's signature. */ signUrlAccess?: VideoSignURLAccessParams | undefined; } export interface UpdateVideoRequest_LabelsEntry { key: string; value: string; } export interface UpdateVideoMetadata { /** ID of the video. */ videoId: string; } export interface TranscodeVideoRequest { /** ID of the video. */ videoId: string; /** * Field mask that specifies which transcoding specific fields of the video * are going to be updated. */ fieldMask?: FieldMask; /** IDs of active manually uploaded video subtitles. */ subtitleIds: string[]; /** Video translation settings. */ translationSettings?: VideoTranslationSettings; /** Video summarization settings. */ summarizationSettings?: VideoSummarizationSettings; } export interface VideoTranslationSettings { /** Translation settings for each track. */ tracks: VideoTranslationSettings_TranslationTrack[]; } export interface VideoTranslationSettings_TranslationTrack { /** Input track settings. */ inputTrack?: VideoTranslationSettings_InputTrack; /** Settings for target subtitle tracks. */ subtitles: VideoTranslationSettings_SubtitleTrack[]; /** Settings for target audio tracks. */ audio: VideoTranslationSettings_AudioTrack[]; } export interface VideoTranslationSettings_InputTrack { /** Input audio track index (one-based). */ trackIndex: number; /** * Source track language in any of the following formats: * * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3 * * two-letter code according to ISO 639-1 * Track language will be deduced automatically if not provided. * In the latter case the deduction accuracy is not guaranteed. * For better performance please do specify the source track language when possible. */ srcLang: string; } export interface VideoTranslationSettings_SubtitleTrack { /** * Target language in any of the following formats: * * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3 * * two-letter code according to ISO 639-1 */ dstLang: string; /** Track label to be displayed on the screen during video playback. */ label: string; } export interface VideoTranslationSettings_AudioTrack { /** * Target language in any of the following formats: * * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3 * * two-letter code according to ISO 639-1 */ dstLang: string; /** Track label to be displayed on the screen during video playback. */ label: string; } export interface VideoSummarizationSettings { /** Summarization settings for each track. */ tracks: VideoSummarizationSettings_SummarizationTrack[]; /** * Summarize all available tracks. * If enabled, `tracks` parameter is ignored. * Enables automatic source language deduction for each track * and thus may lead to performance degradation. */ processAllTracks: boolean; } export interface VideoSummarizationSettings_SummarizationTrack { /** Input track settings. */ inputTrack?: VideoSummarizationSettings_InputTrack; } export interface VideoSummarizationSettings_InputTrack { /** 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). * It will be deduced automatically if not provided. * In the latter case the deduction accuracy is not guaranteed. * For better performance please do specify the source track language when possible. */ srcLang: string; } export interface TranscodeVideoMetadata { /** ID of the video. */ videoId: string; } export interface DeleteVideoRequest { /** ID of the video. */ videoId: string; } export interface DeleteVideoMetadata { /** ID of the video. */ videoId: string; } export interface BatchDeleteVideosRequest { /** ID of the channel. */ channelId: string; /** List of video IDs. */ videoIds: string[]; } export interface BatchDeleteVideosMetadata { /** List of video IDs. */ videoIds: string[]; } export interface PerformVideoActionRequest { /** ID of the video. */ videoId: string; publish?: PublishVideoAction | undefined; unpublish?: UnpublishVideoAction | undefined; } export interface PublishVideoAction { } export interface UnpublishVideoAction { } export interface PerformVideoActionMetadata { /** ID of the video. */ videoId: string; } export interface GetVideoPlayerURLRequest { /** ID of the video. */ videoId: string; params?: VideoPlayerParams; /** Optional field, used to set custom url expiration duration for videos with sign_url_access */ signedUrlExpirationDuration?: Duration; } export interface VideoPlayerParams { /** If true, a player will be muted by default. */ mute: boolean; /** If true, playback will start automatically. */ autoplay: boolean; /** If true, a player interface will be hidden by default. */ hidden: boolean; } export interface GetVideoPlayerURLResponse { /** Direct link to the video. */ playerUrl: string; /** HTML embed code in Iframe format. */ html: string; } export interface BatchGetVideoPlayerURLsRequest { /** ID of the channel. */ channelId: string; /** List of requested video IDs. */ videoIds: string[]; params?: VideoPlayerParams; /** Optional field, used to set custom url expiration duration for videos with sign_url_access */ signedUrlExpirationDuration?: Duration; } export interface BatchGetVideoPlayerURLsResponse { playerUrls: string[]; } export interface GetVideoManifestsRequest { /** ID of the video. */ videoId: string; } export interface GetVideoManifestsResponse { manifests: Manifest[]; } export declare const GetVideoRequest: { encode(message: GetVideoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetVideoRequest; fromJSON(object: any): GetVideoRequest; toJSON(message: GetVideoRequest): unknown; fromPartial, never>>(object: I): GetVideoRequest; }; export declare const ListVideoRequest: { encode(message: ListVideoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListVideoRequest; fromJSON(object: any): ListVideoRequest; toJSON(message: ListVideoRequest): unknown; fromPartial, never>>(object: I): ListVideoRequest; }; export declare const ListVideoResponse: { encode(message: ListVideoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListVideoResponse; fromJSON(object: any): ListVideoResponse; toJSON(message: ListVideoResponse): unknown; fromPartial, never>) | undefined; autoTranscode?: AutoTranscode | undefined; enableAd?: boolean | undefined; subtitleIds?: (string[] & string[] & Record, never>) | undefined; features?: ({ summary?: { result?: import("../../../../yandex/cloud/video/v1/video").VideoFeatures_FeatureResult | undefined; urls?: { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] | undefined; } | undefined; } & { summary?: ({ result?: import("../../../../yandex/cloud/video/v1/video").VideoFeatures_FeatureResult | undefined; urls?: { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] | undefined; } & { result?: import("../../../../yandex/cloud/video/v1/video").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>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListVideoResponse; }; export declare const BatchGetVideosRequest: { encode(message: BatchGetVideosRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchGetVideosRequest; fromJSON(object: any): BatchGetVideosRequest; toJSON(message: BatchGetVideosRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BatchGetVideosRequest; }; export declare const BatchGetVideosResponse: { encode(message: BatchGetVideosResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchGetVideosResponse; fromJSON(object: any): BatchGetVideosResponse; toJSON(message: BatchGetVideosResponse): unknown; fromPartial, never>) | undefined; autoTranscode?: AutoTranscode | undefined; enableAd?: boolean | undefined; subtitleIds?: (string[] & string[] & Record, never>) | undefined; features?: ({ summary?: { result?: import("../../../../yandex/cloud/video/v1/video").VideoFeatures_FeatureResult | undefined; urls?: { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] | undefined; } | undefined; } & { summary?: ({ result?: import("../../../../yandex/cloud/video/v1/video").VideoFeatures_FeatureResult | undefined; urls?: { url?: string | undefined; trackIndex?: number | undefined; srcLang?: string | undefined; }[] | undefined; } & { result?: import("../../../../yandex/cloud/video/v1/video").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>)[] & Record, never>) | undefined; } & Record, never>>(object: I): BatchGetVideosResponse; }; export declare const CreateVideoRequest: { encode(message: CreateVideoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateVideoRequest; fromJSON(object: any): CreateVideoRequest; toJSON(message: CreateVideoRequest): unknown; fromPartial, never>) | undefined; tusd?: ({ fileSize?: number | undefined; fileName?: string | undefined; } & { fileSize?: number | undefined; fileName?: string | undefined; } & Record, never>) | undefined; publicAccess?: ({} & {} & Record, never>) | undefined; signUrlAccess?: ({} & {} & Record, never>) | undefined; } & Record, never>>(object: I): CreateVideoRequest; }; export declare const CreateVideoRequest_LabelsEntry: { encode(message: CreateVideoRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateVideoRequest_LabelsEntry; fromJSON(object: any): CreateVideoRequest_LabelsEntry; toJSON(message: CreateVideoRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateVideoRequest_LabelsEntry; }; export declare const VideoTUSDParams: { encode(message: VideoTUSDParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTUSDParams; fromJSON(object: any): VideoTUSDParams; toJSON(message: VideoTUSDParams): unknown; fromPartial, never>>(object: I): VideoTUSDParams; }; export declare const VideoPublicAccessParams: { encode(_: VideoPublicAccessParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoPublicAccessParams; fromJSON(_: any): VideoPublicAccessParams; toJSON(_: VideoPublicAccessParams): unknown; fromPartial, never>>(_: I): VideoPublicAccessParams; }; export declare const VideoSignURLAccessParams: { encode(_: VideoSignURLAccessParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoSignURLAccessParams; fromJSON(_: any): VideoSignURLAccessParams; toJSON(_: VideoSignURLAccessParams): unknown; fromPartial, never>>(_: I): VideoSignURLAccessParams; }; export declare const CreateVideoMetadata: { encode(message: CreateVideoMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateVideoMetadata; fromJSON(object: any): CreateVideoMetadata; toJSON(message: CreateVideoMetadata): unknown; fromPartial, never>>(object: I): CreateVideoMetadata; }; export declare const UpdateVideoRequest: { encode(message: UpdateVideoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateVideoRequest; fromJSON(object: any): UpdateVideoRequest; toJSON(message: UpdateVideoRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; title?: string | undefined; description?: string | undefined; thumbnailId?: string | undefined; autoTranscode?: AutoTranscode | undefined; enableAd?: boolean | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; publicAccess?: ({} & {} & Record, never>) | undefined; signUrlAccess?: ({} & {} & Record, never>) | undefined; } & Record, never>>(object: I): UpdateVideoRequest; }; export declare const UpdateVideoRequest_LabelsEntry: { encode(message: UpdateVideoRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateVideoRequest_LabelsEntry; fromJSON(object: any): UpdateVideoRequest_LabelsEntry; toJSON(message: UpdateVideoRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateVideoRequest_LabelsEntry; }; export declare const UpdateVideoMetadata: { encode(message: UpdateVideoMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateVideoMetadata; fromJSON(object: any): UpdateVideoMetadata; toJSON(message: UpdateVideoMetadata): unknown; fromPartial, never>>(object: I): UpdateVideoMetadata; }; export declare const TranscodeVideoRequest: { encode(message: TranscodeVideoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TranscodeVideoRequest; fromJSON(object: any): TranscodeVideoRequest; toJSON(message: TranscodeVideoRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; subtitleIds?: (string[] & string[] & Record, never>) | undefined; translationSettings?: ({ tracks?: { inputTrack?: { trackIndex?: number | undefined; srcLang?: string | undefined; } | undefined; subtitles?: { dstLang?: string | undefined; label?: string | undefined; }[] | undefined; audio?: { dstLang?: string | undefined; label?: string | undefined; }[] | undefined; }[] | undefined; } & { tracks?: ({ inputTrack?: { trackIndex?: number | undefined; srcLang?: string | undefined; } | undefined; subtitles?: { dstLang?: string | undefined; label?: string | undefined; }[] | undefined; audio?: { dstLang?: string | undefined; label?: string | undefined; }[] | undefined; }[] & ({ inputTrack?: { trackIndex?: number | undefined; srcLang?: string | undefined; } | undefined; subtitles?: { dstLang?: string | undefined; label?: string | undefined; }[] | undefined; audio?: { dstLang?: string | undefined; label?: string | undefined; }[] | undefined; } & { inputTrack?: ({ trackIndex?: number | undefined; srcLang?: string | undefined; } & { trackIndex?: number | undefined; srcLang?: string | undefined; } & Record, never>) | undefined; subtitles?: ({ dstLang?: string | undefined; label?: string | undefined; }[] & ({ dstLang?: string | undefined; label?: string | undefined; } & { dstLang?: string | undefined; label?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; audio?: ({ dstLang?: string | undefined; label?: string | undefined; }[] & ({ dstLang?: string | undefined; label?: string | undefined; } & { dstLang?: string | undefined; label?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; summarizationSettings?: ({ tracks?: { inputTrack?: { trackIndex?: number | undefined; srcLang?: string | undefined; } | undefined; }[] | undefined; processAllTracks?: boolean | undefined; } & { tracks?: ({ inputTrack?: { trackIndex?: number | undefined; srcLang?: string | undefined; } | undefined; }[] & ({ inputTrack?: { trackIndex?: number | undefined; srcLang?: string | undefined; } | undefined; } & { inputTrack?: ({ trackIndex?: number | undefined; srcLang?: string | undefined; } & { trackIndex?: number | undefined; srcLang?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; processAllTracks?: boolean | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): TranscodeVideoRequest; }; export declare const VideoTranslationSettings: { encode(message: VideoTranslationSettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTranslationSettings; fromJSON(object: any): VideoTranslationSettings; toJSON(message: VideoTranslationSettings): unknown; fromPartial, never>) | undefined; subtitles?: ({ dstLang?: string | undefined; label?: string | undefined; }[] & ({ dstLang?: string | undefined; label?: string | undefined; } & { dstLang?: string | undefined; label?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; audio?: ({ dstLang?: string | undefined; label?: string | undefined; }[] & ({ dstLang?: string | undefined; label?: string | undefined; } & { dstLang?: string | undefined; label?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): VideoTranslationSettings; }; export declare const VideoTranslationSettings_TranslationTrack: { encode(message: VideoTranslationSettings_TranslationTrack, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTranslationSettings_TranslationTrack; fromJSON(object: any): VideoTranslationSettings_TranslationTrack; toJSON(message: VideoTranslationSettings_TranslationTrack): unknown; fromPartial, never>) | undefined; subtitles?: ({ dstLang?: string | undefined; label?: string | undefined; }[] & ({ dstLang?: string | undefined; label?: string | undefined; } & { dstLang?: string | undefined; label?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; audio?: ({ dstLang?: string | undefined; label?: string | undefined; }[] & ({ dstLang?: string | undefined; label?: string | undefined; } & { dstLang?: string | undefined; label?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): VideoTranslationSettings_TranslationTrack; }; export declare const VideoTranslationSettings_InputTrack: { encode(message: VideoTranslationSettings_InputTrack, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTranslationSettings_InputTrack; fromJSON(object: any): VideoTranslationSettings_InputTrack; toJSON(message: VideoTranslationSettings_InputTrack): unknown; fromPartial, never>>(object: I): VideoTranslationSettings_InputTrack; }; export declare const VideoTranslationSettings_SubtitleTrack: { encode(message: VideoTranslationSettings_SubtitleTrack, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTranslationSettings_SubtitleTrack; fromJSON(object: any): VideoTranslationSettings_SubtitleTrack; toJSON(message: VideoTranslationSettings_SubtitleTrack): unknown; fromPartial, never>>(object: I): VideoTranslationSettings_SubtitleTrack; }; export declare const VideoTranslationSettings_AudioTrack: { encode(message: VideoTranslationSettings_AudioTrack, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoTranslationSettings_AudioTrack; fromJSON(object: any): VideoTranslationSettings_AudioTrack; toJSON(message: VideoTranslationSettings_AudioTrack): unknown; fromPartial, never>>(object: I): VideoTranslationSettings_AudioTrack; }; export declare const VideoSummarizationSettings: { encode(message: VideoSummarizationSettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoSummarizationSettings; fromJSON(object: any): VideoSummarizationSettings; toJSON(message: VideoSummarizationSettings): unknown; fromPartial, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; processAllTracks?: boolean | undefined; } & Record, never>>(object: I): VideoSummarizationSettings; }; export declare const VideoSummarizationSettings_SummarizationTrack: { encode(message: VideoSummarizationSettings_SummarizationTrack, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoSummarizationSettings_SummarizationTrack; fromJSON(object: any): VideoSummarizationSettings_SummarizationTrack; toJSON(message: VideoSummarizationSettings_SummarizationTrack): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): VideoSummarizationSettings_SummarizationTrack; }; export declare const VideoSummarizationSettings_InputTrack: { encode(message: VideoSummarizationSettings_InputTrack, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoSummarizationSettings_InputTrack; fromJSON(object: any): VideoSummarizationSettings_InputTrack; toJSON(message: VideoSummarizationSettings_InputTrack): unknown; fromPartial, never>>(object: I): VideoSummarizationSettings_InputTrack; }; export declare const TranscodeVideoMetadata: { encode(message: TranscodeVideoMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TranscodeVideoMetadata; fromJSON(object: any): TranscodeVideoMetadata; toJSON(message: TranscodeVideoMetadata): unknown; fromPartial, never>>(object: I): TranscodeVideoMetadata; }; export declare const DeleteVideoRequest: { encode(message: DeleteVideoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteVideoRequest; fromJSON(object: any): DeleteVideoRequest; toJSON(message: DeleteVideoRequest): unknown; fromPartial, never>>(object: I): DeleteVideoRequest; }; export declare const DeleteVideoMetadata: { encode(message: DeleteVideoMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteVideoMetadata; fromJSON(object: any): DeleteVideoMetadata; toJSON(message: DeleteVideoMetadata): unknown; fromPartial, never>>(object: I): DeleteVideoMetadata; }; export declare const BatchDeleteVideosRequest: { encode(message: BatchDeleteVideosRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchDeleteVideosRequest; fromJSON(object: any): BatchDeleteVideosRequest; toJSON(message: BatchDeleteVideosRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BatchDeleteVideosRequest; }; export declare const BatchDeleteVideosMetadata: { encode(message: BatchDeleteVideosMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchDeleteVideosMetadata; fromJSON(object: any): BatchDeleteVideosMetadata; toJSON(message: BatchDeleteVideosMetadata): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BatchDeleteVideosMetadata; }; export declare const PerformVideoActionRequest: { encode(message: PerformVideoActionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PerformVideoActionRequest; fromJSON(object: any): PerformVideoActionRequest; toJSON(message: PerformVideoActionRequest): unknown; fromPartial, never>) | undefined; unpublish?: ({} & {} & Record, never>) | undefined; } & Record, never>>(object: I): PerformVideoActionRequest; }; export declare const PublishVideoAction: { encode(_: PublishVideoAction, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PublishVideoAction; fromJSON(_: any): PublishVideoAction; toJSON(_: PublishVideoAction): unknown; fromPartial, never>>(_: I): PublishVideoAction; }; export declare const UnpublishVideoAction: { encode(_: UnpublishVideoAction, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UnpublishVideoAction; fromJSON(_: any): UnpublishVideoAction; toJSON(_: UnpublishVideoAction): unknown; fromPartial, never>>(_: I): UnpublishVideoAction; }; export declare const PerformVideoActionMetadata: { encode(message: PerformVideoActionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PerformVideoActionMetadata; fromJSON(object: any): PerformVideoActionMetadata; toJSON(message: PerformVideoActionMetadata): unknown; fromPartial, never>>(object: I): PerformVideoActionMetadata; }; export declare const GetVideoPlayerURLRequest: { encode(message: GetVideoPlayerURLRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetVideoPlayerURLRequest; fromJSON(object: any): GetVideoPlayerURLRequest; toJSON(message: GetVideoPlayerURLRequest): unknown; fromPartial, never>) | undefined; signedUrlExpirationDuration?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): GetVideoPlayerURLRequest; }; export declare const VideoPlayerParams: { encode(message: VideoPlayerParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VideoPlayerParams; fromJSON(object: any): VideoPlayerParams; toJSON(message: VideoPlayerParams): unknown; fromPartial, never>>(object: I): VideoPlayerParams; }; export declare const GetVideoPlayerURLResponse: { encode(message: GetVideoPlayerURLResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetVideoPlayerURLResponse; fromJSON(object: any): GetVideoPlayerURLResponse; toJSON(message: GetVideoPlayerURLResponse): unknown; fromPartial, never>>(object: I): GetVideoPlayerURLResponse; }; export declare const BatchGetVideoPlayerURLsRequest: { encode(message: BatchGetVideoPlayerURLsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchGetVideoPlayerURLsRequest; fromJSON(object: any): BatchGetVideoPlayerURLsRequest; toJSON(message: BatchGetVideoPlayerURLsRequest): unknown; fromPartial, never>) | undefined; params?: ({ mute?: boolean | undefined; autoplay?: boolean | undefined; hidden?: boolean | undefined; } & { mute?: boolean | undefined; autoplay?: boolean | undefined; hidden?: boolean | undefined; } & Record, never>) | undefined; signedUrlExpirationDuration?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): BatchGetVideoPlayerURLsRequest; }; export declare const BatchGetVideoPlayerURLsResponse: { encode(message: BatchGetVideoPlayerURLsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchGetVideoPlayerURLsResponse; fromJSON(object: any): BatchGetVideoPlayerURLsResponse; toJSON(message: BatchGetVideoPlayerURLsResponse): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BatchGetVideoPlayerURLsResponse; }; export declare const GetVideoManifestsRequest: { encode(message: GetVideoManifestsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetVideoManifestsRequest; fromJSON(object: any): GetVideoManifestsRequest; toJSON(message: GetVideoManifestsRequest): unknown; fromPartial, never>>(object: I): GetVideoManifestsRequest; }; export declare const GetVideoManifestsResponse: { encode(message: GetVideoManifestsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetVideoManifestsResponse; fromJSON(object: any): GetVideoManifestsResponse; toJSON(message: GetVideoManifestsResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): GetVideoManifestsResponse; }; /** Video management service. */ export declare const VideoServiceService: { /** Get the specific video. */ readonly get: { readonly path: "/yandex.cloud.video.v1.VideoService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetVideoRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetVideoRequest; readonly responseSerialize: (value: Video) => Buffer; readonly responseDeserialize: (value: Buffer) => Video; }; /** List videos for channel. */ readonly list: { readonly path: "/yandex.cloud.video.v1.VideoService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListVideoRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListVideoRequest; readonly responseSerialize: (value: ListVideoResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListVideoResponse; }; /** Batch get videos in specific channel. */ readonly batchGet: { readonly path: "/yandex.cloud.video.v1.VideoService/BatchGet"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: BatchGetVideosRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => BatchGetVideosRequest; readonly responseSerialize: (value: BatchGetVideosResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => BatchGetVideosResponse; }; /** Create video. */ readonly create: { readonly path: "/yandex.cloud.video.v1.VideoService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateVideoRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateVideoRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Update video. */ readonly update: { readonly path: "/yandex.cloud.video.v1.VideoService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateVideoRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateVideoRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Transcode video. */ readonly transcode: { readonly path: "/yandex.cloud.video.v1.VideoService/Transcode"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: TranscodeVideoRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => TranscodeVideoRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Delete video. */ readonly delete: { readonly path: "/yandex.cloud.video.v1.VideoService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteVideoRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteVideoRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Batch delete videos. */ readonly batchDelete: { readonly path: "/yandex.cloud.video.v1.VideoService/BatchDelete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: BatchDeleteVideosRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => BatchDeleteVideosRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Perform an action on the video. */ readonly performAction: { readonly path: "/yandex.cloud.video.v1.VideoService/PerformAction"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: PerformVideoActionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => PerformVideoActionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Get player url. */ readonly getPlayerURL: { readonly path: "/yandex.cloud.video.v1.VideoService/GetPlayerURL"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetVideoPlayerURLRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetVideoPlayerURLRequest; readonly responseSerialize: (value: GetVideoPlayerURLResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => GetVideoPlayerURLResponse; }; /** Batch get player urls. */ readonly batchGetPlayerURLs: { readonly path: "/yandex.cloud.video.v1.VideoService/BatchGetPlayerURLs"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: BatchGetVideoPlayerURLsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => BatchGetVideoPlayerURLsRequest; readonly responseSerialize: (value: BatchGetVideoPlayerURLsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => BatchGetVideoPlayerURLsResponse; }; /** Get manifest urls. */ readonly getManifests: { readonly path: "/yandex.cloud.video.v1.VideoService/GetManifests"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetVideoManifestsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetVideoManifestsRequest; readonly responseSerialize: (value: GetVideoManifestsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => GetVideoManifestsResponse; }; }; export interface VideoServiceServer extends UntypedServiceImplementation { /** Get the specific video. */ get: handleUnaryCall; /** List videos for channel. */ list: handleUnaryCall; /** Batch get videos in specific channel. */ batchGet: handleUnaryCall; /** Create video. */ create: handleUnaryCall; /** Update video. */ update: handleUnaryCall; /** Transcode video. */ transcode: handleUnaryCall; /** Delete video. */ delete: handleUnaryCall; /** Batch delete videos. */ batchDelete: handleUnaryCall; /** Perform an action on the video. */ performAction: handleUnaryCall; /** Get player url. */ getPlayerURL: handleUnaryCall; /** Batch get player urls. */ batchGetPlayerURLs: handleUnaryCall; /** Get manifest urls. */ getManifests: handleUnaryCall; } export interface VideoServiceClient extends Client { /** Get the specific video. */ get(request: GetVideoRequest, callback: (error: ServiceError | null, response: Video) => void): ClientUnaryCall; get(request: GetVideoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Video) => void): ClientUnaryCall; get(request: GetVideoRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Video) => void): ClientUnaryCall; /** List videos for channel. */ list(request: ListVideoRequest, callback: (error: ServiceError | null, response: ListVideoResponse) => void): ClientUnaryCall; list(request: ListVideoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListVideoResponse) => void): ClientUnaryCall; list(request: ListVideoRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListVideoResponse) => void): ClientUnaryCall; /** Batch get videos in specific channel. */ batchGet(request: BatchGetVideosRequest, callback: (error: ServiceError | null, response: BatchGetVideosResponse) => void): ClientUnaryCall; batchGet(request: BatchGetVideosRequest, metadata: Metadata, callback: (error: ServiceError | null, response: BatchGetVideosResponse) => void): ClientUnaryCall; batchGet(request: BatchGetVideosRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: BatchGetVideosResponse) => void): ClientUnaryCall; /** Create video. */ create(request: CreateVideoRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateVideoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateVideoRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Update video. */ update(request: UpdateVideoRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateVideoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateVideoRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Transcode video. */ transcode(request: TranscodeVideoRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; transcode(request: TranscodeVideoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; transcode(request: TranscodeVideoRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Delete video. */ delete(request: DeleteVideoRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteVideoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteVideoRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Batch delete videos. */ batchDelete(request: BatchDeleteVideosRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; batchDelete(request: BatchDeleteVideosRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; batchDelete(request: BatchDeleteVideosRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Perform an action on the video. */ performAction(request: PerformVideoActionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; performAction(request: PerformVideoActionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; performAction(request: PerformVideoActionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Get player url. */ getPlayerURL(request: GetVideoPlayerURLRequest, callback: (error: ServiceError | null, response: GetVideoPlayerURLResponse) => void): ClientUnaryCall; getPlayerURL(request: GetVideoPlayerURLRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetVideoPlayerURLResponse) => void): ClientUnaryCall; getPlayerURL(request: GetVideoPlayerURLRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: GetVideoPlayerURLResponse) => void): ClientUnaryCall; /** Batch get player urls. */ batchGetPlayerURLs(request: BatchGetVideoPlayerURLsRequest, callback: (error: ServiceError | null, response: BatchGetVideoPlayerURLsResponse) => void): ClientUnaryCall; batchGetPlayerURLs(request: BatchGetVideoPlayerURLsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: BatchGetVideoPlayerURLsResponse) => void): ClientUnaryCall; batchGetPlayerURLs(request: BatchGetVideoPlayerURLsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: BatchGetVideoPlayerURLsResponse) => void): ClientUnaryCall; /** Get manifest urls. */ getManifests(request: GetVideoManifestsRequest, callback: (error: ServiceError | null, response: GetVideoManifestsResponse) => void): ClientUnaryCall; getManifests(request: GetVideoManifestsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetVideoManifestsResponse) => void): ClientUnaryCall; getManifests(request: GetVideoManifestsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: GetVideoManifestsResponse) => void): ClientUnaryCall; } export declare const VideoServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): VideoServiceClient; service: typeof VideoServiceService; }; 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 {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};