Files
Portfolio/scripts/build-release.d.mts

27 lines
662 B
TypeScript

export interface BuildReleaseInput {
distDir: string;
signedManifestPath: string;
sbomPath: string;
outputPath: string;
authorityRoot: string;
protectedState: Record<string, unknown>;
}
export interface BuildReleaseTestInput extends Omit<
BuildReleaseInput,
"authorityRoot"
> {
trustPolicyPath: string;
now: string;
verifySignedReleaseEnvelope: (input: any) => unknown;
}
export function buildReleasePackage(input: BuildReleaseInput): Promise<{
releaseId: string;
manifestDigest: string;
archivePath: string;
}>;
export function buildReleasePackageForTest(
input: BuildReleaseTestInput,
): ReturnType<typeof buildReleasePackage>;