avancement planning
This commit is contained in:
+13
@@ -1,3 +1,5 @@
|
||||
import type { TransparencyLogEntry } from '@sigstore/bundle';
|
||||
import type { CreateEntryRequest } from '@sigstore/protobuf-specs/rekor/v2';
|
||||
import type { Entry, ProposedEntry } from '../../external/rekor';
|
||||
import type { FetchOptions } from '../../types/fetch';
|
||||
export type { Entry, ProposedEntry };
|
||||
@@ -14,3 +16,14 @@ export declare class TLogClient implements TLog {
|
||||
constructor(options: TLogClientOptions);
|
||||
createEntry(proposedEntry: ProposedEntry): Promise<Entry>;
|
||||
}
|
||||
export interface TLogV2 {
|
||||
createEntry: (createEntryRequest: CreateEntryRequest) => Promise<TransparencyLogEntry>;
|
||||
}
|
||||
export type TLogV2ClientOptions = {
|
||||
rekorBaseURL: string;
|
||||
} & FetchOptions;
|
||||
export declare class TLogV2Client implements TLogV2 {
|
||||
private rekor;
|
||||
constructor(options: TLogV2ClientOptions);
|
||||
createEntry(createEntryRequest: CreateEntryRequest): Promise<TransparencyLogEntry>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user