UNPKG

@capgo/cli

Version:
27 lines (26 loc) 1.47 kB
import type { ValidateOptions, ValidationResult } from '../../onboarding/android/service-account-validation.js'; import type { AscAccessResult, AssertAscAccessOptions } from '../../onboarding/apple-access.js'; import type { Finding, PrescanCheck } from '../types'; /** ASC authentication failures become build-blocking after a 14-day rollout. */ export declare const ASC_PRESCAN_AUTH_ENFORCE_AFTER = "2026-08-17T00:00:00.000Z"; /** Classify an ASC auth result without depending on scan context or I/O. */ export declare function classifyAscAuthFinding(result: Extract<AscAccessResult, { ok: false; }>): Finding; /** 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 {};