@capgo/cli
Version:
A CLI to upload to capgo servers
25 lines (24 loc) • 1.01 kB
TypeScript
/**
* YouTube tutorial explaining how to find a Google Play Console Developer
* account ID — shown as an option on the "paste your developer ID" step.
*/
export declare const PLAY_DEV_ID_TUTORIAL_URL = "https://www.youtube.com/watch?v=Y1_Ngj8hHLU";
export interface CapgoOAuthClientConfig {
clientId: string;
clientSecret: string;
/**
* Scopes the backend tells the CLI to request. Always at least
* `https://www.googleapis.com/auth/androidpublisher`.
*/
scopes: string[];
}
/**
* Fetch Capgo's Google OAuth client config from the backend.
*
* Returns the config when the backend has both `GOOGLE_OAUTH_CLIENT_ID` and
* `GOOGLE_OAUTH_CLIENT_SECRET` set (the `enabled: true` branch). Returns null
* if Google OAuth is not configured server-side — callers should treat that
* as "Android OAuth onboarding is not available, ask the user to use the
* manual flow from the docs".
*/
export declare function fetchCapgoOAuthConfig(): Promise<CapgoOAuthClientConfig | null>;