12345678910111213141516171819202122232425262728293031323334353637 |
- import type { FetchOptions } from '../types/fetch';
- export type FulcioOptions = {
- baseURL: string;
- } & FetchOptions;
- export interface SigningCertificateRequest {
- credentials: {
- oidcIdentityToken: string;
- };
- publicKeyRequest: {
- publicKey: {
- algorithm: string;
- content: string;
- };
- proofOfPossession: string;
- };
- }
- export interface SigningCertificateResponse {
- signedCertificateEmbeddedSct?: {
- chain: {
- certificates: string[];
- };
- };
- signedCertificateDetachedSct?: {
- chain: {
- certificates: string[];
- };
- signedCertificateTimestamp: string;
- };
- }
- /**
- * Fulcio API client.
- */
- export declare class Fulcio {
- private options;
- constructor(options: FulcioOptions);
- createSigningCertificate(request: SigningCertificateRequest): Promise<SigningCertificateResponse>;
- }
|