/** * @module OAuth */ import { Request } from '../util'; import OAuth from '../oauth'; import * as YT from '..'; export declare class OAuthChannels { #private; oauth: OAuth; constructor(oauth: OAuth, request: Request, upload: Request); /** * Updates a channel's branding settings. * **If your request does not specify a value for a property that already has a value, * the property's existing value will be deleted.** * @param channelResolvable The channel to update the branding settings of. * @param brandingSettings The new branding settings. */ updateChannelBranding(channelResolvable: YT.ChannelResolvable, brandingSettings: YT.ChannelBrandingSettings): Promise; /** * Updates a channel's localizations. * **CURRENTLY BROKEN in the API** * **If your request does not specify a value for a property that already has a value, * the property's existing value will be deleted.** * @param channelResolvable The channel to update the localizations of. * @param localizations The new localizations. */ updateChannelLocalizations(channelResolvable: YT.ChannelResolvable, localizations: { [key: string]: { title: string; description: string; }; }): Promise; /** * Sets a channel as made for kids or not made for kids. * @param channelResolvable The channel to update. * @param madeForKids Whether or not the channel is made for kids. */ setChannelMadeForKids(channelResolvable: YT.ChannelResolvable, madeForKids: boolean): Promise; /** * Sets a channel's watermark. * @param channelResolvable The channel to set the watermark for. * @param type The timing type of the watermark. * @param offset The offset, in milliseconds, from the start/end of the video to display the watermark from. * @param duration The duration, in millseconds, to display the watermark for. * @param image The watermark image. */ setChannelWatermark(channelResolvable: YT.ChannelResolvable, type: 'fromStart' | 'fromEnd', offset: number, duration: number, image: YT.Image): Promise; /** * Unsets a channel's watermark. * @param channelResolvable The channel to unset the watermark from. */ unsetChannelWatermark(channelResolvable: YT.ChannelResolvable): Promise; /** * Uploads a channel banner. * @param image The channel banner to upload. * @returns The URL of the uploaded banner, used as * [`BrandingSettings.image.bannerExternalUrl`](../../Library-Exports/type-aliases/ChannelBrandingSettings#bannerexternalurl) * in [`OAuth.updateChannelBranding()`](#updatechannelbranding) */ uploadChannelBanner(image: YT.Image): Promise; /** * Adds a [ChannelSection](../../Library-Exports/classes/ChannelSection#) to the authorized user's [Channel](../../Library-Exports/classes/Channel#). * @param type The type of channel section. * @param name The name of the channel section. * @param position The position of the channel section on the channel homepage. * @param playlistsResolvable Any playlists in the channel section. * @param channelsResolvable Any channels in the channel section. */ addChannelSection(type: YT.ChannelSectionType, name?: string, position?: number, playlistsResolvable?: YT.PlaylistResolvable[], channelsResolvable?: (YT.ChannelResolvable)[]): Promise; /** * Updates a [ChannelSection](../../Library-Exports/classes/ChannelSection#). * **If your request does not specify a value for a property that already has a value, * the property's existing value will be deleted.** * @param id The ID of the channel section. * @param type The type of channel section. * @param name The name of the channel section. * @param position The position of the channel section on the channel homepage. * @param playlistsResolvable Any playlists in the channel section. * @param channelsResolvable Any channels in the channel section. */ updateChannelSection(id: string, type: YT.ChannelSectionType, name?: string, position?: number, playlistsResolvable?: YT.PlaylistResolvable[], channelsResolvable?: (YT.ChannelResolvable)[]): Promise; /** * Deletes a [ChannelSection](../../Library-Exports/classes/ChannelSection#). * @param id The ID of the channel section. */ deleteChannelSection(id: string): Promise; /** * Subscribe to a [Channel](../../Library-Exports/classes/Channel#). * @param channelResolvable The channel to subscribe to. * @returns A partial subscription object. */ subscribeToChannel(channelResolvable: YT.ChannelResolvable): Promise; /** * Unsubscribe from a [Channel](../../Library-Exports/classes/Channel#). * @param subscriptionId The subscription to unsubscribe from. */ unsubscribeFromChannel(subscriptionId: string): Promise; }