@capgo/cli
Version:
A CLI to upload to capgo servers
21 lines (20 loc) • 1.11 kB
TypeScript
import type { ValidateOptions, ValidationResult } from '../../onboarding/android/service-account-validation.js';
import type { AscAccessResult, AssertAscAccessOptions } from '../../onboarding/apple-access.js';
import type { PrescanCheck } from '../types';
/** Injectable validator type so tests can supply a fake without any network. */
type PlayValidator = (opts: ValidateOptions) => Promise<ValidationResult>;
type AscAsserter = (opts: AssertAscAccessOptions) => Promise<AscAccessResult>;
/**
* android/play-sa-access factory. Accepts the (injectable) service-account
* validator so the check is fully hermetic under test.
*/
export declare function makePlaySaAccess(validator: PlayValidator): PrescanCheck;
/**
* ios/asc-key-access factory. Accepts the (injectable) App Store Connect access
* asserter so the check is fully hermetic under test.
*/
export declare function makeAscKeyAccess(asserter: AscAsserter): PrescanCheck;
/** Wired checks (real validators) appended to the registry. */
export declare const playSaAccess: PrescanCheck;
export declare const ascKeyAccess: PrescanCheck;
export {};