@capgo/cli
Version:
A CLI to upload to capgo servers
36 lines (35 loc) • 1.63 kB
TypeScript
export interface MobileprovisionInfo {
name: string;
uuid: string;
applicationIdentifier: string;
bundleId: string;
}
/**
* Detail returned by {@link parseMobileprovisionDetailed} — extends
* {@link MobileprovisionInfo} with team/expiry/profile-type metadata and the
* SHA1 of each developer certificate embedded in the profile.
*
* The SHA1 list enables matching a profile against a Keychain identity
* returned by `security find-identity` (which reports identities by the same
* SHA1 hash).
*/
export interface MobileprovisionDetail extends MobileprovisionInfo {
/** Apple Team ID (10-char alphanumeric) — empty string if not present */
teamId: string;
/** ISO timestamp string from the profile's ExpirationDate, or empty string */
expirationDate: string;
/** High-level profile type derived from the profile's flags */
profileType: 'app_store' | 'ad_hoc' | 'development' | 'enterprise' | 'unknown';
/** SHA1 (40-char lowercase hex) of each DeveloperCertificate embedded in the profile */
certificateSha1s: string[];
}
export declare function parseMobileprovision(filePath: string): MobileprovisionInfo;
export declare function parseMobileprovisionFromBase64(base64Content: string): MobileprovisionInfo;
/**
* Parse a mobileprovision file and return enriched metadata including:
* - team ID
* - expiration date
* - profile type (app_store / ad_hoc / development / enterprise)
* - SHA1 of each embedded developer certificate (used for cert↔profile matching)
*/
export declare function parseMobileprovisionDetailed(filePath: string): MobileprovisionDetail;