types/leak.types.ts

types/leak.types.ts is a file in Bane's Lab Content. 40 lines of code and 9 definitions.

export interface LeakSource {
    readonly name: string;
    readonly tokens: number;
}

export interface LeakSet {
    readonly sources: readonly LeakSource[];
    readonly tokens: readonly string[];
}

export type LeakReason = "identifier" | "inline-code" | "path";

export interface LeakMatch {
    readonly reason: LeakReason;
    readonly token: string;
}

export interface PrivateTerm {
    readonly digest: string;
    readonly first: string;
    readonly length: number;
    readonly words: number;
}

export interface PrivateHit {
    readonly digest: string;
    readonly line: number;
}

export interface PublishedFile {
    readonly file: string;
    readonly text: string;
}

export interface PayloadTab {
    readonly id: string;
    readonly label: string;
}

export interface PagePayload {
    readonly file: string;
    readonly label: string;
    readonly page: string;
    readonly sections: readonly string[];
    readonly strings: readonly string[];
    readonly tabs: readonly PayloadTab[];
    readonly title: string;
}