mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
fix: improve types
This commit is contained in:
Vendored
+17
-3
@@ -1,10 +1,24 @@
|
||||
export function extractSecrets(): Promise<{
|
||||
export type CrunchyrollAppCredentials = {
|
||||
// Crunchyroll app ID
|
||||
id: string;
|
||||
// Crunchyroll app secret
|
||||
secret: string;
|
||||
// Base64 encoded `id:secret` string
|
||||
encoded: string;
|
||||
// HTTP header with Basic Authorization to access Crunchyroll mobile APIs
|
||||
// Ready HTTP header in the format `Basic <encoded>`, can be used to access some Crunchyroll APIs
|
||||
authorization: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Extract credentials from the Crunchyroll Android APK using jadx.
|
||||
*/
|
||||
export function extract(options?: {
|
||||
target?: 'mobile' | 'tv';
|
||||
output?: string;
|
||||
cleanup?: boolean;
|
||||
}): Promise<CrunchyrollAppCredentials>;
|
||||
|
||||
/**
|
||||
* Fetch ready credentials from the GitHub repository.
|
||||
*/
|
||||
export function pull(options?: { target: 'mobile' | 'tv' }): Promise<CrunchyrollAppCredentials>;
|
||||
|
||||
Reference in New Issue
Block a user