/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { ChannelSettings, Channel } from '../../../../yandex/cloud/video/v1/channel'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { Operation } from '../../../../yandex/cloud/operation/operation'; import { ListAccessBindingsRequest, ListAccessBindingsResponse, SetAccessBindingsRequest, UpdateAccessBindingsRequest } from '../../../../yandex/cloud/access/access'; export declare const protobufPackage = "yandex.cloud.video.v1"; export interface GetChannelRequest { /** ID of the channel. */ channelId: string; } export interface ListChannelsRequest { /** ID of the organization. */ organizationId: 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"]. * Both snake_case and camelCase are supported for fields. */ filter: string; } export interface ListChannelsResponse { /** List of channels for specific organization. */ channels: Channel[]; /** Token for getting the next page. */ nextPageToken: string; } export interface CreateChannelRequest { /** ID of the organization. */ organizationId: string; /** Channel title. */ title: string; /** Channel description. */ description: string; /** Custom labels as `` key:value `` pairs. Maximum 64 per resource. */ labels: { [key: string]: string; }; /** Channel settings. */ settings?: ChannelSettings; } export interface CreateChannelRequest_LabelsEntry { key: string; value: string; } export interface CreateChannelMetadata { /** ID of the channel. */ channelId: string; } export interface UpdateChannelRequest { /** ID of the channel. */ channelId: string; /** Field mask that specifies which fields of the channel are going to be updated. */ fieldMask?: FieldMask; /** Channel title. */ title: string; /** Channel description. */ description: string; /** Custom labels as `` key:value `` pairs. Maximum 64 per resource. */ labels: { [key: string]: string; }; /** Channel settings. */ settings?: ChannelSettings; } export interface UpdateChannelRequest_LabelsEntry { key: string; value: string; } export interface UpdateChannelMetadata { /** ID of the channel. */ channelId: string; } export interface DeleteChannelRequest { /** ID of the channel. */ channelId: string; } export interface DeleteChannelMetadata { /** ID of the channel. */ channelId: string; } export interface BatchDeleteChannelsRequest { /** ID of the organization. */ organizationId: string; /** List of channel IDs. */ channelIds: string[]; } export interface BatchDeleteChannelsMetadata { /** List of channel IDs. */ channelIds: string[]; } export declare const GetChannelRequest: { encode(message: GetChannelRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetChannelRequest; fromJSON(object: any): GetChannelRequest; toJSON(message: GetChannelRequest): unknown; fromPartial, never>>(object: I): GetChannelRequest; }; export declare const ListChannelsRequest: { encode(message: ListChannelsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelsRequest; fromJSON(object: any): ListChannelsRequest; toJSON(message: ListChannelsRequest): unknown; fromPartial, never>>(object: I): ListChannelsRequest; }; export declare const ListChannelsResponse: { encode(message: ListChannelsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelsResponse; fromJSON(object: any): ListChannelsResponse; toJSON(message: ListChannelsResponse): unknown; fromPartial, never>) | undefined; settings?: ({ advertisement?: { yandexDirect?: { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } | undefined; } | undefined; refererVerification?: { enable?: boolean | undefined; allowedDomains?: string[] | undefined; } | undefined; } & { advertisement?: ({ yandexDirect?: { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } | undefined; } & { yandexDirect?: ({ enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } & { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; refererVerification?: ({ enable?: boolean | undefined; allowedDomains?: string[] | undefined; } & { enable?: boolean | undefined; allowedDomains?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListChannelsResponse; }; export declare const CreateChannelRequest: { encode(message: CreateChannelRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateChannelRequest; fromJSON(object: any): CreateChannelRequest; toJSON(message: CreateChannelRequest): unknown; fromPartial, never>) | undefined; settings?: ({ advertisement?: { yandexDirect?: { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } | undefined; } | undefined; refererVerification?: { enable?: boolean | undefined; allowedDomains?: string[] | undefined; } | undefined; } & { advertisement?: ({ yandexDirect?: { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } | undefined; } & { yandexDirect?: ({ enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } & { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; refererVerification?: ({ enable?: boolean | undefined; allowedDomains?: string[] | undefined; } & { enable?: boolean | undefined; allowedDomains?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): CreateChannelRequest; }; export declare const CreateChannelRequest_LabelsEntry: { encode(message: CreateChannelRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateChannelRequest_LabelsEntry; fromJSON(object: any): CreateChannelRequest_LabelsEntry; toJSON(message: CreateChannelRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateChannelRequest_LabelsEntry; }; export declare const CreateChannelMetadata: { encode(message: CreateChannelMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateChannelMetadata; fromJSON(object: any): CreateChannelMetadata; toJSON(message: CreateChannelMetadata): unknown; fromPartial, never>>(object: I): CreateChannelMetadata; }; export declare const UpdateChannelRequest: { encode(message: UpdateChannelRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateChannelRequest; fromJSON(object: any): UpdateChannelRequest; toJSON(message: UpdateChannelRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; title?: string | undefined; description?: string | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; settings?: ({ advertisement?: { yandexDirect?: { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } | undefined; } | undefined; refererVerification?: { enable?: boolean | undefined; allowedDomains?: string[] | undefined; } | undefined; } & { advertisement?: ({ yandexDirect?: { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } | undefined; } & { yandexDirect?: ({ enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } & { enable?: boolean | undefined; pageId?: number | undefined; category?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; refererVerification?: ({ enable?: boolean | undefined; allowedDomains?: string[] | undefined; } & { enable?: boolean | undefined; allowedDomains?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateChannelRequest; }; export declare const UpdateChannelRequest_LabelsEntry: { encode(message: UpdateChannelRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateChannelRequest_LabelsEntry; fromJSON(object: any): UpdateChannelRequest_LabelsEntry; toJSON(message: UpdateChannelRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateChannelRequest_LabelsEntry; }; export declare const UpdateChannelMetadata: { encode(message: UpdateChannelMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateChannelMetadata; fromJSON(object: any): UpdateChannelMetadata; toJSON(message: UpdateChannelMetadata): unknown; fromPartial, never>>(object: I): UpdateChannelMetadata; }; export declare const DeleteChannelRequest: { encode(message: DeleteChannelRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteChannelRequest; fromJSON(object: any): DeleteChannelRequest; toJSON(message: DeleteChannelRequest): unknown; fromPartial, never>>(object: I): DeleteChannelRequest; }; export declare const DeleteChannelMetadata: { encode(message: DeleteChannelMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteChannelMetadata; fromJSON(object: any): DeleteChannelMetadata; toJSON(message: DeleteChannelMetadata): unknown; fromPartial, never>>(object: I): DeleteChannelMetadata; }; export declare const BatchDeleteChannelsRequest: { encode(message: BatchDeleteChannelsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchDeleteChannelsRequest; fromJSON(object: any): BatchDeleteChannelsRequest; toJSON(message: BatchDeleteChannelsRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BatchDeleteChannelsRequest; }; export declare const BatchDeleteChannelsMetadata: { encode(message: BatchDeleteChannelsMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BatchDeleteChannelsMetadata; fromJSON(object: any): BatchDeleteChannelsMetadata; toJSON(message: BatchDeleteChannelsMetadata): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BatchDeleteChannelsMetadata; }; /** Channel management service. */ export declare const ChannelServiceService: { /** Get the specific channel. */ readonly get: { readonly path: "/yandex.cloud.video.v1.ChannelService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetChannelRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetChannelRequest; readonly responseSerialize: (value: Channel) => Buffer; readonly responseDeserialize: (value: Buffer) => Channel; }; /** List channels for organization. */ readonly list: { readonly path: "/yandex.cloud.video.v1.ChannelService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListChannelsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListChannelsRequest; readonly responseSerialize: (value: ListChannelsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListChannelsResponse; }; /** Create channel. */ readonly create: { readonly path: "/yandex.cloud.video.v1.ChannelService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateChannelRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateChannelRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Update channel. */ readonly update: { readonly path: "/yandex.cloud.video.v1.ChannelService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateChannelRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateChannelRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Delete channel. */ readonly delete: { readonly path: "/yandex.cloud.video.v1.ChannelService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteChannelRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteChannelRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Batch delete channels. */ readonly batchDelete: { readonly path: "/yandex.cloud.video.v1.ChannelService/BatchDelete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: BatchDeleteChannelsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => BatchDeleteChannelsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** List existing access bindings for the specified channel. */ readonly listAccessBindings: { readonly path: "/yandex.cloud.video.v1.ChannelService/ListAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListAccessBindingsRequest; readonly responseSerialize: (value: ListAccessBindingsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListAccessBindingsResponse; }; /** Set access bindings for the channel. */ readonly setAccessBindings: { readonly path: "/yandex.cloud.video.v1.ChannelService/SetAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetAccessBindingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Update access bindings for the specified channel. */ readonly updateAccessBindings: { readonly path: "/yandex.cloud.video.v1.ChannelService/UpdateAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateAccessBindingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface ChannelServiceServer extends UntypedServiceImplementation { /** Get the specific channel. */ get: handleUnaryCall; /** List channels for organization. */ list: handleUnaryCall; /** Create channel. */ create: handleUnaryCall; /** Update channel. */ update: handleUnaryCall; /** Delete channel. */ delete: handleUnaryCall; /** Batch delete channels. */ batchDelete: handleUnaryCall; /** List existing access bindings for the specified channel. */ listAccessBindings: handleUnaryCall; /** Set access bindings for the channel. */ setAccessBindings: handleUnaryCall; /** Update access bindings for the specified channel. */ updateAccessBindings: handleUnaryCall; } export interface ChannelServiceClient extends Client { /** Get the specific channel. */ get(request: GetChannelRequest, callback: (error: ServiceError | null, response: Channel) => void): ClientUnaryCall; get(request: GetChannelRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Channel) => void): ClientUnaryCall; get(request: GetChannelRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Channel) => void): ClientUnaryCall; /** List channels for organization. */ list(request: ListChannelsRequest, callback: (error: ServiceError | null, response: ListChannelsResponse) => void): ClientUnaryCall; list(request: ListChannelsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListChannelsResponse) => void): ClientUnaryCall; list(request: ListChannelsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListChannelsResponse) => void): ClientUnaryCall; /** Create channel. */ create(request: CreateChannelRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateChannelRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateChannelRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Update channel. */ update(request: UpdateChannelRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateChannelRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateChannelRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Delete channel. */ delete(request: DeleteChannelRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteChannelRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteChannelRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Batch delete channels. */ batchDelete(request: BatchDeleteChannelsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; batchDelete(request: BatchDeleteChannelsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; batchDelete(request: BatchDeleteChannelsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** List existing access bindings for the specified channel. */ listAccessBindings(request: ListAccessBindingsRequest, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; listAccessBindings(request: ListAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; listAccessBindings(request: ListAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; /** Set access bindings for the channel. */ setAccessBindings(request: SetAccessBindingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setAccessBindings(request: SetAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setAccessBindings(request: SetAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Update access bindings for the specified channel. */ updateAccessBindings(request: UpdateAccessBindingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateAccessBindings(request: UpdateAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateAccessBindings(request: UpdateAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const ChannelServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ChannelServiceClient; service: typeof ChannelServiceService; }; 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 {};