mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 09:35:05 +00:00
chore: regen docs
This commit is contained in:
118
docs/api/youtubei.js/namespaces/Clients/classes/Kids.md
Normal file
118
docs/api/youtubei.js/namespaces/Clients/classes/Kids.md
Normal file
@@ -0,0 +1,118 @@
|
||||
[youtubei.js](../../../../README.md) / [Clients](../README.md) / Kids
|
||||
|
||||
# Class: Kids
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:9](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L9)
|
||||
|
||||
## Constructors
|
||||
|
||||
### Constructor
|
||||
|
||||
> **new Kids**(`session`): `Kids`
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:12](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L12)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### session
|
||||
|
||||
[`Session`](../../../../classes/Session.md)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Kids`
|
||||
|
||||
## Methods
|
||||
|
||||
### blockChannel()
|
||||
|
||||
> **blockChannel**(`channel_id`): `Promise`\<[`ApiResponse`](../../../../interfaces/ApiResponse.md)[]\>
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:79](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L79)
|
||||
|
||||
Retrieves the list of supervised accounts that the signed-in user has
|
||||
access to, and blocks the given channel for each of them.
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### channel\_id
|
||||
|
||||
`string`
|
||||
|
||||
The channel id to block.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`ApiResponse`](../../../../interfaces/ApiResponse.md)[]\>
|
||||
|
||||
A list of API responses.
|
||||
|
||||
***
|
||||
|
||||
### getChannel()
|
||||
|
||||
> **getChannel**(`channel_id`): `Promise`\<[`Channel`](../../YTKids/classes/Channel.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:61](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L61)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### channel\_id
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Channel`](../../YTKids/classes/Channel.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getHomeFeed()
|
||||
|
||||
> **getHomeFeed**(): `Promise`\<[`HomeFeed`](../../YTKids/classes/HomeFeed.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:67](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L67)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`HomeFeed`](../../YTKids/classes/HomeFeed.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getInfo()
|
||||
|
||||
> **getInfo**(`video_id`, `options?`): `Promise`\<[`VideoInfo`](../../YTKids/classes/VideoInfo.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:22](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L22)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### video\_id
|
||||
|
||||
`string`
|
||||
|
||||
##### options?
|
||||
|
||||
`Omit`\<[`GetVideoInfoOptions`](../../Types/interfaces/GetVideoInfoOptions.md), `"client"`\>
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`VideoInfo`](../../YTKids/classes/VideoInfo.md)\>
|
||||
|
||||
***
|
||||
|
||||
### search()
|
||||
|
||||
> **search**(`query`): `Promise`\<[`Search`](../../YTKids/classes/Search.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Kids.ts:16](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Kids.ts#L16)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### query
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Search`](../../YTKids/classes/Search.md)\>
|
||||
251
docs/api/youtubei.js/namespaces/Clients/classes/Music.md
Normal file
251
docs/api/youtubei.js/namespaces/Clients/classes/Music.md
Normal file
@@ -0,0 +1,251 @@
|
||||
[youtubei.js](../../../../README.md) / [Clients](../README.md) / Music
|
||||
|
||||
# Class: Music
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:33](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L33)
|
||||
|
||||
## Constructors
|
||||
|
||||
### Constructor
|
||||
|
||||
> **new Music**(`session`): `Music`
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:37](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L37)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### session
|
||||
|
||||
[`Session`](../../../../classes/Session.md)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Music`
|
||||
|
||||
## Methods
|
||||
|
||||
### getAlbum()
|
||||
|
||||
> **getAlbum**(`album_id`): `Promise`\<[`Album`](../../YTMusic/classes/Album.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:186](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L186)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### album\_id
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Album`](../../YTMusic/classes/Album.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getArtist()
|
||||
|
||||
> **getArtist**(`artist_id`): `Promise`\<[`Artist`](../../YTMusic/classes/Artist.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:176](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L176)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### artist\_id
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Artist`](../../YTMusic/classes/Artist.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getExplore()
|
||||
|
||||
> **getExplore**(): `Promise`\<[`Explore`](../../YTMusic/classes/Explore.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:163](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L163)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Explore`](../../YTMusic/classes/Explore.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getHomeFeed()
|
||||
|
||||
> **getHomeFeed**(): `Promise`\<[`HomeFeed`](../../YTMusic/classes/HomeFeed.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:157](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L157)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`HomeFeed`](../../YTMusic/classes/HomeFeed.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getInfo()
|
||||
|
||||
> **getInfo**(`target`, `options?`): `Promise`\<[`TrackInfo`](../../YTMusic/classes/TrackInfo.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:47](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L47)
|
||||
|
||||
Retrieves track info. Passing a list item of type MusicTwoRowItem automatically starts a radio.
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### target
|
||||
|
||||
Video id or a list item.
|
||||
|
||||
`string` | [`NavigationEndpoint`](../../YTNodes/classes/NavigationEndpoint.md) | [`MusicResponsiveListItem`](../../YTNodes/classes/MusicResponsiveListItem.md) | [`MusicTwoRowItem`](../../YTNodes/classes/MusicTwoRowItem.md)
|
||||
|
||||
##### options?
|
||||
|
||||
`Omit`\<[`GetVideoInfoOptions`](../../Types/interfaces/GetVideoInfoOptions.md), `"client"`\>
|
||||
|
||||
Options for fetching video info.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`TrackInfo`](../../YTMusic/classes/TrackInfo.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getLibrary()
|
||||
|
||||
> **getLibrary**(): `Promise`\<[`Library`](../../YTMusic/classes/Library.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:170](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L170)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Library`](../../YTMusic/classes/Library.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getLyrics()
|
||||
|
||||
> **getLyrics**(`video_id`): `Promise`\<[`MusicDescriptionShelf`](../../YTNodes/classes/MusicDescriptionShelf.md) \| `undefined`\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:267](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L267)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### video\_id
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`MusicDescriptionShelf`](../../YTNodes/classes/MusicDescriptionShelf.md) \| `undefined`\>
|
||||
|
||||
***
|
||||
|
||||
### getPlaylist()
|
||||
|
||||
> **getPlaylist**(`playlist_id`): `Promise`\<[`Playlist`](../../YTMusic/classes/Playlist.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:196](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L196)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### playlist\_id
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Playlist`](../../YTMusic/classes/Playlist.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getRecap()
|
||||
|
||||
> **getRecap**(): `Promise`\<[`Recap`](../../YTMusic/classes/Recap.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:293](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L293)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Recap`](../../YTMusic/classes/Recap.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getRelated()
|
||||
|
||||
> **getRelated**(`video_id`): `Promise`\<[`SectionList`](../../YTNodes/classes/SectionList.md) \| [`Message`](../../YTNodes/classes/Message.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:246](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L246)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### video\_id
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`SectionList`](../../YTNodes/classes/SectionList.md) \| [`Message`](../../YTNodes/classes/Message.md)\>
|
||||
|
||||
***
|
||||
|
||||
### getSearchSuggestions()
|
||||
|
||||
> **getSearchSuggestions**(`input`): `Promise`\<[`ObservedArray`](../../Helpers/type-aliases/ObservedArray.md)\<[`SearchSuggestionsSection`](../../YTNodes/classes/SearchSuggestionsSection.md)\>\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:299](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L299)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### input
|
||||
|
||||
`string`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`ObservedArray`](../../Helpers/type-aliases/ObservedArray.md)\<[`SearchSuggestionsSection`](../../YTNodes/classes/SearchSuggestionsSection.md)\>\>
|
||||
|
||||
***
|
||||
|
||||
### getUpNext()
|
||||
|
||||
> **getUpNext**(`video_id`, `automix`): `Promise`\<[`PlaylistPanel`](../../YTNodes/classes/PlaylistPanel.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:206](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L206)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### video\_id
|
||||
|
||||
`string`
|
||||
|
||||
##### automix
|
||||
|
||||
`boolean` = `true`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`PlaylistPanel`](../../YTNodes/classes/PlaylistPanel.md)\>
|
||||
|
||||
***
|
||||
|
||||
### search()
|
||||
|
||||
> **search**(`query`, `filters`): `Promise`\<[`Search`](../../YTMusic/classes/Search.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Music.ts:135](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Music.ts#L135)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### query
|
||||
|
||||
`string`
|
||||
|
||||
##### filters
|
||||
|
||||
[`MusicSearchFilters`](../../Types/type-aliases/MusicSearchFilters.md) = `{}`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`Search`](../../YTMusic/classes/Search.md)\>
|
||||
95
docs/api/youtubei.js/namespaces/Clients/classes/Studio.md
Normal file
95
docs/api/youtubei.js/namespaces/Clients/classes/Studio.md
Normal file
@@ -0,0 +1,95 @@
|
||||
[youtubei.js](../../../../README.md) / [Clients](../README.md) / Studio
|
||||
|
||||
# Class: Studio
|
||||
|
||||
Defined in: [src/core/clients/Studio.ts:22](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Studio.ts#L22)
|
||||
|
||||
## Constructors
|
||||
|
||||
### Constructor
|
||||
|
||||
> **new Studio**(`session`): `Studio`
|
||||
|
||||
Defined in: [src/core/clients/Studio.ts:25](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Studio.ts#L25)
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### session
|
||||
|
||||
[`Session`](../../../../classes/Session.md)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Studio`
|
||||
|
||||
## Methods
|
||||
|
||||
### updateVideoMetadata()
|
||||
|
||||
> **updateVideoMetadata**(`video_id`, `metadata`): `Promise`\<[`ApiResponse`](../../../../interfaces/ApiResponse.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Studio.ts:47](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Studio.ts#L47)
|
||||
|
||||
Updates the metadata of a video.
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### video\_id
|
||||
|
||||
`string`
|
||||
|
||||
##### metadata
|
||||
|
||||
[`UpdateVideoMetadataOptions`](../../Types/type-aliases/UpdateVideoMetadataOptions.md)
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`ApiResponse`](../../../../interfaces/ApiResponse.md)\>
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
const videoId = 'abcdefg';
|
||||
const thumbnail = fs.readFileSync('./my_awesome_thumbnail.jpg');
|
||||
|
||||
const response = await yt.studio.updateVideoMetadata(videoId, {
|
||||
tags: [ 'astronomy', 'NASA', 'APOD' ],
|
||||
title: 'Artemis Mission',
|
||||
description: 'A nicely written description...',
|
||||
category: 27,
|
||||
license: 'creative_commons',
|
||||
thumbnail,
|
||||
// ...
|
||||
});
|
||||
```
|
||||
|
||||
***
|
||||
|
||||
### upload()
|
||||
|
||||
> **upload**(`file`, `metadata`): `Promise`\<[`ApiResponse`](../../../../interfaces/ApiResponse.md)\>
|
||||
|
||||
Defined in: [src/core/clients/Studio.ts:150](https://github.com/LuanRT/YouTube.js/blob/0733f60b57877f6b8b87dfd5cc6195b5085f5c09/src/core/clients/Studio.ts#L150)
|
||||
|
||||
Uploads a video to YouTube.
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### file
|
||||
|
||||
`BodyInit`
|
||||
|
||||
##### metadata
|
||||
|
||||
[`UploadedVideoMetadataOptions`](../../Types/type-aliases/UploadedVideoMetadataOptions.md) = `{}`
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`\<[`ApiResponse`](../../../../interfaces/ApiResponse.md)\>
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
const file = fs.readFileSync('./my_awesome_video.mp4');
|
||||
const response = await yt.studio.upload(file.buffer, { title: 'Wow!' });
|
||||
```
|
||||
Reference in New Issue
Block a user