// This file was auto-generated by Fern from our API Definition.

import type * as LatitudeApi from "../../../../index.js";

/**
 * @example
 *     {
 *         value: 1.1,
 *         passed: true,
 *         feedback: "feedback",
 *         trace: {
 *             by: "id",
 *             id: "id"
 *         }
 *     }
 */
export interface CreateAnnotationBody {
    simulationId?: string;
    issueId?: string;
    value: number;
    passed: boolean;
    feedback: string;
    anchor?: CreateAnnotationBody.Anchor;
    trace: LatitudeApi.TraceRef;
}

export namespace CreateAnnotationBody {
    export interface Anchor {
        messageIndex?: number | undefined;
        partIndex?: number | undefined;
        startOffset?: number | undefined;
        endOffset?: number | undefined;
        textFormat?: "pretty-json" | undefined;
    }
}
