summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/sigstore/dist/client/fulcio.d.ts
blob: 91fe53e69f9387b9da60308a0148dbb28592e08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export interface FulcioOptions {
    baseURL: string;
}
export interface SigningCertificateRequest {
    credentials: {
        oidcIdentityToken: string;
    };
    publicKeyRequest: {
        publicKey: {
            algorithm: string;
            content: string;
        };
        proofOfPossession: string;
    };
}
export interface SigningCertificateResponse {
    signedCertificateEmbeddedSct: {
        chain: {
            certificates: string[];
        };
    };
}
/**
 * Fulcio API client.
 */
export declare class Fulcio {
    private fetch;
    private baseUrl;
    constructor(options: FulcioOptions);
    createSigningCertificate(request: SigningCertificateRequest): Promise<SigningCertificateResponse>;
}