fulcio.d.ts 922 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { FetchOptions } from '../types/fetch';
  2. export type FulcioOptions = {
  3. baseURL: string;
  4. } & FetchOptions;
  5. export interface SigningCertificateRequest {
  6. credentials: {
  7. oidcIdentityToken: string;
  8. };
  9. publicKeyRequest: {
  10. publicKey: {
  11. algorithm: string;
  12. content: string;
  13. };
  14. proofOfPossession: string;
  15. };
  16. }
  17. export interface SigningCertificateResponse {
  18. signedCertificateEmbeddedSct?: {
  19. chain: {
  20. certificates: string[];
  21. };
  22. };
  23. signedCertificateDetachedSct?: {
  24. chain: {
  25. certificates: string[];
  26. };
  27. signedCertificateTimestamp: string;
  28. };
  29. }
  30. /**
  31. * Fulcio API client.
  32. */
  33. export declare class Fulcio {
  34. private options;
  35. constructor(options: FulcioOptions);
  36. createSigningCertificate(request: SigningCertificateRequest): Promise<SigningCertificateResponse>;
  37. }