Sha256: 49d19cb3f8485a655cd30d6ee40d3514eb16948ee9509ebbf0c3d4724e110839

Contents?: true

Size: 1.56 KB

Versions: 33

Compression:

Stored size: 1.56 KB

Contents

import type { LogEntry, ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery } from '@sigstore/rekor-types';
import type { FetchOptions } from '../types/fetch';
export type { ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery, };
export type Entry = {
    uuid: string;
} & LogEntry[string];
export type RekorOptions = {
    baseURL: string;
} & FetchOptions;
/**
 * Rekor API client.
 */
export declare class Rekor {
    private fetch;
    private baseUrl;
    constructor(options: RekorOptions);
    /**
     * Create a new entry in the Rekor log.
     * @param propsedEntry {ProposedEntry} Data to create a new entry
     * @returns {Promise<Entry>} The created entry
     */
    createEntry(propsedEntry: ProposedEntry): Promise<Entry>;
    /**
     * Get an entry from the Rekor log.
     * @param uuid {string} The UUID of the entry to retrieve
     * @returns {Promise<Entry>} The retrieved entry
     */
    getEntry(uuid: string): Promise<Entry>;
    /**
     * Search the Rekor log index for entries matching the given query.
     * @param opts {SearchIndex} Options to search the Rekor log
     * @returns {Promise<string[]>} UUIDs of matching entries
     */
    searchIndex(opts: SearchIndex): Promise<string[]>;
    /**
     * Search the Rekor logs for matching the given query.
     * @param opts {SearchLogQuery} Query to search the Rekor log
     * @returns {Promise<Entry[]>} List of matching entries
     */
    searchLog(opts: SearchLogQuery): Promise<Entry[]>;
}

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.59 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.58 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.57 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.56 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.55 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.54 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.53 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.52 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.51 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.50 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.49 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.48 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.47 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.46 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.45 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.44 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.43 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.42 node_modules/@sigstore/sign/dist/external/rekor.d.ts
immosquare-cleaner-0.1.41 node_modules/@sigstore/sign/dist/external/rekor.d.ts