proposit-core
    Preparing search index...

    Class ClaimCitationLibrary<TCitation>

    Full management interface for a claim-connection library. Extends TClaimConnectionLookup with mutation, query, and snapshot methods. Connections are create-or-delete only — no update path.

    Type Parameters

    Implements

    Index

    Constructors

    • Type Parameters

      • TCitation extends {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        } = {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        }

      Parameters

      Returns ClaimCitationLibrary<TCitation>

    Methods

    • Creates a claim connection. Implementations validate that both the supported and supporting claims exist in the underlying claim library and that the supporting-side claim has the type required by this specialization (e.g. 'citation' for ClaimCitationLibrary, 'axiomatic' for ClaimAxiomLibrary). Citation libraries also reject any edge that would introduce a cycle in the global claim-citation graph.

      Parameters

      Returns TCitation

      The created connection with checksum populated.

      If a connection with the same ID already exists.

      If either referenced claim does not exist in the claim library.

      If the supporting-side claim has the wrong type for this specialization.

      If the connection would create a cycle (citation library only).

    • Restores a claim-citation library from a snapshot, re-indexing all citations.

      Type Parameters

      • TCitation extends {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        } = {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        }

      Parameters

      Returns ClaimCitationLibrary<TCitation>