mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
* chore: update type declarations * dev: refactor oauth & requester * chore: tidy things up * chore: remove unneeded check
99 lines
2.5 KiB
TypeScript
99 lines
2.5 KiB
TypeScript
export namespace URLS {
|
|
const YT_BASE: string;
|
|
const YT_MUSIC_BASE: string;
|
|
const YT_SUGGESTIONS: string;
|
|
namespace API {
|
|
const BASE: string;
|
|
const PRODUCTION: string;
|
|
const STAGING: string;
|
|
const RELEASE: string;
|
|
const TEST: string;
|
|
const CAMI: string;
|
|
const UYTFE: string;
|
|
}
|
|
}
|
|
export namespace OAUTH {
|
|
const SCOPE: string;
|
|
const GRANT_TYPE: string;
|
|
const MODEL_NAME: string;
|
|
const HEADERS: {
|
|
accept: string;
|
|
origin: string;
|
|
'user-agent': string;
|
|
'content-type': string;
|
|
referer: string;
|
|
'accept-language': string;
|
|
};
|
|
namespace REGEX {
|
|
const AUTH_SCRIPT: RegExp;
|
|
const CLIENT_IDENTITY: RegExp;
|
|
}
|
|
}
|
|
export namespace CLIENTS {
|
|
namespace WEB {
|
|
const NAME: string;
|
|
}
|
|
namespace YTMUSIC {
|
|
const NAME_1: string;
|
|
export { NAME_1 as NAME };
|
|
export const VERSION: string;
|
|
}
|
|
namespace ANDROID {
|
|
const NAME_2: string;
|
|
export { NAME_2 as NAME };
|
|
const VERSION_1: string;
|
|
export { VERSION_1 as VERSION };
|
|
}
|
|
}
|
|
export namespace STREAM_HEADERS {
|
|
const accept: string;
|
|
const connection: string;
|
|
const origin: string;
|
|
const referer: string;
|
|
const DNT: string;
|
|
}
|
|
export const INNERTUBE_HEADERS_BASE: {
|
|
accept: string;
|
|
'accept-encoding': string;
|
|
'content-type': string;
|
|
};
|
|
export const METADATA_KEYS: string[];
|
|
export const BLACKLISTED_KEYS: string[];
|
|
export namespace ACCOUNT_SETTINGS {
|
|
const SUBSCRIPTIONS: string;
|
|
const RECOMMENDED_VIDEOS: string;
|
|
const CHANNEL_ACTIVITY: string;
|
|
const COMMENT_REPLIES: string;
|
|
const USER_MENTION: string;
|
|
const SHARED_CONTENT: string;
|
|
const PLAYLISTS_PRIVACY: string;
|
|
const SUBSCRIPTIONS_PRIVACY: string;
|
|
}
|
|
export namespace BASE64_DIALECT {
|
|
const NORMAL: string[];
|
|
const REVERSE: string[];
|
|
}
|
|
export namespace SIG_REGEX {
|
|
const ACTIONS: RegExp;
|
|
const FUNCTIONS: RegExp;
|
|
}
|
|
export namespace NTOKEN_REGEX {
|
|
export const CALLS: RegExp;
|
|
export const PLACEHOLDERS: RegExp;
|
|
const FUNCTIONS_1: RegExp;
|
|
export { FUNCTIONS_1 as FUNCTIONS };
|
|
}
|
|
export namespace FUNCS {
|
|
const PUSH: string;
|
|
const REVERSE_1: string;
|
|
const REVERSE_2: string;
|
|
const SPLICE: string;
|
|
const SWAP0_1: string;
|
|
const SWAP0_2: string;
|
|
const ROTATE_1: string;
|
|
const ROTATE_2: string;
|
|
const BASE64_DIA: string;
|
|
const TRANSLATE_1: string;
|
|
const TRANSLATE_2: string;
|
|
}
|