IFClite TypeScript API
    Preparing search index...

    Interface BuildClashRunDocumentInput

    interface BuildClashRunDocumentInput {
        createdAt?: string;
        elementTypes?: Iterable<
            { key: string; model: string; tag: string },
            any,
            any,
        >;
        engine?: {
            backend?: string | null;
            build?: string | null;
            version?: string | null;
        };
        exclusionRules?: readonly ClashRunExclusionRule[];
        exclusions?: ExclusionSet;
        labels?: readonly string[];
        result: ClashResult;
        reviews?: Readonly<Record<string, ClashReview>>;
        ruleMemberships?: Readonly<Record<string, string>>;
        ruleRevisions?: Readonly<Record<string, string>>;
        rules?: readonly ClashRule[];
        runId?: string | null;
        slots: readonly ClashRunSlotBinding[];
        volumes?: ReadonlyMap<string, number>;
    }
    Index
    createdAt?: string

    ISO timestamp; defaults to now.

    elementTypes?: Iterable<{ key: string; model: string; tag: string }, any, any>

    Every element the run was given (ClashElement has these fields), for exclusionTypes.

    engine?: {
        backend?: string | null;
        build?: string | null;
        version?: string | null;
    }
    exclusionRules?: readonly ClashRunExclusionRule[]

    The user's enabled exclusion rules; findings they cover are left out of the document.

    exclusions?: ExclusionSet

    The exclusion set the engine ran with (ClashSettings.exclusions). Omitted: recorded as unknown.

    labels?: readonly string[]
    result: ClashResult
    reviews?: Readonly<Record<string, ClashReview>>

    Review state to record, by slot-qualified key.

    ruleMemberships?: Readonly<Record<string, string>>

    A durable description of each explicit-member rule's membership (e.g. the saved filter definition), by rule id. Without one, the member lists themselves are hashed, which are per-load refs: such a rule then compares as changed on every reload, never as unchanged by mistake.

    ruleRevisions?: Readonly<Record<string, string>>

    Host-pinned revisions by rule id, overriding clashRuleRevision (e.g. a saved rule-set version).

    rules?: readonly ClashRule[]

    The rules exactly as handed to the engine. result.rulesRun drops membersA/membersB, so without these an explicit-member rule's revision and explicitMembers cannot see its membership.

    runId?: string | null
    slots: readonly ClashRunSlotBinding[]
    volumes?: ReadonlyMap<string, number>

    Measured intersection volumes by Clash.id.