Primeiro commit do projeto Angular
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user