Files
YouTube.js/typings/lib/parser/contents/classes/NavigationEndpoint.d.ts
LuanRT 1d62e469a9 refactor: rewrite Comments Section logic (#88)
* feat: add core comments section classes

* chore: update type declarations

* chore: fix linter warnings

* style: fix linter

* chore: update tests

* chore(tests): fix typo

* chore(tests): fix typo x2

* fix(tests): `getReplies()` method is only present in `CommentThread` and not `Comment`

* chore(tests): fix comment id path

* chore(tests): remove outdated code

* chore(tests): fix results path

* chore: enforce code style

* chore: update type declarations

* docs: add examples and documentation

* chore(docs): fix paths

* chore(docs): fix more paths

* chore(docs): fix `Comments.js` path

* chore(docs): fix typo

* chore(docs): mention example file

* chore(examples): fix imports

* chore(examples): fix typo
2022-07-02 19:55:33 -03:00

88 lines
1.8 KiB
TypeScript

export = NavigationEndpoint;
declare class NavigationEndpoint {
constructor(data: any);
type: string;
payload: any;
dialog: any;
metadata: {};
browse: {
id: any;
params: any;
base_url: any;
page_type: any;
};
watch: {
video_id: any;
playlist_id: any;
params: any;
index: any;
supported_onesie_config: any;
music_video_type: any;
};
search: {
query: any;
params: any;
};
subscribe: {
channel_ids: any;
params: any;
};
unsubscribe: {
channel_ids: any;
params: any;
};
like: {
status: any;
target: {
video_id: any;
playlist_id: any;
};
params: any;
};
perform_comment_action: {
action: any;
};
offline_video: {
video_id: any;
on_add_command: {
get_download_action: {
video_id: any;
params: any;
};
};
};
continuation: {
request: any;
token: any;
};
feedback: {
token: any;
};
watch_playlist: {
playlist_id: any;
};
playlist_edit: {
playlist_id: any;
actions: any;
};
add_to_playlist: {
video_id: any;
};
get_report_form: {
params: any;
};
live_chat_item_context_menu: {
params: any;
};
send_live_chat_vote: {
params: any;
};
/**
* Calls the endpoint. (This is an experiment and may replace {@link call()} in the future.).
* @param {import('../../../core/Actions')} actions
* @param {object} args
*/
callTest(actions: import('../../../core/Actions'), args?: object): Promise<any>;
call(actions: any, client: any): Promise<any>;
}