CML
    Preparing search index...

    Type Alias SequenceValidationResult

    SequenceValidationResult:
        | { isValid: true; reason: typeof VALID }
        | {
            isValid: false;
            reason:
                | typeof SEQUENCE_NUMBER_BELOW_MINIMUM
                | typeof DUPLICATE
                | typeof OUT_OF_ORDER;
        }
        | {
            isValid: false;
            missingFrom: number;
            missingTo: number;
            reason: typeof GAP_DETECTED;
        }

    Result of validating a single sequence number against the current stream state.

    Discriminated on reason — narrow to 'gap_detected' to access missingFrom / missingTo.